1 package org.kuali.ole.deliver.form;
2
3 import org.kuali.ole.OLEConstants;
4 import org.kuali.ole.deliver.bo.FeeType;
5 import org.kuali.ole.deliver.bo.OleItemLevelBillPayment;
6 import org.kuali.ole.deliver.bo.OlePatronDocument;
7 import org.kuali.ole.deliver.bo.PatronBillPayment;
8 import org.kuali.rice.core.api.util.type.KualiDecimal;
9 import org.kuali.rice.krad.web.form.DocumentFormBase;
10
11 import java.util.ArrayList;
12 import java.util.List;
13
14
15
16
17
18
19
20
21 public class PatronBillForm extends DocumentFormBase {
22
23 private String patronId;
24 private String paymentMethod;
25 private KualiDecimal paymentAmount;
26 private String message;
27 private String freeTextNote;
28 private OlePatronDocument olePatronDocument;
29 private String billWisePayment = "default";
30 private boolean printFlag = true;
31 private List<FeeType> feeTypes;
32 private List<PatronBillPayment> patronBillPaymentList;
33 private boolean printBillReview;
34 private String forgiveNote;
35 private String errorNote;
36 private KualiDecimal grandTotal = new KualiDecimal("0");
37 private KualiDecimal patronAmount;
38 private String olePatronId;
39 private boolean doubleSubmit;
40 private boolean modifyBill;
41 private String transactionNumber;
42 private String paidByUser;
43 private String transactionNote;
44 private String cancellationNote;
45 private List<OleItemLevelBillPayment> currentSessionTransactions=new ArrayList<>();
46 private String userAmount;
47
48 public PatronBillForm() {
49 this.userAmount=OLEConstants.ZERO;
50 }
51
52 public KualiDecimal getGrandTotal() {
53 return grandTotal;
54 }
55
56 public void setGrandTotal(KualiDecimal grandTotal) {
57 this.grandTotal = grandTotal;
58 }
59
60 public String getBillWisePayment() {
61 return billWisePayment;
62 }
63
64 public void setBillWisePayment(String billWisePayment) {
65 this.billWisePayment = billWisePayment;
66 }
67
68 public List<FeeType> getFeeTypes() {
69 return feeTypes;
70 }
71
72 public void setFeeTypes(List<FeeType> feeTypes) {
73 this.feeTypes = feeTypes;
74 }
75
76 public String getPatronId() {
77 return patronId;
78 }
79
80 public void setPatronId(String patronId) {
81 this.patronId = patronId;
82 }
83
84 public String getPaymentMethod() {
85 return paymentMethod;
86 }
87
88 public void setPaymentMethod(String paymentMethod) {
89 this.paymentMethod = paymentMethod;
90 }
91
92 public KualiDecimal getPaymentAmount() {
93 return paymentAmount;
94 }
95
96 public void setPaymentAmount(KualiDecimal paymentAmount) {
97 this.paymentAmount = paymentAmount;
98 }
99
100 public String getMessage() {
101 return message;
102 }
103
104 public void setMessage(String message) {
105 this.message = message;
106 }
107
108 public String getFreeTextNote() {
109 return freeTextNote;
110 }
111
112 public void setFreeTextNote(String freeTextNote) {
113 this.freeTextNote = freeTextNote;
114 }
115
116 public OlePatronDocument getOlePatronDocument() {
117 return olePatronDocument;
118 }
119
120 public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
121 this.olePatronDocument = olePatronDocument;
122 }
123
124 public List<PatronBillPayment> getPatronBillPaymentList() {
125 return patronBillPaymentList;
126 }
127
128 public void setPatronBillPaymentList(List<PatronBillPayment> patronBillPaymentList) {
129 this.patronBillPaymentList = patronBillPaymentList;
130 }
131
132 public boolean isPrintFlag() {
133 return printFlag;
134 }
135
136 public void setPrintFlag(boolean printFlag) {
137 this.printFlag = printFlag;
138 }
139
140 public boolean isPrintBillReview() {
141 return printBillReview;
142 }
143
144 public void setPrintBillReview(boolean printBillReview) {
145 this.printBillReview = printBillReview;
146 }
147
148 public String getForgiveNote() {
149 return forgiveNote;
150 }
151
152 public void setForgiveNote(String forgiveNote) {
153 this.forgiveNote = forgiveNote;
154 }
155
156 public String getErrorNote() {
157 return errorNote;
158 }
159
160 public void setErrorNote(String errorNote) {
161 this.errorNote = errorNote;
162 }
163
164 public KualiDecimal getPatronAmount() {
165 return patronAmount;
166 }
167
168 public void setPatronAmount(KualiDecimal patronAmount) {
169 this.patronAmount = patronAmount;
170 }
171
172 public String getOlePatronId() {
173 return olePatronId;
174 }
175
176 public void setOlePatronId(String olePatronId) {
177 this.olePatronId = olePatronId;
178 }
179
180 public boolean isDoubleSubmit() {
181 return doubleSubmit;
182 }
183
184 public void setDoubleSubmit(boolean doubleSubmit) {
185 this.doubleSubmit = doubleSubmit;
186 }
187
188 public String getTransactionNumber() {
189 return transactionNumber;
190 }
191
192 public void setTransactionNumber(String transactionNumber) {
193 this.transactionNumber = transactionNumber;
194 }
195
196 public String getPaidByUser() {
197 return paidByUser;
198 }
199
200 public void setPaidByUser(String paidByUser) {
201 this.paidByUser = paidByUser;
202 }
203
204 public String getTransactionNote() {
205 return transactionNote;
206 }
207
208 public void setTransactionNote(String transactionNote) {
209 this.transactionNote = transactionNote;
210 }
211
212 public boolean isModifyBill() {
213 return modifyBill;
214 }
215
216 public void setModifyBill(boolean modifyBill) {
217 this.modifyBill = modifyBill;
218 }
219
220 public List<OleItemLevelBillPayment> getCurrentSessionTransactions() {
221 return currentSessionTransactions;
222 }
223
224 public void setCurrentSessionTransactions(List<OleItemLevelBillPayment> currentSessionTransactions) {
225 this.currentSessionTransactions = currentSessionTransactions;
226 }
227
228 public String getCancellationNote() {
229 return cancellationNote;
230 }
231
232 public void setCancellationNote(String cancellationNote) {
233 this.cancellationNote = cancellationNote;
234 }
235
236 public String getUserAmount() {
237 return userAmount;
238 }
239
240 public void setUserAmount(String userAmount) {
241 this.userAmount = userAmount;
242 }
243 }