processRunRecoverDialog.jsp 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html" %>
  3. <html>
  4. <head>
  5. <%@include file="/commons/include/get.jsp" %>
  6. <title>撤销原因</title>
  7. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
  8. <script type="text/javascript" src="${ctx}/js/lg/plugins/ligerMsg.js"></script>
  9. <script type="text/javascript" src="${ctx}/js/lg/plugins/ligerDialog.js" ></script>
  10. <script type="text/javascript">
  11. /*KILLDIALOG*/
  12. var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
  13. var callBack=function(rtn){
  14. if(!rtn) return;
  15. var json=$("#frmRecover").serialize() ;
  16. var url=__ctx +"/platform/bpm/processRun/recover.ht";
  17. $.post(url,json,function(responseText){
  18. $("a.save").addClass("disabled");
  19. var obj=new com.hotent.form.ResultMessage(responseText);
  20. if(obj.isSuccess()){
  21. $.ligerDialog.success(obj.getMessage(),'提示',function(){
  22. //window.returnValue=1;
  23. dialog.get('sucCall')(1);
  24. dialog.close();
  25. });
  26. }
  27. else{
  28. $("a.save").removeClass("disabled");
  29. $.ligerDialog.err('提示','保存失败!',obj.getMessage());
  30. }
  31. });
  32. };
  33. $(function(){
  34. $("a.save").click(function(){
  35. if($(this).hasClass("disabled"))
  36. return;
  37. if($.isEmpty( $('#opinion').val())){
  38. $.ligerDialog.warn('请填写撤销原因!','提示');
  39. $('#opinion').focus();
  40. return;
  41. }
  42. $.ligerDialog.confirm('确认撤销此流程吗?','提示',callBack);
  43. });
  44. })
  45. </script>
  46. </head>
  47. <body>
  48. <div class="panel">
  49. <div class="panel-top">
  50. <div class="tbar-title">
  51. <span class="tbar-label">撤销原因</span>
  52. </div>
  53. <div class="panel-toolbar">
  54. <div class="toolBar">
  55. <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>撤销</a></div>
  56. <div class="l-bar-separator"></div>
  57. <div class="group"><a class="link close" href="javascript:;" onclick="dialog.close();"><span></span>关闭</a></div>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="panel-body">
  62. <form id="frmRecover">
  63. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  64. <tr>
  65. <th nowrap="nowrap">发送方式:</th>
  66. <td>
  67. <c:forEach items="${handlersMap}" var="item">
  68. <input type="checkbox" name="informType" value="${item.key }" <c:if test="${item.value.isDefaultChecked}">checked="checked"</c:if> />
  69. ${item.value.title }
  70. </c:forEach>
  71. </td>
  72. </tr>
  73. <tr>
  74. <th>撤销原因:</th>
  75. <td>
  76. <textarea rows="7" cols="61" style="width:350px;" id="opinion" name="opinion"></textarea>
  77. <input type="hidden" name="runId" value="${runId }"/>
  78. <input type="hidden" name="backToStart" value="${backToStart }"/>
  79. </td>
  80. </tr>
  81. </table>
  82. </form>
  83. </div>
  84. </div>
  85. </body>
  86. </html>