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 package org.kuali.ole.select.document.web;
17
18 import org.apache.struts.action.ActionMapping;
19 import org.kuali.ole.module.purap.businessobject.PurchaseOrderType;
20 import org.kuali.ole.select.businessobject.OlePurchaseOrderItem;
21 import org.kuali.ole.select.document.OleReceivingQueueSearchDocument;
22 import org.kuali.ole.sys.OLEConstants;
23 import org.kuali.ole.sys.context.SpringContext;
24 import org.kuali.ole.vnd.businessobject.VendorDetail;
25 import org.kuali.rice.kns.service.DataDictionaryService;
26 import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase;
27
28 import javax.servlet.http.HttpServletRequest;
29 import java.util.ArrayList;
30 import java.util.List;
31
32 public class OleReceivingQueueSearchForm extends KualiTransactionalDocumentFormBase {
33
34 protected Integer purchaseOrderNumber;
35
36 protected String standardNumber;
37
38 protected String title;
39
40 //protected String journal;
41
42 protected String vendorName;
43
44 protected String beginDate;
45
46 protected String endDate;
47
48 //protected boolean serials;
49
50 //protected boolean standingOrders;
51
52 //protected boolean vendor;
53
54 protected boolean monograph;
55
56 //protected boolean purchaseOrderDate;
57
58 //protected boolean status;
59
60 protected VendorDetail vendorDetail;
61
62 private String purchaseOrderStatusDescription;
63
64 protected PurchaseOrderType orderType;
65
66 private String purchaseOrderType;
67
68 protected boolean receive;
69
70 protected String author;
71
72 protected String publisher;
73
74 protected String edition;
75
76 protected String quatityOrdered;
77
78 protected String points;
79
80 protected String instructions;
81
82 protected String url;
83
84 public String getUrl() {
85 return OLEConstants.DOC_HANDLER_URL;
86 }
87
88 public List<OlePurchaseOrderItem> purchaseOrders = new ArrayList<OlePurchaseOrderItem>(0);
89
90 /**
91 * Gets the purchaseOrderStatusDescription attribute.
92 *
93 * @return Returns the purchaseOrderStatusDescription.
94 */
95 public String getPurchaseOrderStatusDescription() {
96 return purchaseOrderStatusDescription;
97 }
98
99 /**
100 * Sets the purchaseOrderStatusDescription attribute value.
101 *
102 * @param purchaseOrderStatusDescription The purchaseOrderStatusDescription to set.
103 */
104 public void setPurchaseOrderStatusDescription(String purchaseOrderStatusDescription) {
105 this.purchaseOrderStatusDescription = purchaseOrderStatusDescription;
106 }
107
108 /**
109 * Gets the purchaseOrderType attribute.
110 *
111 * @return Returns the purchaseOrderType.
112 */
113 public String getPurchaseOrderType() {
114 return purchaseOrderType;
115 }
116
117 /**
118 * Sets the purchaseOrderType attribute value.
119 *
120 * @param purchaseOrderType The purchaseOrderType to set.
121 */
122 public void setPurchaseOrderType(String purchaseOrderType) {
123 this.purchaseOrderType = purchaseOrderType;
124 }
125
126 /**
127 * Gets the purchaseOrders attribute.
128 *
129 * @return Returns the purchaseOrders.
130 */
131 public List<OlePurchaseOrderItem> getPurchaseOrders() {
132 return purchaseOrders;
133 }
134
135 /**
136 * Sets the purchaseOrders attribute value.
137 *
138 * @param purchaseOrders The purchaseOrders to set.
139 */
140 public void setPurchaseOrders(List<OlePurchaseOrderItem> purchaseOrders) {
141 this.purchaseOrders = purchaseOrders;
142 }
143
144 /**
145 * Gets the purchaseOrderNumber attribute.
146 *
147 * @return Returns the purchaseOrderNumber.
148 */
149 public Integer getPurchaseOrderNumber() {
150 return purchaseOrderNumber;
151 }
152
153 /**
154 * Sets the purchaseOrderNumber attribute value.
155 *
156 * @param purchaseOrderNumber The purchaseOrderNumber to set.
157 */
158 public void setPurchaseOrderNumber(Integer purchaseOrderNumber) {
159 this.purchaseOrderNumber = purchaseOrderNumber;
160 }
161
162 /**
163 * Gets the standardNumber attribute.
164 *
165 * @return Returns the standardNumber.
166 */
167 public String getStandardNumber() {
168 return standardNumber;
169 }
170
171 /**
172 * Sets the standardNumber attribute value.
173 *
174 * @param standardNumber The standardNumber to set.
175 */
176 public void setStandardNumber(String standardNumber) {
177 this.standardNumber = standardNumber;
178 }
179
180 /**
181 * Gets the title attribute.
182 *
183 * @return Returns the title.
184 */
185 public String getTitle() {
186 return title;
187 }
188
189 /**
190 * Sets the title attribute value.
191 *
192 * @param title The title to set.
193 */
194 public void setTitle(String title) {
195 this.title = title;
196 }
197
198 /**
199 * Gets the journal attribute.
200 * @return Returns the journal.
201 *//*
202 public String getJournal() {
203 return journal;
204 }
205
206 *//**
207 * Sets the journal attribute value.
208 * @param journal The journal to set.
209 *//*
210 public void setJournal(String journal) {
211 this.journal = journal;
212 }*/
213
214 /**
215 * Gets the vendorName attribute.
216 *
217 * @return Returns the vendorName.
218 */
219 public String getVendorName() {
220 return vendorName;
221 }
222
223 /**
224 * Sets the vendorName attribute value.
225 *
226 * @param vendorName The vendorName to set.
227 */
228 public void setVendorName(String vendorName) {
229 this.vendorName = vendorName;
230 }
231
232 /**
233 * Gets the serials attribute.
234 * @return Returns the serials.
235 *//*
236 public boolean isSerials() {
237 return serials;
238 }
239
240 *//**
241 * Sets the serials attribute value.
242 * @param serials The serials to set.
243 *//*
244 public void setSerials(boolean serials) {
245 this.serials = serials;
246 }*/
247
248 /**
249 * Gets the standingOrders attribute.
250 * @return Returns the standingOrders.
251 *//*
252 public boolean isStandingOrders() {
253 return standingOrders;
254 }
255
256 *//**
257 * Sets the standingOrders attribute value.
258 * @param standingOrders The standingOrders to set.
259 *//*
260 public void setStandingOrders(boolean standingOrders) {
261 this.standingOrders = standingOrders;
262 }*/
263
264 /**
265 * Gets the vendor attribute.
266 * @return Returns the vendor.
267 *//*
268 public boolean isVendor() {
269 return vendor;
270 }
271
272 *//**
273 * Sets the vendor attribute value.
274 * @param vendor The vendor to set.
275 *//*
276 public void setVendor(boolean vendor) {
277 this.vendor = vendor;
278 }*/
279
280 /**
281 * Gets the monograph attribute.
282 *
283 * @return Returns the monograph.
284 */
285 public boolean isMonograph() {
286 return monograph;
287 }
288
289 /**
290 * Sets the monograph attribute value.
291 *
292 * @param monograph The monograph to set.
293 */
294 public void setMonograph(boolean monograph) {
295 this.monograph = monograph;
296 }
297
298 /**
299 * Gets the purchaseOrderDate attribute.
300 * @return Returns the purchaseOrderDate.
301 *//*
302 public boolean isPurchaseOrderDate() {
303 return purchaseOrderDate;
304 }
305
306 *//**
307 * Sets the purchaseOrderDate attribute value.
308 * @param purchaseOrderDate The purchaseOrderDate to set.
309 *//*
310 public void setPurchaseOrderDate(boolean purchaseOrderDate) {
311 this.purchaseOrderDate = purchaseOrderDate;
312 }*/
313
314 /**
315 * Gets the status attribute.
316 * @return Returns the status.
317 *//*
318 public boolean isStatus() {
319 return status;
320 }
321
322 *//**
323 * Sets the status attribute value.
324 * @param status The status to set.
325 *//*
326 public void setStatus(boolean status) {
327 this.status = status;
328 }*/
329
330 /**
331 * Gets the vendorDetail attribute.
332 *
333 * @return Returns the vendorDetail.
334 */
335 public VendorDetail getVendorDetail() {
336 return vendorDetail;
337 }
338
339 /**
340 * Sets the vendorDetail attribute value.
341 *
342 * @param vendorDetail The vendorDetail to set.
343 */
344 public void setVendorDetail(VendorDetail vendorDetail) {
345 this.vendorDetail = vendorDetail;
346 }
347
348 /**
349 * Gets the receive attribute.
350 *
351 * @return Returns the receive.
352 */
353 public boolean isReceive() {
354 return receive;
355 }
356
357 /**
358 * Sets the receive attribute value.
359 *
360 * @param receive The receive to set.
361 */
362 public void setReceive(boolean receive) {
363 this.receive = receive;
364 }
365
366 /**
367 * Gets the author attribute.
368 *
369 * @return Returns the author.
370 */
371 public String getAuthor() {
372 return author;
373 }
374
375 /**
376 * Sets the author attribute value.
377 *
378 * @param author The author to set.
379 */
380 public void setAuthor(String author) {
381 this.author = author;
382 }
383
384 /**
385 * Gets the publisher attribute.
386 *
387 * @return Returns the publisher.
388 */
389 public String getPublisher() {
390 return publisher;
391 }
392
393 /**
394 * Sets the publisher attribute value.
395 *
396 * @param publisher The publisher to set.
397 */
398 public void setPublisher(String publisher) {
399 this.publisher = publisher;
400 }
401
402 /**
403 * Gets the edition attribute.
404 *
405 * @return Returns the edition.
406 */
407 public String getEdition() {
408 return edition;
409 }
410
411 /**
412 * Sets the edition attribute value.
413 *
414 * @param edition The edition to set.
415 */
416 public void setEdition(String edition) {
417 this.edition = edition;
418 }
419
420 /**
421 * Gets the quatityOrdered attribute.
422 *
423 * @return Returns the quatityOrdered.
424 */
425 public String getQuatityOrdered() {
426 return quatityOrdered;
427 }
428
429 /**
430 * Sets the quatityOrdered attribute value.
431 *
432 * @param quatityOrdered The quatityOrdered to set.
433 */
434 public void setQuatityOrdered(String quatityOrdered) {
435 this.quatityOrdered = quatityOrdered;
436 }
437
438 /**
439 * Gets the points attribute.
440 *
441 * @return Returns the points.
442 */
443 public String getPoints() {
444 return points;
445 }
446
447 /**
448 * Sets the points attribute value.
449 *
450 * @param points The points to set.
451 */
452 public void setPoints(String points) {
453 this.points = points;
454 }
455
456 /**
457 * Gets the instructions attribute.
458 *
459 * @return Returns the instructions.
460 */
461 public String getInstructions() {
462 return instructions;
463 }
464
465 /**
466 * Sets the instructions attribute value.
467 *
468 * @param instructions The instructions to set.
469 */
470 public void setInstructions(String instructions) {
471 this.instructions = instructions;
472 }
473
474 /**
475 * Constructs a OleReceivingQueueSearchForm.java.
476 */
477 public OleReceivingQueueSearchForm() {
478 super();
479 OleReceivingQueueSearchDocument document = new OleReceivingQueueSearchDocument();
480 setDocument(document);
481 setDocTypeName(SpringContext.getBean(DataDictionaryService.class).getDocumentTypeNameByClass(OleReceivingQueueSearchDocument.class));
482 }
483
484 /**
485 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
486 */
487 @Override
488 public void populate(HttpServletRequest req) {
489 super.populate(req);
490 }
491
492 /**
493 * @see org.kuali.rice.kns.web.struts.form.KualiForm#getRefreshCaller()
494 */
495 @Override
496 public String getRefreshCaller() {
497 return "refreshCaller";
498 }
499
500 /**
501 * @see org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase#reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)
502 */
503 @Override
504 public void reset(ActionMapping mapping, HttpServletRequest request) {
505 super.reset(mapping, request);
506 }
507
508 /**
509 * Gets the beginDate attribute.
510 *
511 * @return Returns the beginDate.
512 */
513 public String getBeginDate() {
514 return beginDate;
515 }
516
517 /**
518 * Sets the beginDate attribute value.
519 *
520 * @param beginDate The beginDate to set.
521 */
522 public void setBeginDate(String beginDate) {
523 this.beginDate = beginDate;
524 }
525
526 /**
527 * Gets the endDate attribute.
528 *
529 * @return Returns the endDate.
530 */
531 public String getEndDate() {
532 return endDate;
533 }
534
535 /**
536 * Sets the endDate attribute value.
537 *
538 * @param endDate The endDate to set.
539 */
540 public void setEndDate(String endDate) {
541 this.endDate = endDate;
542 }
543
544 }