taskGetMyTasksNew.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. <!--首页发文收文更多页面 -->
  7. <title>待办事宜</title>
  8. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
  9. <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/BpmTaskExeAssignDialog.js"></script>
  10. <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/SelectUtil.js" ></script>
  11. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/UserInfo.js"></script>
  12. <script type="text/javascript">
  13. $(function(){
  14. $("[name='subject']").click(function(){
  15. $("#treeFresh",window.parent.document).trigger("click");
  16. });
  17. });
  18. function executeTask(taskId){
  19. var url="${ctx}/platform/bpm/task/toStart.ht?taskId="+taskId;
  20. var rtn = jQuery.openFullWindow(url);
  21. }
  22. //重启任务
  23. function restartTask(taskId){
  24. var url="${ctx}/platform/bpm/task/restartTask.ht?taskId="+taskId;
  25. var rtn = jQuery.openFullWindow(url);
  26. }
  27. function reload(){
  28. location.href=location.href.getNewUrl();
  29. parent.globalType.loadGlobalTree();
  30. }
  31. function batOperator(operator){
  32. if(operator=="approve"){
  33. if ($("#btnApprove").attr('class').indexOf('disabled')>0){return false;}
  34. }
  35. else{
  36. if ($("#btnBatDelegate").attr('class').indexOf('disabled')>0){return false;}
  37. }
  38. var aryId = $("input[type='checkbox'][disabled!='disabled'][class='pk']:checked");
  39. var len=aryId.length;
  40. if(len==0){
  41. $.ligerDialog.warn('请选择记录!','提示');
  42. return;
  43. }
  44. var taskIds=new Array();
  45. $("input[name='id']:checked").each(function(){
  46. taskIds.push($(this).val());
  47. });
  48. var ids=taskIds.join(",");
  49. var url=__ctx + "/platform/bpm/task/pendingMattersListBatchApprovalCfm.ht?taskIds="+ids;
  50. if(operator=="delegate"){
  51. url=__ctx + "/platform/bpm/task/delegateDialog.ht?taskIds="+ids;
  52. }
  53. var winArgs="dialogWidth=500px;dialogHeight=250px;help=0;status=0;scroll=0;center=1";
  54. url=url.getNewUrl();
  55. /* var rtn=window.showModalDialog(url,"",winArgs);
  56. if (rtn=='ok'){
  57. location.href=location.href.getNewUrl();
  58. } */
  59. /*KILLDIALOG*/
  60. DialogUtil.open({
  61. height:350,
  62. width: 450,
  63. title : '批量审批',
  64. url: url,
  65. isResize: true,
  66. //自定义参数
  67. sucCall:function(rtn){
  68. if (rtn=='ok'){
  69. location.href=location.href.getNewUrl();
  70. }
  71. }
  72. });
  73. }
  74. /**
  75. * 跳转到批量审批界面
  76. */
  77. function summaryBatch(){
  78. parent.location.href= "${ctx}/platform/bpm/bpmBatchApproval/manage.ht";
  79. }
  80. </script>
  81. </head>
  82. <body>
  83. <div class="panel" >
  84. <div class="hide-panel">
  85. <div class="panel-top">
  86. <div class="tbar-title">
  87. <span class="tbar-label">待办事宜</span>
  88. </div>
  89. <div class="panel-toolbar">
  90. <div class="toolBar">
  91. <div class="group"><a class="link search" id="btnSearch"><span></span>查询</a></div>
  92. <div class="l-bar-separator"></div>
  93. <div class="group"><a class="link reset" onclick="$.clearQueryForm()"><span></span>重置</a></div>
  94. <%-- <div class="l-bar-separator"></div>
  95. <div class="group"><f:a alias="batchApproval" css="link save" id="btnApprove" href="javascript:;" showNoRight="false" onclick="summaryBatch()"><span></span>批量审批</f:a></div> --%>
  96. </div>
  97. </div>
  98. <div class="panel-search" >
  99. <form id="searchForm" method="post" action="getMyTasksNew.ht?porIndex=${porIndex}&tabIndex=${tabIndex}">
  100. <ul class="row">
  101. <input type="hidden" name="nodePath" value="${param['nodePath']}" title="流程分类节点路径"></input>
  102. <li>
  103. <span class="label">事项名称:</span>
  104. <input type="text" name="Q_subject_SUPL" class="inputText" value="${param['Q_subject_SUPL']}"/>
  105. </li>
  106. <li>
  107. <span class="label">流程名称:</span>
  108. <input type="text" name="Q_processName_SUPL" class="inputText" value="${param['Q_processName_SUPL']}"/>
  109. </li>
  110. <li>
  111. <span class="label">创 建 人:</span>
  112. <input type="hidden" id="creatorId" class="inputText" name="Q_creatorId_L" value="${param['Q_creatorId_L']}" />
  113. <input type="text" id="creator" name="Q_creator_SL" class="inputText" style="width: 110px;" value="${param['Q_creator_SL']}" onclick="selectUser('creatorId','creator');" readonly="readonly" />
  114. <input type="button" value="..." class="buttonSearch" onclick="selectUser('creatorId','creator');">
  115. </li>
  116. </ul>
  117. <ul class="row">
  118. <li>
  119. <span class="label">阅读状态:</span>
  120. <select name="Q_hasRead_S" class="selectSearch">
  121. <option value="">所有</option>
  122. <option value="0" <c:if test="${param['Q_hasRead_S'] == '0'}">selected</c:if>>未读</option>
  123. <option value="1" <c:if test="${param['Q_hasRead_S'] == '1'}">selected</c:if>>已读</option>
  124. </select>
  125. </li>
  126. <li>
  127. <span class="label">待办类型:</span>
  128. <select name="Q_type_S" class="selectSearch">
  129. <option value="">所有</option>
  130. <option value="-1" <c:if test="${param['Q_type_S'] == '-1'}">selected</c:if>>待办</option>
  131. <option value="21" <c:if test="${param['Q_type_S'] == '21'}">selected</c:if>>转办</option>
  132. <option value="15" <c:if test="${param['Q_type_S'] == '15'}">selected</c:if>>沟通意见</option>
  133. <option value="26" <c:if test="${param['Q_type_S'] == '26'}">selected</c:if>>代理</option>
  134. <option value="38" <c:if test="${param['Q_type_S'] == '38'}">selected</c:if>>流转意见</option>
  135. </select>
  136. </li>
  137. <li>
  138. <span class="label">状态:</span>
  139. <select name="Q_status_N" class="selectSearch">
  140. <option value="">所有</option>
  141. <option value="1" <c:if test="${param['Q_status_N'] == '1'}">selected</c:if>>审批中</option>
  142. <option value="5" <c:if test="${param['Q_status_N'] == '5'}">selected</c:if>>已撤销</option>
  143. <option value="6" <c:if test="${param['Q_status_N'] == '6'}">selected</c:if>>已驳回</option>
  144. </select>
  145. </li><!-- 是否有全局流水号 -->
  146. <c:if test="${hasGlobalFlowNo }">
  147. <li><span class="label">工单号:</span><input type="text" name="Q_globalFlowNo_SL" class="inputText" value="${param['Q_globalFlowNo_SL']}"/></li>
  148. </c:if>
  149. <div class="row_date">
  150. <li>
  151. <span class="label">创建时间 &nbsp;从:</span>
  152. <input type="text" name="Q_beginCreateTime_DL" class="datePicker inputText" datetype="1" value="${param['Q_beginCreateTime_DL']}"/>
  153. </li>
  154. <li>
  155. <span class="label">至: </span>
  156. <input type="text" name="Q_endCreateTime_DG" class="datePicker inputText" value="${param['Q_endCreateTime_DG']}" datetype="2"/>
  157. </li>
  158. </div>
  159. </ul>
  160. </form>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="panel-body">
  165. <c:set var="checkAll">
  166. <input type="checkbox" id="chkall"/>
  167. </c:set>
  168. <display:table name="taskList" id="taskItem" requestURI="getMyTasksNew.ht" export="true" sort="external" cellpadding="1" cellspacing="1" class="table-grid">
  169. <div style="background-color: red">
  170. <display:column title="${checkAll}" media="html" style="width:20px;">
  171. <%-- 15 为沟通意见 , 38为流转意见--%>
  172. <c:choose>
  173. <c:when test="${taskItem.description eq '15' || taskItem.description eq '38'}">
  174. <input type="checkbox" class="pk" name="id" disabled="disabled" value="${taskItem.id}">
  175. </c:when>
  176. <c:otherwise >
  177. <input type="checkbox" class="pk" name="id" value="${taskItem.id}">
  178. </c:otherwise>
  179. </c:choose>
  180. </display:column>
  181. <!-- 是否有全局流水号 -->
  182. <c:if test="${hasGlobalFlowNo }">
  183. <display:column property="globalFlowNo" title="工单号" sortable="true" sortName="globalFlowNo" style="text-align:left;"></display:column>
  184. </c:if>
  185. <display:column title="事项名称" sortable="true" sortName="subject" style="text-align:left;" >
  186. <c:choose>
  187. <c:when test="${taskItem.description eq '36'}">
  188. <a name="subject" href="#${taskItem.id}" onclick="javascript:restartTask(${taskItem.id})" style="color:${warningSet[taskItem.priority].color}" title='${taskItem.subject}' <c:if test="${taskItem.hasRead == 0}"> class='message close-message'</c:if><c:if test="${taskItem.hasRead != 0}"> class='message open-message'</c:if> >${f:subString(taskItem.subject)}</a>
  189. </c:when>
  190. <c:otherwise>
  191. <a name="subject" href="#${taskItem.id}" onclick="javascript:executeTask(${taskItem.id})" style="color:${warningSet[taskItem.priority].color}" title='${taskItem.subject}' <c:if test="${taskItem.hasRead == 0}"> class='message close-message'</c:if><c:if test="${taskItem.hasRead != 0}"> class='message open-message'</c:if> >${f:subString(taskItem.subject)}</a>
  192. </c:otherwise>
  193. </c:choose>
  194. </display:column>
  195. <display:column title="任务名称" property="name" style="text-align:left;" >
  196. </display:column>
  197. <display:column property="processName" title="流程名称" sortable="true" sortName="processName" style="text-align:left"></display:column>
  198. <display:column title="创建人" sortable="true" sortName="creator" style="text-align:left">
  199. <a href="javascript:userDetail('${taskItem.creatorId}');">${taskItem.creator}</a>
  200. </display:column>
  201. <display:column title="创建时间" sortable="true" sortName="create_time_">
  202. <fmt:formatDate value="${taskItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  203. </display:column>
  204. <display:column title="状态" style="width:30px;" >
  205. <c:choose>
  206. <c:when test="${taskItem.taskStatus==1}">审批中</c:when>
  207. <c:when test="${taskItem.taskStatus==5}">已撤销</c:when>
  208. <c:when test="${taskItem.taskStatus==6}">已驳回</c:when>
  209. <c:when test="${taskItem.taskStatus==7}">已追回</c:when>
  210. </c:choose>
  211. </display:column>
  212. <display:column title="待办类型" style="width:30px;">
  213. <c:choose>
  214. <c:when test="${taskItem.description=='-1'}">
  215. <span class="green">待办</span>
  216. </c:when>
  217. <c:when test="${taskItem.description eq '21' }" >
  218. <span class="brown">转办</span>
  219. </c:when>
  220. <c:when test="${taskItem.description eq '15' }" >
  221. <span class="orange">沟通意见</span>
  222. </c:when>
  223. <c:when test="${taskItem.description eq '26' }" >
  224. <span class="brown">代理</span>
  225. </c:when>
  226. <c:when test="${taskItem.description eq '38' }" >
  227. <span class="red">流转意见</span>
  228. </c:when>
  229. </c:choose>
  230. </display:column>
  231. </div>
  232. </display:table>
  233. <hotent:paging tableId="taskItem" />
  234. </div>
  235. </div>
  236. </body>
  237. </html>