/** * Creates the button for creating the requisition. If JavaScript is enabled on the client, then * the requisition will be created in a new window/tab instead of the current one. * * @return */ protected ExtraButton createCreateRequisitionButton() { ExtraButton clearButton = new ExtraButton(); clearButton.setExtraButtonProperty("methodToCall.createRequisition"); clearButton.setExtraButtonSource( "${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_create_req.gif"); clearButton.setExtraButtonAltText("Create Req"); clearButton.setExtraButtonOnclick( "window.open('" + ConfigContext.getCurrentContextConfig().getProperty(KRADConstants.APPLICATION_URL_KEY) + "/purapRequisition.do?methodToCall=createReqFromIWantDoc&docId=" + getDocument().getDocumentNumber() + "');return false;"); return clearButton; }
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; }