View Javadoc
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   * Created with IntelliJ IDEA.
16   * User: ?
17   * Date: 10/17/12
18   * Time: 9:46 PM
19   * To change this template use File | Settings | File Templates.
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;//dummy variable used for only browser to keep the amount track
47      private String patronUrl;
48  
49      public PatronBillForm() {
50          this.userAmount=OLEConstants.ZERO;
51      }
52  
53      public KualiDecimal getGrandTotal() {
54          return grandTotal;
55      }
56  
57      public void setGrandTotal(KualiDecimal grandTotal) {
58          this.grandTotal = grandTotal;
59      }
60  
61      public String getBillWisePayment() {
62          return billWisePayment;
63      }
64  
65      public void setBillWisePayment(String billWisePayment) {
66          this.billWisePayment = billWisePayment;
67      }
68  
69      public List<FeeType> getFeeTypes() {
70          return feeTypes;
71      }
72  
73      public void setFeeTypes(List<FeeType> feeTypes) {
74          this.feeTypes = feeTypes;
75      }
76  
77      public String getPatronId() {
78          return patronId;
79      }
80  
81      public void setPatronId(String patronId) {
82          this.patronId = patronId;
83      }
84  
85      public String getPaymentMethod() {
86          return paymentMethod;
87      }
88  
89      public void setPaymentMethod(String paymentMethod) {
90          this.paymentMethod = paymentMethod;
91      }
92  
93      public KualiDecimal getPaymentAmount() {
94          return paymentAmount;
95      }
96  
97      public void setPaymentAmount(KualiDecimal paymentAmount) {
98          this.paymentAmount = paymentAmount;
99      }
100 
101     public String getMessage() {
102         return message;
103     }
104 
105     public void setMessage(String message) {
106         this.message = message;
107     }
108 
109     public String getFreeTextNote() {
110         return freeTextNote;
111     }
112 
113     public void setFreeTextNote(String freeTextNote) {
114         this.freeTextNote = freeTextNote;
115     }
116 
117     public OlePatronDocument getOlePatronDocument() {
118         return olePatronDocument;
119     }
120 
121     public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
122         this.olePatronDocument = olePatronDocument;
123     }
124 
125     public List<PatronBillPayment> getPatronBillPaymentList() {
126         return patronBillPaymentList;
127     }
128 
129     public void setPatronBillPaymentList(List<PatronBillPayment> patronBillPaymentList) {
130         this.patronBillPaymentList = patronBillPaymentList;
131     }
132 
133     public boolean isPrintFlag() {
134         return printFlag;
135     }
136 
137     public void setPrintFlag(boolean printFlag) {
138         this.printFlag = printFlag;
139     }
140 
141     public boolean isPrintBillReview() {
142         return printBillReview;
143     }
144 
145     public void setPrintBillReview(boolean printBillReview) {
146         this.printBillReview = printBillReview;
147     }
148 
149     public String getForgiveNote() {
150         return forgiveNote;
151     }
152 
153     public void setForgiveNote(String forgiveNote) {
154         this.forgiveNote = forgiveNote;
155     }
156 
157     public String getErrorNote() {
158         return errorNote;
159     }
160 
161     public void setErrorNote(String errorNote) {
162         this.errorNote = errorNote;
163     }
164 
165     public KualiDecimal getPatronAmount() {
166         return patronAmount;
167     }
168 
169     public void setPatronAmount(KualiDecimal patronAmount) {
170         this.patronAmount = patronAmount;
171     }
172 
173     public String getOlePatronId() {
174         return olePatronId;
175     }
176 
177     public void setOlePatronId(String olePatronId) {
178         this.olePatronId = olePatronId;
179     }
180 
181     public boolean isDoubleSubmit() {
182         return doubleSubmit;
183     }
184 
185     public void setDoubleSubmit(boolean doubleSubmit) {
186         this.doubleSubmit = doubleSubmit;
187     }
188 
189     public String getTransactionNumber() {
190         return transactionNumber;
191     }
192 
193     public void setTransactionNumber(String transactionNumber) {
194         this.transactionNumber = transactionNumber;
195     }
196 
197     public String getPaidByUser() {
198         return paidByUser;
199     }
200 
201     public void setPaidByUser(String paidByUser) {
202         this.paidByUser = paidByUser;
203     }
204 
205     public String getTransactionNote() {
206         return transactionNote;
207     }
208 
209     public void setTransactionNote(String transactionNote) {
210         this.transactionNote = transactionNote;
211     }
212 
213     public boolean isModifyBill() {
214         return modifyBill;
215     }
216 
217     public void setModifyBill(boolean modifyBill) {
218         this.modifyBill = modifyBill;
219     }
220 
221     public List<OleItemLevelBillPayment> getCurrentSessionTransactions() {
222         return currentSessionTransactions;
223     }
224 
225     public void setCurrentSessionTransactions(List<OleItemLevelBillPayment> currentSessionTransactions) {
226         this.currentSessionTransactions = currentSessionTransactions;
227     }
228 
229     public String getCancellationNote() {
230         return cancellationNote;
231     }
232 
233     public void setCancellationNote(String cancellationNote) {
234         this.cancellationNote = cancellationNote;
235     }
236 
237     public String getUserAmount() {
238         return userAmount;
239     }
240 
241     public void setUserAmount(String userAmount) {
242         this.userAmount = userAmount;
243     }
244 
245     public String getPatronUrl() {
246         return patronUrl;
247     }
248 
249     public void setPatronUrl(String patronUrl) {
250         this.patronUrl = patronUrl;
251     }
252 }