1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.select.businessobject;
18
19
20 import org.kuali.ole.OLEConstants;
21 import org.kuali.ole.docstore.common.document.ids.BibId;
22 import org.kuali.ole.docstore.engine.service.storage.rdbms.pojo.BibInfoRecord;
23 import org.kuali.ole.module.purap.PurapConstants;
24 import org.kuali.ole.module.purap.businessobject.RequisitionItem;
25 import org.kuali.ole.module.purap.document.RequisitionDocument;
26 import org.kuali.ole.pojo.OleOrderRecord;
27 import org.kuali.ole.select.bo.OLEEResourceOrderRecord;
28 import org.kuali.ole.select.bo.OLELinkPurapDonor;
29 import org.kuali.ole.select.bo.OLEPOClaimHistory;
30 import org.kuali.ole.select.document.OLEEResourceRecordDocument;
31 import org.kuali.ole.select.document.OleInvoiceDocument;
32 import org.kuali.ole.select.lookup.DocData;
33 import org.kuali.ole.sys.context.SpringContext;
34 import org.kuali.rice.core.api.config.property.ConfigContext;
35 import org.kuali.rice.core.api.membership.MemberType;
36 import org.kuali.rice.core.api.util.type.KualiDecimal;
37 import org.kuali.rice.core.api.util.type.KualiInteger;
38 import org.kuali.rice.kew.api.KewApiConstants;
39 import org.kuali.rice.kim.api.identity.Person;
40 import org.kuali.rice.kim.api.identity.PersonService;
41 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
42 import org.kuali.rice.kim.impl.identity.PersonImpl;
43 import org.kuali.rice.krad.service.BusinessObjectService;
44 import org.kuali.rice.krad.service.KRADServiceLocator;
45 import org.kuali.rice.krad.util.KRADConstants;
46
47 import java.sql.Date;
48 import java.util.ArrayList;
49 import java.util.HashMap;
50 import java.util.List;
51 import java.util.Map;
52
53
54
55
56 public class OleRequisitionItem extends RequisitionItem implements OlePurchasingItem {
57 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OleRequisitionItem.class);
58 private BibInfoBean bibInfoBean;
59 private OleOrderRecord oleOrderRecord;
60 private OLEEResourceOrderRecord oleEResourceOrderRecord;
61 private String docFormat;
62 protected String itemTitleId;
63 protected String linkToOrderOption;
64 protected String localTitleId;
65 protected String bibUUID;
66 protected String requestSourceUrl;
67 protected Integer requestorTypeId;
68 protected String requestorId;
69 protected String internalRequestorId;
70 protected String requestorFirstName;
71 protected String requestorLastName;
72 protected String requestorName;
73 protected OleRequestor oleRequestor;
74 private DocData docData;
75 private PersonImpl personImpl;
76 private PersonImpl internalRequestor;
77 protected String vendorItemPoNumber;
78 private BusinessObjectService businessObjectService;
79 private String singleCopyNumber;
80 private String donorId;
81 private String donorCode;
82 private List<OLELinkPurapDonor> oleDonors=new ArrayList<>();
83 private BibId bibTree;
84 private String oleERSIdentifier;
85 private String eResLink;
86
87 private RequisitionDocument requisition;
88 protected String selector;
89 protected String statusCode;
90
91 protected boolean itemAdded = false;
92 protected String itemTitle;
93 protected String itemAuthor;
94 protected String fromDateLastModified;
95 protected String toDateLastModified;
96 protected String dateModified;
97 protected KualiDecimal itemPrice;
98 protected String internalRequestorName;
99 protected String externalRequestorName;
100 protected KualiInteger itemNoOfParts;
101 protected KualiDecimal itemListPrice;
102 protected KualiDecimal itemDiscount;
103 protected String itemDiscountType;
104
105
106
107 protected String itemCurrencyType;
108 protected KualiDecimal itemForeignListPrice;
109 protected KualiDecimal itemForeignDiscount;
110 protected String itemForeignDiscountType;
111 protected KualiDecimal itemForeignDiscountAmt;
112 protected KualiDecimal itemForeignUnitCost;
113 protected KualiDecimal itemExchangeRate;
114 protected KualiDecimal itemUnitCostUSD;
115 protected boolean itemRouteToRequestorIndicator;
116 protected boolean itemPublicViewIndicator;
117
118
119
120 protected Integer categoryId;
121 protected Integer formatTypeId;
122 protected Integer requestSourceTypeId;
123 protected Integer receiptStatusId;
124 protected Integer itemPriceSourceId;
125 private OleItemPriceSource itemPriceSource;
126 private String purposeId;
127 private OleCategory category;
128 private OleFormatType formatTypeName;
129 private OleRequestSourceType oleRequestSourceType;
130 private OleReceiptStatus oleReceiptStatus;
131 private List<OleCopy> deletedCopiesList = new ArrayList<>();
132
133 private List<OleInvoiceDocument> invoiceDocuments = new ArrayList<OleInvoiceDocument>();
134
135
136
137 protected String initialDate;
138 protected String documentType;
139 protected String initiator;
140
141 protected KualiDecimal itemForiegnExtendedPrice;
142 private String itemLocation;
143
144
145
146 private Integer itemCopiesId;
147 private KualiInteger parts;
148 private KualiDecimal itemCopies;
149 private String partEnumeration;
150 private String locationCopies;
151 private KualiInteger startingCopyNumber;
152 private String caption;
153 private String volumeNumber;
154 private OleRequisitionCopies oleRequisitionCopy;
155
156 private List<OleCopies> copies = new ArrayList<OleCopies>();
157 private List<OleCopy> copyList = new ArrayList<>();
158
159
160
161
162 private String paymentHistory;
163 private List<OleRequisitionPaymentHistory> requisitionPaymentHistory = new ArrayList<OleRequisitionPaymentHistory>();
164
165 private String noOfCopiesReceived;
166 private String noOfPartsReceived;
167 private String itemTypeDescription;
168
169 private OLERequestorPatronDocument olePatronDocument;
170 protected String olePatronId;
171 private String firstName;
172 private String enumeration;
173 private String location;
174 private String copyNumber;
175 private String receiptStatus;
176
177 private String itemStatus;
178
179
180
181
182 private Integer noteTypeId;
183 private String note;
184
185
186
187
188 private List<OleNotes> notes;
189
190
191
192
193 private KualiInteger oleItemQuantity;
194
195 private boolean doNotClaim;
196 private Date claimDate;
197 private String claimNote;
198 private KualiInteger claimCount;
199 private BibInfoRecord bibInfoRecord;
200 private String fundCode;
201
202 private List<OLEPOClaimHistory> claimHistories = new ArrayList<>();
203
204 public List<OLEPOClaimHistory> getClaimHistories() {
205 return claimHistories;
206 }
207
208 public void setClaimHistories(List<OLEPOClaimHistory> claimHistories) {
209 this.claimHistories = claimHistories;
210 }
211
212 public String getSingleCopyNumber() {
213 return singleCopyNumber;
214 }
215
216 public void setSingleCopyNumber(String singleCopyNumber) {
217 this.singleCopyNumber = singleCopyNumber;
218 }
219
220 public KualiInteger getClaimCount() {
221 return claimCount;
222 }
223
224 public void setClaimCount(KualiInteger claimCount) {
225 this.claimCount = claimCount;
226 }
227
228 public String getClaimNote() {
229 return claimNote;
230 }
231
232 public void setClaimNote(String claimNote) {
233 this.claimNote = claimNote;
234 }
235
236 public Date getClaimDate() {
237 return claimDate;
238 }
239
240 public void setClaimDate(Date claimDate) {
241 this.claimDate = claimDate;
242 }
243
244 public boolean isDoNotClaim() {
245 return doNotClaim;
246 }
247
248 public void setDoNotClaim(boolean doNotClaim) {
249 this.doNotClaim = doNotClaim;
250 }
251
252 public String getLocalTitleId() {
253 return localTitleId;
254 }
255
256 public void setLocalTitleId(String localTitleId) {
257 this.localTitleId = localTitleId;
258 }
259
260
261
262
263 public OleRequisitionItem() {
264 this.setItemNoOfParts(new KualiInteger(1));
265 this.setItemPublicViewIndicator(true);
266 this.setItemUnitOfMeasureCode(PurapConstants.PODocumentsStrings.CUSTOMER_INVOICE_DETAIL_UOM_DEFAULT);
267 this.setOleItemQuantity(new KualiInteger(1));
268 if (this.getItemListPrice() == null) {
269 this.setItemListPrice(new KualiDecimal(0.00));
270 }
271 this.setNoOfCopiesReceived("");
272 this.setNoOfPartsReceived("");
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289 LOG.debug("Inside OleRequisitionItem Constructor");
290 LOG.debug("Initializing OleRequisitionNotes List");
291 notes = new ArrayList<OleNotes>();
292
293 }
294
295 public String getItemStatus() {
296 return itemStatus;
297 }
298
299 public void setItemStatus(String itemStatus) {
300 this.itemStatus = itemStatus;
301 }
302
303 public BibInfoBean getBibInfoBean() {
304 return bibInfoBean;
305 }
306
307 @Override
308 public void setBibInfoBean(BibInfoBean bibInfoBean) {
309 this.bibInfoBean = bibInfoBean;
310 }
311
312 @Override
313 public Integer getRequestorTypeId() {
314 return requestorTypeId;
315 }
316
317 public void setRequestorTypeId(Integer requestorTypeId) {
318 this.requestorTypeId = requestorTypeId;
319 }
320
321 @Override
322 public String getItemTitleId() {
323 return itemTitleId;
324 }
325
326 public String getDonorId() {
327 return donorId;
328 }
329
330 public void setDonorId(String donorId) {
331 this.donorId = donorId;
332 }
333
334 public String getDonorCode() {
335 return donorCode;
336 }
337
338 public void setDonorCode(String donorCode) {
339 this.donorCode = donorCode;
340 }
341
342 public List<OLELinkPurapDonor> getOleDonors() {
343 return oleDonors;
344 }
345
346 public void setOleDonors(List<OLELinkPurapDonor> oleDonors) {
347 this.oleDonors = oleDonors;
348 }
349
350 public void setItemTitleId(String itemTitleId) {
351 this.itemTitleId = itemTitleId;
352 }
353
354 public String getLinkToOrderOption() {
355 return linkToOrderOption;
356 }
357
358 public void setLinkToOrderOption(String linkToOrderOption) {
359 this.linkToOrderOption = linkToOrderOption;
360 }
361
362 public String getBibUUID() {
363 return bibUUID;
364 }
365
366 public void setBibUUID(String bibUUID) {
367 this.bibUUID = bibUUID;
368 }
369
370 public String getRequestSourceUrl() {
371 return requestSourceUrl;
372 }
373
374 public void setRequestSourceUrl(String requestSourceUrl) {
375 this.requestSourceUrl = requestSourceUrl;
376 }
377
378 @Override
379 public String getRequestorId() {
380 return requestorId;
381 }
382
383 public void setRequestorId(String requestorId) {
384 this.requestorId = requestorId;
385 }
386
387 @Override
388 public String getRequestorFirstName() {
389 return requestorFirstName;
390 }
391
392 @Override
393 public void setRequestorFirstName(String requestorFirstName) {
394 this.requestorFirstName = requestorFirstName;
395 }
396
397 public String getRequestorLastName() {
398 return requestorLastName;
399 }
400
401 public void setRequestorLastName(String requestorLastName) {
402 this.requestorLastName = requestorLastName;
403 }
404
405 public String getRequestorName() {
406 return requestorName;
407 }
408
409 public void setRequestorName(String requestorName) {
410 this.requestorName = requestorName;
411 }
412
413 public OleRequestor getOleRequestor() {
414 return oleRequestor;
415 }
416
417 public void setOleRequestor(OleRequestor oleRequestor) {
418 this.oleRequestor = oleRequestor;
419 }
420
421 public DocData getDocData() {
422 return docData;
423 }
424
425 public void setDocData(DocData docData) {
426 this.docData = docData;
427 }
428
429 public PersonImpl getPersonImpl() {
430 return personImpl;
431 }
432
433 public void setPersonImpl(PersonImpl personImpl) {
434 this.personImpl = personImpl;
435 }
436
437 @SuppressWarnings("unchecked")
438 private List<String> getRolesForPrincipal(String principalId) {
439 if (principalId == null) {
440 return new ArrayList<String>();
441 }
442 Map<String, String> criteria = new HashMap<String, String>(2);
443 criteria.put("members.memberId", principalId);
444 criteria.put("members.memberTypeCode", MemberType.PRINCIPAL.getCode());
445 return KimApiServiceLocator.getRoleService().getMemberParentRoleIds(MemberType.PRINCIPAL.getCode(), principalId);
446 }
447
448 public String getPersonName(String principalId) {
449 Person person = SpringContext.getBean(PersonService.class).getPerson(principalId);
450 return person.getName();
451 }
452
453 @Override
454 public RequisitionDocument getRequisition() {
455 return requisition;
456 }
457
458 @Override
459 public void setRequisition(RequisitionDocument requisition) {
460 setPurapDocument(requisition);
461 this.requisition = requisition;
462 }
463
464 public String getSelector() {
465 return selector;
466 }
467
468 public void setSelector(String selector) {
469 this.selector = selector;
470 }
471
472 public String getStatusCode() {
473 return getRequisition().getStatusCode();
474 }
475
476 public void setStatusCode(String statusCode) {
477 this.statusCode = statusCode;
478 }
479
480 public String getFromDateLastModified() {
481 return fromDateLastModified;
482 }
483
484 public void setFromDateLastModified(String fromDateLastModified) {
485 this.fromDateLastModified = fromDateLastModified;
486 }
487
488 public String getToDateLastModified() {
489 return toDateLastModified;
490 }
491
492 public void setToDateLastModified(String toDateLastModified) {
493 this.toDateLastModified = toDateLastModified;
494 }
495
496 public String getDateModified() {
497 return dateModified;
498 }
499
500 public void setDateModified(String dateModified) {
501 this.dateModified = dateModified;
502 }
503
504 public boolean isItemAdded() {
505 return itemAdded;
506 }
507
508 public void setItemAdded(boolean isItemAdded) {
509 this.itemAdded = isItemAdded;
510 }
511
512 public String getItemTitle() {
513 return itemTitle;
514 }
515
516 public void setItemTitle(String itemTitle) {
517 this.itemTitle = itemTitle;
518 }
519
520 public String getItemAuthor() {
521 return itemAuthor;
522 }
523
524 public void setItemAuthor(String itemAuthor) {
525 this.itemAuthor = itemAuthor;
526 }
527
528 @Override
529 public String getInternalRequestorId() {
530 return internalRequestorId;
531 }
532
533 public void setInternalRequestorId(String internalRequestorId) {
534 this.internalRequestorId = internalRequestorId;
535 }
536
537 public KualiDecimal getItemPrice() {
538 return this.getTotalAmount();
539 }
540
541 public void setItemPrice(KualiDecimal itemPrice) {
542 this.itemPrice = itemPrice;
543 }
544
545 public PersonImpl getInternalRequestor() {
546 return internalRequestor;
547 }
548
549 public void setInternalRequestor(PersonImpl internalRequestor) {
550 this.internalRequestor = internalRequestor;
551 }
552
553 public String getInternalRequestorName() {
554 return internalRequestorName;
555 }
556
557 public void setInternalRequestorName(String internalRequestorName) {
558 this.internalRequestorName = internalRequestorName;
559 }
560
561 public String getExternalRequestorName() {
562 return externalRequestorName;
563 }
564
565 public void setExternalRequestorName(String externalRequestorName) {
566 this.externalRequestorName = externalRequestorName;
567 }
568
569 public KualiInteger getItemNoOfParts() {
570 if (this.itemNoOfParts != null) {
571 return itemNoOfParts;
572 } else {
573 return itemNoOfParts;
574 }
575 }
576
577 public void setItemNoOfParts(KualiInteger itemNoOfParts) {
578 this.itemNoOfParts = itemNoOfParts;
579 }
580
581
582
583
584
585
586
587
588
589 public Integer getRequestSourceTypeId() {
590 return requestSourceTypeId;
591 }
592
593 public void setRequestSourceTypeId(Integer requestSourceTypeId) {
594 this.requestSourceTypeId = requestSourceTypeId;
595 }
596
597 public OleRequestSourceType getOleRequestSourceType() {
598 return oleRequestSourceType;
599 }
600
601 public void setOleRequestSourceType(OleRequestSourceType oleRequestSourceType) {
602 this.oleRequestSourceType = oleRequestSourceType;
603 }
604
605
606
607
608
609
610 public Integer getReceiptStatusId() {
611 return receiptStatusId;
612 }
613
614
615
616
617
618
619 public void setReceiptStatusId(Integer receiptStatusId) {
620 this.receiptStatusId = receiptStatusId;
621 }
622
623
624
625
626
627
628 public OleReceiptStatus getOleReceiptStatus() {
629 return oleReceiptStatus;
630 }
631
632
633
634
635
636
637 public void setOleReceiptStatus(OleReceiptStatus oleReceiptStatus) {
638 this.oleReceiptStatus = oleReceiptStatus;
639 }
640
641 public KualiDecimal getItemListPrice() {
642 return itemListPrice;
643 }
644
645 public void setItemListPrice(KualiDecimal itemListPrice) {
646 this.itemListPrice = itemListPrice;
647 }
648
649 public KualiDecimal getItemDiscount() {
650 return itemDiscount;
651 }
652
653 public void setItemDiscount(KualiDecimal itemDiscount) {
654 this.itemDiscount = itemDiscount;
655 }
656
657 public String getItemDiscountType() {
658 return itemDiscountType;
659 }
660
661 public void setItemDiscountType(String itemDiscountType) {
662 this.itemDiscountType = itemDiscountType;
663 }
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678 public Integer getNoteTypeId() {
679 return noteTypeId;
680 }
681
682
683
684
685
686
687 public void setNoteTypeId(Integer noteTypeId) {
688 this.noteTypeId = noteTypeId;
689 }
690
691
692
693
694
695
696 public String getNote() {
697 return note;
698 }
699
700
701
702
703
704
705 public void setNote(String note) {
706 this.note = note;
707 }
708
709
710
711
712
713
714 public List<OleNotes> getNotes() {
715 return notes;
716 }
717
718
719
720
721 public void setNotes(List<OleNotes> notes) {
722 this.notes = notes;
723 }
724
725 public String getItemCurrencyType() {
726 return itemCurrencyType;
727 }
728
729 public void setItemCurrencyType(String itemCurrencyType) {
730 this.itemCurrencyType = itemCurrencyType;
731 }
732
733 public KualiDecimal getItemForeignListPrice() {
734 return itemForeignListPrice;
735 }
736
737 public void setItemForeignListPrice(KualiDecimal itemForeignListPrice) {
738 this.itemForeignListPrice = itemForeignListPrice;
739 }
740
741 public KualiDecimal getItemForeignDiscount() {
742 return itemForeignDiscount;
743 }
744
745 public void setItemForeignDiscount(KualiDecimal itemForeignDiscount) {
746 this.itemForeignDiscount = itemForeignDiscount;
747 }
748
749 public String getItemForeignDiscountType() {
750 return itemForeignDiscountType;
751 }
752
753 public void setItemForeignDiscountType(String itemForeignDiscountType) {
754 this.itemForeignDiscountType = itemForeignDiscountType;
755 }
756
757 public KualiDecimal getItemForeignDiscountAmt() {
758 return itemForeignDiscountAmt;
759 }
760
761 public void setItemForeignDiscountAmt(KualiDecimal itemForeignDiscountAmt) {
762 this.itemForeignDiscountAmt = itemForeignDiscountAmt;
763 }
764
765 public KualiDecimal getItemForeignUnitCost() {
766 return itemForeignUnitCost;
767 }
768
769 public void setItemForeignUnitCost(KualiDecimal itemForeignUnitCost) {
770 this.itemForeignUnitCost = itemForeignUnitCost;
771 }
772
773 public KualiDecimal getItemExchangeRate() {
774 return itemExchangeRate;
775 }
776
777 public void setItemExchangeRate(KualiDecimal itemExchangeRate) {
778 this.itemExchangeRate = itemExchangeRate;
779 }
780
781 public KualiDecimal getItemUnitCostUSD() {
782 return itemUnitCostUSD;
783 }
784
785 public void setItemUnitCostUSD(KualiDecimal itemUnitCostUSD) {
786 this.itemUnitCostUSD = itemUnitCostUSD;
787 }
788
789 public Integer getCategoryId() {
790 return categoryId;
791 }
792
793 public void setCategoryId(Integer categoryId) {
794 this.categoryId = categoryId;
795 }
796
797 public Integer getFormatTypeId() {
798 return formatTypeId;
799 }
800
801 public void setFormatTypeId(Integer formatTypeId) {
802 this.formatTypeId = formatTypeId;
803 }
804
805 public Integer getItemPriceSourceId() {
806 return itemPriceSourceId;
807 }
808
809 public void setItemPriceSourceId(Integer itemPriceSourceId) {
810 this.itemPriceSourceId = itemPriceSourceId;
811 }
812
813 public OleItemPriceSource getItemPriceSource() {
814 return itemPriceSource;
815 }
816
817 public void setItemPriceSource(OleItemPriceSource itemPriceSource) {
818 this.itemPriceSource = itemPriceSource;
819 }
820
821 public OleCategory getCategory() {
822 return category;
823 }
824
825 public void setCategory(OleCategory category) {
826 this.category = category;
827 }
828
829 public OleFormatType getFormatTypeName() {
830 return formatTypeName;
831 }
832
833 public void setFormatTypeName(OleFormatType formatTypeName) {
834 this.formatTypeName = formatTypeName;
835 }
836
837 public boolean isItemRouteToRequestorIndicator() {
838 return itemRouteToRequestorIndicator;
839 }
840
841 public void setItemRouteToRequestorIndicator(boolean itemRouteToRequestorIndicator) {
842 this.itemRouteToRequestorIndicator = itemRouteToRequestorIndicator;
843 }
844
845 public boolean isItemPublicViewIndicator() {
846 return itemPublicViewIndicator;
847 }
848
849 public void setItemPublicViewIndicator(boolean itemPublicViewIndicator) {
850 this.itemPublicViewIndicator = itemPublicViewIndicator;
851 }
852
853 public String getInitialDate() {
854 return initialDate;
855 }
856
857 public void setInitialDate(String initialDate) {
858 this.initialDate = initialDate;
859 }
860
861 public String getDocumentType() {
862 return documentType;
863 }
864
865 public void setDocumentType(String documentType) {
866 this.documentType = documentType;
867 }
868
869 public String getInitiator() {
870 return initiator;
871 }
872
873 public void setInitiator(String initiator) {
874 this.initiator = initiator;
875 }
876
877
878
879
880 @Override
881 public Class getAccountingLineClass() {
882 return OleRequisitionAccount.class;
883 }
884
885 public String getVendorItemPoNumber() {
886 return vendorItemPoNumber;
887 }
888
889 public void setVendorItemPoNumber(String vendorItemPoNumber) {
890 this.vendorItemPoNumber = vendorItemPoNumber;
891 }
892
893 public OleOrderRecord getOleOrderRecord() {
894 return oleOrderRecord;
895 }
896
897 public void setOleOrderRecord(OleOrderRecord oleOrderRecord) {
898 this.oleOrderRecord = oleOrderRecord;
899 }
900
901 public OLEEResourceOrderRecord getOleEResourceOrderRecord() {
902 return oleEResourceOrderRecord;
903 }
904
905 public void setOleEResourceOrderRecord(OLEEResourceOrderRecord oleEResourceOrderRecord) {
906 this.oleEResourceOrderRecord = oleEResourceOrderRecord;
907 }
908
909
910
911
912
913
914 public KualiDecimal getItemForiegnExtendedPrice() {
915 return itemForiegnExtendedPrice;
916 }
917
918
919
920
921
922
923 public void setItemForiegnExtendedPrice(KualiDecimal itemForiegnExtendedPrice) {
924 this.itemForiegnExtendedPrice = itemForiegnExtendedPrice;
925 }
926
927
928
929
930
931
932 public String getItemLocation() {
933 return itemLocation;
934 }
935
936
937
938
939
940
941 public void setItemLocation(String itemLocation) {
942 this.itemLocation = itemLocation;
943 }
944
945
946
947
948
949
950 public Integer getItemCopiesId() {
951 return itemCopiesId;
952 }
953
954
955
956
957
958
959 public void setItemCopiesId(Integer itemCopiesId) {
960 this.itemCopiesId = itemCopiesId;
961 }
962
963
964
965
966
967
968 public KualiInteger getParts() {
969 return parts;
970 }
971
972
973
974
975
976
977 public void setParts(KualiInteger parts) {
978 this.parts = parts;
979 }
980
981
982
983
984
985
986 public KualiDecimal getItemCopies() {
987 return itemCopies;
988 }
989
990
991
992
993
994
995 public void setItemCopies(KualiDecimal itemCopies) {
996 this.itemCopies = itemCopies;
997 }
998
999
1000
1001
1002
1003
1004 public String getPartEnumeration() {
1005 return partEnumeration;
1006 }
1007
1008
1009
1010
1011
1012
1013 public void setPartEnumeration(String partEnumeration) {
1014 this.partEnumeration = partEnumeration;
1015 }
1016
1017
1018
1019
1020
1021
1022 public String getLocationCopies() {
1023 return locationCopies;
1024 }
1025
1026
1027
1028
1029
1030
1031 public void setLocationCopies(String locationCopies) {
1032 this.locationCopies = locationCopies;
1033 }
1034
1035
1036
1037
1038
1039
1040 public KualiInteger getStartingCopyNumber() {
1041 return startingCopyNumber;
1042 }
1043
1044
1045
1046
1047
1048
1049 public void setStartingCopyNumber(KualiInteger startingCopyNumber) {
1050 this.startingCopyNumber = startingCopyNumber;
1051 }
1052
1053
1054
1055
1056
1057
1058 public List<OleCopies> getCopies() {
1059 return copies;
1060 }
1061
1062
1063
1064
1065
1066
1067 public void setCopies(List<OleCopies> copies) {
1068 this.copies = copies;
1069 }
1070
1071
1072
1073
1074
1075
1076 public String getPaymentHistory() {
1077 return paymentHistory;
1078 }
1079
1080
1081
1082
1083
1084
1085 public void setPaymentHistory(String paymentHistory) {
1086 this.paymentHistory = paymentHistory;
1087 }
1088
1089
1090
1091
1092
1093
1094 public List<OleRequisitionPaymentHistory> getRequisitionPaymentHistory() {
1095 return requisitionPaymentHistory;
1096 }
1097
1098
1099
1100
1101
1102
1103 public void setRequisitionPaymentHistory(List<OleRequisitionPaymentHistory> requisitionPaymentHistory) {
1104 this.requisitionPaymentHistory = requisitionPaymentHistory;
1105 }
1106
1107
1108 public String getDocFormat() {
1109 return docFormat;
1110 }
1111
1112 public void setDocFormat(String docFormat) {
1113 this.docFormat = docFormat;
1114 }
1115
1116
1117
1118
1119
1120
1121 public String getNoOfCopiesReceived() {
1122 return noOfCopiesReceived;
1123 }
1124
1125
1126
1127
1128
1129
1130 public void setNoOfCopiesReceived(String noOfCopiesReceived) {
1131 this.noOfCopiesReceived = noOfCopiesReceived;
1132 }
1133
1134
1135
1136
1137
1138
1139 public String getNoOfPartsReceived() {
1140 return noOfPartsReceived;
1141 }
1142
1143
1144
1145
1146
1147
1148 public void setNoOfPartsReceived(String noOfPartsReceived) {
1149 this.noOfPartsReceived = noOfPartsReceived;
1150 }
1151
1152
1153
1154
1155
1156
1157 public String getItemTypeDescription() {
1158 return itemTypeDescription;
1159 }
1160
1161
1162
1163
1164
1165
1166 public void setItemTypeDescription(String itemTypeDescription) {
1167 this.itemTypeDescription = itemTypeDescription;
1168 }
1169
1170
1171
1172
1173
1174
1175 public OleRequisitionCopies getOleRequisitionCopy() {
1176 return oleRequisitionCopy;
1177 }
1178
1179
1180
1181
1182
1183
1184 public void setOleRequisitionCopy(OleRequisitionCopies oleRequisitionCopy) {
1185 this.oleRequisitionCopy = oleRequisitionCopy;
1186 }
1187
1188
1189
1190
1191
1192
1193 public KualiInteger getOleItemQuantity() {
1194 return new KualiInteger(super.getItemQuantity().intValue());
1195 }
1196
1197
1198
1199
1200
1201
1202 public void setOleItemQuantity(KualiInteger oleItemQuantity) {
1203 super.setItemQuantity(new KualiDecimal(oleItemQuantity.intValue()));
1204 }
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216 public OLERequestorPatronDocument getOlePatronDocument() {
1217 return olePatronDocument;
1218 }
1219
1220
1221
1222
1223
1224
1225 public void setOlePatronDocument(OLERequestorPatronDocument olePatronDocument) {
1226 this.olePatronDocument = olePatronDocument;
1227 }
1228
1229
1230
1231
1232
1233
1234 public String getOlePatronId() {
1235 return olePatronId;
1236 }
1237
1238
1239
1240
1241
1242
1243 public void setOlePatronId(String olePatronId) {
1244 this.olePatronId = olePatronId;
1245 }
1246
1247
1248
1249
1250
1251
1252 public void setFirstName(String firstName) {
1253 this.firstName = firstName;
1254 }
1255
1256
1257
1258
1259
1260
1261 public String getFirstName() {
1262 return firstName;
1263 }
1264
1265 public String getCaption() {
1266 return caption;
1267 }
1268
1269 public void setCaption(String caption) {
1270 this.caption = caption;
1271 }
1272
1273 public String getVolumeNumber() {
1274 return volumeNumber;
1275 }
1276
1277 public void setVolumeNumber(String volumeNumber) {
1278 this.volumeNumber = volumeNumber;
1279 }
1280
1281 public String getEnumeration() {
1282 return enumeration;
1283 }
1284
1285 public void setEnumeration(String enumeration) {
1286 this.enumeration = enumeration;
1287 }
1288
1289 public String getLocation() {
1290 return location;
1291 }
1292
1293 public void setLocation(String location) {
1294 this.location = location;
1295 }
1296
1297 public String getCopyNumber() {
1298 return copyNumber;
1299 }
1300
1301 public void setCopyNumber(String copyNumber) {
1302 this.copyNumber = copyNumber;
1303 }
1304
1305 public String getReceiptStatus() {
1306 return receiptStatus;
1307 }
1308
1309 public void setReceiptStatus(String receiptStatus) {
1310 this.receiptStatus = receiptStatus;
1311 }
1312
1313 public List<OleCopy> getCopyList() {
1314 return copyList;
1315 }
1316
1317 public void setCopyList(List<OleCopy> copyList) {
1318 this.copyList = copyList;
1319 }
1320
1321 public List<OleCopy> getDeletedCopiesList() {
1322 return deletedCopiesList;
1323 }
1324
1325 public void setDeletedCopiesList(List<OleCopy> deletedCopiesList) {
1326 this.deletedCopiesList = deletedCopiesList;
1327 }
1328
1329 public List<OleInvoiceDocument> getInvoiceDocuments() {
1330 return invoiceDocuments;
1331 }
1332
1333 public void setInvoiceDocuments(List<OleInvoiceDocument> invoiceDocuments) {
1334 this.invoiceDocuments = invoiceDocuments;
1335 }
1336
1337 public BibId getBibTree() {
1338 return bibTree;
1339 }
1340
1341 public void setBibTree(BibId bibTree) {
1342 this.bibTree = bibTree;
1343 }
1344
1345 public BibInfoRecord getBibInfoRecord() {
1346 return bibInfoRecord;
1347 }
1348
1349 public void setBibInfoRecord(BibInfoRecord bibInfoRecord) {
1350 this.bibInfoRecord = bibInfoRecord;
1351 }
1352
1353 public String getOleERSIdentifier() {
1354 if (this.getCopyList()!=null && this.getCopyList().size()>0){
1355 return this.getCopyList().get(0).getOleERSIdentifier();
1356 }
1357 return oleERSIdentifier;
1358 }
1359
1360 public void setOleERSIdentifier(String oleERSIdentifier) {
1361 this.oleERSIdentifier = oleERSIdentifier;
1362 }
1363
1364 public String geteResLink() {
1365 if (this.getOleERSIdentifier() != null) {
1366 OLEEResourceRecordDocument oleeResourceRecordDocument = KRADServiceLocator.getBusinessObjectService().findBySinglePrimaryKey(OLEEResourceRecordDocument.class, this.getOleERSIdentifier());
1367 if (oleeResourceRecordDocument != null) {
1368 String oleurl = ConfigContext.getCurrentContextConfig().getProperty("ole.url");
1369 String url = oleurl + "/ole-kr-krad/" + "oleERSController?viewId=OLEEResourceRecordView&" + KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.DOC_HANDLER_METHOD + "&" + KRADConstants.PARAMETER_DOC_ID + "=" + oleeResourceRecordDocument.getDocumentNumber() + "&" + KRADConstants.PARAMETER_COMMAND + "=" + KewApiConstants.DOCSEARCH_COMMAND;
1370 return url;
1371
1372 }
1373 }
1374 return eResLink;
1375 }
1376
1377 public void seteResLink(String eResLink) {
1378 this.eResLink = eResLink;
1379 }
1380
1381 public String getPurposeId() {
1382 return purposeId;
1383 }
1384
1385 public void setPurposeId(String purposeId) {
1386 this.purposeId = purposeId;
1387 }
1388
1389 public String getFundCode() {
1390 return fundCode;
1391 }
1392
1393 public void setFundCode(String fundCode) {
1394 this.fundCode = fundCode;
1395 }
1396 }