use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class CuBankAccountTypeValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<>();
keyValues.add(new ConcreteKeyValue("C", "Checking"));
keyValues.add(new ConcreteKeyValue("S", "Savings"));
return keyValues;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class PaymentMethodValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
Collection<PaymentMethod> paymentMethods = businessObjectService.findMatchingOrderBy(PaymentMethod.class, getFilterCriteria(), "paymentMethodName", true);
List<KeyValue> labels = new ArrayList<KeyValue>(paymentMethods.size());
for (PaymentMethod pm : paymentMethods) {
labels.add(new ConcreteKeyValue(pm.getPaymentMethodCode(), pm.getPaymentMethodCode() + " - " + pm.getPaymentMethodName()));
}
return labels;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class ScheduleTypeKeyValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> chartKeyLabels = new ArrayList<KeyValue>();
chartKeyLabels.add(new ConcreteKeyValue("", ""));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.DAILY.name, "Daily"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.BIWEEKLY.name, "Bi-Weekly"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.MONTHLY.name, "Monthly"));
chartKeyLabels.add(new ConcreteKeyValue(CuFPConstants.ScheduledSourceAccountingLineConstants.ScheduleTypes.YEARLY.name, "Yearly"));
return chartKeyLabels;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class InvoiceFrequencyValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
Collection<InvoiceFrequency> invoiceFrequencyCodes = keyValuesService.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()) {
invoiceFrequencyKeyLabels.add(new ConcreteKeyValue(element.getInvoiceFrequencyCode(), element.getInvoiceFrequencyCode()));
}
}
return invoiceFrequencyKeyLabels;
}
use of org.kuali.kfs.core.api.util.ConcreteKeyValue in project cu-kfs by CU-CommunityApps.
the class CollegeLevelOrganizationValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
List<LevelOrganization> cLevelOrganizations = iWantDocumentService.getCLevelOrganizations();
keyValues.add(new ConcreteKeyValue("", ""));
if (cLevelOrganizations != null) {
for (LevelOrganization cLevelOrganization : cLevelOrganizations) {
keyValues.add(new ConcreteKeyValue(cLevelOrganization.getCode(), cLevelOrganization.getCodeAndDescription()));
}
}
return keyValues;
}
Aggregations