1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.util.ArrayList;
23  import java.util.LinkedHashMap;
24  import java.util.List;
25  
26  import org.kuali.ole.coa.businessobject.Account;
27  import org.kuali.ole.coa.businessobject.Chart;
28  import org.kuali.ole.coa.businessobject.ObjectCodeCurrent;
29  import org.kuali.ole.coa.businessobject.ProjectCode;
30  import org.kuali.ole.coa.businessobject.SubAccount;
31  import org.kuali.ole.sys.OLEPropertyConstants;
32  import org.kuali.ole.sys.businessobject.TimestampedBusinessObjectBase;
33  import org.kuali.rice.core.api.util.type.KualiDecimal;
34  import org.kuali.rice.core.api.util.type.KualiInteger;
35  
36  public class PaymentAccountDetail extends TimestampedBusinessObjectBase {
37  
38      private KualiInteger id; 
39      private String finChartCode; 
40      private String accountNbr; 
41      private String subAccountNbr; 
42      private String finObjectCode; 
43      private String finSubObjectCode; 
44      private String orgReferenceId; 
45      private String projectCode; 
46      private KualiDecimal accountNetAmount; 
47  
48      private KualiInteger paymentDetailId;
49      private PaymentDetail paymentDetail; 
50  
51      private List<PaymentAccountHistory> accountHistory = new ArrayList<PaymentAccountHistory>();
52  
53      private Chart chartOfAccounts;
54      private Account account;
55      private SubAccount subAccount;
56      private ProjectCode project;
57      private ObjectCodeCurrent objectCode;
58  
59      
60  
61  
62      public PaymentAccountDetail() {
63          super();
64      }
65  
66      
67  
68  
69  
70  
71      public List<PaymentAccountHistory> getAccountHistory() {
72          return accountHistory;
73      }
74  
75      
76  
77  
78  
79  
80      public void setAccountHistory(List<PaymentAccountHistory> ah) {
81          accountHistory = ah;
82      }
83  
84      
85  
86  
87  
88  
89      public void addAccountHistory(PaymentAccountHistory pah) {
90          pah.setPaymentAccountDetail(this);
91          accountHistory.add(pah);
92      }
93  
94      
95  
96  
97  
98  
99      public void deleteAccountDetail(PaymentAccountHistory pah) {
100         accountHistory.remove(pah);
101     }
102 
103     
104 
105 
106 
107 
108     public KualiInteger getId() {
109         return id;
110     }
111 
112     
113 
114 
115 
116     public PaymentDetail getPaymentDetail() {
117         return this.paymentDetail;
118     }
119 
120     
121 
122 
123 
124     public String getAccountNbr() {
125         return accountNbr;
126     }
127 
128     
129 
130 
131 
132     public KualiDecimal getAccountNetAmount() {
133         return accountNetAmount;
134     }
135 
136     
137 
138 
139 
140     public String getFinChartCode() {
141         return finChartCode;
142     }
143 
144     
145 
146 
147 
148     public String getFinObjectCode() {
149         return finObjectCode;
150     }
151 
152     
153 
154 
155 
156     public String getFinSubObjectCode() {
157         return finSubObjectCode;
158     }
159 
160     
161 
162 
163 
164     public String getOrgReferenceId() {
165         return orgReferenceId;
166     }
167 
168     
169 
170 
171 
172     public String getProjectCode() {
173         return projectCode;
174     }
175 
176     
177 
178 
179 
180     public String getSubAccountNbr() {
181         return subAccountNbr;
182     }
183 
184     
185 
186 
187     public void setAccountNbr(String string) {
188         accountNbr = string;
189     }
190 
191     
192 
193 
194     public void setAccountNetAmount(KualiDecimal bigdecimal) {
195         accountNetAmount = bigdecimal;
196     }
197 
198     public void setAccountNetAmount(String bigdecimal) {
199         accountNetAmount = new KualiDecimal(bigdecimal);
200     }
201 
202     
203 
204 
205     public void setPaymentDetail(PaymentDetail pd) {
206         paymentDetail = pd;
207     }
208 
209     
210 
211 
212     public void setFinChartCode(String string) {
213         finChartCode = string;
214     }
215 
216     
217 
218 
219     public void setFinObjectCode(String string) {
220         finObjectCode = string;
221     }
222 
223     
224 
225 
226     public void setFinSubObjectCode(String string) {
227         finSubObjectCode = string;
228     }
229 
230     
231 
232 
233     public void setId(KualiInteger integer) {
234         id = integer;
235     }
236 
237     
238 
239 
240     public void setOrgReferenceId(String string) {
241         orgReferenceId = string;
242     }
243 
244     
245 
246 
247     public void setProjectCode(String string) {
248         projectCode = string;
249     }
250 
251     
252 
253 
254     public void setSubAccountNbr(String string) {
255         subAccountNbr = string;
256     }
257 
258     
259 
260 
261 
262 
263     public KualiInteger getPaymentDetailId() {
264         return paymentDetailId;
265     }
266 
267     
268 
269 
270 
271 
272     public void setPaymentDetailId(KualiInteger paymentDetailId) {
273         this.paymentDetailId = paymentDetailId;
274     }
275 
276     
277 
278 
279     
280     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
281         LinkedHashMap m = new LinkedHashMap();
282 
283         m.put(OLEPropertyConstants.ID, this.id);
284 
285         return m;
286     }
287 
288     
289 
290 
291 
292 
293     public Account getAccount() {
294         return account;
295     }
296 
297     
298 
299 
300 
301 
302     public void setAccount(Account account) {
303         this.account = account;
304     }
305 
306     
307 
308 
309 
310 
311     public SubAccount getSubAccount() {
312         return subAccount;
313     }
314 
315     
316 
317 
318 
319 
320     public void setSubAccount(SubAccount subAccount) {
321         this.subAccount = subAccount;
322     }
323 
324     
325 
326 
327 
328 
329     public Chart getChartOfAccounts() {
330         return chartOfAccounts;
331     }
332 
333     
334 
335 
336 
337 
338     public void setChartOfAccounts(Chart chartOfAccounts) {
339         this.chartOfAccounts = chartOfAccounts;
340     }
341 
342     
343 
344 
345 
346 
347     public ProjectCode getProject() {
348         return project;
349     }
350 
351     
352 
353 
354 
355 
356     public void setProject(ProjectCode project) {
357         this.project = project;
358     }
359 
360     
361 
362 
363 
364 
365     public ObjectCodeCurrent getObjectCode() {
366         return objectCode;
367     }
368 
369     
370 
371 
372 
373 
374     public void setObjectCode(ObjectCodeCurrent objectCode) {
375         this.objectCode = objectCode;
376     }
377 }