001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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: */
016:
017: package org.kuali.module.chart.bo;
018:
019: import java.math.BigDecimal;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.kfs.bo.Options;
024: import org.kuali.kfs.context.SpringContext;
025: import org.kuali.module.chart.bo.codes.BalanceTyp;
026: import org.kuali.module.financial.service.UniversityDateService;
027:
028: /**
029: *
030: */
031: public class IcrAutomatedEntry extends PersistableBusinessObjectBase {
032:
033: /**
034: * Default no-arg constructor.
035: */
036: public IcrAutomatedEntry() {
037: // initialize the object fiscal year to the current fiscal year
038: universityFiscalYear = SpringContext.getBean(
039: UniversityDateService.class).getCurrentFiscalYear();
040: }
041:
042: private Integer universityFiscalYear;
043: private String financialIcrSeriesIdentifier;
044: private String balanceTypeCode;
045: private Integer awardIndrCostRcvyEntryNbr;
046: private String transactionDebitIndicator;
047: private BigDecimal awardIndrCostRcvyRatePct;
048: private String chartOfAccountsCode;
049: private String accountNumber;
050: private String subAccountNumber;
051: private String financialObjectCode;
052: private String financialSubObjectCode;
053: private String offsetBalanceSheetObjectCodeNumber;
054:
055: private Options universityFiscal;
056: private BalanceTyp financialBalanceTyp;
057:
058: /*
059: * Don't use reference objects because Chart, Account, Sub-Account, etc. contain special characters. RO 2/8/06 private Chart
060: * chartOfAccounts; private Account account; private SubAccount subAccount; private ObjectCode financialObject; private SubObjCd
061: * financialSubObject; private ObjectCode offsetBalanceSheetObjectCode;
062: */
063:
064: /*
065: * public Account getAccount() { return account; } public void setAccount(Account account) { this.account = account; }
066: */
067: public String getAccountNumber() {
068: return accountNumber;
069: }
070:
071: public void setAccountNumber(String accountNumber) {
072: this .accountNumber = accountNumber;
073: }
074:
075: public Integer getAwardIndrCostRcvyEntryNbr() {
076: return awardIndrCostRcvyEntryNbr;
077: }
078:
079: public void setAwardIndrCostRcvyEntryNbr(
080: Integer awardIndrCostRcvyEntryNbr) {
081: this .awardIndrCostRcvyEntryNbr = awardIndrCostRcvyEntryNbr;
082: }
083:
084: public BigDecimal getAwardIndrCostRcvyRatePct() {
085: return awardIndrCostRcvyRatePct;
086: }
087:
088: public void setAwardIndrCostRcvyRatePct(
089: BigDecimal awardIndrCostRcvyRatePct) {
090: this .awardIndrCostRcvyRatePct = awardIndrCostRcvyRatePct;
091: }
092:
093: public String getBalanceTypeCode() {
094: return balanceTypeCode;
095: }
096:
097: public void setBalanceTypeCode(String balanceTypeCode) {
098: this .balanceTypeCode = balanceTypeCode;
099: }
100:
101: /*
102: * public Chart getChartOfAccounts() { return chartOfAccounts; } public void setChartOfAccounts(Chart chartOfAccounts) {
103: * this.chartOfAccounts = chartOfAccounts; }
104: */
105: public String getChartOfAccountsCode() {
106: return chartOfAccountsCode;
107: }
108:
109: public void setChartOfAccountsCode(String chartOfAccountsCode) {
110: this .chartOfAccountsCode = chartOfAccountsCode;
111: }
112:
113: public BalanceTyp getFinancialBalanceTyp() {
114: return financialBalanceTyp;
115: }
116:
117: public void setFinancialBalanceTyp(BalanceTyp financialBalanceTyp) {
118: this .financialBalanceTyp = financialBalanceTyp;
119: }
120:
121: public String getFinancialIcrSeriesIdentifier() {
122: return financialIcrSeriesIdentifier;
123: }
124:
125: public void setFinancialIcrSeriesIdentifier(
126: String financialIcrSeriesIdentifier) {
127: this .financialIcrSeriesIdentifier = financialIcrSeriesIdentifier;
128: }
129:
130: /*
131: * public ObjectCode getFinancialObject() { return financialObject; } public void setFinancialObject(ObjectCode financialObject) {
132: * this.financialObject = financialObject; }
133: */
134: public String getFinancialObjectCode() {
135: return financialObjectCode;
136: }
137:
138: public void setFinancialObjectCode(String financialObjectCode) {
139: this .financialObjectCode = financialObjectCode;
140: }
141:
142: /*
143: * public SubObjCd getFinancialSubObject() { return financialSubObject; } public void setFinancialSubObject(SubObjCd
144: * financialSubObject) { this.financialSubObject = financialSubObject; }
145: */
146:
147: public String getFinancialSubObjectCode() {
148: return financialSubObjectCode;
149: }
150:
151: public void setFinancialSubObjectCode(String financialSubObjectCode) {
152: this .financialSubObjectCode = financialSubObjectCode;
153: }
154:
155: /*
156: * public ObjectCode getOffsetBalanceSheetObjectCode() { return offsetBalanceSheetObjectCode; } public void
157: * setOffsetBalanceSheetObjectCode(ObjectCode offsetBalanceSheetObjectCode) { this.offsetBalanceSheetObjectCode =
158: * offsetBalanceSheetObjectCode; }
159: */
160: public String getOffsetBalanceSheetObjectCodeNumber() {
161: return offsetBalanceSheetObjectCodeNumber;
162: }
163:
164: public void setOffsetBalanceSheetObjectCodeNumber(
165: String offsetBalanceSheetObjectCodeNumber) {
166: this .offsetBalanceSheetObjectCodeNumber = offsetBalanceSheetObjectCodeNumber;
167: }
168:
169: /*
170: * public SubAccount getSubAccount() { return subAccount; } public void setSubAccount(SubAccount subAccount) { this.subAccount =
171: * subAccount; }
172: */
173:
174: public String getSubAccountNumber() {
175: return subAccountNumber;
176: }
177:
178: public void setSubAccountNumber(String subAccountNumber) {
179: this .subAccountNumber = subAccountNumber;
180: }
181:
182: public String getTransactionDebitIndicator() {
183: return transactionDebitIndicator;
184: }
185:
186: public void setTransactionDebitIndicator(
187: String transactionDebitIndicator) {
188: this .transactionDebitIndicator = transactionDebitIndicator;
189: }
190:
191: public Options getUniversityFiscal() {
192: return universityFiscal;
193: }
194:
195: public void setUniversityFiscal(Options universityFiscal) {
196: this .universityFiscal = universityFiscal;
197: }
198:
199: public Integer getUniversityFiscalYear() {
200: return universityFiscalYear;
201: }
202:
203: public void setUniversityFiscalYear(Integer universityFiscalYear) {
204: this .universityFiscalYear = universityFiscalYear;
205: }
206:
207: /**
208: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
209: */
210: protected LinkedHashMap toStringMapper() {
211:
212: LinkedHashMap m = new LinkedHashMap();
213: m.put("universityFiscal", this .universityFiscalYear);
214: m.put("financialIcrSeriesIdentifier",
215: this .financialIcrSeriesIdentifier);
216: m.put("financialBalanceTypeCode", this .balanceTypeCode);
217: m.put("awardIndrCostRcvyEntryNbr",
218: this.awardIndrCostRcvyEntryNbr);
219:
220: return m;
221: }
222:
223: }
|