taskMiniDetail.jsp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <%
  2. //用于任务管理(taskList.jsp)中的某一任务的右边明细显示
  3. %>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  5. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  6. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  7. <%@taglib prefix="f" uri="http://www.jee-soft.cn/functions" %>
  8. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  9. <c:set var="ctx" value="${pageContext.request.contextPath }"/>
  10. <table class="table-detail" style="width:100%">
  11. <tr>
  12. <th nowrap="nowrap" width="100">流程事项名称</th>
  13. <td width="*">
  14. ${processRun.subject}
  15. </td>
  16. </tr>
  17. <tr>
  18. <th>任务ID</th>
  19. <td>${taskEntity.id}</td>
  20. </tr>
  21. <tr>
  22. <th nowrap="nowrap">
  23. 流程运行(RUNID)
  24. </th>
  25. <td>${processRun.runId}</td>
  26. </tr>
  27. <tr>
  28. <th nowrap="nowrap">任务名</th>
  29. <td>${taskEntity.name}</td>
  30. </tr>
  31. <tr>
  32. <th>任务描述</th>
  33. <td>
  34. <c:choose>
  35. <c:when test="${not empty task.description}">
  36. ${taskEntity.description}
  37. </c:when>
  38. <c:otherwise>${taskEntity.name}</c:otherwise>
  39. </c:choose>
  40. </td>
  41. </tr>
  42. <tr>
  43. <th nowrap="nowrap">执行人</th>
  44. <td>
  45. <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>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th nowrap="nowrap">候选执行人</th>
  50. <td>
  51. <c:choose>
  52. <c:when test="${fn:length(candidateUsers)==0}">
  53. <font color='red'>暂无</font>
  54. </c:when>
  55. <c:otherwise>
  56. <c:forEach items="${candidateUsers}" var="executor">
  57. <c:if test="${not empty executor }">
  58. <c:set var="type" >
  59. <c:choose>
  60. <c:when test="${executor.type eq 'org' }">(组织)</c:when>
  61. <c:when test="${executor.type eq 'role' }">(角色)</c:when>
  62. <c:when test="${executor.type eq 'pos' }">(岗位)</c:when>
  63. <c:otherwise></c:otherwise>
  64. </c:choose>
  65. </c:set>
  66. <img src='${ctx}/styles/default/images/bpm/user-16.png'>${executor.executor}${type }
  67. </c:if>
  68. </c:forEach>
  69. </c:otherwise>
  70. </c:choose>
  71. </td>
  72. </tr>
  73. <tr>
  74. <th>当前活动任务</th>
  75. <td>
  76. <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>
  77. </td>
  78. </tr>
  79. <tr>
  80. <th nowrap="nowrap">创建时间</th>
  81. <td>
  82. <fmt:formatDate value="${taskEntity.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  83. </td>
  84. </tr>
  85. <tr>
  86. <th nowrap="nowrap">到期时间</th>
  87. <td>
  88. <fmt:formatDate value="${taskEntity.dueDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  89. </td>
  90. </tr>
  91. </table>
  92. <br/>
  93. <table class="table-detail" style="width:100%">
  94. <tr>
  95. <th nowrap="nowrap" width="100">流程定义名称</th>
  96. <td>${processDefinition.subject}</td>
  97. </tr>
  98. <tr>
  99. <th>版本</th>
  100. <td>
  101. ${processDefinition.versionNo}
  102. </td>
  103. </tr>
  104. <tr>
  105. <th nowrap="nowrap">流程定义描述</th>
  106. <td>
  107. ${processDefinition.descp}
  108. </td>
  109. </tr>
  110. </table>