View Javadoc
1   package org.kuali.ole.batch.keyvalue;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.rice.core.api.util.ConcreteKeyValue;
5   import org.kuali.rice.core.api.util.KeyValue;
6   import org.kuali.rice.krad.keyvalues.KeyValuesBase;
7   
8   import java.util.ArrayList;
9   import java.util.Collections;
10  import java.util.Comparator;
11  import java.util.List;
12  
13  /**
14   * Created with IntelliJ IDEA.
15   * User: sheiksalahudeenm
16   * Date: 8/1/13
17   * Time: 2:32 PM
18   * To change this template use File | Settings | File Templates.
19   */
20  public class OLEBatchProcessOrderImportSourceFieldValueFinder extends KeyValuesBase {
21      @Override
22      public List<KeyValue> getKeyValues() {
23          List<KeyValue> keyValues = new ArrayList<KeyValue>();
24          keyValues.add(new ConcreteKeyValue("", ""));
25          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CHART_CODE, "Chart Code"));
26          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_CHART_CODE, "Item Chart Code"));
27          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ORG_CODE, "Org Code"));
28          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.RECEIVING_REQUIRED,"Receiving Required"));
29          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CONTRACT_MANAGER, "Contract Manager"));
30          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ASSIGN_TO_USER, "Assign To User"));
31          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.USE_TAX_INDICATOR,"Use Tax Indicator"));
32          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ORDER_TYPE, "Order Type"));
33          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.FUNDING_SOURCE, "Funding Source"));
34          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PREQ_POSITIVE_APPROVAL_REQ,"Pay Req Positive Approval Req"));
35          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PO_CONFIRMATION_INDICATOR,"Purchase Order Confirmation Indicator"));
36          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DELIVERY_CAMPUS_CODE, "Delivery Campus Code"));
37          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.BUILDING_CODE, "Building Code"));
38          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_CHOICE, "Vendor Choice"));
39          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ROUTE_TO_REQUESTOR,"Route To Requestor"));
40          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.METHOD_OF_PO_TRANSMISSION, "Method Of PO Transmission"));
41          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.COST_SOURCE, "Cost Source"));
42          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PERCENT, "Percent"));
43          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DEFAULT_LOCATION, "Default Location"));
44          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.LIST_PRICE, "List Price"));
45          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_NUMBER, "Vendor Number"));
46          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_CUST_NBR, "Acquisition Unit's Vendor account / Vendor Info Customer #"));
47          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.QUANTITY, "Quantity"));
48          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_NO_OF_PARTS, "No Of Parts"));
49          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_REFERENCE_NUMBER, "Vendor Reference Number"));
50          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.REQUESTOR_NAME, "Requestor Name"));
51          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_STATUS, "Item Status"));
52          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DISCOUNT, "Discount"));
53          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DISCOUNT_TYPE, "Discount Type"));
54          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ACCOUNT_NUMBER, "Account Number"));
55          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.OBJECT_CODE, "Object Code"));
56          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_PROFILE_CODE, "Vendor Profile Code"));
57          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.REQUEST_SRC,"Request Source"));
58          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CAPTION,"Caption"));
59          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VOLUME_NUMBER,"Volume Number"));
60          keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DELIVERY_BUILDING_ROOM_NUMBER,OLEConstants.OLEBatchProcess.BUILDING_ROOM_NUMBER));
61          Collections.sort(keyValues,new Comparator<KeyValue>(){
62              public int compare(KeyValue keyValue1,KeyValue keyValue2){
63                  return keyValue1.getValue().compareTo(keyValue2.getValue());
64  
65              }
66          });
67          return keyValues;
68  
69      }
70  }