001/*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License,  Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing,  software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,  either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole.select.document;
017
018import org.kuali.ole.coa.businessobject.Account;
019import org.kuali.ole.coa.businessobject.Chart;
020import org.kuali.ole.coa.businessobject.ObjectCode;
021import org.kuali.ole.select.businessobject.OleFundLookup;
022import org.kuali.ole.sys.OLEConstants;
023import org.kuali.ole.sys.context.SpringContext;
024import org.kuali.ole.sys.service.UniversityDateService;
025import org.kuali.rice.krad.document.TransactionalDocumentBase;
026
027import java.util.ArrayList;
028import java.util.Date;
029import java.util.List;
030
031/**
032 * This class is the document Class for Acquisition Search
033 */
034public class OleFundLookupDocument extends TransactionalDocumentBase {
035    private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OleFundLookupDocument.class);
036
037    private String chartOfAccountsCode;
038    private String accountNumber;
039    private String objectCode;
040    private String organizationCode;
041    private String keyword;
042    private Integer universityFiscalYear;
043    private boolean active;
044    private Chart chart;
045    private Account account;
046    private ObjectCode financialObject;
047    private String accountName;
048    private String intialFundBalance;
049    private String cashBalance;
050    private String freeBalance;
051    private String intialBudgetAllocation;
052    private String carryOverBalance;
053    private String transfered;
054    private String netAllocation;
055    private String encumbrances;
056    private String sumPaidInvoice;
057    private String sumUnpaidInvoice;
058    private String expendedPercentage;
059    private String expenEncumPercentage;
060    private List<OleFundLookup> finalResults = new ArrayList<OleFundLookup>();
061
062
063    public OleFundLookupDocument() {
064        Date fiscalYear = new Date();
065        String year = SpringContext.getBean(UniversityDateService.class).getCurrentFiscalYear().toString();
066        universityFiscalYear = Integer.parseInt(year);
067    }
068
069    public String getAccountName() {
070        return accountName;
071    }
072
073    public void setAccountName(String accountName) {
074        this.accountName = accountName;
075    }
076
077    public String getChartOfAccountsCode() {
078        return chartOfAccountsCode;
079    }
080
081    public void setChartOfAccountsCode(String chartOfAccountsCode) {
082        this.chartOfAccountsCode = chartOfAccountsCode;
083    }
084
085    public String getAccountNumber() {
086        return accountNumber;
087    }
088
089    public void setAccountNumber(String accountNumber) {
090        this.accountNumber = accountNumber;
091    }
092
093    public String getObjectCode() {
094        return objectCode;
095    }
096
097    public void setObjectCode(String objectCode) {
098        this.objectCode = objectCode;
099    }
100
101    public String getOrganizationCode() {
102        return organizationCode;
103    }
104
105    public void setOrganizationCode(String organizationCode) {
106        this.organizationCode = organizationCode;
107    }
108
109    public String getKeyword() {
110        return keyword;
111    }
112
113    public void setKeyword(String keyword) {
114        this.keyword = keyword;
115    }
116
117    public Integer getUniversityFiscalYear() {
118        return universityFiscalYear;
119    }
120
121    public void setUniversityFiscalYear(Integer universityFiscalYear) {
122        this.universityFiscalYear = universityFiscalYear;
123    }
124
125    public boolean isActive() {
126        return active;
127    }
128
129    public void setActive(boolean active) {
130        this.active = active;
131    }
132
133    public Chart getChart() {
134        return chart;
135    }
136
137    public void setChart(Chart chart) {
138        this.chart = chart;
139    }
140
141    public Account getAccount() {
142        return account;
143    }
144
145    public void setAccount(Account account) {
146        this.account = account;
147    }
148
149    public ObjectCode getFinancialObject() {
150        return financialObject;
151    }
152
153    public void setFinancialObject(ObjectCode financialObject) {
154        this.financialObject = financialObject;
155    }
156
157    public String getIntialFundBalance() {
158        return intialFundBalance;
159    }
160
161    public void setIntialFundBalance(String intialFundBalance) {
162        this.intialFundBalance = intialFundBalance;
163    }
164
165    public String getCashBalance() {
166        return cashBalance;
167    }
168
169    public void setCashBalance(String cashBalance) {
170        this.cashBalance = cashBalance;
171    }
172
173    public String getFreeBalance() {
174        return freeBalance;
175    }
176
177    public void setFreeBalance(String freeBalance) {
178        this.freeBalance = freeBalance;
179    }
180
181    public String getIntialBudgetAllocation() {
182        return intialBudgetAllocation;
183    }
184
185    public void setIntialBudgetAllocation(String intialBudgetAllocation) {
186        this.intialBudgetAllocation = intialBudgetAllocation;
187    }
188
189    public String getCarryOverBalance() {
190        return carryOverBalance;
191    }
192
193    public void setCarryOverBalance(String carryOverBalance) {
194        this.carryOverBalance = carryOverBalance;
195    }
196
197    public String getTransfered() {
198        return transfered;
199    }
200
201    public void setTransfered(String transfered) {
202        this.transfered = transfered;
203    }
204
205    public String getNetAllocation() {
206        return netAllocation;
207    }
208
209    public void setNetAllocation(String netAllocation) {
210        this.netAllocation = netAllocation;
211    }
212
213    public String getEncumbrances() {
214        return encumbrances;
215    }
216
217    public void setEncumbrances(String encumbrances) {
218        this.encumbrances = encumbrances;
219    }
220
221    public String getSumPaidInvoice() {
222        return sumPaidInvoice;
223    }
224
225    public void setSumPaidInvoice(String sumPaidInvoice) {
226        this.sumPaidInvoice = sumPaidInvoice;
227    }
228
229    public String getSumUnpaidInvoice() {
230        return sumUnpaidInvoice;
231    }
232
233    public void setSumUnpaidInvoice(String sumUnpaidInvoice) {
234        this.sumUnpaidInvoice = sumUnpaidInvoice;
235    }
236
237    public String getExpendedPercentage() {
238        return expendedPercentage;
239    }
240
241    public void setExpendedPercentage(String expendedPercentage) {
242        this.expendedPercentage = expendedPercentage;
243    }
244
245    public String getExpenEncumPercentage() {
246        return expenEncumPercentage;
247    }
248
249    public void setExpenEncumPercentage(String expenEncumPercentage) {
250        this.expenEncumPercentage = expenEncumPercentage;
251    }
252
253    public List<OleFundLookup> getFinalResults() {
254        return finalResults;
255    }
256
257    public void setFinalResults(List<OleFundLookup> finalResults) {
258        this.finalResults = finalResults;
259    }
260
261
262}