Search in sources :

Example 26 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Example 27 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList) PaymentMethod(edu.cornell.kfs.fp.businessobject.PaymentMethod)

Example 28 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) ArrayList(java.util.ArrayList)

Example 29 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) InvoiceFrequency(edu.cornell.kfs.module.cg.businessobject.InvoiceFrequency) ArrayList(java.util.ArrayList)

Example 30 with ConcreteKeyValue

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;
}
Also used : ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) KeyValue(org.kuali.kfs.core.api.util.KeyValue) ConcreteKeyValue(org.kuali.kfs.core.api.util.ConcreteKeyValue) LevelOrganization(edu.cornell.kfs.module.purap.businessobject.LevelOrganization) ArrayList(java.util.ArrayList)

Aggregations

ConcreteKeyValue (org.kuali.kfs.core.api.util.ConcreteKeyValue)37 KeyValue (org.kuali.kfs.core.api.util.KeyValue)33 ArrayList (java.util.ArrayList)32 LevelOrganization (edu.cornell.kfs.module.purap.businessobject.LevelOrganization)3 IWantDocument (edu.cornell.kfs.module.purap.document.IWantDocument)2 IWantDocumentService (edu.cornell.kfs.module.purap.document.service.IWantDocumentService)2 PurApFavoriteAccountLineBuilderForIWantDocument (edu.cornell.kfs.module.purap.util.PurApFavoriteAccountLineBuilderForIWantDocument)2 Person (org.kuali.kfs.kim.api.identity.Person)2 CheckReconSource (com.rsmart.kuali.kfs.cr.businessobject.CheckReconSource)1 ReversionCategory (edu.cornell.kfs.coa.businessobject.ReversionCategory)1 ReversionCodeValuesFinder (edu.cornell.kfs.coa.businessobject.options.ReversionCodeValuesFinder)1 PaymentMethod (edu.cornell.kfs.fp.businessobject.PaymentMethod)1 SecurityGroupTab (edu.cornell.kfs.ksr.businessobject.SecurityGroupTab)1 SecurityProvisioning (edu.cornell.kfs.ksr.businessobject.SecurityProvisioning)1 AgencyOrigin (edu.cornell.kfs.module.cg.businessobject.AgencyOrigin)1 InvoiceFrequency (edu.cornell.kfs.module.cg.businessobject.InvoiceFrequency)1 InvoiceType (edu.cornell.kfs.module.cg.businessobject.InvoiceType)1 FavoriteAccount (edu.cornell.kfs.sys.businessobject.FavoriteAccount)1 FormTypes1099 (edu.cornell.kfs.tax.FormTypes1099)1 Collection (java.util.Collection)1