View Javadoc

1   /*
2    * Copyright 2011 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  
17  package org.kuali.ole.select.businessobject;
18  
19  
20  import org.kuali.ole.module.purap.PurapConstants;
21  import org.kuali.ole.module.purap.businessobject.RequisitionItem;
22  import org.kuali.ole.module.purap.document.RequisitionDocument;
23  import org.kuali.ole.pojo.OleOrderRecord;
24  import org.kuali.ole.select.lookup.DocData;
25  import org.kuali.ole.sys.context.SpringContext;
26  import org.kuali.rice.core.api.membership.MemberType;
27  import org.kuali.rice.core.api.util.type.KualiDecimal;
28  import org.kuali.rice.core.api.util.type.KualiInteger;
29  import org.kuali.rice.kim.api.identity.Person;
30  import org.kuali.rice.kim.api.identity.PersonService;
31  import org.kuali.rice.kim.api.services.KimApiServiceLocator;
32  import org.kuali.rice.kim.impl.identity.PersonImpl;
33  import org.kuali.rice.krad.service.BusinessObjectService;
34  
35  import java.util.ArrayList;
36  import java.util.HashMap;
37  import java.util.List;
38  import java.util.Map;
39  
40  /**
41   * Requisition Item Business Object.
42   */
43  public class OleRequisitionItem extends RequisitionItem implements OlePurchasingItem {
44      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OleRequisitionItem.class);
45      private BibInfoBean bibInfoBean;
46      private OleOrderRecord oleOrderRecord;
47      protected String itemTitleId;
48      protected String bibUUID;
49      protected String requestSourceUrl;
50      protected Integer requestorTypeId;
51      protected String requestorId;
52      protected String internalRequestorId;
53      protected String requestorFirstName;
54      protected String requestorLastName;
55      protected String requestorName;
56      protected OleRequestor oleRequestor;
57      private DocData docData;
58      private PersonImpl personImpl;
59      private PersonImpl internalRequestor;
60      protected String vendorItemPoNumber;
61      private BusinessObjectService businessObjectService;
62  
63      private RequisitionDocument requisition;
64      protected String selector;
65      protected String statusCode;
66  
67      protected boolean itemAdded = false;
68      protected String itemTitle;
69      protected String itemAuthor;
70      protected String fromDateLastModified;
71      protected String toDateLastModified;
72      protected String dateModified;
73      protected KualiDecimal itemPrice;
74      protected String internalRequestorName;
75      protected String externalRequestorName;
76      protected KualiInteger itemNoOfParts;
77      protected KualiDecimal itemListPrice;
78      protected KualiDecimal itemDiscount;
79      protected String itemDiscountType;
80      // private DiscountType discountType;
81  
82      // Foreign Currency Conversion
83      protected String itemCurrencyType;
84      protected KualiDecimal itemForeignListPrice;
85      protected KualiDecimal itemForeignDiscount;
86      protected String itemForeignDiscountType;
87      protected KualiDecimal itemForeignDiscountAmt;
88      protected KualiDecimal itemForeignUnitCost;
89      protected KualiDecimal itemExchangeRate;
90      protected KualiDecimal itemUnitCostUSD;
91      protected boolean itemRouteToRequestorIndicator;
92      protected boolean itemPublicViewIndicator;
93  
94  
95      //private OleRequestSourceType oleRequestSourceType;
96      protected Integer categoryId;
97      protected Integer formatTypeId;
98      protected Integer requestSourceTypeId;
99      protected Integer receiptStatusId;
100     protected Integer itemPriceSourceId;
101     private OleItemPriceSource itemPriceSource;
102     private OleCategory category;
103     private OleFormatType formatTypeName;
104     private OleRequestSourceType oleRequestSourceType;
105     private OleReceiptStatus oleReceiptStatus;
106 
107 
108     //AcquiisitionsSearch
109     protected String initialDate;
110     protected String documentType;
111     protected String initiator;
112 
113     protected KualiDecimal itemForiegnExtendedPrice;
114     private String itemLocation;
115     /**
116      * For List of copies
117      */
118     private Integer itemCopiesId;
119     private KualiInteger parts;
120     private KualiDecimal itemCopies;
121     private String partEnumeration;
122     private String locationCopies;
123     private KualiInteger startingCopyNumber;
124     private String caption;
125     private String volumeNumber;
126     private OleRequisitionCopies oleRequisitionCopy;
127     //private String                               instanceId;
128     private List<OleCopies> copies = new ArrayList<OleCopies>();
129     private List<OleCopy> copyList = new ArrayList<>();
130 
131     /**
132      * For List Payment History
133      */
134     private String paymentHistory;
135     private List<OleRequisitionPaymentHistory> requisitionPaymentHistory = new ArrayList<OleRequisitionPaymentHistory>();
136 
137     private String noOfCopiesReceived;
138     private String noOfPartsReceived;
139     private String itemTypeDescription;
140 
141     private OLERequestorPatronDocument olePatronDocument;
142     protected String olePatronId;
143     private String firstName;
144     private String enumeration;
145     private String location;
146     private String copyNumber;
147     private String receiptStatus;
148 
149     private String                               itemStatus;
150 
151     /**
152      * For getting the NoteTypeId and Note
153      */
154     private Integer noteTypeId;
155     private String note;
156 
157     /**
158      * For List of Notes
159      */
160     private List<OleNotes> notes;
161 
162     /**
163      * For Quantity As Integer
164      */
165     private KualiInteger oleItemQuantity;
166 
167 
168     /**
169      * Default constructor.
170      */
171     public OleRequisitionItem() {
172         this.setItemNoOfParts(new KualiInteger(1));
173         this.setItemPublicViewIndicator(true);
174         this.setItemUnitOfMeasureCode(PurapConstants.PODocumentsStrings.CUSTOMER_INVOICE_DETAIL_UOM_DEFAULT);
175         this.setOleItemQuantity(new KualiInteger(1));
176         this.setItemListPrice(new KualiDecimal(0.00));
177         this.setNoOfCopiesReceived("");
178         this.setNoOfPartsReceived("");
179         /*if(GlobalVariables.getUserSession()!=null) {
180             this.internalRequestorId=GlobalVariables.getUserSession().getPrincipalId();
181             this.setRequestorFirstName(getPersonName(GlobalVariables.getUserSession().getPrincipalId()));
182         }*/
183 /*        if(SpringContext.getBean(OleRequisitionService.class).getRequestor()!=null) {
184             String requestor=SpringContext.getBean(OleRequisitionService.class).getRequestor();
185             this.setRequestorFirstName(requestor);
186         }*/
187         /*OleRequisitionService oleRequestionService=new OleRequisitionServiceImpl();
188        if(oleRequestionService.getRequestor()!=null) {
189             String requestor=oleRequestionService.getRequestor();
190             this.setRequestorFirstName(requestor);
191         }*/
192         /**
193          * Initializing OleRequisitionNotes List
194          */
195         LOG.debug("Inside OleRequisitionItem Constructor");
196         LOG.debug("Initializing OleRequisitionNotes List");
197         notes = new ArrayList<OleNotes>();
198 
199     }
200 
201     public String getItemStatus() {
202         return itemStatus;
203     }
204 
205     public void setItemStatus(String itemStatus) {
206         this.itemStatus = itemStatus;
207     }
208 
209     public BibInfoBean getBibInfoBean() {
210         return bibInfoBean;
211     }
212 
213     @Override
214     public void setBibInfoBean(BibInfoBean bibInfoBean) {
215         this.bibInfoBean = bibInfoBean;
216     }
217 
218     @Override
219     public Integer getRequestorTypeId() {
220         return requestorTypeId;
221     }
222 
223     public void setRequestorTypeId(Integer requestorTypeId) {
224         this.requestorTypeId = requestorTypeId;
225     }
226 
227     @Override
228     public String getItemTitleId() {
229         return itemTitleId;
230     }
231 
232     public void setItemTitleId(String itemTitleId) {
233         this.itemTitleId = itemTitleId;
234     }
235 
236     public String getBibUUID() {
237         return bibUUID;
238     }
239 
240     public void setBibUUID(String bibUUID) {
241         this.bibUUID = bibUUID;
242     }
243 
244     public String getRequestSourceUrl() {
245         return requestSourceUrl;
246     }
247 
248     public void setRequestSourceUrl(String requestSourceUrl) {
249         this.requestSourceUrl = requestSourceUrl;
250     }
251 
252     @Override
253     public String getRequestorId() {
254         return requestorId;
255     }
256 
257     public void setRequestorId(String requestorId) {
258         this.requestorId = requestorId;
259     }
260 
261     @Override
262     public String getRequestorFirstName() {
263         return requestorFirstName;
264     }
265 
266     @Override
267     public void setRequestorFirstName(String requestorFirstName) {
268         this.requestorFirstName = requestorFirstName;
269     }
270 
271     public String getRequestorLastName() {
272         return requestorLastName;
273     }
274 
275     public void setRequestorLastName(String requestorLastName) {
276         this.requestorLastName = requestorLastName;
277     }
278 
279     public String getRequestorName() {
280         return requestorName;
281     }
282 
283     public void setRequestorName(String requestorName) {
284         this.requestorName = requestorName;
285     }
286 
287     public OleRequestor getOleRequestor() {
288         return oleRequestor;
289     }
290 
291     public void setOleRequestor(OleRequestor oleRequestor) {
292         this.oleRequestor = oleRequestor;
293     }
294 
295     public DocData getDocData() {
296         return docData;
297     }
298 
299     public void setDocData(DocData docData) {
300         this.docData = docData;
301     }
302 
303     public PersonImpl getPersonImpl() {
304         return personImpl;
305     }
306 
307     public void setPersonImpl(PersonImpl personImpl) {
308         this.personImpl = personImpl;
309     }
310 
311     @SuppressWarnings("unchecked")
312     private List<String> getRolesForPrincipal(String principalId) {
313         if (principalId == null) {
314             return new ArrayList<String>();
315         }
316         Map<String, String> criteria = new HashMap<String, String>(2);
317         criteria.put("members.memberId", principalId);
318         criteria.put("members.memberTypeCode", MemberType.PRINCIPAL.getCode());
319         return KimApiServiceLocator.getRoleService().getMemberParentRoleIds(MemberType.PRINCIPAL.getCode(), principalId);
320     }
321 
322     public String getPersonName(String principalId) {
323         Person person = SpringContext.getBean(PersonService.class).getPerson(principalId);
324         return person.getName();
325     }
326 
327     @Override
328     public RequisitionDocument getRequisition() {
329         return requisition;
330     }
331 
332     @Override
333     public void setRequisition(RequisitionDocument requisition) {
334         setPurapDocument(requisition);
335         this.requisition = requisition;
336     }
337 
338     public String getSelector() {
339         return selector;
340     }
341 
342     public void setSelector(String selector) {
343         this.selector = selector;
344     }
345 
346     public String getStatusCode() {
347         return getRequisition().getStatusCode();
348     }
349 
350     public void setStatusCode(String statusCode) {
351         this.statusCode = statusCode;
352     }
353 
354     public String getFromDateLastModified() {
355         return fromDateLastModified;
356     }
357 
358     public void setFromDateLastModified(String fromDateLastModified) {
359         this.fromDateLastModified = fromDateLastModified;
360     }
361 
362     public String getToDateLastModified() {
363         return toDateLastModified;
364     }
365 
366     public void setToDateLastModified(String toDateLastModified) {
367         this.toDateLastModified = toDateLastModified;
368     }
369 
370     public String getDateModified() {
371         return dateModified;
372     }
373 
374     public void setDateModified(String dateModified) {
375         this.dateModified = dateModified;
376     }
377 
378     public boolean isItemAdded() {
379         return itemAdded;
380     }
381 
382     public void setItemAdded(boolean isItemAdded) {
383         this.itemAdded = isItemAdded;
384     }
385 
386     public String getItemTitle() {
387         return itemTitle;
388     }
389 
390     public void setItemTitle(String itemTitle) {
391         this.itemTitle = itemTitle;
392     }
393 
394     public String getItemAuthor() {
395         return itemAuthor;
396     }
397 
398     public void setItemAuthor(String itemAuthor) {
399         this.itemAuthor = itemAuthor;
400     }
401 
402     @Override
403     public String getInternalRequestorId() {
404         return internalRequestorId;
405     }
406 
407     public void setInternalRequestorId(String internalRequestorId) {
408         this.internalRequestorId = internalRequestorId;
409     }
410 
411     public KualiDecimal getItemPrice() {
412         return this.getTotalAmount();
413     }
414 
415     public void setItemPrice(KualiDecimal itemPrice) {
416         this.itemPrice = itemPrice;
417     }
418 
419     public PersonImpl getInternalRequestor() {
420         return internalRequestor;
421     }
422 
423     public void setInternalRequestor(PersonImpl internalRequestor) {
424         this.internalRequestor = internalRequestor;
425     }
426 
427     public String getInternalRequestorName() {
428         return internalRequestorName;
429     }
430 
431     public void setInternalRequestorName(String internalRequestorName) {
432         this.internalRequestorName = internalRequestorName;
433     }
434 
435     public String getExternalRequestorName() {
436         return externalRequestorName;
437     }
438 
439     public void setExternalRequestorName(String externalRequestorName) {
440         this.externalRequestorName = externalRequestorName;
441     }
442 
443     public KualiInteger getItemNoOfParts() {
444         if (this.itemNoOfParts != null) {
445             return itemNoOfParts;
446         } else {
447             return itemNoOfParts;
448         }
449     }
450 
451     public void setItemNoOfParts(KualiInteger itemNoOfParts) {
452         this.itemNoOfParts = itemNoOfParts;
453     }
454 
455 /*    public OleRequestSourceType getOleRequestSourceType() {
456         return oleRequestSourceType;
457     }
458 
459     public void setOleRequestSourceType(OleRequestSourceType oleRequestSourceType) {
460         this.oleRequestSourceType = oleRequestSourceType;
461     }*/
462 
463     public Integer getRequestSourceTypeId() {
464         return requestSourceTypeId;
465     }
466 
467     public void setRequestSourceTypeId(Integer requestSourceTypeId) {
468         this.requestSourceTypeId = requestSourceTypeId;
469     }
470 
471     public OleRequestSourceType getOleRequestSourceType() {
472         return oleRequestSourceType;
473     }
474 
475     public void setOleRequestSourceType(OleRequestSourceType oleRequestSourceType) {
476         this.oleRequestSourceType = oleRequestSourceType;
477     }
478 
479     /**
480      * Gets the value of the receiptStatusId property
481      *
482      * @return receiptStatusId
483      */
484     public Integer getReceiptStatusId() {
485         return receiptStatusId;
486     }
487 
488     /**
489      * Sets the receiptStatusId value
490      *
491      * @param receiptStatusId
492      */
493     public void setReceiptStatusId(Integer receiptStatusId) {
494         this.receiptStatusId = receiptStatusId;
495     }
496 
497     /**
498      * Gets the instance of OleReceiptStatus
499      *
500      * @return oleReceiptStatus
501      */
502     public OleReceiptStatus getOleReceiptStatus() {
503         return oleReceiptStatus;
504     }
505 
506     /**
507      * Sets the instance value for OleReceiptStatus
508      *
509      * @param oleReceiptStatus
510      */
511     public void setOleReceiptStatus(OleReceiptStatus oleReceiptStatus) {
512         this.oleReceiptStatus = oleReceiptStatus;
513     }
514 
515     public KualiDecimal getItemListPrice() {
516         return itemListPrice;
517     }
518 
519     public void setItemListPrice(KualiDecimal itemListPrice) {
520         this.itemListPrice = itemListPrice;
521     }
522 
523     public KualiDecimal getItemDiscount() {
524         return itemDiscount;
525     }
526 
527     public void setItemDiscount(KualiDecimal itemDiscount) {
528         this.itemDiscount = itemDiscount;
529     }
530 
531     public String getItemDiscountType() {
532         return itemDiscountType;
533     }
534 
535     public void setItemDiscountType(String itemDiscountType) {
536         this.itemDiscountType = itemDiscountType;
537     }
538 
539    /* public DiscountType getDiscountType() {
540         return discountType;
541     }
542 
543     public void setDiscountType(DiscountType discountType) {
544         this.discountType = discountType;
545     }*/
546 
547     /**
548      * This method... to get the noteType Id
549      *
550      * @return noteTypeId
551      */
552     public Integer getNoteTypeId() {
553         return noteTypeId;
554     }
555 
556     /**
557      * This method to set noteType Id
558      *
559      * @param //noteTypeId
560      */
561     public void setNoteTypeId(Integer noteTypeId) {
562         this.noteTypeId = noteTypeId;
563     }
564 
565     /**
566      * This method... to get the note description
567      *
568      * @return note
569      */
570     public String getNote() {
571         return note;
572     }
573 
574     /**
575      * This method... to set note description
576      *
577      * @param note
578      */
579     public void setNote(String note) {
580         this.note = note;
581     }
582 
583     /**
584      * This method... to get OleRequistionNotes List
585      *
586      * @return List of Notes(OleRequisitionNotes)
587      */
588     public List<OleNotes> getNotes() {
589         return notes;
590     }
591 
592     /**
593      * This method... to set OleRequisitionNotes List
594      */
595     public void setNotes(List<OleNotes> notes) {
596         this.notes = notes;
597     }
598 
599     public String getItemCurrencyType() {
600         return itemCurrencyType;
601     }
602 
603     public void setItemCurrencyType(String itemCurrencyType) {
604         this.itemCurrencyType = itemCurrencyType;
605     }
606 
607     public KualiDecimal getItemForeignListPrice() {
608         return itemForeignListPrice;
609     }
610 
611     public void setItemForeignListPrice(KualiDecimal itemForeignListPrice) {
612         this.itemForeignListPrice = itemForeignListPrice;
613     }
614 
615     public KualiDecimal getItemForeignDiscount() {
616         return itemForeignDiscount;
617     }
618 
619     public void setItemForeignDiscount(KualiDecimal itemForeignDiscount) {
620         this.itemForeignDiscount = itemForeignDiscount;
621     }
622 
623     public String getItemForeignDiscountType() {
624         return itemForeignDiscountType;
625     }
626 
627     public void setItemForeignDiscountType(String itemForeignDiscountType) {
628         this.itemForeignDiscountType = itemForeignDiscountType;
629     }
630 
631     public KualiDecimal getItemForeignDiscountAmt() {
632         return itemForeignDiscountAmt;
633     }
634 
635     public void setItemForeignDiscountAmt(KualiDecimal itemForeignDiscountAmt) {
636         this.itemForeignDiscountAmt = itemForeignDiscountAmt;
637     }
638 
639     public KualiDecimal getItemForeignUnitCost() {
640         return itemForeignUnitCost;
641     }
642 
643     public void setItemForeignUnitCost(KualiDecimal itemForeignUnitCost) {
644         this.itemForeignUnitCost = itemForeignUnitCost;
645     }
646 
647     public KualiDecimal getItemExchangeRate() {
648         return itemExchangeRate;
649     }
650 
651     public void setItemExchangeRate(KualiDecimal itemExchangeRate) {
652         this.itemExchangeRate = itemExchangeRate;
653     }
654 
655     public KualiDecimal getItemUnitCostUSD() {
656         return itemUnitCostUSD;
657     }
658 
659     public void setItemUnitCostUSD(KualiDecimal itemUnitCostUSD) {
660         this.itemUnitCostUSD = itemUnitCostUSD;
661     }
662 
663     public Integer getCategoryId() {
664         return categoryId;
665     }
666 
667     public void setCategoryId(Integer categoryId) {
668         this.categoryId = categoryId;
669     }
670 
671     public Integer getFormatTypeId() {
672         return formatTypeId;
673     }
674 
675     public void setFormatTypeId(Integer formatTypeId) {
676         this.formatTypeId = formatTypeId;
677     }
678 
679     public Integer getItemPriceSourceId() {
680         return itemPriceSourceId;
681     }
682 
683     public void setItemPriceSourceId(Integer itemPriceSourceId) {
684         this.itemPriceSourceId = itemPriceSourceId;
685     }
686 
687     public OleItemPriceSource getItemPriceSource() {
688         return itemPriceSource;
689     }
690 
691     public void setItemPriceSource(OleItemPriceSource itemPriceSource) {
692         this.itemPriceSource = itemPriceSource;
693     }
694 
695     public OleCategory getCategory() {
696         return category;
697     }
698 
699     public void setCategory(OleCategory category) {
700         this.category = category;
701     }
702 
703     public OleFormatType getFormatTypeName() {
704         return formatTypeName;
705     }
706 
707     public void setFormatTypeName(OleFormatType formatTypeName) {
708         this.formatTypeName = formatTypeName;
709     }
710 
711     public boolean isItemRouteToRequestorIndicator() {
712         return itemRouteToRequestorIndicator;
713     }
714 
715     public void setItemRouteToRequestorIndicator(boolean itemRouteToRequestorIndicator) {
716         this.itemRouteToRequestorIndicator = itemRouteToRequestorIndicator;
717     }
718 
719     public boolean isItemPublicViewIndicator() {
720         return itemPublicViewIndicator;
721     }
722 
723     public void setItemPublicViewIndicator(boolean itemPublicViewIndicator) {
724         this.itemPublicViewIndicator = itemPublicViewIndicator;
725     }
726 
727     public String getInitialDate() {
728         return initialDate;
729     }
730 
731     public void setInitialDate(String initialDate) {
732         this.initialDate = initialDate;
733     }
734 
735     public String getDocumentType() {
736         return documentType;
737     }
738 
739     public void setDocumentType(String documentType) {
740         this.documentType = documentType;
741     }
742 
743     public String getInitiator() {
744         return initiator;
745     }
746 
747     public void setInitiator(String initiator) {
748         this.initiator = initiator;
749     }
750 
751     /**
752      * @see org.kuali.ole.module.purap.businessobject.PurchasingItemBase#getAccountingLineClass()
753      */
754     @Override
755     public Class getAccountingLineClass() {
756         return OleRequisitionAccount.class;
757     }
758 
759     public String getVendorItemPoNumber() {
760         return vendorItemPoNumber;
761     }
762 
763     public void setVendorItemPoNumber(String vendorItemPoNumber) {
764         this.vendorItemPoNumber = vendorItemPoNumber;
765     }
766 
767     public OleOrderRecord getOleOrderRecord() {
768         return oleOrderRecord;
769     }
770 
771     public void setOleOrderRecord(OleOrderRecord oleOrderRecord) {
772         this.oleOrderRecord = oleOrderRecord;
773     }
774 
775     /**
776      * Gets the itemForiegnExtendedPrice attribute.
777      *
778      * @return Returns the itemForiegnExtendedPrice.
779      */
780     public KualiDecimal getItemForiegnExtendedPrice() {
781         return itemForiegnExtendedPrice;
782     }
783 
784     /**
785      * Sets the itemForiegnExtendedPrice attribute value.
786      *
787      * @param itemForiegnExtendedPrice The itemForiegnExtendedPrice to set.
788      */
789     public void setItemForiegnExtendedPrice(KualiDecimal itemForiegnExtendedPrice) {
790         this.itemForiegnExtendedPrice = itemForiegnExtendedPrice;
791     }
792 
793     /**
794      * Gets the itemLocation attribute.
795      *
796      * @return Returns the itemLocation.
797      */
798     public String getItemLocation() {
799         return itemLocation;
800     }
801 
802     /**
803      * Sets the itemLocation attribute value.
804      *
805      * @param itemLocation The itemLocation to set.
806      */
807     public void setItemLocation(String itemLocation) {
808         this.itemLocation = itemLocation;
809     }
810 
811     /**
812      * Gets the itemCopiesId attribute.
813      *
814      * @return Returns the itemCopiesId.
815      */
816     public Integer getItemCopiesId() {
817         return itemCopiesId;
818     }
819 
820     /**
821      * Sets the itemCopiesId attribute value.
822      *
823      * @param itemCopiesId The itemCopiesId to set.
824      */
825     public void setItemCopiesId(Integer itemCopiesId) {
826         this.itemCopiesId = itemCopiesId;
827     }
828 
829     /**
830      * Gets the parts attribute.
831      *
832      * @return Returns the parts.
833      */
834     public KualiInteger getParts() {
835         return parts;
836     }
837 
838     /**
839      * Sets the parts attribute value.
840      *
841      * @param parts The parts to set.
842      */
843     public void setParts(KualiInteger parts) {
844         this.parts = parts;
845     }
846 
847     /**
848      * Gets the itemCopies attribute.
849      *
850      * @return Returns the itemCopies.
851      */
852     public KualiDecimal getItemCopies() {
853         return itemCopies;
854     }
855 
856     /**
857      * Sets the itemCopies attribute value.
858      *
859      * @param itemCopies The itemCopies to set.
860      */
861     public void setItemCopies(KualiDecimal itemCopies) {
862         this.itemCopies = itemCopies;
863     }
864 
865     /**
866      * Gets the partEnumeration attribute.
867      *
868      * @return Returns the partEnumeration.
869      */
870     public String getPartEnumeration() {
871         return partEnumeration;
872     }
873 
874     /**
875      * Sets the partEnumeration attribute value.
876      *
877      * @param partEnumeration The partEnumeration to set.
878      */
879     public void setPartEnumeration(String partEnumeration) {
880         this.partEnumeration = partEnumeration;
881     }
882 
883     /**
884      * Gets the locationCopies attribute.
885      *
886      * @return Returns the locationCopies.
887      */
888     public String getLocationCopies() {
889         return locationCopies;
890     }
891 
892     /**
893      * Sets the locationCopies attribute value.
894      *
895      * @param locationCopies The locationCopies to set.
896      */
897     public void setLocationCopies(String locationCopies) {
898         this.locationCopies = locationCopies;
899     }
900 
901     /**
902      * Gets the startingCopyNumber attribute.
903      *
904      * @return Returns the startingCopyNumber.
905      */
906     public KualiInteger getStartingCopyNumber() {
907         return startingCopyNumber;
908     }
909 
910     /**
911      * Sets the startingCopyNumber attribute value.
912      *
913      * @param startingCopyNumber The startingCopyNumber to set.
914      */
915     public void setStartingCopyNumber(KualiInteger startingCopyNumber) {
916         this.startingCopyNumber = startingCopyNumber;
917     }
918 
919     /**
920      * Gets the copies attribute.
921      *
922      * @return Returns the copies.
923      */
924     public List<OleCopies> getCopies() {
925         return copies;
926     }
927 
928     /**
929      * Sets the copies attribute value.
930      *
931      * @param copies The copies to set.
932      */
933     public void setCopies(List<OleCopies> copies) {
934         this.copies = copies;
935     }
936 
937     /**
938      * Gets the paymentHistory attribute.
939      *
940      * @return Returns the paymentHistory.
941      */
942     public String getPaymentHistory() {
943         return paymentHistory;
944     }
945 
946     /**
947      * Sets the paymentHistory attribute value.
948      *
949      * @param paymentHistory The paymentHistory to set.
950      */
951     public void setPaymentHistory(String paymentHistory) {
952         this.paymentHistory = paymentHistory;
953     }
954 
955     /**
956      * Gets the requisitionPaymentHistory attribute.
957      *
958      * @return Returns the requisitionPaymentHistory.
959      */
960     public List<OleRequisitionPaymentHistory> getRequisitionPaymentHistory() {
961         return requisitionPaymentHistory;
962     }
963 
964     /**
965      * Sets the requisitionPaymentHistory attribute value.
966      *
967      * @param requisitionPaymentHistory The requisitionPaymentHistory to set.
968      */
969     public void setRequisitionPaymentHistory(List<OleRequisitionPaymentHistory> requisitionPaymentHistory) {
970         this.requisitionPaymentHistory = requisitionPaymentHistory;
971     }
972 
973 
974     /**
975      * Gets the noOfCopiesReceived attribute.
976      *
977      * @return Returns the noOfCopiesReceived.
978      */
979     public String getNoOfCopiesReceived() {
980         return noOfCopiesReceived;
981     }
982 
983     /**
984      * Sets the noOfCopiesReceived attribute value.
985      *
986      * @param noOfCopiesReceived The noOfCopiesReceived to set.
987      */
988     public void setNoOfCopiesReceived(String noOfCopiesReceived) {
989         this.noOfCopiesReceived = noOfCopiesReceived;
990     }
991 
992     /**
993      * Gets the noOfPartsReceived attribute.
994      *
995      * @return Returns the noOfPartsReceived.
996      */
997     public String getNoOfPartsReceived() {
998         return noOfPartsReceived;
999     }
1000 
1001     /**
1002      * Sets the noOfPartsReceived attribute value.
1003      *
1004      * @param noOfPartsReceived The noOfPartsReceived to set.
1005      */
1006     public void setNoOfPartsReceived(String noOfPartsReceived) {
1007         this.noOfPartsReceived = noOfPartsReceived;
1008     }
1009 
1010     /**
1011      * Gets the itemTypeDescription attribute.
1012      *
1013      * @return Returns the itemTypeDescription.
1014      */
1015     public String getItemTypeDescription() {
1016         return itemTypeDescription;
1017     }
1018 
1019     /**
1020      * Sets the itemTypeDescription attribute value.
1021      *
1022      * @param itemTypeDescription The itemTypeDescription to set.
1023      */
1024     public void setItemTypeDescription(String itemTypeDescription) {
1025         this.itemTypeDescription = itemTypeDescription;
1026     }
1027 
1028     /**
1029      * Gets the oleRequisitionCopy attribute.
1030      *
1031      * @return Returns the oleRequisitionCopy.
1032      */
1033     public OleRequisitionCopies getOleRequisitionCopy() {
1034         return oleRequisitionCopy;
1035     }
1036 
1037     /**
1038      * Sets the oleRequisitionCopy attribute value.
1039      *
1040      * @param oleRequisitionCopy The oleRequisitionCopy to set.
1041      */
1042     public void setOleRequisitionCopy(OleRequisitionCopies oleRequisitionCopy) {
1043         this.oleRequisitionCopy = oleRequisitionCopy;
1044     }
1045 
1046     /**
1047      * Gets the oleItemQuantity attribute.
1048      *
1049      * @return Returns the oleItemQuantity.
1050      */
1051     public KualiInteger getOleItemQuantity() {
1052         return new KualiInteger(super.getItemQuantity().intValue());
1053     }
1054 
1055     /**
1056      * Sets the oleItemQuantity attribute value.
1057      *
1058      * @param oleItemQuantity The oleItemQuantity to set.
1059      */
1060     public void setOleItemQuantity(KualiInteger oleItemQuantity) {
1061         super.setItemQuantity(new KualiDecimal(oleItemQuantity.intValue()));
1062     }
1063 
1064     /*
1065      * @Override public void setItemQuantity(KualiDecimal itemQuantity) { super.setItemQuantity(itemQuantity); this.oleItemQuantity
1066      * = itemQuantity.intValue(); }
1067      */
1068 
1069     /**
1070      * Gets the olePatronDocument attribute.
1071      *
1072      * @return Returns the olePatronDocument.
1073      */
1074     public OLERequestorPatronDocument getOlePatronDocument() {
1075         return olePatronDocument;
1076     }
1077 
1078     /**
1079      * Sets the olePatronDocument attribute value.
1080      *
1081      * @param olePatronDocument The olePatronDocument to set.
1082      */
1083     public void setOlePatronDocument(OLERequestorPatronDocument olePatronDocument) {
1084         this.olePatronDocument = olePatronDocument;
1085     }
1086 
1087     /**
1088      * Gets the olePatronId attribute.
1089      *
1090      * @return Returns the olePatronId.
1091      */
1092     public String getOlePatronId() {
1093         return olePatronId;
1094     }
1095 
1096     /**
1097      * Sets the olePatronId attribute value.
1098      *
1099      * @param olePatronId The olePatronId to set.
1100      */
1101     public void setOlePatronId(String olePatronId) {
1102         this.olePatronId = olePatronId;
1103     }
1104 
1105     /**
1106      * Sets the firstName attribute value.
1107      *
1108      * @param firstName The firstName to set.
1109      */
1110     public void setFirstName(String firstName) {
1111         this.firstName = firstName;
1112     }
1113 
1114     /**
1115      * Gets the firstName attribute.
1116      *
1117      * @return Returns the firstName.
1118      */
1119     public String getFirstName() {
1120         return firstName;
1121     }
1122 
1123     public String getCaption() {
1124         return caption;
1125     }
1126 
1127     public void setCaption(String caption) {
1128         this.caption = caption;
1129     }
1130 
1131     public String getVolumeNumber() {
1132         return volumeNumber;
1133     }
1134 
1135     public void setVolumeNumber(String volumeNumber) {
1136         this.volumeNumber = volumeNumber;
1137     }
1138 
1139     public String getEnumeration() {
1140         return enumeration;
1141     }
1142 
1143     public void setEnumeration(String enumeration) {
1144         this.enumeration = enumeration;
1145     }
1146 
1147     public String getLocation() {
1148         return location;
1149     }
1150 
1151     public void setLocation(String location) {
1152         this.location = location;
1153     }
1154 
1155     public String getCopyNumber() {
1156         return copyNumber;
1157     }
1158 
1159     public void setCopyNumber(String copyNumber) {
1160         this.copyNumber = copyNumber;
1161     }
1162 
1163     public String getReceiptStatus() {
1164         return receiptStatus;
1165     }
1166 
1167     public void setReceiptStatus(String receiptStatus) {
1168         this.receiptStatus = receiptStatus;
1169     }
1170 
1171     public List<OleCopy> getCopyList() {
1172         return copyList;
1173     }
1174 
1175     public void setCopyList(List<OleCopy> copyList) {
1176         this.copyList = copyList;
1177     }
1178 }