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
048    public PatronBillForm() {
049        this.userAmount=OLEConstants.ZERO;
050    }
051
052    public KualiDecimal getGrandTotal() {
053        return grandTotal;
054    }
055
056    public void setGrandTotal(KualiDecimal grandTotal) {
057        this.grandTotal = grandTotal;
058    }
059
060    public String getBillWisePayment() {
061        return billWisePayment;
062    }
063
064    public void setBillWisePayment(String billWisePayment) {
065        this.billWisePayment = billWisePayment;
066    }
067
068    public List<FeeType> getFeeTypes() {
069        return feeTypes;
070    }
071
072    public void setFeeTypes(List<FeeType> feeTypes) {
073        this.feeTypes = feeTypes;
074    }
075
076    public String getPatronId() {
077        return patronId;
078    }
079
080    public void setPatronId(String patronId) {
081        this.patronId = patronId;
082    }
083
084    public String getPaymentMethod() {
085        return paymentMethod;
086    }
087
088    public void setPaymentMethod(String paymentMethod) {
089        this.paymentMethod = paymentMethod;
090    }
091
092    public KualiDecimal getPaymentAmount() {
093        return paymentAmount;
094    }
095
096    public void setPaymentAmount(KualiDecimal paymentAmount) {
097        this.paymentAmount = paymentAmount;
098    }
099
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}