processRunFWMyFwOrver.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8"
  3. pageEncoding="UTF-8"%>
  4. <%@include file="/commons/include/html_doctype.html"%>
  5. <html>
  6. <head>
  7. <%@include file="/commons/include/get.jsp"%>
  8. <title>我的请求</title>
  9. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
  10. <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/SelectUtil.js" ></script>
  11. <script type="text/javascript">
  12. var dialog;
  13. function showDetail(obj){
  14. var url = $(obj).attr("action");
  15. jQuery.openFullWindow(url);
  16. };
  17. //重新提交
  18. function executeTask(procInstId){
  19. var url= "${ctx}/platform/bpm/task/toStart.ht?instanceId="+procInstId;
  20. jQuery.openFullWindow(url);
  21. };
  22. //公文归档方法 limeng2019-5-29 add
  23. function forDone(runId){
  24. var url="${ctx}/platform/register/provinceRegister/forDone.ht?runId="+runId;
  25. $.post(url,{runId:runId},function(data){
  26. var jsdata=JSON.parse(data);
  27. if(jsdata.success){
  28. $.ligerDialog.success("公文归档成功!","提示",function(rtn){
  29. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  30. });
  31. }else{
  32. $.ligerDialog.err("网络繁忙!请稍后重试","提示",function(rtn){
  33. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  34. });
  35. }
  36. });
  37. }
  38. function showDocument(){
  39. var h = document.body.clientHeight;
  40. $('.datagrid-mask').css({display:"block",width:"100%",height:h}).appendTo("body");
  41. }
  42. function removeDocument(){
  43. $('.datagrid-mask').remove();
  44. }
  45. //公文归档并下发方法 limeng 2019-08-05 add
  46. function forDoneAndDispatch(runId) {
  47. beforeCheck(runId);
  48. return;
  49. showDocument();
  50. var url="${ctx}/platform/bpm/processRun/forDoneAndDispatch.ht?runId="+runId;
  51. $.post(url,{runId:runId},function(data){
  52. var jsdata=JSON.parse(data);
  53. removeDocument();
  54. if(jsdata.success == "true"){
  55. $.ligerDialog.success("公文归档成功!","提示",function(rtn){
  56. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  57. });
  58. }else if(jsdata.success == "empty"){
  59. $.ligerDialog.warn("该流程主送人抄送人为空!无法下发","提示",function(rtn){
  60. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  61. });
  62. }else if(jsdata.success == "emptyFile"){
  63. $.ligerDialog.warn("该流程未产生正文!无法下发","提示",function(rtn){
  64. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  65. });
  66. }else{
  67. $.ligerDialog.warn("网络繁忙!请稍后重试","提示",function(rtn){
  68. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  69. });
  70. }
  71. });
  72. }
  73. //公文归档并上报方法 add
  74. function checkFileAndReport(runId){
  75. var url="${ctx}/platform/bpm/processRun/checkFileAndReport.ht?runId="+runId;
  76. dialog=DialogUtil.open({
  77. height : 550,
  78. width : 900,
  79. title : '上报',
  80. url: url
  81. });
  82. }
  83. function beforeCheck(runId,flag){
  84. var url="${ctx}/platform/bpm/processRun/beforeCheck.ht?runId="+runId+"&flag="+flag;
  85. dialog=DialogUtil.open({
  86. height : 550,
  87. width : 900,
  88. title : '请核对文件',
  89. url: url
  90. });
  91. }
  92. function checkReport(runId,isOrNotHave){
  93. if(isOrNotHave==1){
  94. console.log(isOrNotHave)
  95. var url="${ctx}/platform/bpm/processRun/checkReport.ht?runId="+runId;
  96. dialog=DialogUtil.open({
  97. height : 750,
  98. width : 1050,
  99. title : '归档',
  100. url: url
  101. });
  102. }else{
  103. forDone(runId);
  104. }
  105. }
  106. //查看签收方法 limeng 2019-08-06 add
  107. function checkSignReceipt(runId){
  108. var url="${ctx}/platform/bpm/processRun/checkSignReceipt.ht?runId="+runId;
  109. dialog=DialogUtil.open({
  110. height : 600,
  111. width : 800,
  112. title : '查看签收',
  113. url: url
  114. });
  115. }
  116. function closeDia(){
  117. dialog.close();
  118. }
  119. function closeBeforeCheckDia(){
  120. dialog.close();
  121. location.href="${ctx}/platform/bpm/processRunFW/myFwOrver.ht";
  122. }
  123. </script>
  124. </head>
  125. <body>
  126. <div class="panel datagrid-mask">
  127. <div class="hide-panel">
  128. <div class="panel-top">
  129. <div class="tbar-title">
  130. <span class="tbar-label">我的发文</span>
  131. </div>
  132. <div class="panel-toolbar">
  133. <div class="toolBar">
  134. <div class="group">
  135. <a class="link search" id="btnSearch"><span></span>查询</a>
  136. <a href="javascript:;" class="link reset" onclick="$.clearQueryForm();"><span></span>重置</a>
  137. <div class="l-bar-separator"></div>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="panel-search">
  142. <form id="searchForm" method="post" action="myFwOrver.ht">
  143. <ul class="row">
  144. <input type="hidden" name="nodePath" value="${param['nodePath']}" title="流程分类节点路径"></input>
  145. <li>
  146. <span class="label">发文标题:</span>
  147. <input type="text" name="Q_subject_SUPL" size="18" class="inputText" value="${param['Q_subject_SUPL']}"/>
  148. </li>
  149. <li>
  150. <span class="label">流程名称:</span>
  151. <input type="text" name="Q_processName_SUPL" size="18" class="inputText" value="${param['Q_processName_SUPL']}" />
  152. <input type="hidden" id="orgId" name="Q_orgId_L" value="${param['Q_orgId_L']}" />
  153. </li>
  154. <li>
  155. <span class="label">状态:</span>
  156. <select name="Q_status_SN">
  157. <option value="">所有</option>
  158. <option value="2" <c:if test="${param['Q_status_SN'] == '2'}">selected</c:if>>结束</option>
  159. <option value="3" <c:if test="${param['Q_status_SN'] == '3'}">selected</c:if>>人工结束</option>
  160. <option value="10" <c:if test="${param['Q_status_SN'] == '10'}">selected</c:if>>逻辑删除</option>
  161. </select>
  162. </li>
  163. <!-- 是否有全局流水号 -->
  164. <c:if test="${hasGlobalFlowNo }">
  165. <li><span class="label">工单号:</span><input type="text" name="Q_globalFlowNo_SL" class="inputText" value="${param['Q_globalFlowNo_SL']}"/></li>
  166. </c:if>
  167. <div class="row_date">
  168. <li>
  169. <span class="label">创建时间&nbsp;从:</span>
  170. <input name="Q_begincreatetime_DL" id="Q_begincreatetime_DL" size="18" class="inputText datePicker" datetype="1" value="${param['Q_begincreatetime_DL']}" />
  171. </li>
  172. <li>
  173. <span class="label">至: </span>
  174. <input name="Q_endcreatetime_DG" id="Q_endcreatetime_DG" size="18" class="inputText datePicker" datetype="2" value="${param['Q_endcreatetime_DG']}" />
  175. </li>
  176. </div>
  177. </ul>
  178. </form>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="panel-body">
  183. <display:table name="processRunList" id="processRunItem" requestURI="myFwOrver.ht" sort="external" cellpadding="1" cellspacing="1" export="false" class="table-grid">
  184. <display:column titleKey="序号" media="html" style="width:50px;">${processRunItem_rowNum}</display:column>
  185. <!-- 是否有全局流水号 -->
  186. <c:if test="${hasGlobalFlowNo }">
  187. <%-- <display:column property="globalFlowNo" title="工单号" sortable="true" sortName="globalFlowNo" style="text-align:left;"></display:column> --%>
  188. </c:if>
  189. <display:column titleKey="请求标题" sortable="true" sortName="subject" style="text-align:left">
  190. <c:choose>
  191. <c:when test="${!processRunItem.allowBackToStart and (processRunItem.status==4 or processRunItem.status==5)}">
  192. <a href="#${processRunItem.actInstId}" onclick="javascript:executeTask('${processRunItem.actInstId}')" title='${processRunItem.subject}'>${f:subString(processRunItem.subject)}</a>
  193. </c:when>
  194. <c:otherwise>
  195. <a name="processDetail" onclick="showDetail(this)" href="#${processRunItem.runId}" action="${ctx}/platform/bpm/processRun/info.ht?prePage=myCompletedList&link=1&runId=${processRunItem.runId}" title='${processRunItem.subject}'>${f:subString(processRunItem.subject)}</a>
  196. </c:otherwise>
  197. </c:choose>
  198. </display:column>
  199. <display:column titleKey="创建时间" sortable="true" sortName="createtime">
  200. <fmt:formatDate value="${processRunItem.createtime}"
  201. pattern="yyyy-MM-dd HH:mm:ss" />
  202. </display:column>
  203. <display:column titleKey="持续时间" sortable="true" sortName="duration">
  204. ${f:getDurationTime(processRunItem.createtime)}
  205. </display:column>
  206. <display:column titleKey="类型" >
  207. <c:out value="${processRunItem.typeName}"></c:out>
  208. </display:column>
  209. <display:column titleKey="操作" sortable="true" sortName="modifty" >
  210. <c:choose>
  211. <c:when test="${processRunItem.status==2||processRunItem.status==3 || processRunItem.status==12}">
  212. <c:choose>
  213. <c:when test="${processRunItem.idea == 0}">
  214. <c:choose>
  215. <c:when test="${processRunItem.status == 12}">
  216. <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
  217. </c:when>
  218. <c:otherwise>
  219. <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','dispatch')" value="归档并下发" />
  220. </c:otherwise>
  221. </c:choose>
  222. </c:when>
  223. <c:when test="${processRunItem.idea == 3}">
  224. <c:choose>
  225. <c:when test="${processRunItem.status == 12}">
  226. <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
  227. </c:when>
  228. <c:otherwise>
  229. <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','report')" value="归档并上报" />
  230. </c:otherwise>
  231. </c:choose>
  232. </c:when>
  233. <c:when test="${processRunItem.idea == 4}">
  234. <c:choose>
  235. <c:when test="${processRunItem.status == 12}">
  236. <input type="button" class="link " onclick="checkSignReceipt('${processRunItem.runId}')" value="查看签收" style="background: #3094f1;border:0px;color: #fff;cursor: pointer; " />
  237. </c:when>
  238. <c:otherwise>
  239. <input type="button" class="guidang" onclick="beforeCheck('${processRunItem.runId}','dispatch')" value="归档并下发" />
  240. </c:otherwise>
  241. </c:choose>
  242. </c:when>
  243. <c:when test="${processRunItem.idea == 1}">
  244. <input type="button" class="guidang" onclick="checkReport('${processRunItem.runId}','${processRunItem.isOrNotHave}')" value="归档" />
  245. </c:when>
  246. <c:otherwise>
  247. <input type="button" class="guidang" onclick="forDone('${processRunItem.runId}')" value="归档" />
  248. </c:otherwise>
  249. </c:choose>
  250. </c:when>
  251. </c:choose>
  252. </display:column>
  253. </display:table>
  254. <hotent:paging tableId="processRunItem"></hotent:paging>
  255. <div class="datagrid-mask" style="position:fixed;z-index:110;top:0px;left:0px;display:none;background-color:rgba(0,0,0,0.2);"><img src="${ctx}/styles/blue/images/qdd.gif" style="left:50%;margin-left:-160px;display:block;position:absolute;top:50%;margin-top:-152px;"></div>
  256. </div>
  257. <!-- end of panel-body -->
  258. </div>
  259. <!-- end of panel -->
  260. </body>
  261. </html>