001package org.kuali.ole.batch.keyvalue; 002 003import org.kuali.ole.OLEConstants; 004import org.kuali.rice.core.api.util.ConcreteKeyValue; 005import org.kuali.rice.core.api.util.KeyValue; 006import org.kuali.rice.krad.keyvalues.KeyValuesBase; 007 008import java.util.ArrayList; 009import java.util.Collections; 010import java.util.Comparator; 011import java.util.List; 012 013/** 014 * Created with IntelliJ IDEA. 015 * User: sheiksalahudeenm 016 * Date: 8/1/13 017 * Time: 2:32 PM 018 * To change this template use File | Settings | File Templates. 019 */ 020public class OLEBatchProcessOrderImportSourceFieldValueFinder extends KeyValuesBase { 021 @Override 022 public List<KeyValue> getKeyValues() { 023 List<KeyValue> keyValues = new ArrayList<KeyValue>(); 024 keyValues.add(new ConcreteKeyValue("", "")); 025 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CHART_CODE, "Chart Code")); 026 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_CHART_CODE, "Item Chart Code")); 027 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ORG_CODE, "Org Code")); 028 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.RECEIVING_REQUIRED,"Receiving Required")); 029 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CONTRACT_MANAGER, "Contract Manager")); 030 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ASSIGN_TO_USER, "Assign To User")); 031 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.USE_TAX_INDICATOR,"Use Tax Indicator")); 032 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ORDER_TYPE, "Order Type")); 033 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.FUNDING_SOURCE, "Funding Source")); 034 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PREQ_POSITIVE_APPROVAL_REQ,"Pay Req Positive Approval Req")); 035 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PO_CONFIRMATION_INDICATOR,"Purchase Order Confirmation Indicator")); 036 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DELIVERY_CAMPUS_CODE, "Delivery Campus Code")); 037 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.BUILDING_CODE, "Building Code")); 038 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_CHOICE, "Vendor Choice")); 039 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ROUTE_TO_REQUESTOR,"Route To Requestor")); 040 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.METHOD_OF_PO_TRANSMISSION, "Method Of PO Transmission")); 041 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.COST_SOURCE, "Cost Source")); 042 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.PERCENT, "Percent")); 043 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DEFAULT_LOCATION, "Default Location")); 044 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.LIST_PRICE, "List Price")); 045 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_NUMBER, "Vendor Number")); 046 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_CUST_NBR, "Acquisition Unit's Vendor account / Vendor Info Customer #")); 047 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.QUANTITY, "Quantity")); 048 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_NO_OF_PARTS, "No Of Parts")); 049 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_REFERENCE_NUMBER, "Vendor Reference Number")); 050 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.REQUESTOR_NAME, "Requestor Name")); 051 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ITEM_STATUS, "Item Status")); 052 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DISCOUNT, "Discount")); 053 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DISCOUNT_TYPE, "Discount Type")); 054 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.ACCOUNT_NUMBER, "Account Number")); 055 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.OBJECT_CODE, "Object Code")); 056 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VENDOR_PROFILE_CODE, "Vendor Profile Code")); 057 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.REQUEST_SRC,"Request Source")); 058 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.CAPTION,"Caption")); 059 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.VOLUME_NUMBER,"Volume Number")); 060 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.RECURRING_PAYMENT_TYP,"Recurring Payment Type")); 061 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.RECURRING_PAYMENT_BEGIN_DT,"Recurring Payment Begin Date")); 062 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.RECURRING_PAYMENT_END_DT,"Recurring Payment End Date")); 063 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEBatchProcess.DELIVERY_BUILDING_ROOM_NUMBER,OLEConstants.OLEBatchProcess.BUILDING_ROOM_NUMBER)); 064 keyValues.add(new ConcreteKeyValue(OLEConstants.OLEEResourceRecord.FUND_CODE,"Fund Code")); 065 Collections.sort(keyValues,new Comparator<KeyValue>(){ 066 public int compare(KeyValue keyValue1,KeyValue keyValue2){ 067 return keyValue1.getValue().compareTo(keyValue2.getValue()); 068 069 } 070 }); 071 return keyValues; 072 073 } 074}