1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.fp.businessobject;
18
19 import java.util.LinkedHashMap;
20
21 import org.kuali.ole.fp.document.service.DisbursementVoucherPayeeService;
22 import org.kuali.ole.sys.OLEPropertyConstants;
23 import org.kuali.ole.sys.context.SpringContext;
24 import org.kuali.ole.vnd.businessobject.VendorDetail;
25 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
26 import org.kuali.rice.kim.api.identity.Person;
27 import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
28
29 public class DisbursementPayee extends TransientBusinessObjectBase implements MutableInactivatable {
30 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(DisbursementPayee.class);
31
32 private String payeeIdNumber;
33 private String payeeTypeCode;
34 private String payeeTypeDescription;
35 private String payeeName;
36
37 private String paymentReasonCode;
38 private String taxNumber;
39 private String employeeId;
40 private String firstName;
41 private String lastName;
42 private String vendorName;
43 private String vendorNumber;
44 private String address;
45 private boolean active;
46
47 private String principalId;
48 private Person person;
49 protected VendorDetail vendorDetail;
50
51
52
53
54 public DisbursementPayee() {
55 super();
56 }
57
58
59
60
61
62 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
63 LinkedHashMap<String, Object> map = new LinkedHashMap<String, Object>();
64 map.put(OLEPropertyConstants.PAYEE_ID_NUMBER, this.payeeIdNumber);
65 map.put(OLEPropertyConstants.PAYEE_TYPE_CODE, this.payeeTypeCode);
66 map.put(OLEPropertyConstants.PAYEE_NAME, this.payeeName);
67
68 return map;
69 }
70
71
72
73
74
75
76 public String getPayeeIdNumber() {
77 return payeeIdNumber;
78 }
79
80
81
82
83
84
85 public void setPayeeIdNumber(String payeeIdNumber) {
86 this.payeeIdNumber = payeeIdNumber;
87 }
88
89
90
91
92
93
94 public String getPayeeTypeCode() {
95 return payeeTypeCode;
96 }
97
98
99
100
101
102
103 public void setPayeeTypeCode(String payeeTypeCode) {
104 this.payeeTypeCode = payeeTypeCode;
105 }
106
107
108
109
110
111
112 public String getPayeeName() {
113 return payeeName;
114 }
115
116
117
118
119
120
121 public void setPayeeName(String payeeName) {
122 this.payeeName = payeeName;
123 }
124
125
126
127
128
129
130 public String getPaymentReasonCode() {
131 return paymentReasonCode;
132 }
133
134
135
136
137
138
139 public void setPaymentReasonCode(String paymentReasonCode) {
140 this.paymentReasonCode = paymentReasonCode;
141 }
142
143
144
145
146
147
148 public String getTaxNumber() {
149 return taxNumber;
150 }
151
152
153
154
155
156
157 public void setTaxNumber(String taxNumber) {
158 this.taxNumber = taxNumber;
159 }
160
161
162
163
164
165
166 public String getEmployeeId() {
167 return employeeId;
168 }
169
170
171
172
173
174
175 public void setEmployeeId(String employeeId) {
176 this.employeeId = employeeId;
177 }
178
179
180
181
182
183
184 public String getVendorName() {
185 return vendorName;
186 }
187
188
189
190
191
192
193 public void setVendorName(String vendorName) {
194 this.vendorName = vendorName;
195 }
196
197
198
199
200
201
202 public String getAddress() {
203 return address;
204 }
205
206
207
208
209
210
211 public void setAddress(String address) {
212 this.address = address;
213 }
214
215
216
217
218
219
220 public String getVendorNumber() {
221 return vendorNumber;
222 }
223
224
225
226
227
228
229 public void setVendorNumber(String vendorNumber) {
230 this.vendorNumber = vendorNumber;
231 }
232
233
234
235
236
237
238 @Override
239 public boolean isActive() {
240 return active;
241 }
242
243
244
245
246
247
248 @Override
249 public void setActive(boolean active) {
250 this.active = active;
251 }
252
253
254
255
256
257
258 public String getFirstName() {
259 return firstName;
260 }
261
262
263
264
265
266
267 public void setFirstName(String firstName) {
268 this.firstName = firstName;
269 }
270
271
272
273
274
275
276 public String getLastName() {
277 return lastName;
278 }
279
280
281
282
283
284
285 public void setLastName(String lastName) {
286 this.lastName = lastName;
287 }
288
289
290
291
292
293
294 public String getPayeeTypeDescription() {
295 DisbursementVoucherPayeeService payeeService = SpringContext.getBean(DisbursementVoucherPayeeService.class);
296
297 return payeeService.getPayeeTypeDescription(payeeTypeCode);
298 }
299
300
301
302
303
304
305 public void setPayeeTypeDescription(String payeeTypeDescription) {
306 this.payeeTypeDescription = payeeTypeDescription;
307 }
308
309
310
311
312
313 public String getPrincipalId() {
314 return principalId;
315 }
316
317
318
319
320
321 public void setPrincipalId(String principalId) {
322 this.principalId = principalId;
323 }
324
325
326
327
328
329 public Person getPerson() {
330 return person;
331 }
332
333
334
335
336
337 public void setPerson(Person person) {
338 this.person = person;
339 }
340
341
342
343
344
345
346 public VendorDetail getVendorDetail() {
347 return vendorDetail;
348 }
349
350
351
352
353
354
355 public void setVendorDetail(VendorDetail vendorDetail) {
356 this.vendorDetail = vendorDetail;
357 }
358
359
360 }