listCarFlowForDealed.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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 }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/car/flow/carflow.js"></script>
  16. <script type="text/javascript">
  17. var grid = null;
  18. $(function() {
  19. grid = $("#maingrid4")
  20. .ligerGrid(
  21. {
  22. columns : [
  23. {
  24. display : '流程标题',
  25. name : 'insName',
  26. width : 250
  27. },
  28. {
  29. display : '流程类型',
  30. name : 'modelId.typeId.typeName',
  31. width : 120,
  32. render: function(row){
  33. var html = row.modelId.typeId.typeName;
  34. return html;
  35. }
  36. },
  37. {
  38. display : '流程模版',
  39. name : 'modelId.modelName',
  40. width : 120,
  41. render: function(row){
  42. var html = row.modelId.modelName;
  43. return html;
  44. }
  45. },
  46. {
  47. display : '流程状态',
  48. name : 'state.dataName',
  49. width : 100,
  50. render: function(row){
  51. var html = row.state.dataName;
  52. return html;
  53. }
  54. },
  55. {
  56. display : '流程发起者',
  57. name : 'creator.username',
  58. width : 100,
  59. render: function(row){
  60. var html = row.creator.username;
  61. return html;
  62. }
  63. },
  64. {
  65. display : '流程发起时间',
  66. name : 'createdate',
  67. width : 200
  68. },
  69. {
  70. display : '操作',
  71. isAllowHide : false,
  72. render : function(row) {
  73. var html = '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/amsFlowAction.do?task=toInfo&insId='
  74. + row.insId
  75. + '&tabid='
  76. + getCurrentTabId()
  77. + '\', \'查看流程信息\');\">查看</a>&nbsp;';
  78. if (row.modelId.isCancel.value == 1){
  79. if (row.modelId.endCancel.value == 1){
  80. if (row.modelId.allowCancels > 0
  81. && row.state.value != 0) {
  82. html += '<a href=\"#\" onclick=\"if(confirm(\'确定撤销该流程?\')){location=\'${pageContext.request.contextPath }/amsFlowAction.do?task=cancel&insId='
  83. + row.insId
  84. + '&next=dealed\';}\">撤销</a>&nbsp;';
  85. }
  86. }
  87. }
  88. return html;
  89. }
  90. } ],
  91. usePager : true,
  92. pageSize : 20,
  93. parms: [{name: "insName", value: ""},
  94. {name: "starttime", value: ""},
  95. {name: "endtime", value: ""},
  96. {name: "name", value: ""},
  97. {name: "modelId", value: ""}],
  98. url : 'amsFlowAction.do?task=dealedList&time='
  99. + new Date().getTime(),
  100. pageParmName : 'p', //页索引参数名,(提交给服务器)
  101. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  102. width : '99.9%',
  103. height : '99%',
  104. onError: function(){alert("数据加载失败,请刷新页面!");}
  105. });
  106. $("#pageloading").hide();
  107. $("#starttime").ligerDateEditor({ showTime: true, labelAlign: 'left', format :"yyyy-MM-dd"});
  108. $("#endtime").ligerDateEditor({ showTime: true, labelAlign: 'left', format :"yyyy-MM-dd"});
  109. $("#modelId").ligerComboBox();
  110. });
  111. function searchByKword(){
  112. grid.set("parms", [ {
  113. name : "insName",
  114. value : encodeURI($("#insName").val())
  115. }, {
  116. name : "starttime",
  117. value : $("#starttime").val()
  118. }, {
  119. name : "endtime",
  120. value : $("#endtime").val()
  121. }, {
  122. name : "modelId",
  123. value : $("#modelId").val()
  124. }, {
  125. name : "name",
  126. value : encodeURI($("#name").val())
  127. }]);
  128. grid.set("newPage", "1");
  129. grid.loadData(true);
  130. }
  131. function searchAll() {
  132. $("#insName").val("");
  133. $("#starttime").val("");
  134. $("#endtime").val("");
  135. $("#modelId").val("");
  136. $("#name").val("");
  137. searchByKword();
  138. }
  139. </script>
  140. </head>
  141. <body>
  142. <div class="container-layout">
  143. <div id="title" class="form-button" style="width: 100%;">
  144. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  145. </div>
  146. <div class="default_search" style="margin: 0; width: 100%; padding:0;">
  147. <ul class="list_search" style="width:250px;">
  148. <li class="title">流程标题:</li>
  149. <li class="text">
  150. <input type="text" id="insName" name="insName" style="width: 130px;">
  151. </li>
  152. </ul>
  153. <ul class="list_search" >
  154. <li class="title">发起时间:</li>
  155. <li class="text">
  156. <input type="text" id="starttime" name="starttime" >
  157. </li>
  158. <li class="title" style=" text-align: center; padding-left: 0px; padding-right: 3px;">
  159. </li>
  160. <li class="text">
  161. <input type="text" id="endtime" name="endtime" >
  162. </li>
  163. </ul>
  164. </div>
  165. <div class="default_search" style="margin: 0; width: 100%; padding:0;">
  166. <!-- <ul class="list_search" style="width:250px;">
  167. <li class="title">流程模版:</li>
  168. <li class="text">
  169. <select name="modelId" id="modelId" style="width: 130px;" >
  170. <option value="" selected="selected">全部</option>
  171. <c:forEach items="${requestScope.flows }" var="flow" varStatus="status">
  172. <option value="${flow.modelId }">${flow.modelName }</option>
  173. </c:forEach>
  174. </select>
  175. </li>
  176. </ul> -->
  177. <ul style="width:250px;"><li class="title">发起者:</li>
  178. <li class="text">
  179. <input type="text" id="name" name="name" style="width: 130px;">
  180. </li>
  181. </ul>
  182. <ul><li class="title">&nbsp;</li>
  183. <li class="search-button">
  184. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  185. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  186. </li>
  187. </ul>
  188. </div>
  189. <div id="maingrid4" style="margin: 0; padding: 0; clear: both;"></div>
  190. <div style="display: none;">
  191. <!-- g data total ttt -->
  192. </div>
  193. </div>
  194. <%@ include file="/include/message.jsp"%>
  195. </body>
  196. </html>