本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.DOCUMENT_DISAPPROVE_QUESTION属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.DOCUMENT_DISAPPROVE_QUESTION属性的具体用法?Java KRADConstants.DOCUMENT_DISAPPROVE_QUESTION怎么用?Java KRADConstants.DOCUMENT_DISAPPROVE_QUESTION使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.kuali.rice.krad.util.KRADConstants
的用法示例。
在下文中一共展示了KRADConstants.DOCUMENT_DISAPPROVE_QUESTION属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: disapprove
/**
* Calls the document service to disapprove the document
*
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
* @throws Exception
*/
public ActionForward disapprove(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
ReasonPrompt prompt = new ReasonPrompt(KRADConstants.DOCUMENT_DISAPPROVE_QUESTION, RiceKeyConstants.QUESTION_DISAPPROVE_DOCUMENT, KRADConstants.CONFIRMATION_QUESTION, RiceKeyConstants.ERROR_DOCUMENT_DISAPPROVE_REASON_REQUIRED, KRADConstants.MAPPING_DISAPPROVE, ConfirmationQuestion.NO, RiceKeyConstants.MESSAGE_DISAPPROVAL_NOTE_TEXT_INTRO);
ReasonPrompt.Response resp = prompt.ask(mapping, form, request, response);
if (resp.forward != null) {
return resp.forward;
}
KualiDocumentFormBase kualiDocumentFormBase = (KualiDocumentFormBase) form;
doProcessingAfterPost(kualiDocumentFormBase, request);
Document document = kualiDocumentFormBase.getDocument();
document = getDocumentService().disapproveDocument(document, resp.reason);
kualiDocumentFormBase.setDocument(document);
KNSGlobalVariables.getMessageList().add(RiceKeyConstants.MESSAGE_ROUTE_DISAPPROVED);
kualiDocumentFormBase.setAnnotation("");
return returnToSender(request, mapping, kualiDocumentFormBase);
}