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;
}
Aggregations