001: /*
002: * Copyright 2006-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.financial.bo;
018:
019: import java.sql.Date;
020: import java.util.ArrayList;
021: import java.util.LinkedHashMap;
022: import java.util.List;
023:
024: import org.kuali.core.bo.PersistableBusinessObjectBase;
025: import org.kuali.kfs.KFSPropertyConstants;
026: import org.kuali.module.financial.document.CashReceiptDocument;
027:
028: /**
029: * Header for cash receipt that is used to uniquely identify a cash receipt
030: */
031: public class CashReceiptHeader extends PersistableBusinessObjectBase {
032:
033: private String documentNumber;
034: private Integer nextCheckSequenceId;
035: private Integer nextCreditCardCashReceiptLineNumber;
036: private Integer nextCreditCardCashieringDocumentLineNumber;
037: private Integer nextRevolvingFundLineNumber;
038: private Integer nextAdvanceDepositLineNumber;
039: private String workgroupName;
040: private Date depositDate;
041:
042: private CashReceiptDocument cashReceiptDocument;
043: private List depositCashReceiptControl;
044:
045: /**
046: * Default constructor.
047: */
048: public CashReceiptHeader() {
049: depositCashReceiptControl = new ArrayList();
050:
051: }
052:
053: /**
054: * Gets the documentNumber attribute.
055: *
056: * @return Returns the documentNumber
057: */
058: public String getDocumentNumber() {
059: return documentNumber;
060: }
061:
062: /**
063: * Sets the documentNumber attribute.
064: *
065: * @param documentNumber The documentNumber to set.
066: */
067: public void setDocumentNumber(String documentNumber) {
068: this .documentNumber = documentNumber;
069: }
070:
071: /**
072: * Gets the nextCheckSequenceId attribute.
073: *
074: * @return Returns the nextCheckSequenceId
075: */
076: public Integer getNextCheckSequenceId() {
077: return nextCheckSequenceId;
078: }
079:
080: /**
081: * Sets the nextCheckSequenceId attribute.
082: *
083: * @param nextCheckSequenceId The nextCheckSequenceId to set.
084: */
085: public void setNextCheckSequenceId(Integer nextCheckSequenceId) {
086: this .nextCheckSequenceId = nextCheckSequenceId;
087: }
088:
089: /**
090: * Gets the nextCreditCardCashReceiptLineNumber attribute.
091: *
092: * @return Returns the nextCreditCardCashReceiptLineNumber
093: */
094: public Integer getNextCreditCardCashReceiptLineNumber() {
095: return nextCreditCardCashReceiptLineNumber;
096: }
097:
098: /**
099: * Sets the nextCreditCardCashReceiptLineNumber attribute.
100: *
101: * @param nextCreditCardCashReceiptLineNumber The nextCreditCardCashReceiptLineNumber to set.
102: */
103: public void setNextCreditCardCashReceiptLineNumber(
104: Integer nextCreditCardCashReceiptLineNumber) {
105: this .nextCreditCardCashReceiptLineNumber = nextCreditCardCashReceiptLineNumber;
106: }
107:
108: /**
109: * Gets the nextCreditCardCashieringDocumentLineNumber attribute.
110: *
111: * @return Returns the nextCreditCardCashieringDocumentLineNumber
112: */
113: public Integer getNextCreditCardCashieringDocumentLineNumber() {
114: return nextCreditCardCashieringDocumentLineNumber;
115: }
116:
117: /**
118: * Sets the nextCreditCardCashieringDocumentLineNumber attribute.
119: *
120: * @param nextCreditCardCashieringDocumentLineNumber The nextCreditCardCashieringDocumentLineNumber to set.
121: */
122: public void setNextCreditCardCashieringDocumentLineNumber(
123: Integer nextCreditCardCashieringDocumentLineNumber) {
124: this .nextCreditCardCashieringDocumentLineNumber = nextCreditCardCashieringDocumentLineNumber;
125: }
126:
127: /**
128: * Gets the nextRevolvingFundLineNumber attribute.
129: *
130: * @return Returns the nextRevolvingFundLineNumber
131: */
132: public Integer getNextRevolvingFundLineNumber() {
133: return nextRevolvingFundLineNumber;
134: }
135:
136: /**
137: * Sets the nextRevolvingFundLineNumber attribute.
138: *
139: * @param nextRevolvingFundLineNumber The nextRevolvingFundLineNumber to set.
140: */
141: public void setNextRevolvingFundLineNumber(
142: Integer nextRevolvingFundLineNumber) {
143: this .nextRevolvingFundLineNumber = nextRevolvingFundLineNumber;
144: }
145:
146: /**
147: * Gets the nextAdvanceDepositLineNumber attribute.
148: *
149: * @return Returns the nextAdvanceDepositLineNumber
150: */
151: public Integer getNextAdvanceDepositLineNumber() {
152: return nextAdvanceDepositLineNumber;
153: }
154:
155: /**
156: * Sets the nextAdvanceDepositLineNumber attribute.
157: *
158: * @param nextAdvanceDepositLineNumber The nextAdvanceDepositLineNumber to set.
159: */
160: public void setNextAdvanceDepositLineNumber(
161: Integer nextAdvanceDepositLineNumber) {
162: this .nextAdvanceDepositLineNumber = nextAdvanceDepositLineNumber;
163: }
164:
165: /**
166: * Gets the workgroupName attribute.
167: *
168: * @return Returns the workgroupName
169: */
170: public String getWorkgroupName() {
171: return workgroupName;
172: }
173:
174: /**
175: * Sets the workgroupName attribute.
176: *
177: * @param workgroupName The workgroupName to set.
178: */
179: public void setWorkgroupName(String workgroupName) {
180: this .workgroupName = workgroupName;
181: }
182:
183: /**
184: * Gets the depositDate attribute.
185: *
186: * @return Returns the depositDate
187: */
188: public Date getDepositDate() {
189: return depositDate;
190: }
191:
192: /**
193: * Sets the depositDate attribute.
194: *
195: * @param depositDate The depositDate to set.
196: */
197: public void setDepositDate(Date depositDate) {
198: this .depositDate = depositDate;
199: }
200:
201: /**
202: * Gets the cashReceiptDocument attribute.
203: *
204: * @return Returns the cashReceiptDocument
205: */
206: public CashReceiptDocument getCashReceiptDocument() {
207: return cashReceiptDocument;
208: }
209:
210: /**
211: * Sets the cashReceiptDocument attribute.
212: *
213: * @param cashReceiptDocument The cashReceiptDocument to set.
214: * @deprecated
215: */
216: public void setCashReceiptDocument(
217: CashReceiptDocument cashReceiptDocument) {
218: this .cashReceiptDocument = cashReceiptDocument;
219: }
220:
221: /**
222: * Gets the depositCashReceiptControl list.
223: *
224: * @return Returns the depositCashReceiptControl list
225: */
226: public List getDepositCashReceiptControl() {
227: return depositCashReceiptControl;
228: }
229:
230: /**
231: * Sets the depositCashReceiptControl list.
232: *
233: * @param depositCashReceiptControl The depositCashReceiptControl list to set.
234: */
235: public void setDepositCashReceiptControl(
236: List depositCashReceiptControl) {
237: this .depositCashReceiptControl = depositCashReceiptControl;
238: }
239:
240: /**
241: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
242: */
243: protected LinkedHashMap toStringMapper() {
244: LinkedHashMap m = new LinkedHashMap();
245: m
246: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
247: this.documentNumber);
248: return m;
249: }
250: }
|