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.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023: import org.kuali.kfs.KFSPropertyConstants;
024:
025: /**
026: * This class is used to represent a disbursement voucher pre-conference registrant.
027: */
028: public class DisbursementVoucherPreConferenceRegistrant extends
029: PersistableBusinessObjectBase {
030:
031: private String documentNumber;
032: private Integer financialDocumentLineNumber;
033: private String disbVchrPreConfDepartmentCd;
034: private String dvConferenceRegistrantName;
035: private String dvPreConferenceRequestNumber;
036: private KualiDecimal disbVchrExpenseAmount;
037:
038: /**
039: * Default no-arg constructor.
040: */
041: public DisbursementVoucherPreConferenceRegistrant() {
042:
043: }
044:
045: /**
046: * Gets the documentNumber attribute.
047: *
048: * @return Returns the documentNumber
049: */
050: public String getDocumentNumber() {
051: return documentNumber;
052: }
053:
054: /**
055: * Sets the documentNumber attribute.
056: *
057: * @param documentNumber The documentNumber to set.
058: */
059: public void setDocumentNumber(String documentNumber) {
060: this .documentNumber = documentNumber;
061: }
062:
063: /**
064: * Gets the financialDocumentLineNumber attribute.
065: *
066: * @return Returns the financialDocumentLineNumber
067: */
068: public Integer getFinancialDocumentLineNumber() {
069: return financialDocumentLineNumber;
070: }
071:
072: /**
073: * Sets the financialDocumentLineNumber attribute.
074: *
075: * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
076: */
077: public void setFinancialDocumentLineNumber(
078: Integer financialDocumentLineNumber) {
079: this .financialDocumentLineNumber = financialDocumentLineNumber;
080: }
081:
082: /**
083: * Gets the disbVchrPreConfDepartmentCd attribute.
084: *
085: * @return Returns the disbVchrPreConfDepartmentCd
086: */
087: public String getDisbVchrPreConfDepartmentCd() {
088: return disbVchrPreConfDepartmentCd;
089: }
090:
091: /**
092: * Sets the disbVchrPreConfDepartmentCd attribute.
093: *
094: * @param disbVchrPreConfDepartmentCd The disbVchrPreConfDepartmentCd to set.
095: */
096: public void setDisbVchrPreConfDepartmentCd(
097: String disbVchrPreConfDepartmentCd) {
098: this .disbVchrPreConfDepartmentCd = disbVchrPreConfDepartmentCd;
099: }
100:
101: /**
102: * Gets the dvConferenceRegistrantName attribute.
103: *
104: * @return Returns the dvConferenceRegistrantName
105: */
106: public String getDvConferenceRegistrantName() {
107: return dvConferenceRegistrantName;
108: }
109:
110: /**
111: * Sets the dvConferenceRegistrantName attribute.
112: *
113: * @param dvConferenceRegistrantName The dvConferenceRegistrantName to set.
114: */
115: public void setDvConferenceRegistrantName(
116: String dvConferenceRegistrantName) {
117: this .dvConferenceRegistrantName = dvConferenceRegistrantName;
118: }
119:
120: /**
121: * Gets the dvPreConferenceRequestNumber attribute.
122: *
123: * @return Returns the dvPreConferenceRequestNumber
124: */
125: public String getDvPreConferenceRequestNumber() {
126: return dvPreConferenceRequestNumber;
127: }
128:
129: /**
130: * Sets the dvPreConferenceRequestNumber attribute.
131: *
132: * @param dvPreConferenceRequestNumber The dvPreConferenceRequestNumber to set.
133: */
134: public void setDvPreConferenceRequestNumber(
135: String dvPreConferenceRequestNumber) {
136: this .dvPreConferenceRequestNumber = dvPreConferenceRequestNumber;
137: }
138:
139: /**
140: * Gets the disbVchrExpenseAmount attribute.
141: *
142: * @return Returns the disbVchrExpenseAmount
143: */
144: public KualiDecimal getDisbVchrExpenseAmount() {
145: return disbVchrExpenseAmount;
146: }
147:
148: /**
149: * Sets the disbVchrExpenseAmount attribute.
150: *
151: * @param disbVchrExpenseAmount The disbVchrExpenseAmount to set.
152: */
153: public void setDisbVchrExpenseAmount(
154: KualiDecimal disbVchrExpenseAmount) {
155: this .disbVchrExpenseAmount = disbVchrExpenseAmount;
156: }
157:
158: /**
159: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
160: */
161: protected LinkedHashMap toStringMapper() {
162: LinkedHashMap m = new LinkedHashMap();
163: m
164: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
165: this .documentNumber);
166: if (financialDocumentLineNumber != null) {
167: m.put("financialDocumentLineNumber",
168: this.financialDocumentLineNumber.toString());
169: }
170: return m;
171: }
172: }
|