Line | |
---|
1 | /* StaffMemberVO.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.vo
|
---|
4 | {
|
---|
5 | import com.adobe.cairngorm.vo.IValueObject;
|
---|
6 |
|
---|
7 | [Bindable]
|
---|
8 | public class StaffMemberVO implements IValueObject
|
---|
9 | {
|
---|
10 | public var duz: String;
|
---|
11 | public var inactive: Boolean = false;
|
---|
12 | public var name: String;
|
---|
13 | public var initials: String;
|
---|
14 | public var role: String;
|
---|
15 | public var color: ColorSelectionVO;
|
---|
16 | public var colorChanged: Boolean = false;
|
---|
17 | public var changed: Boolean = false;
|
---|
18 | public var displayName:String;
|
---|
19 |
|
---|
20 | public function toString(): String
|
---|
21 | {
|
---|
22 | // in the string form, the first comma piece is 1 if Code should be used
|
---|
23 |
|
---|
24 | var isChanged: Boolean = (changed || colorChanged);
|
---|
25 | var x: String =
|
---|
26 | "duz=" + duz + "\t" +
|
---|
27 | "inact=" + (inactive ? "1" : "0") + "\t" +
|
---|
28 | "nm=" + name + "\t" +
|
---|
29 | "itl=" + initials + "\t" +
|
---|
30 | "role=" + role + "\t" +
|
---|
31 | "clr=" + color.toString() + "\t" +
|
---|
32 | "chg=" + (isChanged ? "1" : "0") + "\t";
|
---|
33 | return x;
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.