use of org.kuali.rice.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class CollegeLevelOrganizationValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
IWantDocumentService iWantDocumentService = SpringContext.getBean(IWantDocumentService.class);
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;
}
use of org.kuali.rice.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class OrderCompletedValuesFinder method getKeyValues.
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue("N", "I have <b>NOT</b> placed the order. (Click <b>approve</b> to submit to the FTC/BSC for processing) "));
keyValues.add(new ConcreteKeyValue("Y", "I <b>HAVE</b> placed the order via pcard/eshop etc. (Click <b>approve</b> to finalize the order)"));
return keyValues;
}
use of org.kuali.rice.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class GroupTitleLineRenderer method buildFavoriteAccounts.
private String buildFavoriteAccounts(String accountPrefix) {
int itemIdx = getItemIdx(accountPrefix);
Integer accountLineId = null;
if (isDocumentIntegratedFavoriteAccount()) {
if (itemIdx >= 0) {
accountLineId = ((PurchasingItemBase) ((PurchasingDocumentBase) this.getAccountingDocument()).getItem(itemIdx)).getFavoriteAccountLineIdentifier();
} else {
accountLineId = ((PurchasingDocumentBase) this.getAccountingDocument()).getFavoriteAccountLineIdentifier();
}
}
StringBuffer favoriteAccountLine = new StringBuffer();
favoriteAccountLine.append("<tr>");
favoriteAccountLine.append("<th colspan=\"2\" align=\"right\" valign=\"middle\" class=\"bord-l-b\">");
favoriteAccountLine.append("<div align=\"right\">");
favoriteAccountLine.append("Favorite Account");
favoriteAccountLine.append("</div>");
favoriteAccountLine.append("</th>");
if (StringUtils.isBlank(accountPrefix)) {
accountPrefix = "document.";
}
favoriteAccountLine.append("<td colspan=\"7\" class=\"infoline\">");
favoriteAccountLine.append("<select name=\"").append(accountPrefix).append("favoriteAccountLineIdentifier\" id=\"").append(accountPrefix).append("favoriteAccountLineIdentifier\" title=\"* Favorite Account\">");
FavoriteAccountValuesFinder accounts = new FavoriteAccountValuesFinder();
for (KeyValue keyValue : (List<KeyValue>) accounts.getKeyValues()) {
favoriteAccountLine.append("<option value=\"").append(keyValue.getKey());
if (checkToAddError(accountPrefix + "favoriteAccountLineIdentifier")) {
favoriteAccountLine.append(getSelected(accountLineId, keyValue.getKey()));
} else {
favoriteAccountLine.append("\" >");
}
favoriteAccountLine.append(keyValue.getValue());
favoriteAccountLine.append("</option>\n");
}
favoriteAccountLine.append("</select>");
if (checkToAddError(accountPrefix + "favoriteAccountLineIdentifier")) {
favoriteAccountLine.append(getErrorIconImageTag());
}
favoriteAccountLine.append("</td>");
favoriteAccountLine.append("<td valign=\"top\" class=\"infoline\">");
favoriteAccountLine.append("<div style=\"text-align: center;\">");
favoriteAccountLine.append("<input type=\"image\" name=\"methodToCall.addFavoriteAccount.line").append(itemIdx).append(".anchorFavoriteAnchor\" src=\"kr/static/images/tinybutton-add1.gif\" tabindex=\"0\" class=\"tinybutton\"");
favoriteAccountLine.append(" title=\"Add Favorite Accounting Line\" alt=\"Add Favorite Accounting Line\">");
favoriteAccountLine.append("</input>");
favoriteAccountLine.append("<br></div></td>");
favoriteAccountLine.append("</tr>");
return favoriteAccountLine.toString();
}
use of org.kuali.rice.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class CUConfidentialAttachmentTypeValuesFinder method getKeyValues.
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = new ArrayList<KeyValue>();
keyValues.add(new ConcreteKeyValue(ConfidentialAttachmentTypeCodes.NON_CONFIDENTIAL_ATTACHMENT_TYPE, CUKFSConstants.NON_CONFIDENTIAL_ATTACHMENT_TYPE_LABEL));
keyValues.add(new ConcreteKeyValue(ConfidentialAttachmentTypeCodes.CONFIDENTIAL_ATTACHMENT_TYPE, ConfidentialAttachmentTypeCodes.CONFIDENTIAL_ATTACHMENT_TYPE));
return keyValues;
}
use of org.kuali.rice.core.api.util.KeyValue in project cu-kfs by CU-CommunityApps.
the class TaxFpPaymentReasonValuesFinder method getKeyValues.
@SuppressWarnings("unchecked")
@Override
public List<KeyValue> getKeyValues() {
List<KeyValue> keyValues = super.getKeyValues();
keyValues.set(0, new ConcreteKeyValue(CUTaxConstants.ANY_OR_NONE_PAYMENT_REASON, "Any/None"));
return keyValues;
}
Aggregations