workspace-listCandidateOrAssignedTasks.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "bpm-workspace");%>
  4. <%pageContext.setAttribute("currentMenu", "bpm-task");%>
  5. <!doctype html>
  6. <html lang="en">
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title>流程列表</title>
  10. <%@include file="/common/s.jsp"%>
  11. <script type="text/javascript">
  12. var config = {
  13. id: 'processGrid',
  14. pageNo: ${page.pageNo},
  15. pageSize: ${page.pageSize},
  16. totalCount: ${page.totalCount},
  17. resultSize: ${page.resultSize},
  18. pageCount: ${page.pageCount},
  19. orderBy: '${page.orderBy == null ? "" : page.orderBy}',
  20. asc: ${page.asc},
  21. params: {
  22. },
  23. selectedItemClass: 'selectedItem',
  24. gridFormId: 'processGridForm',
  25. exportUrl: 'process-export.do'
  26. };
  27. var table;
  28. $(function() {
  29. table = new Table(config);
  30. table.configPagination('.m-pagination');
  31. table.configPageInfo('.m-page-info');
  32. table.configPageSize('.m-page-size');
  33. });
  34. </script>
  35. </head>
  36. <body>
  37. <%@include file="/header/bpm-workspace.jsp"%>
  38. <div class="row-fluid">
  39. <%@include file="/menu/bpm-workspace.jsp"%>
  40. <!-- start of main -->
  41. <section id="m-main" class="span10" style="float:right">
  42. <article class="m-blank">
  43. <div class="pull-left">
  44. &nbsp;
  45. </div>
  46. <div class="pull-right">
  47. 每页显示
  48. <select class="m-page-size">
  49. <option value="10">10</option>
  50. <option value="20">20</option>
  51. <option value="50">50</option>
  52. </select>
  53. </div>
  54. <div class="m-clear"></div>
  55. </article>
  56. <article class="m-widget">
  57. <header class="header">
  58. <h4 class="title">列表</h4>
  59. </header>
  60. <div class="content">
  61. <table id="demoGrid" class="m-table table-hover">
  62. <thead>
  63. <tr>
  64. <th width="10" class="m-table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
  65. <th class="sorting" name="id">编号</th>
  66. <th class="sorting" name="name">名称</th>
  67. <th class="sorting" name="createTime">创建时间</th>
  68. <th class="sorting" name="assignee">负责人</th>
  69. <th class="sorting" name="suspended">状态</th>
  70. <th width="170">&nbsp;</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <c:forEach items="${page.result}" var="item">
  75. <tr>
  76. <td><input type="checkbox" class="selectedItem" name="selectedItem" value="${item.id}"></td>
  77. <td>${item.id}</td>
  78. <td>${item.name}</td>
  79. <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
  80. <td>
  81. <tags:user userId="${item.assignee}"/>
  82. <c:if test="${not empty item.owner && item.assignee != item.owner}">
  83. <b>(原执行人:<tags:user userId="${item.owner}"/>)</b>
  84. </c:if>
  85. </td>
  86. <td>${item.suspended ? '挂起' : '激活'}</td>
  87. <td>
  88. <a href="${tenantPrefix}/form/form-viewTaskForm.do?taskId=${item.id}">完成</a>
  89. <%--
  90. <c:if test="${delegationState != 'PENDING'}">
  91. <a href="workspace-prepareDelegateTask.do?taskId=${item.id}">代理</a>
  92. </c:if>
  93. <c:if test="${delegationState == 'PENDING'}">
  94. <a href="workspace-resolveTask.do?taskId=${item.id}">处理</a>
  95. </c:if>
  96. <a href="workspace-rollback.do?taskId=${item.id}">回退</a>
  97. --%>
  98. <a href="workspace-viewHistory.do?processInstanceId=${item.processInstanceId}">历史</a>
  99. <%--
  100. <a href="workspace-changeCounterSign.do?taskId=${item.id}">加减签</a>
  101. --%>
  102. </td>
  103. </tr>
  104. </c:forEach>
  105. </tbody>
  106. </table>
  107. </div>
  108. </article>
  109. <article>
  110. <div class="m-page-info pull-left">
  111. 共100条记录 显示1到10条记录
  112. </div>
  113. <div class="btn-group m-pagination pull-right">
  114. <button class="btn btn-small">&lt;</button>
  115. <button class="btn btn-small">1</button>
  116. <button class="btn btn-small">&gt;</button>
  117. </div>
  118. <div class="m-clear"></div>
  119. </article>
  120. </section>
  121. <!-- end of main -->
  122. </div>
  123. </body>
  124. </html>