use of edu.cornell.kfs.module.cg.businessobject.InvoiceType in project cu-kfs by CU-CommunityApps.
the class InvoiceTypeValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
KeyValuesService boService = SpringContext.getBean(KeyValuesService.class);
Collection<InvoiceType> invoiceTypeCodes = boService.findAll(InvoiceType.class);
List<KeyValue> invoiceTypeKeyLabels = new ArrayList<KeyValue>();
for (Iterator<InvoiceType> iter = invoiceTypeCodes.iterator(); iter.hasNext(); ) {
InvoiceType element = (InvoiceType) iter.next();
if (element.isActive()) {
// only show active invoice types
invoiceTypeKeyLabels.add(new ConcreteKeyValue(element.getInvoiceTypeCode(), element.getInvoiceTypeCode()));
}
}
return invoiceTypeKeyLabels;
}
Aggregations