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