View Javadoc
1   package org.kuali.ole.select.document;
2   
3   import org.apache.commons.lang3.StringUtils;
4   import org.kuali.ole.sys.OLEConstants;
5   import org.kuali.rice.core.api.config.property.ConfigContext;
6   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
7   
8   import java.sql.Date;
9   import java.util.HashMap;
10  import java.util.Map;
11  
12  /**
13   * Created with IntelliJ IDEA.
14   * User: srinivasane
15   * Date: 6/24/13
16   * Time: 8:17 PM
17   * To change this template use File | Settings | File Templates.
18   */
19  public class OLEEResourceInvoices extends PersistableBusinessObjectBase {
20      private String oleEResInvoiceId;
21      private String oleERSIdentifier;
22      private Integer oleInvoiceItemId;
23      private String invoiceId;
24      private Integer purchaseOrderId;
25      private String invoiceNumber;
26      private Date invoiceDate;
27      private String vendorName;
28      private String invoicedAmount;
29      private Date paidDate;
30      private String invoiceNote;
31      private String fundCode;
32      private Date checkClearedDate;
33      private String checkNumber;
34      private String invoiceStatus;
35      private String holdingsId;
36      private OLEEResourceRecordDocument oleERSDocument;
37      private OLEEResourcePO oleEResPO;
38      private String redirectUrl;
39  
40      public String getOleEResInvoiceId() {
41          return oleEResInvoiceId;
42      }
43  
44      public void setOleEResInvoiceId(String oleEResInvoiceId) {
45          this.oleEResInvoiceId = oleEResInvoiceId;
46      }
47  
48      public String getOleERSIdentifier() {
49          return oleERSIdentifier;
50      }
51  
52      public void setOleERSIdentifier(String oleERSIdentifier) {
53          this.oleERSIdentifier = oleERSIdentifier;
54      }
55  
56      public Integer getOleInvoiceItemId() {
57          return oleInvoiceItemId;
58      }
59  
60      public void setOleInvoiceItemId(Integer oleInvoiceItemId) {
61          this.oleInvoiceItemId = oleInvoiceItemId;
62      }
63  
64      public String getInvoiceId() {
65          return invoiceId;
66      }
67  
68      public void setInvoiceId(String invoiceId) {
69          this.invoiceId = invoiceId;
70      }
71  
72      public Integer getPurchaseOrderId() {
73          return purchaseOrderId;
74      }
75  
76      public void setPurchaseOrderId(Integer purchaseOrderId) {
77          this.purchaseOrderId = purchaseOrderId;
78      }
79  
80      public String getInvoiceNumber() {
81          return invoiceNumber;
82      }
83  
84      public void setInvoiceNumber(String invoiceNumber) {
85          this.invoiceNumber = invoiceNumber;
86      }
87  
88      public Date getInvoiceDate() {
89          return invoiceDate;
90      }
91  
92      public void setInvoiceDate(Date invoiceDate) {
93          this.invoiceDate = invoiceDate;
94      }
95  
96      public String getVendorName() {
97          return vendorName;
98      }
99  
100     public void setVendorName(String vendorName) {
101         this.vendorName = vendorName;
102     }
103 
104     public String getInvoicedAmount() {
105         return invoicedAmount;
106     }
107 
108     public void setInvoicedAmount(String invoicedAmount) {
109         this.invoicedAmount = invoicedAmount;
110     }
111 
112     public Date getPaidDate() {
113         return paidDate;
114     }
115 
116     public void setPaidDate(Date paidDate) {
117         this.paidDate = paidDate;
118     }
119 
120     public String getInvoiceNote() {
121         return invoiceNote;
122     }
123 
124     public void setInvoiceNote(String invoiceNote) {
125         this.invoiceNote = invoiceNote;
126     }
127 
128     public String getFundCode() {
129         return fundCode;
130     }
131 
132     public void setFundCode(String fundCode) {
133         this.fundCode = fundCode;
134     }
135 
136     public Date getCheckClearedDate() {
137         return checkClearedDate;
138     }
139 
140     public void setCheckClearedDate(Date checkClearedDate) {
141         this.checkClearedDate = checkClearedDate;
142     }
143 
144     public String getCheckNumber() {
145         return checkNumber;
146     }
147 
148     public void setCheckNumber(String checkNumber) {
149         this.checkNumber = checkNumber;
150     }
151 
152     public String getInvoiceStatus() {
153         return invoiceStatus;
154     }
155 
156     public void setInvoiceStatus(String invoiceStatus) {
157         this.invoiceStatus = invoiceStatus;
158     }
159 
160     public String getHoldingsId() {
161         return holdingsId;
162     }
163 
164     public void setHoldingsId(String holdingsId) {
165         this.holdingsId = holdingsId;
166     }
167 
168     public OLEEResourceRecordDocument getOleERSDocument() {
169         return oleERSDocument;
170     }
171 
172     public void setOleERSDocument(OLEEResourceRecordDocument oleERSDocument) {
173         this.oleERSDocument = oleERSDocument;
174     }
175 
176     public OLEEResourcePO getOleEResPO() {
177         return oleEResPO;
178     }
179 
180     public void setOleEResPO(OLEEResourcePO oleEResPO) {
181         this.oleEResPO = oleEResPO;
182     }
183 
184     public String getRedirectUrl() {
185         String invoiceDocumentNumber = this.getInvoiceNumber();
186         if (StringUtils.isNotBlank(invoiceDocumentNumber)) {
187             redirectUrl = ConfigContext.getCurrentContextConfig().getProperty("kew.url") + OLEConstants.PO_LINE_ITEM_URL + invoiceDocumentNumber;
188         }
189         return redirectUrl;
190     }
191 
192     public void setRedirectUrl(String redirectUrl) {
193         this.redirectUrl = redirectUrl;
194     }
195 }