View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.kuali.rice.kns.service.KNSServiceLocator;
4   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5   import org.kuali.rice.krad.service.KRADServiceLocator;
6   import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
7   
8   import java.util.Date;
9   import java.util.HashMap;
10  import java.util.List;
11  import java.util.Map;
12  
13  /**
14   * Created with IntelliJ IDEA.
15   * User: rajeshbabuk
16   * Date: 6/29/13
17   * Time: 4:14 PM
18   * To change this template use File | Settings | File Templates.
19   */
20  public class OLESerialReceivingHistory extends PersistableBusinessObjectBase {
21  
22      private String serialReceivingRecordHistoryId;
23      private String receivingRecordType;
24      private String chronologyCaptionLevel1;
25      private String chronologyCaptionLevel2;
26      private String chronologyCaptionLevel3;
27      private String chronologyCaptionLevel4;
28      private String claimCount;
29      private Date claimDate;
30      private String claimNote;
31      private String claimType;
32      private String claimTypeName;
33      private String claimResponse;
34      private String enumerationCaptionLevel1;
35      private String enumerationCaptionLevel2;
36      private String enumerationCaptionLevel3;
37      private String enumerationCaptionLevel4;
38      private String enumerationCaptionLevel5;
39      private String enumerationCaptionLevel6;
40      private boolean publicDisplay;
41      private String serialReceiptNote;
42      private String operatorId;
43      private String machineId;
44      private String receiptStatus;
45      private Date receiptDate;
46      private String publicReceipt;
47      private String staffOnlyReceipt;
48      private OLESerialReceivingDocument oleSerialReceivingDocument;
49      private String serialReceivingRecordId;
50      private String documentNumber;
51      private String publicDisplayHistory;
52      private String enumerationCaption;
53      private String chronologyCaption;
54  
55      private boolean documentExist=false;
56      private boolean validRecordType = true;
57  
58      public String getClaimTypeName() {
59          if(claimType!=null){
60              Map<String,String> map = new HashMap<>();
61              map.put("oleClaimTypeCode",claimType);
62              List<OLEClaimType> oleClaimTypeList = (List<OLEClaimType>) KRADServiceLocatorWeb.getLegacyDataAdapter().findMatching(OLEClaimType.class, map);
63              claimTypeName = oleClaimTypeList!=null&& oleClaimTypeList.size()>0 ? oleClaimTypeList.get(0).getOleClaimTypeName() : "";
64          }
65          return claimTypeName;
66      }
67  
68      public void setClaimTypeName(String claimTypeName) {
69          this.claimTypeName = claimTypeName;
70      }
71  
72      public String getDocumentNumber() {
73          return documentNumber;
74      }
75  
76      public void setDocumentNumber(String documentNumber) {
77          this.documentNumber = documentNumber;
78      }
79  
80      public String getSerialReceivingRecordHistoryId() {
81          return serialReceivingRecordHistoryId;
82      }
83  
84      public void setSerialReceivingRecordHistoryId(String serialReceivingRecordHistoryId) {
85          this.serialReceivingRecordHistoryId = serialReceivingRecordHistoryId;
86      }
87  
88      public String getReceivingRecordType() {
89          return receivingRecordType;
90      }
91  
92      public void setReceivingRecordType(String receivingRecordType) {
93          this.receivingRecordType = receivingRecordType;
94      }
95  
96      public String getChronologyCaptionLevel3() {
97          return chronologyCaptionLevel3;
98      }
99  
100     public void setChronologyCaptionLevel3(String chronologyCaptionLevel3) {
101         this.chronologyCaptionLevel3 = chronologyCaptionLevel3;
102     }
103 
104     public String getChronologyCaptionLevel4() {
105         return chronologyCaptionLevel4;
106     }
107 
108     public void setChronologyCaptionLevel4(String chronologyCaptionLevel4) {
109         this.chronologyCaptionLevel4 = chronologyCaptionLevel4;
110     }
111 
112     public String getClaimCount() {
113         return claimCount;
114     }
115 
116     public void setClaimCount(String claimCount) {
117         this.claimCount = claimCount;
118     }
119 
120     public Date getClaimDate() {
121         return claimDate;
122     }
123 
124     public void setClaimDate(Date claimDate) {
125         this.claimDate = claimDate;
126     }
127 
128     public String getClaimNote() {
129         return claimNote;
130     }
131 
132     public void setClaimNote(String claimNote) {
133         this.claimNote = claimNote;
134     }
135 
136     public String getClaimType() {
137         return claimType;
138     }
139 
140     public void setClaimType(String claimType) {
141         this.claimType = claimType;
142     }
143 
144     public String getClaimResponse() {
145         return claimResponse;
146     }
147 
148     public void setClaimResponse(String claimResponse) {
149         this.claimResponse = claimResponse;
150     }
151 
152     public String getEnumerationCaptionLevel3() {
153         return enumerationCaptionLevel3;
154     }
155 
156     public void setEnumerationCaptionLevel3(String enumerationCaptionLevel3) {
157         this.enumerationCaptionLevel3 = enumerationCaptionLevel3;
158     }
159 
160     public String getEnumerationCaptionLevel4() {
161         return enumerationCaptionLevel4;
162     }
163 
164     public void setEnumerationCaptionLevel4(String enumerationCaptionLevel4) {
165         this.enumerationCaptionLevel4 = enumerationCaptionLevel4;
166     }
167 
168     public String getEnumerationCaptionLevel5() {
169         return enumerationCaptionLevel5;
170     }
171 
172     public void setEnumerationCaptionLevel5(String enumerationCaptionLevel5) {
173         this.enumerationCaptionLevel5 = enumerationCaptionLevel5;
174     }
175 
176     public String getEnumerationCaptionLevel6() {
177         return enumerationCaptionLevel6;
178     }
179 
180     public void setEnumerationCaptionLevel6(String enumerationCaptionLevel6) {
181         this.enumerationCaptionLevel6 = enumerationCaptionLevel6;
182     }
183 
184     public boolean isPublicDisplay() {
185         return publicDisplay;
186     }
187 
188     public void setPublicDisplay(boolean publicDisplay) {
189         this.publicDisplay = publicDisplay;
190     }
191 
192     public String getSerialReceiptNote() {
193         return serialReceiptNote;
194     }
195 
196     public void setSerialReceiptNote(String serialReceiptNote) {
197         this.serialReceiptNote = serialReceiptNote;
198     }
199 
200     public String getOperatorId() {
201         return operatorId;
202     }
203 
204     public void setOperatorId(String operatorId) {
205         this.operatorId = operatorId;
206     }
207 
208     public String getMachineId() {
209         return machineId;
210     }
211 
212     public void setMachineId(String machineId) {
213         this.machineId = machineId;
214     }
215 
216     public String getEnumerationCaptionLevel1() {
217         return enumerationCaptionLevel1;
218     }
219 
220     public void setEnumerationCaptionLevel1(String enumerationCaptionLevel1) {
221         this.enumerationCaptionLevel1 = enumerationCaptionLevel1;
222     }
223 
224     public String getEnumerationCaptionLevel2() {
225         return enumerationCaptionLevel2;
226     }
227 
228     public void setEnumerationCaptionLevel2(String enumerationCaptionLevel2) {
229         this.enumerationCaptionLevel2 = enumerationCaptionLevel2;
230     }
231 
232     public String getChronologyCaptionLevel1() {
233         return chronologyCaptionLevel1;
234     }
235 
236     public void setChronologyCaptionLevel1(String chronologyCaptionLevel1) {
237         this.chronologyCaptionLevel1 = chronologyCaptionLevel1;
238     }
239 
240     public String getChronologyCaptionLevel2() {
241         return chronologyCaptionLevel2;
242     }
243 
244     public void setChronologyCaptionLevel2(String chronologyCaptionLevel2) {
245         this.chronologyCaptionLevel2 = chronologyCaptionLevel2;
246     }
247 
248     public String getReceiptStatus() {
249         return receiptStatus;
250     }
251 
252     public void setReceiptStatus(String receiptStatus) {
253         this.receiptStatus = receiptStatus;
254     }
255 
256     public Date getReceiptDate() {
257         return receiptDate;
258     }
259 
260     public void setReceiptDate(Date receiptDate) {
261         this.receiptDate = receiptDate;
262     }
263 
264     public String getPublicReceipt() {
265         return publicReceipt;
266     }
267 
268     public void setPublicReceipt(String publicReceipt) {
269         this.publicReceipt = publicReceipt;
270     }
271 
272     public String getStaffOnlyReceipt() {
273         return staffOnlyReceipt;
274     }
275 
276     public void setStaffOnlyReceipt(String staffOnlyReceipt) {
277         this.staffOnlyReceipt = staffOnlyReceipt;
278     }
279 
280     public OLESerialReceivingDocument getOleSerialReceivingDocument() {
281         return oleSerialReceivingDocument;
282     }
283 
284     public void setOleSerialReceivingDocument(OLESerialReceivingDocument oleSerialReceivingDocument) {
285         this.oleSerialReceivingDocument = oleSerialReceivingDocument;
286     }
287 
288     public String getSerialReceivingRecordId() {
289         return serialReceivingRecordId;
290     }
291 
292     public void setSerialReceivingRecordId(String serialReceivingRecordId) {
293         this.serialReceivingRecordId = serialReceivingRecordId;
294     }
295 
296     public String getPublicDisplayHistory() {
297         return publicDisplayHistory;
298     }
299 
300     public void setPublicDisplayHistory(String publicDisplayHistory) {
301         this.publicDisplayHistory = publicDisplayHistory;
302     }
303 
304     public String getEnumerationCaption() {
305         return enumerationCaption;
306     }
307 
308     public void setEnumerationCaption(String enumerationCaption) {
309         this.enumerationCaption = enumerationCaption;
310     }
311 
312     public String getChronologyCaption() {
313         return chronologyCaption;
314     }
315 
316     public void setChronologyCaption(String chronologyCaption) {
317         this.chronologyCaption = chronologyCaption;
318     }
319 
320     public boolean isDocumentExist() {
321         return documentExist;
322     }
323 
324     public void setDocumentExist(boolean documentExist) {
325         this.documentExist = documentExist;
326     }
327 
328     public boolean isValidRecordType() {
329         return validRecordType;
330     }
331 
332     public void setValidRecordType(boolean validRecordType) {
333         this.validRecordType = validRecordType;
334     }
335 }
336