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.purap.bo;
018:
019: import java.sql.Date;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.core.util.ObjectUtils;
024: import org.kuali.kfs.bo.Country;
025: import org.kuali.module.purap.document.PurchaseOrderDocument;
026:
027: /**
028: * Purchase Order Vendor Quote Business Object.
029: *
030: * THIS CODE IS NOT USED IN RELEASE 2 BUT THE CODE WAS LEFT IN TO
031: * FACILITATE TURNING IT BACK ON EARLY IN THE DEVELOPMENT CYCLE OF RELEASE 3.
032: *
033: */
034: public class PurchaseOrderVendorQuote extends
035: PersistableBusinessObjectBase {
036:
037: private String documentNumber;
038: private Integer purchaseOrderVendorQuoteIdentifier;
039: private Integer vendorHeaderGeneratedIdentifier;
040: private Integer vendorDetailAssignedIdentifier;
041: private String vendorName;
042: private String vendorLine1Address;
043: private String vendorLine2Address;
044: private String vendorCityName;
045: private String vendorStateCode;
046: private String vendorPostalCode;
047: private String vendorPhoneNumber;
048: private String vendorFaxNumber;
049: private String vendorEmailAddress;
050: private String vendorAttentionName;
051: private String purchaseOrderQuoteTransmitTypeCode;
052: private Date purchaseOrderQuoteTransmitDate;
053: private Date purchaseOrderQuotePriceExpirationDate;
054: private String purchaseOrderQuoteStatusCode;
055: private Date purchaseOrderQuoteAwardDate;
056: private String purchaseOrderQuoteRankNumber;
057: private String vendorCountryCode;
058: private boolean isTransmitPrintDisplayed = false;
059:
060: private PurchaseOrderDocument purchaseOrder;
061: private PurchaseOrderQuoteStatus purchaseOrderQuoteStatus;
062: private Country vendorCountry;
063:
064: /**
065: * Default constructor.
066: */
067: public PurchaseOrderVendorQuote() {
068:
069: }
070:
071: public String getDocumentNumber() {
072: return documentNumber;
073: }
074:
075: public void setDocumentNumber(String documentNumber) {
076: this .documentNumber = documentNumber;
077: }
078:
079: public Integer getPurchaseOrderVendorQuoteIdentifier() {
080: return purchaseOrderVendorQuoteIdentifier;
081: }
082:
083: public Country getVendorCountry() {
084: return vendorCountry;
085: }
086:
087: public void setVendorCountry(Country vendorCountry) {
088: this .vendorCountry = vendorCountry;
089: }
090:
091: public void setPurchaseOrderVendorQuoteIdentifier(
092: Integer purchaseOrderVendorQuoteIdentifier) {
093: this .purchaseOrderVendorQuoteIdentifier = purchaseOrderVendorQuoteIdentifier;
094: }
095:
096: public Integer getVendorHeaderGeneratedIdentifier() {
097: return vendorHeaderGeneratedIdentifier;
098: }
099:
100: public void setVendorHeaderGeneratedIdentifier(
101: Integer vendorHeaderGeneratedIdentifier) {
102: this .vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
103: }
104:
105: public Integer getVendorDetailAssignedIdentifier() {
106: return vendorDetailAssignedIdentifier;
107: }
108:
109: public void setVendorDetailAssignedIdentifier(
110: Integer vendorDetailAssignedIdentifier) {
111: this .vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
112: }
113:
114: public String getVendorNumber() {
115: String vendorNumber = "";
116: if (ObjectUtils.isNotNull(this .vendorHeaderGeneratedIdentifier)) {
117: vendorNumber = this .vendorHeaderGeneratedIdentifier
118: .toString();
119: }
120: if (ObjectUtils.isNotNull(this .vendorDetailAssignedIdentifier)) {
121: vendorNumber += "-"
122: + this .vendorDetailAssignedIdentifier.toString();
123: }
124: return vendorNumber;
125: }
126:
127: public String getVendorName() {
128: return vendorName;
129: }
130:
131: public void setVendorName(String vendorName) {
132: this .vendorName = vendorName;
133: }
134:
135: public String getVendorLine1Address() {
136: return vendorLine1Address;
137: }
138:
139: public void setVendorLine1Address(String vendorLine1Address) {
140: this .vendorLine1Address = vendorLine1Address;
141: }
142:
143: public String getVendorLine2Address() {
144: return vendorLine2Address;
145: }
146:
147: public void setVendorLine2Address(String vendorLine2Address) {
148: this .vendorLine2Address = vendorLine2Address;
149: }
150:
151: public String getVendorCityName() {
152: return vendorCityName;
153: }
154:
155: public void setVendorCityName(String vendorCityName) {
156: this .vendorCityName = vendorCityName;
157: }
158:
159: public String getVendorStateCode() {
160: return vendorStateCode;
161: }
162:
163: public void setVendorStateCode(String vendorStateCode) {
164: this .vendorStateCode = vendorStateCode;
165: }
166:
167: public String getVendorPostalCode() {
168: return vendorPostalCode;
169: }
170:
171: public void setVendorPostalCode(String vendorPostalCode) {
172: this .vendorPostalCode = vendorPostalCode;
173: }
174:
175: public String getVendorPhoneNumber() {
176: return vendorPhoneNumber;
177: }
178:
179: public void setVendorPhoneNumber(String vendorPhoneNumber) {
180: this .vendorPhoneNumber = vendorPhoneNumber;
181: }
182:
183: public String getVendorFaxNumber() {
184: return vendorFaxNumber;
185: }
186:
187: public void setVendorFaxNumber(String vendorFaxNumber) {
188: this .vendorFaxNumber = vendorFaxNumber;
189: }
190:
191: public String getVendorEmailAddress() {
192: return vendorEmailAddress;
193: }
194:
195: public void setVendorEmailAddress(String vendorEmailAddress) {
196: this .vendorEmailAddress = vendorEmailAddress;
197: }
198:
199: public String getVendorAttentionName() {
200: return vendorAttentionName;
201: }
202:
203: public void setVendorAttentionName(String vendorAttentionName) {
204: this .vendorAttentionName = vendorAttentionName;
205: }
206:
207: public String getPurchaseOrderQuoteTransmitTypeCode() {
208: return purchaseOrderQuoteTransmitTypeCode;
209: }
210:
211: public void setPurchaseOrderQuoteTransmitTypeCode(
212: String purchaseOrderQuoteTransmitTypeCode) {
213: this .purchaseOrderQuoteTransmitTypeCode = purchaseOrderQuoteTransmitTypeCode;
214: }
215:
216: public Date getPurchaseOrderQuoteTransmitDate() {
217: return purchaseOrderQuoteTransmitDate;
218: }
219:
220: public void setPurchaseOrderQuoteTransmitDate(
221: Date purchaseOrderQuoteTransmitDate) {
222: this .purchaseOrderQuoteTransmitDate = purchaseOrderQuoteTransmitDate;
223: }
224:
225: public Date getPurchaseOrderQuotePriceExpirationDate() {
226: return purchaseOrderQuotePriceExpirationDate;
227: }
228:
229: public void setPurchaseOrderQuotePriceExpirationDate(
230: Date purchaseOrderQuotePriceExpirationDate) {
231: this .purchaseOrderQuotePriceExpirationDate = purchaseOrderQuotePriceExpirationDate;
232: }
233:
234: public String getPurchaseOrderQuoteStatusCode() {
235: return purchaseOrderQuoteStatusCode;
236: }
237:
238: public void setPurchaseOrderQuoteStatusCode(
239: String purchaseOrderQuoteStatusCode) {
240: this .purchaseOrderQuoteStatusCode = purchaseOrderQuoteStatusCode;
241: }
242:
243: public Date getPurchaseOrderQuoteAwardDate() {
244: return purchaseOrderQuoteAwardDate;
245: }
246:
247: public void setPurchaseOrderQuoteAwardDate(
248: Date purchaseOrderQuoteAwardDate) {
249: this .purchaseOrderQuoteAwardDate = purchaseOrderQuoteAwardDate;
250: }
251:
252: public String getPurchaseOrderQuoteRankNumber() {
253: return purchaseOrderQuoteRankNumber;
254: }
255:
256: public void setPurchaseOrderQuoteRankNumber(
257: String purchaseOrderQuoteRankNumber) {
258: this .purchaseOrderQuoteRankNumber = purchaseOrderQuoteRankNumber;
259: }
260:
261: public PurchaseOrderDocument getPurchaseOrder() {
262: return purchaseOrder;
263: }
264:
265: /**
266: * Sets the purchaseOrder attribute.
267: *
268: * @param purchaseOrder The purchaseOrder to set.
269: * @deprecated
270: */
271: public void setPurchaseOrder(PurchaseOrderDocument purchaseOrder) {
272: this .purchaseOrder = purchaseOrder;
273: }
274:
275: public PurchaseOrderQuoteStatus getPurchaseOrderQuoteStatus() {
276: return purchaseOrderQuoteStatus;
277: }
278:
279: /**
280: * Sets the purchaseOrderQuoteStatus attribute.
281: *
282: * @param purchaseOrderQuoteStatus The purchaseOrderQuoteStatus to set.
283: * @deprecated
284: */
285: public void setPurchaseOrderQuoteStatus(
286: PurchaseOrderQuoteStatus purchaseOrderQuoteStatus) {
287: this .purchaseOrderQuoteStatus = purchaseOrderQuoteStatus;
288: }
289:
290: public String getVendorCountryCode() {
291: return vendorCountryCode;
292: }
293:
294: public void setVendorCountryCode(String vendorCountryCode) {
295: this .vendorCountryCode = vendorCountryCode;
296: }
297:
298: public boolean isTransmitPrintDisplayed() {
299: return isTransmitPrintDisplayed;
300: }
301:
302: public void setTransmitPrintDisplayed(
303: boolean isTransmitPrintDisplayed) {
304: this .isTransmitPrintDisplayed = isTransmitPrintDisplayed;
305: }
306:
307: /**
308: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
309: */
310: protected LinkedHashMap toStringMapper() {
311: LinkedHashMap m = new LinkedHashMap();
312: m.put("documentNumber", this .documentNumber);
313: if (this .purchaseOrderVendorQuoteIdentifier != null) {
314: m.put("purchaseOrderVendorQuoteIdentifier",
315: this.purchaseOrderVendorQuoteIdentifier.toString());
316: }
317: return m;
318: }
319:
320: }
|