1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.assignment;
17
18 import java.math.BigDecimal;
19
20 import org.kuali.hr.time.HrBusinessObject;
21 import org.kuali.hr.time.earncode.EarnCode;
22 import org.kuali.kfs.coa.businessobject.Account;
23 import org.kuali.kfs.coa.businessobject.ObjectCode;
24 import org.kuali.kfs.coa.businessobject.ProjectCode;
25 import org.kuali.kfs.coa.businessobject.SubAccount;
26 import org.kuali.kfs.coa.businessobject.SubObjectCode;
27
28 public class AssignmentAccount extends HrBusinessObject {
29
30 private static final long serialVersionUID = 2414818440020234952L;
31
32 private String tkAssignAcctId;
33 private String finCoaCd;
34 private String accountNbr;
35 private String subAcctNbr;
36 private String finObjectCd;
37 private String finSubObjCd;
38 private String projectCd;
39 private String orgRefId;
40 private BigDecimal percent;
41 private String earnCode;
42 private String tkAssignmentId;
43 private Assignment assignmentObj;
44
45 private Account accountObj;
46 private SubAccount subAccountObj;
47 private ObjectCode objectCodeObj;
48 private SubObjectCode subObjectCodeObj;
49 private ProjectCode projectCodeObj;
50 private EarnCode earnCodeObj;
51
52 public Assignment getAssignmentObj() {
53 return assignmentObj;
54 }
55
56 public void setAssignmentObj(Assignment assignmentObj) {
57 this.assignmentObj = assignmentObj;
58 }
59
60 public String getFinCoaCd() {
61 return finCoaCd;
62 }
63
64 public void setFinCoaCd(String finCoaCd) {
65 this.finCoaCd = finCoaCd;
66 }
67
68 public String getAccountNbr() {
69 return accountNbr;
70 }
71
72 public void setAccountNbr(String accountNbr) {
73 this.accountNbr = accountNbr;
74 }
75
76 public String getSubAcctNbr() {
77 return subAcctNbr;
78 }
79
80 public void setSubAcctNbr(String subAcctNbr) {
81 this.subAcctNbr = subAcctNbr;
82 }
83
84 public String getFinObjectCd() {
85 return finObjectCd;
86 }
87
88 public void setFinObjectCd(String finObjectCd) {
89 this.finObjectCd = finObjectCd;
90 }
91
92 public String getFinSubObjCd() {
93 return finSubObjCd;
94 }
95
96 public void setFinSubObjCd(String finSubObjCd) {
97 this.finSubObjCd = finSubObjCd;
98 }
99
100 public String getProjectCd() {
101 return projectCd;
102 }
103
104 public void setProjectCd(String projectCd) {
105 this.projectCd = projectCd;
106 }
107
108 public String getOrgRefId() {
109 return orgRefId;
110 }
111
112 public void setOrgRefId(String orgRefId) {
113 this.orgRefId = orgRefId;
114 }
115
116 public BigDecimal getPercent() {
117 return percent;
118 }
119
120 public void setPercent(BigDecimal percent) {
121 this.percent = percent;
122 }
123
124 public String getTkAssignAcctId() {
125 return tkAssignAcctId;
126 }
127
128 public void setTkAssignAcctId(String tkAssignAcctId) {
129 this.tkAssignAcctId = tkAssignAcctId;
130 }
131
132 public String getTkAssignmentId() {
133 return tkAssignmentId;
134 }
135
136 public void setTkAssignmentId(String tkAssignmentId) {
137 this.tkAssignmentId = tkAssignmentId;
138 }
139
140 public String getEarnCode() {
141 return earnCode;
142 }
143
144 public void setEarnCode(String earnCode) {
145 this.earnCode = earnCode;
146 }
147
148 public Account getAccountObj() {
149 return accountObj;
150 }
151
152 public void setAccountObj(Account accountObj) {
153 this.accountObj = accountObj;
154 }
155
156 public SubAccount getSubAccountObj() {
157 return subAccountObj;
158 }
159
160 public void setSubAccountObj(SubAccount subAccountObj) {
161 this.subAccountObj = subAccountObj;
162 }
163
164 public ObjectCode getObjectCodeObj() {
165 return objectCodeObj;
166 }
167
168 public void setObjectCodeObj(ObjectCode objectCodeObj) {
169 this.objectCodeObj = objectCodeObj;
170 }
171
172 public SubObjectCode getSubObjectCodeObj() {
173 return subObjectCodeObj;
174 }
175
176 public void setSubObjectCodeObj(SubObjectCode subObjectCodeObj) {
177 this.subObjectCodeObj = subObjectCodeObj;
178 }
179
180 public ProjectCode getProjectCodeObj() {
181 return projectCodeObj;
182 }
183
184 public void setProjectCodeObj(ProjectCode projectCodeObj) {
185 this.projectCodeObj = projectCodeObj;
186 }
187
188 public EarnCode getEarnCodeObj() {
189 return earnCodeObj;
190 }
191
192 public void setEarnCodeObj(EarnCode earnCodeObj) {
193 this.earnCodeObj = earnCodeObj;
194 }
195
196 @Override
197 public String getUniqueKey() {
198 return earnCode +"_"+accountNbr+"_"+subAcctNbr;
199 }
200
201 @Override
202 public String getId() {
203 return tkAssignAcctId;
204 }
205
206 @Override
207 public void setId(String id) {
208 setTkAssignAcctId(id);
209 }
210
211 }