taskDetail.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <title>编辑 系统角色表</title>
  6. <%@include file="/commons/include/get.jsp" %>
  7. <script type="text/javascript" src="${ctx}/js/lg/plugins/ligerMenu.js" ></script>
  8. <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/TaskChangePathWindow.js" ></script>
  9. <script type="text/javascript">
  10. var taskId="${taskEntity.id}";
  11. $(function(){
  12. var menuItem={ width: 120, items:[
  13. { id:'changePath',taskId:taskId,text: '更改执行路径', click: itemclick},
  14. { id:'completeTask', taskId:taskId,text: '完成任务', click: itemclick},
  15. { id:'approvalDetail',taskId:taskId, text: '审批明细', click: itemclick},
  16. { id:'businessForm',taskId:taskId, text: '业务表单', click: itemclick}
  17. ]
  18. };
  19. //加上菜单
  20. $("div[name='taskMenu']").ligerMenuBar({ items: [
  21. { text: '<a href="javascript:;">更多任务操作</a>', menu: menuItem}]
  22. });
  23. $("div[name='taskMenu']").removeClass('l-menubar');
  24. });
  25. function itemclick(item){
  26. if(item.id=='changePath'){//更改执行路径
  27. TaskChangePathWindow({taskId:taskId,callback:function(rtn){
  28. if(rtn==1){
  29. if(window.opener){
  30. try{
  31. window.opener.location.href=__ctx + "/platform/bpm/task/list.ht";
  32. }
  33. catch(e){}
  34. }
  35. window.close();
  36. }
  37. }});
  38. }else if(item.id=='completeTask'){//结束任务
  39. $.ligerDialog.confirm('确定结束该任务吗?','提示信息',function(rtn){
  40. if(!rtn) return;
  41. url=__ctx + "/platform/bpm/task/end.ht?taskId="+ item.taskId;
  42. $.post(url,function(responseText){
  43. var obj=new com.hotent.form.ResultMessage(responseText);
  44. if(obj.isSuccess()){//成功
  45. if(window.opener){
  46. try{
  47. window.opener.location.href=__ctx + "/platform/bpm/task/list.ht";
  48. }
  49. catch(e){}
  50. }
  51. $.ligerDialog.success(obj.getMessage(),'提示信息',function(){
  52. window.close();
  53. });
  54. }
  55. else{
  56. $.ligerDialog.err('出错信息',"更改执行路径失败",obj.getMessage());
  57. }
  58. });
  59. });
  60. }else if(item.id=='approvalDetail'){
  61. var winArgs="dialogWidth=780px;dialogHeight=600px;help=0;status=0;scroll=1;center=1";
  62. var url=__ctx + '/platform/bpm/taskOpinion/list.ht?taskId='+item.taskId;
  63. url=url.getNewUrl();
  64. //window.showModalDialog(url,"",winArgs);
  65. /*KILLDIALOG*/
  66. DialogUtil.open({
  67. height:600,
  68. width: 780,
  69. title : '编辑 系统角色表',
  70. url: url,
  71. isResize: true,
  72. });
  73. }else if(item.id=='taskComment'){// 任务评论
  74. TaskCommentWindow({taskId:item.taskId});
  75. }
  76. else if(item.id=="businessForm"){
  77. var url=__ctx+ '/platform/bpm/task/getForm.ht?taskId='+item.taskId;
  78. jQuery.openFullWindow(url);
  79. }
  80. }
  81. </script>
  82. </head>
  83. <body>
  84. <div class="panel">
  85. <div class="panel-top">
  86. <div class="tbar-title">
  87. <span class="tbar-label">任务明细--${processRun.subject}--${taskEntity.name}</span>
  88. </div>
  89. <div class="panel-toolbar">
  90. <div class="toolBar">
  91. <div class="group"><a class="link close" href="javascript:window.close();"><span></span>关闭</a></div>
  92. </div>
  93. </div>
  94. </div>
  95. <f:tab curTab="detail" tabName="task"/>
  96. <div class="panel-body">
  97. <div class="panel-toolbar">
  98. <div class="toolBar">
  99. <div class="group"><div name="taskMenu"></div></div>
  100. </div>
  101. </div>
  102. <table class="table-detail" style="width:100%">
  103. <tr>
  104. <th nowrap="nowrap" width="100">流程事项名称</th>
  105. <td width="*">
  106. ${processRun.subject}
  107. </td>
  108. </tr>
  109. <tr>
  110. <th>任务ID</th>
  111. <td>${taskEntity.id}</td>
  112. </tr>
  113. <tr>
  114. <th nowrap="nowrap">
  115. 流程运行(RUNID)
  116. </th>
  117. <td>${processRun.runId}</td>
  118. </tr>
  119. <tr>
  120. <th nowrap="nowrap">任务名</th>
  121. <td>${taskEntity.name}</td>
  122. </tr>
  123. <tr>
  124. <th>任务描述</th>
  125. <td>
  126. <c:choose>
  127. <c:when test="${not empty taskEntity.description}">
  128. ${taskEntity.description}
  129. </c:when>
  130. <c:otherwise>${taskEntity.name}</c:otherwise>
  131. </c:choose>
  132. </td>
  133. </tr>
  134. <tr>
  135. <th nowrap="nowrap">所属人</th>
  136. <td>
  137. <span><f:userName userId="${taskEntity.owner}"/></span>&nbsp; <c:if test="${not empty param['manage']}"><a href='#' class='button' onclick="setTaskOwner(this,${taskEntity.id})"><span>更改..</span></c:if> </a>
  138. </td>
  139. </tr>
  140. <tr>
  141. <th nowrap="nowrap">执行人</th>
  142. <td>
  143. <span><f:userName userId="${taskEntity.assignee}"/></span>&nbsp;<c:if test="${not empty param['manage']}"><a href='#' class='button' onclick="setTaskAssignee(this,${taskEntity.id})"><span>更改..</span></c:if></a>
  144. </td>
  145. </tr>
  146. <tr>
  147. <th nowrap="nowrap">候选执行人</th>
  148. <td>
  149. <c:choose>
  150. <c:when test="${fn:length(candidateUsers)==0}">
  151. <font color='red'>暂无</font>
  152. </c:when>
  153. <c:otherwise>
  154. <c:forEach items="${candidateUsers}" var="executor">
  155. <c:if test="${not empty executor }">
  156. <c:set var="type" >
  157. <c:choose>
  158. <c:when test="${executor.type == 'org' }">(组织)</c:when>
  159. <c:when test="${executor.type == 'role' }">(角色)</c:when>
  160. <c:when test="${executor.type == 'pos' }">(岗位)</c:when>
  161. <c:otherwise>(用户)</c:otherwise>
  162. </c:choose>
  163. </c:set>
  164. <img src='${ctx}/styles/default/images/bpm/user-16.png'>${executor.executor}${type }
  165. </c:if>
  166. </c:forEach>
  167. </c:otherwise>
  168. </c:choose>
  169. </td>
  170. </tr>
  171. <tr>
  172. <th>当前活动任务</th>
  173. <td>
  174. <c:forEach items="${curTaskList}" var="curTask" varStatus="i"><c:if test="${i.count>1}">,</c:if>${curTask.name}(<f:userName userId="${curTask.assignee}"/>)</c:forEach>
  175. </td>
  176. </tr>
  177. <tr>
  178. <th nowrap="nowrap">创建时间</th>
  179. <td>
  180. <fmt:formatDate value="${taskEntity.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  181. </td>
  182. </tr>
  183. <tr>
  184. <th nowrap="nowrap">到期时间</th>
  185. <td>
  186. <fmt:formatDate value="${taskEntity.dueDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  187. </td>
  188. </tr>
  189. </table>
  190. <br/>
  191. <table class="table-detail" style="width:100%">
  192. <tr>
  193. <th nowrap="nowrap" width="100">流程定义名称</th>
  194. <td>${processDefinition.subject}</td>
  195. </tr>
  196. <tr>
  197. <th>版本</th>
  198. <td>
  199. ${processDefinition.versionNo}
  200. </td>
  201. </tr>
  202. <tr>
  203. <th nowrap="nowrap">流程定义描述</th>
  204. <td>
  205. ${processDefinition.descp}
  206. </td>
  207. </tr>
  208. </table>
  209. </div>
  210. </div>
  211. </body>
  212. </html>