listFlowForProcess.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  9. <title>流程列表</title>
  10. <link
  11. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  12. rel="stylesheet" type="text/css" />
  13. <script
  14. src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
  15. type="text/javascript"></script>
  16. <script
  17. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
  18. type="text/javascript"></script>
  19. <script
  20. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js"
  21. type="text/javascript"></script>
  22. <link href="${pageContext.request.contextPath}/main.css"
  23. rel="stylesheet" type="text/css" />
  24. <script type="text/javascript" src="/shares/js/file.js"></script>
  25. <script type="text/javascript" src="/shares/js/constant.js"></script>
  26. <script type="text/javascript" src="/shares/js/common.js"></script>
  27. <style type="text/css">
  28. html {
  29. overflow: hidden;
  30. }
  31. </style>
  32. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  33. <script type="text/javascript">
  34. $(document).ready(function() {
  35. $("#allSelect0").click(function() {
  36. if (this.checked) {
  37. $("[name*='allSelect']").attr("checked", true);
  38. } else {
  39. $("[name*='allSelect']").attr("checked", false);
  40. }
  41. });
  42. });
  43. function openPrintProcess() {
  44. var allSelect = "";
  45. $('input[name="allSelect"]:checked').each(function() {
  46. allSelect += $(this).val() + ",";
  47. });
  48. var content = "";
  49. $('input[name="content"]:checked').each(function() {
  50. content += $(this).val() + ",";
  51. });
  52. if (allSelect == "") {
  53. alert("请选择要打印的环节!");
  54. return;
  55. }
  56. if (content == "") {
  57. alert("请选择要打印的内容!");
  58. return;
  59. }
  60. window.open('FlowAction.do?task=printProcess&insId=${param.insId}&content='
  61. + content + "&allSelect=" + allSelect);
  62. }
  63. </script>
  64. </head>
  65. <body>
  66. <form action="FlowAction.do" method="post" id="cform" name="cform">
  67. <div>
  68. <div class="default_search"
  69. style="margin: 0; width: 100%; padding: 0;">
  70. <ul class="list_search" style="width: 250px;">
  71. <li class="title" style="width: 250px">请在列表中选择要打印的流转环节及内容</li>
  72. </ul>
  73. <ul>
  74. <li class="title">&nbsp;</li>
  75. <li class="search-button"><input type="hidden" name="task"
  76. id="task" value="printProcess"> <input type="hidden"
  77. name="insId" id="insId" value="${param.insId }"> <input
  78. type="button" onclick="openPrintProcess()" class='l-button' name="search" value="打印" /></li>
  79. </ul>
  80. </div>
  81. <div class="forum-container">
  82. <center>
  83. <table style="width: 100%;">
  84. <tbody>
  85. <tr>
  86. <th style="width: 5%; text-align: center;"><input
  87. type="checkbox" id="allSelect0" value="1" checked="checked"></th>
  88. <th style="width: 15%; text-align: center;">环节名称 <input
  89. type="checkbox" id="content" name="content" value="1" checked="checked">
  90. </th>
  91. <th style="width: 15%; text-align: center;">操作人 <input
  92. type="checkbox" id="content" name="content" value="2" checked="checked">
  93. </th>
  94. <th style="width: 25%; text-align: center;">备注及意见 <input
  95. type="checkbox" id="content" name="content" value="3" checked="checked">
  96. </th>
  97. <th style="width: 20%; text-align: center;">创建时间 <input
  98. type="checkbox" id="content" name="content" value="4" checked="checked">
  99. </th>
  100. <th style="width: 20%; text-align: center;">办结时间 <input
  101. type="checkbox" id="content" name="content" value="5" checked="checked">
  102. </th>
  103. </tr>
  104. </tbody>
  105. <tbody>
  106. <c:forEach items="${requestScope.tacheList }" var="tache">
  107. <tr>
  108. <td style="text-align: center;"><input type="checkbox"
  109. id="allSelect" name="allSelect" value="${tache.tinsId }" checked="checked">
  110. </td>
  111. <td style="text-align: center;">
  112. ${tache.tmodelId.tmodelName }</td>
  113. <td style="text-align: center;"><c:choose>
  114. <c:when
  115. test="${tache.authorizedUser.userId!=null && tache.authorizedUser.userId!='0' && tache.authorizedUser.userId!='' }">
  116. ${tache.user.username }(授权:${tache.authorizedUser.username})
  117. </c:when>
  118. <c:otherwise>
  119. ${tache.user.username }
  120. </c:otherwise>
  121. </c:choose></td>
  122. <td style="text-align: center;">${tache.remark }</td>
  123. <td style="text-align: center;">
  124. ${fn:substring(tache.createdate, 0, 19) }</td>
  125. <td style="text-align: center;">
  126. ${fn:substring(tache.finishdate, 0, 19) }</td>
  127. </tr>
  128. </c:forEach>
  129. </tbody>
  130. </table>
  131. </center>
  132. </div>
  133. </div>
  134. </form>
  135. <%@ include file="/include/message.jsp"%>
  136. </body>
  137. </html>