View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.apache.commons.lang.StringUtils;
4   import org.kuali.ole.module.purap.PurapConstants;
5   import org.kuali.ole.select.form.OLESerialReceivingForm;
6   import org.kuali.rice.kew.api.KewApiConstants;
7   import org.kuali.rice.kew.api.KewApiServiceLocator;
8   import org.kuali.rice.kew.api.doctype.DocumentType;
9   import org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange;
10  import org.kuali.rice.krad.document.TransactionalDocumentBase;
11  import org.kuali.rice.krad.util.KRADConstants;
12  
13  import java.sql.Timestamp;
14  import java.util.Date;
15  import java.util.List;
16  
17  /**
18   * Created with IntelliJ IDEA.
19   * User: vivekb
20   * Date: 6/26/13
21   * Time: 3:56 PM
22   * To change this template use File | Settings | File Templates.
23   */
24  public class OLESerialReceivingDocument extends TransactionalDocumentBase {
25      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OLESerialReceivingDocument.class);
26      private String serialReceivingRecordId;
27      private Date actionDate;
28      private String actionInterval;
29      private String bibId;
30      private String localId;
31      private String boundLocation;
32      private String callNumber;
33      private String receivingRecordType;
34      private String chronologyCaptionLevel1;
35      private String chronologyCaptionLevel2;
36      private String chronologyCaptionLevel3;
37      private String chronologyCaptionLevel4;
38      private boolean claim;
39      private String claimType;
40      private String claimIntervalInformation;
41      private String copyNumber;
42      private String corporateAuthor;
43      private boolean createItem;
44      private String enumerationCaptionLevel1;
45      private String enumerationCaptionLevel2;
46      private String enumerationCaptionLevel3;
47      private String enumerationCaptionLevel4;
48      private String enumerationCaptionLevel5;
49      private String enumerationCaptionLevel6;
50      private String generalReceivingNote;
51      private String instanceId;
52      private String issn;
53      private String poId;
54      private boolean printLabel;
55      private String publisher;
56      private String serialReceiptLocation;
57      private String serialReceivingRecord;
58      private String subscriptionStatus;
59      private String title;
60      private String treatmentInstructionNote;
61      private String unboundLocation;
62      private String urgentNote;
63      private String vendorId;
64      private Timestamp createDate;
65      private String operatorId;
66      private String machineId;
67      private boolean publicDisplay;
68      private Timestamp subscriptionStatusDate;
69      private boolean specialIssueFlag;
70      private String specialIssueNote;
71      private boolean treatmentNoteFlag;
72      private boolean active = true;
73      private String treatmentDialogNote;
74      private List<OLESerialReceivingHistory> oleSerialReceivingHistoryList;
75      private List<OLESerialReceivingHistory> mainSerialReceivingHistoryList;
76      private List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList;
77      private List<OLESerialReceivingHistory> indexSerialReceivingHistoryList;
78      private String itemUUID;
79      private String enumCaption1;
80      private String enumCaption2;
81      private String enumCaption3;
82      private String enumCaption4;
83      private String enumCaption5;
84      private String enumCaption6;
85      private String enumLevel1;
86      private String enumLevel2;
87      private String enumLevel3;
88      private String enumLevel4;
89      private String enumLevel5;
90      private String enumLevel6;
91      private String chronCaption1;
92      private String chronCaption2;
93      private String chronCaption3;
94      private String chronCaption4;
95      private String chronLevel1;
96      private String chronLevel2;
97      private String chronLevel3;
98      private String chronLevel4;
99      private String serialReceiptHistoryId;
100     private boolean returnToSearch;
101     private String confirmMessage;
102     private String urgentDialogNote;
103     private boolean urgentNoteFlag;
104     private String vendorAliasName;
105     private String vendorName;
106     private String searchLimit;
107     private String poIdLink;
108     private String statusCode;
109     private List<OLESerialRelatedPODocument> oleSerialRelatedPODocuments;
110     private List<OLESerialReceivingType> oleSerialReceivingTypes;
111     private boolean linkPO;
112 
113     private String serialPOErrMsg ;
114 
115     private String enumCaption1Length;
116     private String enumCaption2Length;
117     private String enumCaption3Length;
118     private String enumCaption4Length;
119     private String enumCaption5Length;
120     private String enumCaption6Length;
121     private String chronCaption1Length;
122     private String chronCaption2Length;
123     private String chronCaption3Length;
124     private String chronCaption4Length;
125 
126     private boolean itemCheckFlag=true;
127 
128     private String tempInstanceId;
129 
130     private boolean claimNoteFlag;
131     private boolean claimAgainNoteFlag;
132     private String claimDialogNote;
133 
134     private boolean validPo = true;
135     private boolean availableReceivingRecordType = true;
136     private boolean availableSerialReceiptLocation = true;
137     private boolean validSubscriptionStatus = true;
138     private boolean validBibAndInstance = true;
139     private boolean recordAlreadyExist =false;
140     private boolean validRecordType = true;
141     private boolean validChildRecordType = true;
142     private boolean validChildHistoryRecordType = true;
143 
144     private String enumerationHistoryCaptionLevel1;
145     private String enumerationHistoryCaptionLevel2;
146     private String enumerationHistoryCaptionLevel3;
147     private String enumerationHistoryCaptionLevel4;
148     private String enumerationHistoryCaptionLevel5;
149     private String enumerationHistoryCaptionLevel6;
150 
151     private String chronologyHistoryCaptionLevel1;
152     private String chronologyHistoryCaptionLevel2;
153     private String chronologyHistoryCaptionLevel3;
154     private String chronologyHistoryCaptionLevel4;
155 
156     private boolean displayMainHistory = false;
157 
158     private boolean displaySupplementaryHistory = false;
159 
160     private boolean displayIndexHistory = false;
161 
162     private String currentActionPerformed;
163 
164     public boolean isDisplayMainHistory() {
165         return displayMainHistory;
166     }
167 
168     public void setDisplayMainHistory(boolean displayMainHistory) {
169         this.displayMainHistory = displayMainHistory;
170     }
171 
172     public boolean isDisplaySupplementaryHistory() {
173         return displaySupplementaryHistory;
174     }
175 
176     public void setDisplaySupplementaryHistory(boolean displaySupplementaryHistory) {
177         this.displaySupplementaryHistory = displaySupplementaryHistory;
178     }
179 
180     public boolean isDisplayIndexHistory() {
181         return displayIndexHistory;
182     }
183 
184     public void setDisplayIndexHistory(boolean displayIndexHistory) {
185         this.displayIndexHistory = displayIndexHistory;
186     }
187 
188     public String getChronologyHistoryCaptionLevel1() {
189         return chronologyHistoryCaptionLevel1;
190     }
191 
192     public void setChronologyHistoryCaptionLevel1(String chronologyHistoryCaptionLevel1) {
193         this.chronologyHistoryCaptionLevel1 = chronologyHistoryCaptionLevel1;
194     }
195 
196     public String getChronologyHistoryCaptionLevel2() {
197         return chronologyHistoryCaptionLevel2;
198     }
199 
200     public void setChronologyHistoryCaptionLevel2(String chronologyHistoryCaptionLevel2) {
201         this.chronologyHistoryCaptionLevel2 = chronologyHistoryCaptionLevel2;
202     }
203 
204     public String getChronologyHistoryCaptionLevel3() {
205         return chronologyHistoryCaptionLevel3;
206     }
207 
208     public void setChronologyHistoryCaptionLevel3(String chronologyHistoryCaptionLevel3) {
209         this.chronologyHistoryCaptionLevel3 = chronologyHistoryCaptionLevel3;
210     }
211 
212     public String getChronologyHistoryCaptionLevel4() {
213         return chronologyHistoryCaptionLevel4;
214     }
215 
216     public void setChronologyHistoryCaptionLevel4(String chronologyHistoryCaptionLevel4) {
217         this.chronologyHistoryCaptionLevel4 = chronologyHistoryCaptionLevel4;
218     }
219 
220     public String getEnumerationHistoryCaptionLevel1() {
221         return enumerationHistoryCaptionLevel1;
222     }
223 
224     public void setEnumerationHistoryCaptionLevel1(String enumerationHistoryCaptionLevel1) {
225         this.enumerationHistoryCaptionLevel1 = enumerationHistoryCaptionLevel1;
226     }
227 
228     public String getEnumerationHistoryCaptionLevel2() {
229         return enumerationHistoryCaptionLevel2;
230     }
231 
232     public void setEnumerationHistoryCaptionLevel2(String enumerationHistoryCaptionLevel2) {
233         this.enumerationHistoryCaptionLevel2 = enumerationHistoryCaptionLevel2;
234     }
235 
236     public String getEnumerationHistoryCaptionLevel3() {
237         return enumerationHistoryCaptionLevel3;
238     }
239 
240     public void setEnumerationHistoryCaptionLevel3(String enumerationHistoryCaptionLevel3) {
241         this.enumerationHistoryCaptionLevel3 = enumerationHistoryCaptionLevel3;
242     }
243 
244     public String getEnumerationHistoryCaptionLevel4() {
245         return enumerationHistoryCaptionLevel4;
246     }
247 
248     public void setEnumerationHistoryCaptionLevel4(String enumerationHistoryCaptionLevel4) {
249         this.enumerationHistoryCaptionLevel4 = enumerationHistoryCaptionLevel4;
250     }
251 
252     public String getEnumerationHistoryCaptionLevel5() {
253         return enumerationHistoryCaptionLevel5;
254     }
255 
256     public void setEnumerationHistoryCaptionLevel5(String enumerationHistoryCaptionLevel5) {
257         this.enumerationHistoryCaptionLevel5 = enumerationHistoryCaptionLevel5;
258     }
259 
260     public String getEnumerationHistoryCaptionLevel6() {
261         return enumerationHistoryCaptionLevel6;
262     }
263 
264     public void setEnumerationHistoryCaptionLevel6(String enumerationHistoryCaptionLevel6) {
265         this.enumerationHistoryCaptionLevel6 = enumerationHistoryCaptionLevel6;
266     }
267 
268     public boolean isRecordAlreadyExist() {
269         return recordAlreadyExist;
270     }
271 
272     public void setRecordAlreadyExist(boolean recordAlreadyExist) {
273         this.recordAlreadyExist = recordAlreadyExist;
274     }
275 
276     public boolean isValidBibAndInstance() {
277         return validBibAndInstance;
278     }
279 
280     public void setValidBibAndInstance(boolean validBibAndInstance) {
281         this.validBibAndInstance = validBibAndInstance;
282     }
283 
284     public boolean isValidPo() {
285         return validPo;
286     }
287 
288     public void setValidPo(boolean validPo) {
289         this.validPo = validPo;
290     }
291 
292     public boolean isAvailableReceivingRecordType() {
293         return availableReceivingRecordType;
294     }
295 
296     public void setAvailableReceivingRecordType(boolean availableReceivingRecordType) {
297         this.availableReceivingRecordType = availableReceivingRecordType;
298     }
299 
300     public boolean isAvailableSerialReceiptLocation() {
301         return availableSerialReceiptLocation;
302     }
303 
304     public void setAvailableSerialReceiptLocation(boolean availableSerialReceiptLocation) {
305         this.availableSerialReceiptLocation = availableSerialReceiptLocation;
306     }
307 
308     public boolean isValidSubscriptionStatus() {
309         return validSubscriptionStatus;
310     }
311 
312     public void setValidSubscriptionStatus(boolean validSubscriptionStatus) {
313         this.validSubscriptionStatus = validSubscriptionStatus;
314     }
315 
316     public boolean isClaimAgainNoteFlag() {
317         return claimAgainNoteFlag;
318     }
319 
320     public void setClaimAgainNoteFlag(boolean claimAgainNoteFlag) {
321         this.claimAgainNoteFlag = claimAgainNoteFlag;
322     }
323 
324     public String getClaimDialogNote() {
325         return claimDialogNote;
326     }
327 
328     public void setClaimDialogNote(String claimDialogNote) {
329         this.claimDialogNote = claimDialogNote;
330     }
331 
332     public boolean isClaimNoteFlag() {
333         return claimNoteFlag;
334     }
335 
336     public void setClaimNoteFlag(boolean claimNoteFlag) {
337         this.claimNoteFlag = claimNoteFlag;
338     }
339 
340     public String getTempInstanceId() {
341         return tempInstanceId;
342     }
343 
344     public void setTempInstanceId(String tempInstanceId) {
345         this.tempInstanceId = tempInstanceId;
346     }
347 
348     public boolean isItemCheckFlag() {
349         return itemCheckFlag;
350     }
351 
352     public void setItemCheckFlag(boolean itemCheckFlag) {
353         this.itemCheckFlag = itemCheckFlag;
354     }
355 
356     public List<OLESerialReceivingType> getOleSerialReceivingTypes() {
357         return oleSerialReceivingTypes;
358     }
359 
360     public void setOleSerialReceivingTypes(List<OLESerialReceivingType> oleSerialReceivingTypes) {
361         this.oleSerialReceivingTypes = oleSerialReceivingTypes;
362     }
363 
364     public String getSerialPOErrMsg() {
365         return serialPOErrMsg;
366     }
367 
368     public void setSerialPOErrMsg(String serialPOErrMsg) {
369         this.serialPOErrMsg = serialPOErrMsg;
370     }
371 
372     public boolean isLinkPO() {
373         return linkPO;
374     }
375 
376     public void setLinkPO(boolean linkPO) {
377         this.linkPO = linkPO;
378     }
379 
380     public List<OLESerialRelatedPODocument> getOleSerialRelatedPODocuments() {
381         return oleSerialRelatedPODocuments;
382     }
383 
384     public void setOleSerialRelatedPODocuments(List<OLESerialRelatedPODocument> oleSerialRelatedPODocuments) {
385         this.oleSerialRelatedPODocuments = oleSerialRelatedPODocuments;
386     }
387 
388     public String getStatusCode() {
389         return statusCode;
390     }
391 
392     public void setStatusCode(String statusCode) {
393         this.statusCode = statusCode;
394     }
395 
396     public String getPoIdLink() {
397         return poIdLink;
398     }
399 
400     public void setPoIdLink(String poIdLink) {
401         this.poIdLink = poIdLink;
402     }
403 
404     public List<OLESerialReceivingHistory> getMainSerialReceivingHistoryList() {
405         return mainSerialReceivingHistoryList;
406     }
407 
408     public void setMainSerialReceivingHistoryList(List<OLESerialReceivingHistory> mainSerialReceivingHistoryList) {
409         this.mainSerialReceivingHistoryList = mainSerialReceivingHistoryList;
410     }
411 
412     public List<OLESerialReceivingHistory> getSupplementSerialReceivingHistoryList() {
413         return supplementSerialReceivingHistoryList;
414     }
415 
416     public void setSupplementSerialReceivingHistoryList(List<OLESerialReceivingHistory> supplementSerialReceivingHistoryList) {
417         this.supplementSerialReceivingHistoryList = supplementSerialReceivingHistoryList;
418     }
419 
420     public List<OLESerialReceivingHistory> getIndexSerialReceivingHistoryList() {
421         return indexSerialReceivingHistoryList;
422     }
423 
424     public void setIndexSerialReceivingHistoryList(List<OLESerialReceivingHistory> indexSerialReceivingHistoryList) {
425         this.indexSerialReceivingHistoryList = indexSerialReceivingHistoryList;
426     }
427 
428     public String getChronCaption1() {
429         return chronCaption1;
430     }
431 
432     public void setChronCaption1(String chronCaption1) {
433         this.chronCaption1 = chronCaption1;
434     }
435 
436     public String getChronCaption2() {
437         return chronCaption2;
438     }
439 
440     public void setChronCaption2(String chronCaption2) {
441         this.chronCaption2 = chronCaption2;
442     }
443 
444     public String getChronCaption3() {
445         return chronCaption3;
446     }
447 
448     public void setChronCaption3(String chronCaption3) {
449         this.chronCaption3 = chronCaption3;
450     }
451 
452     public String getChronCaption4() {
453         return chronCaption4;
454     }
455 
456     public void setChronCaption4(String chronCaption4) {
457         this.chronCaption4 = chronCaption4;
458     }
459 
460     public String getChronLevel1() {
461         return chronLevel1;
462     }
463 
464     public void setChronLevel1(String chronLevel1) {
465         this.chronLevel1 = chronLevel1;
466     }
467 
468     public String getChronLevel2() {
469         return chronLevel2;
470     }
471 
472     public void setChronLevel2(String chronLevel2) {
473         this.chronLevel2 = chronLevel2;
474     }
475 
476     public String getChronLevel3() {
477         return chronLevel3;
478     }
479 
480     public void setChronLevel3(String chronLevel3) {
481         this.chronLevel3 = chronLevel3;
482     }
483 
484     public String getChronLevel4() {
485         return chronLevel4;
486     }
487 
488     public void setChronLevel4(String chronLevel4) {
489         this.chronLevel4 = chronLevel4;
490     }
491 
492     public String getUrgentDialogNote() {
493         return urgentDialogNote;
494     }
495 
496     public void setUrgentDialogNote(String urgentDialogNote) {
497         this.urgentDialogNote = urgentDialogNote;
498     }
499 
500     public boolean isUrgentNoteFlag() {
501         return urgentNoteFlag;
502     }
503 
504     public void setUrgentNoteFlag(boolean urgentNoteFlag) {
505         this.urgentNoteFlag = urgentNoteFlag;
506     }
507 
508     public String getConfirmMessage() {
509         return confirmMessage;
510     }
511 
512     public void setConfirmMessage(String confirmMessage) {
513         this.confirmMessage = confirmMessage;
514     }
515 
516     public boolean isReturnToSearch() {
517         return returnToSearch;
518     }
519 
520     public void setReturnToSearch(boolean returnToSearch) {
521         this.returnToSearch = returnToSearch;
522     }
523 
524     public String getSerialReceiptHistoryId() {
525         return serialReceiptHistoryId;
526     }
527 
528     public void setSerialReceiptHistoryId(String serialReceiptHistoryId) {
529         this.serialReceiptHistoryId = serialReceiptHistoryId;
530     }
531 
532     public OLESerialReceivingForm form;
533 
534     public OLESerialReceivingForm getForm() {
535         return form;
536     }
537 
538     public void setForm(OLESerialReceivingForm form) {
539         this.form = form;
540     }
541 
542     public String getSerialReceivingRecordId() {
543         return serialReceivingRecordId;
544     }
545 
546     public void setSerialReceivingRecordId(String serialReceivingRecordId) {
547         this.serialReceivingRecordId = serialReceivingRecordId;
548     }
549 
550     public Date getActionDate() {
551         return actionDate;
552     }
553 
554     public void setActionDate(Date actionDate) {
555         this.actionDate = actionDate;
556     }
557 
558     public String getActionInterval() {
559         return actionInterval;
560     }
561 
562     public void setActionInterval(String actionInterval) {
563         this.actionInterval = actionInterval;
564     }
565 
566     public String getBibId() {
567         return bibId;
568     }
569 
570     public void setBibId(String bibId) {
571         this.bibId = bibId;
572     }
573 
574     public String getBoundLocation() {
575         return boundLocation;
576     }
577 
578     public void setBoundLocation(String boundLocation) {
579         this.boundLocation = boundLocation;
580     }
581 
582     public String getCallNumber() {
583         return callNumber;
584     }
585 
586     public void setCallNumber(String callNumber) {
587         this.callNumber = callNumber;
588     }
589 
590     public String getReceivingRecordType() {
591         return receivingRecordType;
592     }
593 
594     public void setReceivingRecordType(String receivingRecordType) {
595         this.receivingRecordType = receivingRecordType;
596     }
597 
598     public String getChronologyCaptionLevel1() {
599         return chronologyCaptionLevel1;
600     }
601 
602     public void setChronologyCaptionLevel1(String chronologyCaptionLevel1) {
603         this.chronologyCaptionLevel1 = chronologyCaptionLevel1;
604     }
605 
606     public String getChronologyCaptionLevel2() {
607         return chronologyCaptionLevel2;
608     }
609 
610     public void setChronologyCaptionLevel2(String chronologyCaptionLevel2) {
611         this.chronologyCaptionLevel2 = chronologyCaptionLevel2;
612     }
613 
614     public String getChronologyCaptionLevel3() {
615         return chronologyCaptionLevel3;
616     }
617 
618     public void setChronologyCaptionLevel3(String chronologyCaptionLevel3) {
619         this.chronologyCaptionLevel3 = chronologyCaptionLevel3;
620     }
621 
622     public String getChronologyCaptionLevel4() {
623         return chronologyCaptionLevel4;
624     }
625 
626     public void setChronologyCaptionLevel4(String chronologyCaptionLevel4) {
627         this.chronologyCaptionLevel4 = chronologyCaptionLevel4;
628     }
629 
630     public boolean isClaim() {
631         return claim;
632     }
633 
634     public void setClaim(boolean claim) {
635         this.claim = claim;
636     }
637 
638     public String getClaimIntervalInformation() {
639         return claimIntervalInformation;
640     }
641 
642     public void setClaimIntervalInformation(String claimIntervalInformation) {
643         this.claimIntervalInformation = claimIntervalInformation;
644     }
645 
646     public String getCopyNumber() {
647         return copyNumber;
648     }
649 
650     public void setCopyNumber(String copyNumber) {
651         this.copyNumber = copyNumber;
652     }
653 
654     public String getCorporateAuthor() {
655         return corporateAuthor;
656     }
657 
658     public void setCorporateAuthor(String corporateAuthor) {
659         this.corporateAuthor = corporateAuthor;
660     }
661 
662     public boolean isCreateItem() {
663         return createItem;
664     }
665 
666     public void setCreateItem(boolean createItem) {
667         this.createItem = createItem;
668     }
669 
670     public String getEnumerationCaptionLevel1() {
671         return enumerationCaptionLevel1;
672     }
673 
674     public void setEnumerationCaptionLevel1(String enumerationCaptionLevel1) {
675         this.enumerationCaptionLevel1 = enumerationCaptionLevel1;
676     }
677 
678     public String getEnumerationCaptionLevel2() {
679         return enumerationCaptionLevel2;
680     }
681 
682     public void setEnumerationCaptionLevel2(String enumerationCaptionLevel2) {
683         this.enumerationCaptionLevel2 = enumerationCaptionLevel2;
684     }
685 
686     public String getEnumerationCaptionLevel3() {
687         return enumerationCaptionLevel3;
688     }
689 
690     public void setEnumerationCaptionLevel3(String enumerationCaptionLevel3) {
691         this.enumerationCaptionLevel3 = enumerationCaptionLevel3;
692     }
693 
694     public boolean isPublicDisplay() {
695         return publicDisplay;
696     }
697 
698     public void setPublicDisplay(boolean publicDisplay) {
699         this.publicDisplay = publicDisplay;
700     }
701 
702     public String getEnumerationCaptionLevel4() {
703         return enumerationCaptionLevel4;
704     }
705 
706     public void setEnumerationCaptionLevel4(String enumerationCaptionLevel4) {
707         this.enumerationCaptionLevel4 = enumerationCaptionLevel4;
708     }
709 
710     public String getEnumerationCaptionLevel5() {
711         return enumerationCaptionLevel5;
712     }
713 
714     public void setEnumerationCaptionLevel5(String enumerationCaptionLevel5) {
715         this.enumerationCaptionLevel5 = enumerationCaptionLevel5;
716     }
717 
718     public String getEnumerationCaptionLevel6() {
719         return enumerationCaptionLevel6;
720     }
721 
722     public void setEnumerationCaptionLevel6(String enumerationCaptionLevel6) {
723         this.enumerationCaptionLevel6 = enumerationCaptionLevel6;
724     }
725 
726     public String getGeneralReceivingNote() {
727         return generalReceivingNote;
728     }
729 
730     public void setGeneralReceivingNote(String generalReceivingNote) {
731         this.generalReceivingNote = generalReceivingNote;
732     }
733 
734     public String getInstanceId() {
735         return instanceId;
736     }
737 
738     public void setInstanceId(String instanceId) {
739         this.instanceId = instanceId;
740     }
741 
742     public String getIssn() {
743         return issn;
744     }
745 
746     public void setIssn(String issn) {
747         this.issn = issn;
748     }
749 
750     public String getPoId() {
751         return poId;
752     }
753 
754     public void setPoId(String poId) {
755         this.poId = poId;
756     }
757 
758     public boolean isPrintLabel() {
759         return printLabel;
760     }
761 
762     public void setPrintLabel(boolean printLabel) {
763         this.printLabel = printLabel;
764     }
765 
766     public String getPublisher() {
767         return publisher;
768     }
769 
770     public void setPublisher(String publisher) {
771         this.publisher = publisher;
772     }
773 
774     public String getSerialReceiptLocation() {
775         return serialReceiptLocation;
776     }
777 
778     public void setSerialReceiptLocation(String serialReceiptLocation) {
779         this.serialReceiptLocation = serialReceiptLocation;
780     }
781 
782     public String getSerialReceivingRecord() {
783         return serialReceivingRecord;
784     }
785 
786     public void setSerialReceivingRecord(String serialReceivingRecord) {
787         this.serialReceivingRecord = serialReceivingRecord;
788     }
789 
790     public String getSubscriptionStatus() {
791         return subscriptionStatus;
792     }
793 
794     public void setSubscriptionStatus(String subscriptionStatus) {
795         this.subscriptionStatus = subscriptionStatus;
796     }
797 
798     public String getTitle() {
799         return title;
800     }
801 
802     public void setTitle(String title) {
803         this.title = title;
804     }
805 
806     public String getTreatmentInstructionNote() {
807         return treatmentInstructionNote;
808     }
809 
810     public void setTreatmentInstructionNote(String treatmentInstructionNote) {
811         this.treatmentInstructionNote = treatmentInstructionNote;
812     }
813 
814     public String getUnboundLocation() {
815         return unboundLocation;
816     }
817 
818     public void setUnboundLocation(String unboundLocation) {
819         this.unboundLocation = unboundLocation;
820     }
821 
822     public String getUrgentNote() {
823         return urgentNote;
824     }
825 
826     public String getLocalId() {
827         return localId;
828     }
829 
830     public void setLocalId(String localId) {
831         this.localId = localId;
832     }
833 
834     public void setUrgentNote(String urgentNote) {
835         this.urgentNote = urgentNote;
836     }
837 
838     public String getVendorId() {
839         return vendorId;
840     }
841 
842     public void setVendorId(String vendorId) {
843         this.vendorId = vendorId;
844     }
845 
846     public Timestamp getCreateDate() {
847         return createDate;
848     }
849 
850     public void setCreateDate(Timestamp createDate) {
851         this.createDate = createDate;
852     }
853 
854     public String getOperatorId() {
855         return operatorId;
856     }
857 
858     public void setOperatorId(String operatorId) {
859         this.operatorId = operatorId;
860     }
861 
862     public String getMachineId() {
863         return machineId;
864     }
865 
866     public void setMachineId(String machineId) {
867         this.machineId = machineId;
868     }
869 
870     public Timestamp getSubscriptionStatusDate() {
871         return subscriptionStatusDate;
872     }
873 
874     public void setSubscriptionStatusDate(Timestamp subscriptionStatusDate) {
875         this.subscriptionStatusDate = subscriptionStatusDate;
876     }
877 
878     public List<OLESerialReceivingHistory> getOleSerialReceivingHistoryList() {
879         return oleSerialReceivingHistoryList;
880     }
881 
882     public void setOleSerialReceivingHistoryList(List<OLESerialReceivingHistory> oleSerialReceivingHistoryList) {
883         this.oleSerialReceivingHistoryList = oleSerialReceivingHistoryList;
884     }
885 
886     public boolean isSpecialIssueFlag() {
887         return specialIssueFlag;
888     }
889 
890     public void setSpecialIssueFlag(boolean specialIssueFlag) {
891         this.specialIssueFlag = specialIssueFlag;
892     }
893 
894     public String getSpecialIssueNote() {
895         return specialIssueNote;
896     }
897 
898     public void setSpecialIssueNote(String specialIssueNote) {
899         this.specialIssueNote = specialIssueNote;
900     }
901 
902     public boolean isTreatmentNoteFlag() {
903         return treatmentNoteFlag;
904     }
905 
906     public void setTreatmentNoteFlag(boolean treatmentNoteFlag) {
907         this.treatmentNoteFlag = treatmentNoteFlag;
908     }
909 
910     public String getTreatmentDialogNote() {
911         return treatmentDialogNote;
912     }
913 
914     public void setTreatmentDialogNote(String treatmentDialogNote) {
915         this.treatmentDialogNote = treatmentDialogNote;
916     }
917 
918 
919     public boolean isActive() {
920         return active;
921     }
922 
923     public void setActive(boolean active) {
924         this.active = active;
925     }
926 
927     public String getItemUUID() {
928         return itemUUID;
929     }
930 
931     public void setItemUUID(String itemUUID) {
932         this.itemUUID = itemUUID;
933     }
934 
935     public String getEnumCaption1() {
936         return enumCaption1;
937     }
938 
939     public void setEnumCaption1(String enumCaption1) {
940         this.enumCaption1 = enumCaption1;
941     }
942 
943     public String getEnumCaption2() {
944         return enumCaption2;
945     }
946 
947     public void setEnumCaption2(String enumCaption2) {
948         this.enumCaption2 = enumCaption2;
949     }
950 
951     public String getEnumCaption3() {
952         return enumCaption3;
953     }
954 
955     public void setEnumCaption3(String enumCaption3) {
956         this.enumCaption3 = enumCaption3;
957     }
958 
959     public String getEnumCaption4() {
960         return enumCaption4;
961     }
962 
963     public void setEnumCaption4(String enumCaption4) {
964         this.enumCaption4 = enumCaption4;
965     }
966 
967     public String getEnumCaption5() {
968         return enumCaption5;
969     }
970 
971     public void setEnumCaption5(String enumCaption5) {
972         this.enumCaption5 = enumCaption5;
973     }
974 
975     public String getEnumCaption6() {
976         return enumCaption6;
977     }
978 
979     public void setEnumCaption6(String enumCaption6) {
980         this.enumCaption6 = enumCaption6;
981     }
982 
983     public String getEnumLevel1() {
984         return enumLevel1;
985     }
986 
987     public void setEnumLevel1(String enumLevel1) {
988         this.enumLevel1 = enumLevel1;
989     }
990 
991     public String getEnumLevel2() {
992         return enumLevel2;
993     }
994 
995     public void setEnumLevel2(String enumLevel2) {
996         this.enumLevel2 = enumLevel2;
997     }
998 
999     public String getEnumLevel3() {
1000         return enumLevel3;
1001     }
1002 
1003     public void setEnumLevel3(String enumLevel3) {
1004         this.enumLevel3 = enumLevel3;
1005     }
1006 
1007     public String getEnumLevel4() {
1008         return enumLevel4;
1009     }
1010 
1011     public void setEnumLevel4(String enumLevel4) {
1012         this.enumLevel4 = enumLevel4;
1013     }
1014 
1015     public String getEnumLevel5() {
1016         return enumLevel5;
1017     }
1018 
1019     public void setEnumLevel5(String enumLevel5) {
1020         this.enumLevel5 = enumLevel5;
1021     }
1022 
1023     public String getEnumLevel6() {
1024         return enumLevel6;
1025     }
1026 
1027     public void setEnumLevel6(String enumLevel6) {
1028         this.enumLevel6 = enumLevel6;
1029     }
1030 
1031     public String getVendorAliasName() {
1032         return vendorAliasName;
1033     }
1034 
1035     public void setVendorAliasName(String vendorAliasName) {
1036         this.vendorAliasName = vendorAliasName;
1037     }
1038 
1039     public String getVendorName() {
1040         return vendorName;
1041     }
1042 
1043     public void setVendorName(String vendorName) {
1044         this.vendorName = vendorName;
1045     }
1046 
1047     public String getSearchLimit() {
1048         return searchLimit;
1049     }
1050 
1051     public void setSearchLimit(String searchLimit) {
1052         this.searchLimit = searchLimit;
1053     }
1054 
1055     public String getEnumCaption1Length() {
1056         if(StringUtils.isBlank(enumCaption1Length)) {
1057             if(this.getEnumCaption1() != null) {
1058                 return String.valueOf(this.getEnumCaption1().length());
1059             }else {
1060                 return "0";
1061             }
1062         }
1063         return enumCaption1Length;
1064     }
1065 
1066     public void setEnumCaption1Length(String enumCaption1Length) {
1067         this.enumCaption1Length = enumCaption1Length;
1068     }
1069 
1070     public String getEnumCaption2Length() {
1071         if(StringUtils.isBlank(enumCaption2Length)) {
1072             if(this.getEnumCaption2() != null) {
1073                 return String.valueOf(this.getEnumCaption2().length());
1074             }else {
1075                 return "0";
1076             }
1077         }
1078         return enumCaption2Length;
1079     }
1080 
1081     public void setEnumCaption2Length(String enumCaption2Length) {
1082         this.enumCaption2Length = enumCaption2Length;
1083     }
1084 
1085     public String getEnumCaption3Length() {
1086         if(StringUtils.isBlank(enumCaption3Length)) {
1087             if(this.getEnumCaption3() != null) {
1088                 return String.valueOf(this.getEnumCaption3().length());
1089             }else {
1090                 return "0";
1091             }
1092         }
1093         return enumCaption3Length;
1094     }
1095 
1096     public void setEnumCaption3Length(String enumCaption3Length) {
1097         this.enumCaption3Length = enumCaption3Length;
1098     }
1099 
1100     public String getEnumCaption4Length() {
1101         if(StringUtils.isBlank(enumCaption4Length)) {
1102             if(this.getEnumCaption4() != null) {
1103                 return String.valueOf(this.getEnumCaption4().length());
1104             }else {
1105                 return "0";
1106             }
1107         }
1108         return enumCaption4Length;
1109     }
1110 
1111     public void setEnumCaption4Length(String enumCaption4Length) {
1112         this.enumCaption4Length = enumCaption4Length;
1113     }
1114 
1115     public String getEnumCaption5Length() {
1116         if(StringUtils.isBlank(enumCaption5Length)) {
1117             if(this.getEnumCaption5() != null) {
1118                 return String.valueOf(this.getEnumCaption5().length());
1119             }else {
1120                 return "0";
1121             }
1122         }
1123         return enumCaption5Length;
1124     }
1125 
1126     public void setEnumCaption5Length(String enumCaption5Length) {
1127         this.enumCaption5Length = enumCaption5Length;
1128     }
1129 
1130     public String getEnumCaption6Length() {
1131         if(StringUtils.isBlank(enumCaption6Length)) {
1132             if(this.getEnumCaption6() != null) {
1133                 return String.valueOf(this.getEnumCaption6().length());
1134             }else {
1135                 return "0";
1136             }
1137         }
1138         return enumCaption6Length;
1139     }
1140 
1141     public void setEnumCaption6Length(String enumCaption6Length) {
1142         this.enumCaption6Length = enumCaption6Length;
1143     }
1144 
1145     public String getChronCaption1Length() {
1146         if(StringUtils.isBlank(chronCaption1Length)) {
1147             if(this.getChronCaption1() != null) {
1148                 return String.valueOf(this.getChronCaption1().length());
1149             }else {
1150                 return "0";
1151             }
1152         }
1153         return chronCaption1Length;
1154     }
1155 
1156     public void setChronCaption1Length(String chronCaption1Length) {
1157         this.chronCaption1Length = chronCaption1Length;
1158     }
1159 
1160     public String getChronCaption2Length() {
1161         if(StringUtils.isBlank(chronCaption2Length)) {
1162             if(this.getChronCaption2() != null) {
1163                 return String.valueOf(this.getChronCaption2().length());
1164             }else {
1165                 return "0";
1166             }
1167         }
1168         return chronCaption2Length;
1169     }
1170 
1171     public void setChronCaption2Length(String chronCaption2Length) {
1172         this.chronCaption2Length = chronCaption2Length;
1173     }
1174 
1175     public String getChronCaption3Length() {
1176         if(StringUtils.isBlank(chronCaption3Length)) {
1177             if(this.getChronCaption3() != null) {
1178                 return String.valueOf(this.getChronCaption3().length());
1179             }else {
1180                 return "0";
1181             }
1182         }
1183         return chronCaption3Length;
1184     }
1185 
1186     public void setChronCaption3Length(String chronCaption3Length) {
1187         this.chronCaption3Length = chronCaption3Length;
1188     }
1189 
1190     public String getChronCaption4Length() {
1191         if(StringUtils.isBlank(chronCaption4Length)) {
1192             if(this.getChronCaption4() != null) {
1193                 return String.valueOf(this.getChronCaption4().length());
1194             }else {
1195                 return "0";
1196             }
1197         }
1198         return chronCaption4Length;
1199     }
1200 
1201     public void setChronCaption4Length(String chronCaption4Length) {
1202         this.chronCaption4Length = chronCaption4Length;
1203     }
1204 
1205     @Override
1206     public void doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) {
1207         LOG.debug("doRouteStatusChange() starting");
1208         super.doRouteStatusChange(statusChangeEvent);
1209 
1210         try {
1211             if (this.getDocumentHeader().getWorkflowDocument().isFinal() || this.getDocumentHeader().getWorkflowDocument().isDisapproved()) {
1212                 this.setActive(false);
1213             }
1214         } catch (Exception e) {
1215             LOG.error("Error saving routing data while saving document with id " + getDocumentNumber(), e);
1216         }
1217         LOG.debug("doRouteStatusChange() ending");
1218     }
1219 
1220 
1221     public String getClaimType() {
1222         return claimType;
1223     }
1224 
1225     public void setClaimType(String claimType) {
1226         this.claimType = claimType;
1227     }
1228 
1229     public boolean isValidRecordType() {
1230         return validRecordType;
1231     }
1232 
1233     public void setValidRecordType(boolean validRecordType) {
1234         this.validRecordType = validRecordType;
1235     }
1236 
1237     public boolean isValidChildRecordType() {
1238         return validChildRecordType;
1239     }
1240 
1241     public void setValidChildRecordType(boolean validChildRecordType) {
1242         this.validChildRecordType = validChildRecordType;
1243     }
1244 
1245     public boolean isValidChildHistoryRecordType() {
1246         return validChildHistoryRecordType;
1247     }
1248 
1249     public void setValidChildHistoryRecordType(boolean validChildHistoryRecordType) {
1250         this.validChildHistoryRecordType = validChildHistoryRecordType;
1251     }
1252 
1253     public String formPoIdLinkUsingPoDocumentNumber(String poDocNumber){
1254         String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
1255         DocumentType docType = KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
1256         String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
1257         int endSubString = docHandlerUrl.lastIndexOf("/");
1258         String serverName = docHandlerUrl.substring(0, endSubString);
1259         String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
1260         return serverName + "/" + KRADConstants.PORTAL_ACTION + "?channelTitle=" + docType.getName() + "&channelUrl=" + handler + "?" + KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.DOC_HANDLER_METHOD + "&" + KRADConstants.PARAMETER_DOC_ID + "=" + poDocNumber + "&" + KRADConstants.PARAMETER_COMMAND + "=" + KewApiConstants.DOCSEARCH_COMMAND;
1261     }
1262 
1263     public String getCurrentActionPerformed() {
1264         return currentActionPerformed;
1265     }
1266 
1267     public void setCurrentActionPerformed(String currentActionPerformed) {
1268         this.currentActionPerformed = currentActionPerformed;
1269     }
1270 }