Search in sources :

Example 1 with PurchaseOrderTransmissionMethod

use of org.kuali.kfs.module.purap.businessobject.PurchaseOrderTransmissionMethod in project cu-kfs by CU-CommunityApps.

the class PurchaseOrderTransmissionMethodValuesFinder method getKeyValues.

/*
     * @see org.kuali.keyvalues.KeyValuesFinder#getKeyValues()
     */
public List getKeyValues() {
    KeyValuesService boService = SpringContext.getBean(KeyValuesService.class);
    Collection codes = boService.findAll(PurchaseOrderTransmissionMethod.class);
    List labels = new ArrayList();
    labels.add(new ConcreteKeyValue("", ""));
    for (Iterator iter = codes.iterator(); iter.hasNext(); ) {
        PurchaseOrderTransmissionMethod poTransmissionMethod = (PurchaseOrderTransmissionMethod) iter.next();
        labels.add(new ConcreteKeyValue(poTransmissionMethod.getPurchaseOrderTransmissionMethodCode(), poTransmissionMethod.getPurchaseOrderTransmissionMethodDescription()));
    }
    return labels;
}
Also used : KeyValuesService(org.kuali.kfs.krad.service.KeyValuesService) ConcreteKeyValue(org.kuali.rice.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) Collection(java.util.Collection) List(java.util.List) ArrayList(java.util.ArrayList) PurchaseOrderTransmissionMethod(org.kuali.kfs.module.purap.businessobject.PurchaseOrderTransmissionMethod)

Aggregations

ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 Iterator (java.util.Iterator)1 List (java.util.List)1 KeyValuesService (org.kuali.kfs.krad.service.KeyValuesService)1 PurchaseOrderTransmissionMethod (org.kuali.kfs.module.purap.businessobject.PurchaseOrderTransmissionMethod)1 ConcreteKeyValue (org.kuali.rice.core.api.util.ConcreteKeyValue)1