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.sql.Date;
20 import java.util.ArrayList;
21 import java.util.Iterator;
22 import java.util.LinkedHashMap;
23 import java.util.List;
24
25 import org.kuali.ole.sys.OLEPropertyConstants;
26 import org.kuali.rice.core.api.util.type.KualiDecimal;
27 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
28
29
30
31
32 public class DisbursementVoucherPreConferenceDetail extends PersistableBusinessObjectBase {
33
34 private String documentNumber;
35 private String dvConferenceDestinationName;
36 private Date disbVchrConferenceStartDate;
37 private Date disbVchrConferenceEndDate;
38 private KualiDecimal disbVchrConferenceTotalAmt;
39 private String disbVchrExpenseCode;
40
41
42 private List dvPreConferenceRegistrants;
43
44
45
46
47 public DisbursementVoucherPreConferenceDetail() {
48 dvPreConferenceRegistrants = new ArrayList<DisbursementVoucherPreConferenceRegistrant>();
49 }
50
51
52
53
54
55
56 public String getDocumentNumber() {
57 return documentNumber;
58 }
59
60
61
62
63
64
65
66 public List getDvPreConferenceRegistrants() {
67 return dvPreConferenceRegistrants;
68 }
69
70
71
72
73
74
75 public void setDvPreConferenceRegistrants(List dvPreConferenceRegistrants) {
76 this.dvPreConferenceRegistrants = dvPreConferenceRegistrants;
77 }
78
79
80
81
82
83
84 public void setDocumentNumber(String documentNumber) {
85 this.documentNumber = documentNumber;
86 }
87
88
89
90
91
92
93 public String getDvConferenceDestinationName() {
94 return dvConferenceDestinationName;
95 }
96
97
98
99
100
101
102
103 public void setDvConferenceDestinationName(String dvConferenceDestinationName) {
104 this.dvConferenceDestinationName = dvConferenceDestinationName;
105 }
106
107
108
109
110
111
112 public Date getDisbVchrConferenceStartDate() {
113 return disbVchrConferenceStartDate;
114 }
115
116
117
118
119
120
121
122 public void setDisbVchrConferenceStartDate(Date disbVchrConferenceStartDate) {
123 this.disbVchrConferenceStartDate = disbVchrConferenceStartDate;
124 }
125
126
127
128
129
130
131 public Date getDisbVchrConferenceEndDate() {
132 return disbVchrConferenceEndDate;
133 }
134
135
136
137
138
139
140
141 public void setDisbVchrConferenceEndDate(Date disbVchrConferenceEndDate) {
142 this.disbVchrConferenceEndDate = disbVchrConferenceEndDate;
143 }
144
145
146
147
148
149
150 public KualiDecimal getDisbVchrConferenceTotalAmt() {
151 KualiDecimal totalConferenceAmount = KualiDecimal.ZERO;
152
153 if (dvPreConferenceRegistrants != null) {
154 for (Iterator iter = dvPreConferenceRegistrants.iterator(); iter.hasNext();) {
155 DisbursementVoucherPreConferenceRegistrant registrantLine = (DisbursementVoucherPreConferenceRegistrant) iter.next();
156 totalConferenceAmount = totalConferenceAmount.add(registrantLine.getDisbVchrExpenseAmount());
157 }
158 }
159
160 return totalConferenceAmount;
161 }
162
163
164
165
166
167
168
169 public void setDisbVchrConferenceTotalAmt(KualiDecimal disbVchrConferenceTotalAmt) {
170 this.disbVchrConferenceTotalAmt = disbVchrConferenceTotalAmt;
171 }
172
173
174
175
176
177
178 public String getDisbVchrExpenseCode() {
179 return disbVchrExpenseCode;
180 }
181
182
183
184
185
186
187
188 public void setDisbVchrExpenseCode(String disbVchrExpenseCode) {
189 this.disbVchrExpenseCode = disbVchrExpenseCode;
190 }
191
192
193
194
195 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
196 LinkedHashMap m = new LinkedHashMap();
197 m.put(OLEPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
198 return m;
199 }
200 }