001package org.kuali.ole.deliver.form;
002
003import org.kuali.ole.OLEConstants;
004import org.kuali.ole.deliver.bo.FeeType;
005import org.kuali.ole.deliver.bo.OleItemLevelBillPayment;
006import org.kuali.ole.deliver.bo.OlePatronDocument;
007import org.kuali.ole.deliver.bo.PatronBillPayment;
008import org.kuali.rice.core.api.util.type.KualiDecimal;
009import org.kuali.rice.krad.web.form.DocumentFormBase;
010
011import java.util.ArrayList;
012import java.util.List;
013
014/**
015 * Created with IntelliJ IDEA.
016 * User: ?
017 * Date: 10/17/12
018 * Time: 9:46 PM
019 * To change this template use File | Settings | File Templates.
020 */
021public class PatronBillForm extends DocumentFormBase {
022
023    private String patronId;
024    private String paymentMethod;
025    private KualiDecimal paymentAmount;
026    private String message;
027    private String freeTextNote;
028    private OlePatronDocument olePatronDocument;
029    private String billWisePayment = "default";
030    private boolean printFlag = true;
031    private List<FeeType> feeTypes;
032    private List<PatronBillPayment> patronBillPaymentList;
033    private boolean printBillReview;
034    private String forgiveNote;
035    private String errorNote;
036    private KualiDecimal grandTotal = new KualiDecimal("0");
037    private KualiDecimal patronAmount;
038    private String olePatronId;
039    private boolean doubleSubmit;
040    private boolean modifyBill;
041    private String transactionNumber;
042    private String paidByUser;
043    private String transactionNote;
044    private String cancellationNote;
045    private List<OleItemLevelBillPayment> currentSessionTransactions=new ArrayList<>();
046    private String userAmount;//dummy variable used for only browser to keep the amount track
047    private String patronUrl;
048
049    public PatronBillForm() {
050        this.userAmount=OLEConstants.ZERO;
051    }
052
053    public KualiDecimal getGrandTotal() {
054        return grandTotal;
055    }
056
057    public void setGrandTotal(KualiDecimal grandTotal) {
058        this.grandTotal = grandTotal;
059    }
060
061    public String getBillWisePayment() {
062        return billWisePayment;
063    }
064
065    public void setBillWisePayment(String billWisePayment) {
066        this.billWisePayment = billWisePayment;
067    }
068
069    public List<FeeType> getFeeTypes() {
070        return feeTypes;
071    }
072
073    public void setFeeTypes(List<FeeType> feeTypes) {
074        this.feeTypes = feeTypes;
075    }
076
077    public String getPatronId() {
078        return patronId;
079    }
080
081    public void setPatronId(String patronId) {
082        this.patronId = patronId;
083    }
084
085    public String getPaymentMethod() {
086        return paymentMethod;
087    }
088
089    public void setPaymentMethod(String paymentMethod) {
090        this.paymentMethod = paymentMethod;
091    }
092
093    public KualiDecimal getPaymentAmount() {
094        return paymentAmount;
095    }
096
097    public void setPaymentAmount(KualiDecimal paymentAmount) {
098        this.paymentAmount = paymentAmount;
099    }
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}