View Javadoc
1   /*
2    * Copyright 2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.module.purap.businessobject;
17  
18  import org.kuali.ole.coa.businessobject.*;
19  import org.kuali.ole.vnd.businessobject.CommodityCode;
20  import org.kuali.ole.vnd.businessobject.VendorDetail;
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.core.api.util.type.KualiDecimal;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  import java.util.LinkedHashMap;
26  
27  public class ReceivingThreshold extends PersistableBusinessObjectBase implements MutableInactivatable {
28  
29      private Integer thresholdIdentifier;
30      private String chartOfAccountsCode;
31      private String accountTypeCode;
32      private String subFundGroupCode;
33      private String financialObjectCode;
34      private String organizationCode;
35      private KualiDecimal thresholdAmount;
36      private String purchasingCommodityCode;
37  
38      private Integer vendorHeaderGeneratedIdentifier;
39      private Integer vendorDetailAssignedIdentifier;
40  
41      private boolean active;
42  
43      private Chart chart;
44      private AccountType accountType;
45      private SubFundGroup subFundGroup;
46      private ObjectCode financialObject;
47      private Organization organization;
48      private VendorDetail vendorDetail;
49      private CommodityCode commodityCode;
50  
51      public ReceivingThreshold() {
52      }
53  
54  
55      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
56  
57          LinkedHashMap returnMap = new LinkedHashMap();
58  
59          returnMap.put("thresholdIdentifier", thresholdIdentifier);
60          returnMap.put("chartOfAccountsCode", chartOfAccountsCode);
61          returnMap.put("accountTypeCode", accountTypeCode);
62          returnMap.put("subFundGroupCode", subFundGroupCode);
63          returnMap.put("financialObjectCode", financialObjectCode);
64          returnMap.put("organizationCode", organizationCode);
65          returnMap.put("vendorHeaderGeneratedIdentifier", vendorHeaderGeneratedIdentifier);
66          returnMap.put("thresholdAmount", thresholdAmount);
67          returnMap.put("active", active);
68  
69          return returnMap;
70      }
71  
72      public AccountType getAccountType() {
73          return accountType;
74      }
75  
76      public void setAccountType(AccountType accountType) {
77          this.accountType = accountType;
78      }
79  
80      public String getAccountTypeCode() {
81          return accountTypeCode;
82      }
83  
84      public void setAccountTypeCode(String accountTypeCode) {
85          this.accountTypeCode = accountTypeCode;
86      }
87  
88      public boolean isActive() {
89          return active;
90      }
91  
92      public void setActive(boolean active) {
93          this.active = active;
94      }
95  
96      public Chart getChart() {
97          return chart;
98      }
99  
100     public void setChart(Chart chart) {
101         this.chart = chart;
102     }
103 
104     public String getChartOfAccountsCode() {
105         return chartOfAccountsCode;
106     }
107 
108     public void setChartOfAccountsCode(String chartOfAccountsCode) {
109         this.chartOfAccountsCode = chartOfAccountsCode;
110     }
111 
112     public ObjectCode getFinancialObject() {
113         return financialObject;
114     }
115 
116     public void setFinancialObject(ObjectCode financialObject) {
117         this.financialObject = financialObject;
118     }
119 
120     public String getFinancialObjectCode() {
121         return financialObjectCode;
122     }
123 
124     public void setFinancialObjectCode(String financialObjectCode) {
125         this.financialObjectCode = financialObjectCode;
126     }
127 
128     public Organization getOrganization() {
129         return organization;
130     }
131 
132     public void setOrganization(Organization organization) {
133         this.organization = organization;
134     }
135 
136     public String getOrganizationCode() {
137         return organizationCode;
138     }
139 
140     public void setOrganizationCode(String organizationCode) {
141         this.organizationCode = organizationCode;
142     }
143 
144     public SubFundGroup getSubFundGroup() {
145         return subFundGroup;
146     }
147 
148     public void setSubFundGroup(SubFundGroup subFundGroup) {
149         this.subFundGroup = subFundGroup;
150     }
151 
152     public String getSubFundGroupCode() {
153         return subFundGroupCode;
154     }
155 
156     public void setSubFundGroupCode(String subFundGroupCode) {
157         this.subFundGroupCode = subFundGroupCode;
158     }
159 
160     public Integer getThresholdIdentifier() {
161         return thresholdIdentifier;
162     }
163 
164     public void setThresholdIdentifier(Integer thresholdIdentifier) {
165         this.thresholdIdentifier = thresholdIdentifier;
166     }
167 
168     public Integer getVendorHeaderGeneratedIdentifier() {
169         return vendorHeaderGeneratedIdentifier;
170     }
171 
172     public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) {
173         this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
174     }
175 
176     public KualiDecimal getThresholdAmount() {
177         return thresholdAmount;
178     }
179 
180     public void setThresholdAmount(KualiDecimal thresholdAmount) {
181         this.thresholdAmount = thresholdAmount;
182     }
183 
184     public VendorDetail getVendorDetail() {
185         return vendorDetail;
186     }
187 
188     public void setVendorDetail(VendorDetail vendorDetail) {
189         this.vendorDetail = vendorDetail;
190     }
191 
192     public String getVendorNumber() {
193         VendorDetail tempVendorDetail = new VendorDetail();
194         tempVendorDetail.setVendorHeaderGeneratedIdentifier(vendorHeaderGeneratedIdentifier);
195         tempVendorDetail.setVendorDetailAssignedIdentifier(vendorDetailAssignedIdentifier);
196         return tempVendorDetail.getVendorNumber();
197     }
198 
199     public void setVendorNumber(String vendorNumber) {
200         VendorDetail tempVendorDetail = new VendorDetail();
201         tempVendorDetail.setVendorNumber(vendorNumber);
202         setVendorHeaderGeneratedIdentifier(tempVendorDetail.getVendorHeaderGeneratedIdentifier());
203         setVendorDetailAssignedIdentifier(tempVendorDetail.getVendorDetailAssignedIdentifier());
204     }
205 
206     public Integer getVendorDetailAssignedIdentifier() {
207         return vendorDetailAssignedIdentifier;
208     }
209 
210     public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) {
211         this.vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
212     }
213 
214     public String getPurchasingCommodityCode() {
215         return purchasingCommodityCode;
216     }
217 
218     public void setPurchasingCommodityCode(String purchasingCommodityCode) {
219         this.purchasingCommodityCode = purchasingCommodityCode;
220     }
221 
222     public CommodityCode getCommodityCode() {
223         return commodityCode;
224     }
225 
226     public void setCommodityCode(CommodityCode commodityCode) {
227         this.commodityCode = commodityCode;
228     }
229 
230 }