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
31
32
33 private static final long serialVersionUID = 1L;
34 private String tkAssignAcctId;
35 private String finCoaCd;
36 private String accountNbr;
37 private String subAcctNbr;
38 private String finObjectCd;
39 private String finSubObjCd;
40 private String projectCd;
41 private String orgRefId;
42 private BigDecimal percent;
43 private String earnCode;
44 private String tkAssignmentId;
45 private Assignment assignmentObj;
46
47 private Account accountObj;
48 private SubAccount subAccountObj;
49 private ObjectCode objectCodeObj;
50 private SubObjectCode subObjectCodeObj;
51 private ProjectCode projectCodeObj;
52 private EarnCode earnCodeObj;
53
54 public Assignment getAssignmentObj() {
55 return assignmentObj;
56 }
57
58
59
60 public void setAssignmentObj(Assignment assignmentObj) {
61 this.assignmentObj = assignmentObj;
62 }
63
64
65 public String getFinCoaCd() {
66 return finCoaCd;
67 }
68
69
70
71 public void setFinCoaCd(String finCoaCd) {
72 this.finCoaCd = finCoaCd;
73 }
74
75
76
77 public String getAccountNbr() {
78 return accountNbr;
79 }
80
81
82
83 public void setAccountNbr(String accountNbr) {
84 this.accountNbr = accountNbr;
85 }
86
87
88
89 public String getSubAcctNbr() {
90 return subAcctNbr;
91 }
92
93
94
95 public void setSubAcctNbr(String subAcctNbr) {
96 this.subAcctNbr = subAcctNbr;
97 }
98
99
100
101 public String getFinObjectCd() {
102 return finObjectCd;
103 }
104
105
106
107 public void setFinObjectCd(String finObjectCd) {
108 this.finObjectCd = finObjectCd;
109 }
110
111
112
113 public String getFinSubObjCd() {
114 return finSubObjCd;
115 }
116
117
118
119 public void setFinSubObjCd(String finSubObjCd) {
120 this.finSubObjCd = finSubObjCd;
121 }
122
123
124
125 public String getProjectCd() {
126 return projectCd;
127 }
128
129
130
131 public void setProjectCd(String projectCd) {
132 this.projectCd = projectCd;
133 }
134
135
136
137 public String getOrgRefId() {
138 return orgRefId;
139 }
140
141
142
143 public void setOrgRefId(String orgRefId) {
144 this.orgRefId = orgRefId;
145 }
146
147
148
149 public BigDecimal getPercent() {
150 return percent;
151 }
152
153
154
155 public void setPercent(BigDecimal percent) {
156 this.percent = percent;
157 }
158
159
160
161 public boolean isActive() {
162 return active;
163 }
164
165
166
167 public void setActive(boolean active) {
168 this.active = active;
169 }
170
171
172
173 public String getTkAssignAcctId() {
174 return tkAssignAcctId;
175 }
176
177
178
179 public void setTkAssignAcctId(String tkAssignAcctId) {
180 this.tkAssignAcctId = tkAssignAcctId;
181 }
182
183
184
185 public String getTkAssignmentId() {
186 return tkAssignmentId;
187 }
188
189
190
191 public void setTkAssignmentId(String tkAssignmentId) {
192 this.tkAssignmentId = tkAssignmentId;
193 }
194
195
196
197 public String getEarnCode() {
198 return earnCode;
199 }
200
201
202
203 public void setEarnCode(String earnCode) {
204 this.earnCode = earnCode;
205 }
206
207
208
209 public Account getAccountObj() {
210 return accountObj;
211 }
212
213
214
215 public void setAccountObj(Account accountObj) {
216 this.accountObj = accountObj;
217 }
218
219
220
221 public SubAccount getSubAccountObj() {
222 return subAccountObj;
223 }
224
225
226
227 public void setSubAccountObj(SubAccount subAccountObj) {
228 this.subAccountObj = subAccountObj;
229 }
230
231
232
233 public ObjectCode getObjectCodeObj() {
234 return objectCodeObj;
235 }
236
237
238
239 public void setObjectCodeObj(ObjectCode objectCodeObj) {
240 this.objectCodeObj = objectCodeObj;
241 }
242
243
244
245 public SubObjectCode getSubObjectCodeObj() {
246 return subObjectCodeObj;
247 }
248
249
250
251 public void setSubObjectCodeObj(SubObjectCode subObjectCodeObj) {
252 this.subObjectCodeObj = subObjectCodeObj;
253 }
254
255
256
257 public ProjectCode getProjectCodeObj() {
258 return projectCodeObj;
259 }
260
261
262
263 public void setProjectCodeObj(ProjectCode projectCodeObj) {
264 this.projectCodeObj = projectCodeObj;
265 }
266
267
268
269 public EarnCode getEarnCodeObj() {
270 return earnCodeObj;
271 }
272
273
274
275 public void setEarnCodeObj(EarnCode earnCodeObj) {
276 this.earnCodeObj = earnCodeObj;
277 }
278
279
280
281 @Override
282 public String getUniqueKey() {
283 return earnCode +"_"+accountNbr+"_"+subAcctNbr;
284 }
285
286
287
288 @Override
289 public String getId() {
290 return tkAssignAcctId;
291 }
292
293
294
295 @Override
296 public void setId(String id) {
297 setTkAssignAcctId(id);
298 }
299
300 }