listFlowForDeal.jsp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>待办流程列表</title>
  9. <link href="${pageContext.request.contextPath}/main.css"
  10. rel="stylesheet" type="text/css" />
  11. <link
  12. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  13. rel="stylesheet" type="text/css" />
  14. <script
  15. src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
  16. type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  18. <script type="text/javascript" src="/shares/js/constant.js"></script>
  19. <script type="text/javascript" src="/shares/js/common.js"></script>
  20. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  22. <script type="text/javascript">
  23. var grid = null;
  24. $(function() {
  25. grid = $("#maingrid4").ligerGrid(
  26. { columns : [ { display : '流程标题', name : 'insId.insName', width : 250,
  27. render : function (row){
  28. var html = row.insId.insName;
  29. return html;
  30. }},
  31. { display : '当前环节', name : 'tmodelId.tmodelName', width : 100,
  32. render : function (row){
  33. var html = row.tmodelId.tmodelName;
  34. return html;
  35. } },
  36. { display : '流程模版', name : 'modelId.modelName', width : 120,
  37. render : function (row){
  38. var html = row.modelId.modelName;
  39. return html;
  40. } },
  41. { display : '流程发起者', name : 'insId.creator.username', width : 100,
  42. render : function (row){
  43. var html = row.insId.creator.username;
  44. return html;
  45. } },
  46. { display : '流程发起时间', name : 'insCreatedate', width : 150,
  47. render : function (row){
  48. var html = row.insId.createdate;
  49. return html;
  50. } },
  51. { display : '环节创建时间', name : 'createdate', width : 150
  52. },
  53. { display : '操作', isAllowHide : false,
  54. render : function(row) {
  55. //var dialogId = row.tinsId + getTime();
  56. var html = '';
  57. if(row.modelId.control.value == "1"){
  58. html = '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/FlowAction.do?task=toProcess&tinsId='
  59. + row.tinsId + '&flowInsId='+row.insId.insId+'&tabid=' + getCurrentTabId()
  60. + '&dialogId='+row.tinsId+'\'+getTime(), \'流程办理\', \''+row.tinsId+'\'+getTime());\">办理</a>&nbsp;';
  61. } else if(row.modelId.control.value == "0"){
  62. html = '<a href=\"#\" onclick=\"openODialog(\''+row.modelId.controlUrl+'?task=toProcess&modelId='+row.modelId.modelId+'&euVerType=1&tinsId='
  63. + row.tinsId + '&flowInsId='+row.insId.insId+'&tabid=' + getCurrentTabId()
  64. + '&dialogId='+row.tinsId+'\'+getTime(), \'流程办理\', \''+row.tinsId+'\'+getTime());\">办理</a>&nbsp;';
  65. }
  66. if (row.modelId.isCancel.value == 1){
  67. if (row.modelId.allowCancels > 0) {
  68. var url = "";
  69. if(row.modelId.control.value == "1"){
  70. url = "FlowAction.do";
  71. }else if(row.modelId.control.value == "0"){
  72. url = row.modelId.controlUrl;
  73. }
  74. html += '<a href=\"#\" onclick=\"cancelFlow('
  75. + row.insId.insId
  76. + ',\''+url+'\');\">撤销</a>&nbsp;';
  77. }
  78. }
  79. return html;
  80. }
  81. } ],
  82. usePager : true,
  83. pageSize : 20,
  84. parms: [{name: "insName", value: ""},
  85. {name: "starttime", value: ""},
  86. {name: "endtime", value: ""},
  87. {name: "name", value: ""},
  88. {name: "modelId", value: ""}],
  89. url : 'FlowAction.do?task=dealList&time=' + new Date().getTime(),
  90. pageParmName : 'p', //页索引参数名,(提交给服务器)
  91. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  92. width : '99.9%', enabledSort : true,
  93. height : '99%',//getParentHeight()-67,
  94. onError: function(){alert("数据加载失败,请刷新页面!");}
  95. });
  96. $("#pageloading").hide();
  97. $("#starttime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  98. $("#endtime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  99. //$("#modelId").ligerComboBox();
  100. });
  101. function getTime(){
  102. return new Date().getTime();
  103. }
  104. function searchByKword(){
  105. grid.set("parms", [ {
  106. name : "insName",
  107. value : encodeURI($("#insName").val())
  108. }, {
  109. name : "starttime",
  110. value : $("#starttime").val()
  111. }, {
  112. name : "endtime",
  113. value : $("#endtime").val()
  114. }, {
  115. name : "modelId",
  116. value : $("#modelId").val()
  117. }, {
  118. name : "name",
  119. value : encodeURI($("#name").val())
  120. }]);
  121. grid.set("newPage", "1");
  122. grid.loadData(true);
  123. }
  124. function loadData(){
  125. grid.loadData(true);
  126. }
  127. function searchAll() {
  128. $("#insName").val("");
  129. $("#starttime").val("");
  130. $("#endtime").val("");
  131. $("#modelId").val("");
  132. $("#name").val("");
  133. searchByKword();
  134. }
  135. </script>
  136. </head>
  137. <body>
  138. <div class="container-layout">
  139. <div id="title" class="form-button" style="width: 100%;">
  140. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  141. </div>
  142. <div class="default_search" style="margin: 0; width: 100%; ">
  143. <ul class="list_search" style="width:250px;">
  144. <li class="title">流程标题:</li>
  145. <li class="text">
  146. <input type="text" id="insName" name="insName" style="width: 130px;">
  147. </li>
  148. </ul>
  149. <ul class="list_search" style="width:450px;">
  150. <li class="title">发起时间:</li>
  151. <li class="text">
  152. <input type="text" id="starttime" name="starttime" style="width: 130px;">
  153. </li>
  154. <li class="title" style="width:10px; text-align: center; padding-left: 0px; padding-right: 3px;">
  155. </li>
  156. <li class="text">
  157. <input type="text" id="endtime" name="endtime" style="width: 130px;">
  158. </li>
  159. </ul>
  160. </div>
  161. <div class="default_search" style="margin: 0; width: 100%;">
  162. <ul class="list_search" style="width:250px;">
  163. <li class="title">流程模版:</li>
  164. <li class="text">
  165. <select name="modelId" id="modelId" style="width: 130px;" >
  166. <option value="" selected="selected">全部</option>
  167. <c:forEach items="${requestScope.flows }" var="flow" varStatus="status">
  168. <option value="${flow.modelId }">${flow.modelName }</option>
  169. </c:forEach>
  170. </select>
  171. </li>
  172. </ul>
  173. <ul style="width:250px;"><li class="title">发起者:</li>
  174. <li class="text">
  175. <input type="text" id="name" name="name" style="width: 130px;">
  176. </li>
  177. </ul>
  178. <ul>
  179. <li class="search-button">
  180. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  181. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  182. </li>
  183. </ul>
  184. </div>
  185. <div id="maingrid4" style="margin: 0; padding: 0;clear: both;"></div>
  186. <div style="display: none;">
  187. </div>
  188. </div>
  189. <%@ include file="/include/message.jsp"%>
  190. </body>
  191. </html>