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: package org.kuali.module.kra.routingform.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.core.util.KualiInteger;
022: import org.kuali.module.chart.bo.Chart;
023: import org.kuali.module.chart.bo.Org;
024: import org.kuali.module.kra.routingform.document.RoutingFormDocument;
025:
026: public class RoutingFormOrganizationCreditPercent extends
027: PersistableBusinessObjectBase {
028:
029: private String documentNumber;
030: private String chartOfAccountsCode;
031: private String organizationCode;
032: private KualiInteger organizationCreditPercent;
033: private KualiInteger organizationFinancialAidPercent;
034: private String organizationCreditRoleText;
035:
036: private Chart chartOfAccounts;
037: private Org organization;
038: private RoutingFormDocument routingFormDocument;
039:
040: /**
041: * Default constructor.
042: */
043: public RoutingFormOrganizationCreditPercent() {
044:
045: }
046:
047: /**
048: * Gets the documentNumber attribute.
049: *
050: * @return Returns the documentNumber
051: */
052: public String getDocumentNumber() {
053: return documentNumber;
054: }
055:
056: /**
057: * Sets the documentNumber attribute.
058: *
059: * @param documentNumber The documentNumber to set.
060: */
061: public void setDocumentNumber(String documentNumber) {
062: this .documentNumber = documentNumber;
063: }
064:
065: /**
066: * Gets the chartOfAccountsCode attribute.
067: *
068: * @return Returns the chartOfAccountsCode
069: */
070: public String getChartOfAccountsCode() {
071: return chartOfAccountsCode;
072: }
073:
074: /**
075: * Sets the chartOfAccountsCode attribute.
076: *
077: * @param chartOfAccountsCode The chartOfAccountsCode to set.
078: */
079: public void setChartOfAccountsCode(String chartOfAccountsCode) {
080: this .chartOfAccountsCode = chartOfAccountsCode;
081: }
082:
083: /**
084: * Gets the organizationCode attribute.
085: *
086: * @return Returns the organizationCode
087: */
088: public String getOrganizationCode() {
089: return organizationCode;
090: }
091:
092: /**
093: * Sets the organizationCode attribute.
094: *
095: * @param organizationCode The organizationCode to set.
096: */
097: public void setOrganizationCode(String organizationCode) {
098: this .organizationCode = organizationCode;
099: }
100:
101: /**
102: * Gets the organizationCreditPercent attribute.
103: *
104: * @return Returns the organizationCreditPercent
105: */
106: public KualiInteger getOrganizationCreditPercent() {
107: return organizationCreditPercent;
108: }
109:
110: /**
111: * Sets the organizationCreditPercent attribute.
112: *
113: * @param organizationCreditPercent The organizationCreditPercent to set.
114: */
115: public void setOrganizationCreditPercent(
116: KualiInteger organizationCreditPercent) {
117: this .organizationCreditPercent = organizationCreditPercent;
118: }
119:
120: /**
121: * Gets the organizationFinancialAidPercent attribute.
122: *
123: * @return Returns the organizationFinancialAidPercent
124: */
125: public KualiInteger getOrganizationFinancialAidPercent() {
126: return organizationFinancialAidPercent;
127: }
128:
129: /**
130: * Sets the organizationFinancialAidPercent attribute.
131: *
132: * @param organizationFinancialAidPercent The organizationFinancialAidPercent to set.
133: */
134: public void setOrganizationFinancialAidPercent(
135: KualiInteger organizationFinancialAidPercent) {
136: this .organizationFinancialAidPercent = organizationFinancialAidPercent;
137: }
138:
139: /**
140: * Gets the organizationCreditRoleText attribute.
141: *
142: * @return Returns the organizationCreditRoleText
143: */
144: public String getOrganizationCreditRoleText() {
145: return organizationCreditRoleText;
146: }
147:
148: /**
149: * Sets the organizationCreditRoleText attribute.
150: *
151: * @param organizationCreditRoleText The organizationCreditRoleText to set.
152: */
153: public void setOrganizationCreditRoleText(
154: String organizationCreditRoleText) {
155: this .organizationCreditRoleText = organizationCreditRoleText;
156: }
157:
158: /**
159: * Gets the organization attribute.
160: *
161: * @return Returns the organization
162: */
163: public Org getOrganization() {
164: return organization;
165: }
166:
167: /**
168: * Sets the organization attribute.
169: *
170: * @param organization The organization to set.
171: * @deprecated
172: */
173: public void setOrganization(Org organization) {
174: this .organization = organization;
175: }
176:
177: /**
178: * Gets the routingFormDocument attribute.
179: *
180: * @return Returns the routingFormDocument.
181: */
182: public RoutingFormDocument getRoutingFormDocument() {
183: return routingFormDocument;
184: }
185:
186: /**
187: * Sets the routingFormDocument attribute value.
188: *
189: * @param routingFormDocument The routingFormDocument to set.
190: * @deprecated
191: */
192: public void setRoutingFormDocument(
193: RoutingFormDocument routingFormDocument) {
194: this .routingFormDocument = routingFormDocument;
195: }
196:
197: /**
198: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
199: */
200: protected LinkedHashMap toStringMapper() {
201: LinkedHashMap m = new LinkedHashMap();
202: m.put("documentNumber", this .documentNumber);
203: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
204: m.put("organizationCode", this.organizationCode);
205: return m;
206: }
207:
208: }
|