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 */
016
017 package org.kuali.kfs.fp.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.sys.KFSPropertyConstants;
022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023 import org.kuali.rice.kns.util.KualiDecimal;
024
025 /**
026 * This class is used to represent a disbursement voucher pre-conference registrant.
027 */
028 public class DisbursementVoucherPreConferenceRegistrant extends PersistableBusinessObjectBase {
029
030 private String documentNumber;
031 private Integer financialDocumentLineNumber;
032 private String disbVchrPreConfDepartmentCd;
033 private String dvConferenceRegistrantName;
034 private String dvPreConferenceRequestNumber;
035 private KualiDecimal disbVchrExpenseAmount;
036
037 /**
038 * Default no-arg constructor.
039 */
040 public DisbursementVoucherPreConferenceRegistrant() {
041
042 }
043
044 /**
045 * Gets the documentNumber attribute.
046 *
047 * @return Returns the documentNumber
048 */
049 public String getDocumentNumber() {
050 return documentNumber;
051 }
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 /**
074 * Sets the financialDocumentLineNumber attribute.
075 *
076 * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
077 */
078 public void setFinancialDocumentLineNumber(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 /**
093 * Sets the disbVchrPreConfDepartmentCd attribute.
094 *
095 * @param disbVchrPreConfDepartmentCd The disbVchrPreConfDepartmentCd to set.
096 */
097 public void setDisbVchrPreConfDepartmentCd(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 /**
112 * Sets the dvConferenceRegistrantName attribute.
113 *
114 * @param dvConferenceRegistrantName The dvConferenceRegistrantName to set.
115 */
116 public void setDvConferenceRegistrantName(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 /**
131 * Sets the dvPreConferenceRequestNumber attribute.
132 *
133 * @param dvPreConferenceRequestNumber The dvPreConferenceRequestNumber to set.
134 */
135 public void setDvPreConferenceRequestNumber(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 /**
150 * Sets the disbVchrExpenseAmount attribute.
151 *
152 * @param disbVchrExpenseAmount The disbVchrExpenseAmount to set.
153 */
154 public void setDisbVchrExpenseAmount(KualiDecimal disbVchrExpenseAmount) {
155 this.disbVchrExpenseAmount = disbVchrExpenseAmount;
156 }
157
158 /**
159 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
160 */
161 protected LinkedHashMap toStringMapper() {
162 LinkedHashMap m = new LinkedHashMap();
163 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
164 if (financialDocumentLineNumber != null) {
165 m.put("financialDocumentLineNumber", this.financialDocumentLineNumber.toString());
166 }
167 return m;
168 }
169 }