processRunRedoDialog.jsp 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. var obj=new com.hotent.form.ResultMessage(responseText);
  19. if(obj.isSuccess()){
  20. $.ligerDialog.success(obj.getMessage(),'提示',function(){
  21. //window.returnValue=1;
  22. dialog.get('sucCall')(1);
  23. dialog.close();
  24. });
  25. }
  26. else{
  27. $.ligerDialog.err('提示','保存失败!',obj.getMessage());
  28. }
  29. });
  30. };
  31. $(function(){
  32. $("a.save").click(function(){
  33. if($.isEmpty( $('#opinion').val())){
  34. $.ligerDialog.warn('必须填写追回原因!','提示');
  35. $('#opinion').focus();
  36. return;
  37. }
  38. $.ligerDialog.confirm('是否确认追回?','提示',callBack);
  39. });
  40. })
  41. </script>
  42. </head>
  43. <body>
  44. <div class="panel">
  45. <div class="panel-top">
  46. <div class="tbar-title">
  47. <span class="tbar-label">追回原因</span>
  48. </div>
  49. <div class="panel-toolbar">
  50. <div class="toolBar">
  51. <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>追回</a></div>
  52. <div class="l-bar-separator"></div>
  53. <div class="group"><a class="link close" href="javascript:;" onclick="dialog.close();"><span></span>关闭</a></div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="panel-body">
  58. <form id="frmRecover">
  59. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  60. <tr>
  61. <th nowrap="nowrap">发送方式:</th>
  62. <td>
  63. <%--
  64. <input type="checkbox" name="informType" value="3" checked="checked">站内消息</label>
  65. <input type="checkbox" name="informType" checked="checked" value="1">邮件
  66. <input type="checkbox" name="informType" value="2">短信
  67. --%>
  68. <c:forEach items="${handlersMap}" var="item">
  69. <input type="checkbox" name="informType" value="${item.key }" <c:if test="${item.value.isDefaultChecked}">checked="checked"</c:if> />
  70. ${item.value.title }
  71. </c:forEach>
  72. </td>
  73. </tr>
  74. <tr>
  75. <th>追回原因:</th>
  76. <td>
  77. <textarea rows="7" cols="61" style="width:350px;" id="opinion" name="opinion"></textarea>
  78. <input type="hidden" name="runId" value="${runId }"/>
  79. <input type="hidden" name="backToStart" value="${backToStart}"/>
  80. </td>
  81. </tr>
  82. </table>
  83. </form>
  84. </div>
  85. </div>
  86. </body>
  87. </html>