use of org.kuali.kfs.kns.web.ui.ExtraButton in project cu-kfs by CU-CommunityApps.
the class CuPaymentRequestForm method getExtraButtons.
@Override
public List<ExtraButton> getExtraButtons() {
super.getExtraButtons();
PaymentRequestDocument paymentRequestDocument = this.getPaymentRequestDocument();
if (StringUtils.equalsIgnoreCase(paymentRequestDocument.getFinancialSystemDocumentHeader().getApplicationDocumentStatus(), PaymentRequestStatuses.APPDOC_DEPARTMENT_APPROVED) && paymentRequestDocument.getFinancialSystemDocumentHeader().getWorkflowDocument().isFinal() && !SpringContext.getBean(CUPaymentMethodGeneralLedgerPendingEntryService.class).isPaymentMethodProcessedUsingPdp(((CuPaymentRequestDocument) paymentRequestDocument).getPaymentMethodCode())) {
ExtraButton cancelButton = null;
for (ExtraButton extraButton : extraButtons) {
if (StringUtils.equals("methodToCall.cancel", extraButton.getExtraButtonProperty())) {
cancelButton = extraButton;
}
}
if (ObjectUtils.isNotNull(cancelButton)) {
extraButtons.remove(cancelButton);
}
}
return extraButtons;
}
use of org.kuali.kfs.kns.web.ui.ExtraButton in project cu-kfs by CU-CommunityApps.
the class CuPurchaseOrderForm method createButtonsMap.
// ==== End CU Customization ====
@Override
protected Map<String, ExtraButton> createButtonsMap() {
Map<String, ExtraButton> result = super.createButtonsMap();
// ==== CU Customization (KFSPTS-1457) ====
// Reopen PO button
ExtraButton openCxerButton = new ExtraButton();
openCxerButton.setExtraButtonProperty("methodToCall.openPoCxer");
openCxerButton.setExtraButtonSource("${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_openorder.gif");
openCxerButton.setExtraButtonAltText("Open PO");
// Void PO button
ExtraButton voidCxerButton = new ExtraButton();
voidCxerButton.setExtraButtonProperty("methodToCall.voidPoCxer");
voidCxerButton.setExtraButtonSource("${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_voidorder.gif");
voidCxerButton.setExtraButtonAltText("Void PO");
result.put(openCxerButton.getExtraButtonProperty(), openCxerButton);
result.put(voidCxerButton.getExtraButtonProperty(), voidCxerButton);
return result;
}
use of org.kuali.kfs.kns.web.ui.ExtraButton in project cu-kfs by CU-CommunityApps.
the class CuVendorCreditMemoForm method getExtraButtons.
@Override
public List<ExtraButton> getExtraButtons() {
List<ExtraButton> extraButtons = super.getExtraButtons();
VendorCreditMemoDocument cmDocument = (VendorCreditMemoDocument) getDocument();
String appExternalImageURL = SpringContext.getBean(ConfigurationService.class).getPropertyValueAsString(KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY);
if (!getEditingMode().containsKey(CreditMemoEditMode.DISPLAY_INIT_TAB)) {
if (!(SpringContext.getBean(PurapService.class).isFullDocumentEntryCompleted(cmDocument) == false && documentActions.containsKey(KRADConstants.KUALI_ACTION_CAN_EDIT))) {
if (getEditingMode().containsKey(CUPaymentRequestEditMode.WAIVE_WIRE_FEE_EDITABLE)) {
addExtraButton("methodToCall.calculate", appExternalImageURL + "buttonsmall_calculate.gif", "Calculate");
}
}
}
return extraButtons;
}
use of org.kuali.kfs.kns.web.ui.ExtraButton in project cu-kfs by CU-CommunityApps.
the class IWantDocumentForm method createContinueToVendorButton.
/**
* Creates the continue button on the items page that points to the vendor page
*
* @return
*/
protected ExtraButton createContinueToVendorButton() {
ExtraButton clearButton = new ExtraButton();
clearButton.setExtraButtonProperty("methodToCall.continueToVendor");
clearButton.setExtraButtonSource("${" + KFSConstants.RICE_EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_continue.gif");
clearButton.setExtraButtonAltText("Continue");
return clearButton;
}
use of org.kuali.kfs.kns.web.ui.ExtraButton in project cu-kfs by CU-CommunityApps.
the class IWantDocumentForm method createCreateDVButton.
protected ExtraButton createCreateDVButton() {
ExtraButton clearButton = new ExtraButton();
clearButton.setExtraButtonProperty("methodToCall.createDV");
clearButton.setExtraButtonSource("${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_create_DV.gif");
clearButton.setExtraButtonAltText("Create DV");
clearButton.setExtraButtonOnclick("window.open('" + ConfigContext.getCurrentContextConfig().getProperty(KRADConstants.APPLICATION_URL_KEY) + "/financialDisbursementVoucher.do?methodToCall=createDVFromIWantDoc&docId=" + getDocument().getDocumentNumber() + "');return false;");
clearButton.setExtraButtonParams("_blank");
return clearButton;
}
Aggregations