mtListFlowForAll.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>流程列表</title>
  8. <!-- <script type="text/javascript" src="/shares/js/yw/ams/flow/amsflow.js"></script> -->
  9. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  18. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  19. <script type="text/javascript">
  20. $(function() {
  21. $("#starttime").ligerDateEditor({
  22. showTime : true,
  23. width : 120,
  24. labelAlign : 'left'
  25. });
  26. $("#endtime").ligerDateEditor({
  27. showTime : true,
  28. width : 120,
  29. labelAlign : 'left'
  30. });
  31. initList();
  32. });
  33. function searchByKword(s) {
  34. var p = $("#p").val();
  35. var pSize = getPize();
  36. var param = {
  37. "p" : p,
  38. "pSize" : pSize
  39. };
  40. // url: 'amsFlowAction.do?task=all&time=' + new Date().getTime(),
  41. sendAsyncAjax(
  42. param,
  43. "mtAmsFlowAction.do?task=all" + s + "&time="
  44. + new Date().getTime(),
  45. "json",
  46. function(data) {
  47. var num = data.Total;
  48. page(num, pSize, p);
  49. var archiveList = data.Rows;
  50. var item_name = $('#contentDiv');
  51. $(item_name).empty();//初始化table,清空table
  52. var html = '';
  53. if (archiveList.length == 0) {
  54. html = notquery();
  55. } else {
  56. var j = 0;
  57. for (var i = 0; i < archiveList.length; i++) {
  58. var arr = archiveList[i];
  59. var bdiv = 1;
  60. bdiv = 1 + j;
  61. if (j < 7) {
  62. j++;
  63. } else {
  64. j = 0;
  65. }
  66. ;
  67. html += '<div class="tr_cont_new mar4 f5_new">';
  68. html += ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
  69. html += ' <div class="tr_rw_d_new fl">';
  70. html += '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />';
  71. html += '【' + arr.modelId.typeId.typeName + '】';
  72. html += '&nbsp;&nbsp;' + arr.insName;
  73. html += "&nbsp;&nbsp;流程状态:" + arr.state.dataName;
  74. html += '&nbsp;&nbsp; </p>';
  75. html += '<p class="mar5">发起人:'
  76. + arr.creator.username;
  77. html += "&nbsp;&nbsp;发起时间:";
  78. html += arr.createdate;
  79. html += '</p></div>';
  80. html += ' <div class="tr_rw_btn_new fr">';
  81. html += '<div class="div_btn"><input type="button" onclick="view('
  82. + arr.insId
  83. + ')" class="btn_c" value="查&nbsp;看" /></div>';
  84. html += ' </div>';
  85. html += '</div>';
  86. }
  87. }
  88. $(item_name).html(html);
  89. });
  90. }
  91. function subDate(d) {
  92. var s = "";
  93. if (d != null && d.length > 10) {
  94. return s = d.substring(0, 10);
  95. } else {
  96. return s;
  97. }
  98. ;
  99. }
  100. function view(insId) {
  101. // html = '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/amsFlowAction.do?task=toInfo&insId='
  102. // + row.insId + '&tabid='+getCurrentTabId()+'&dialogId='+
  103. // dialogId+'\', \'查看流程信息\', \''+dialogId+'\');\">查看</a>&nbsp;';
  104. item('mtAmsFlowAction.do?task=toInfo&insId=' + insId);
  105. }
  106. function initList() {
  107. var s = "";
  108. var insName = searchBox.getValue();
  109. var state = $("#state").val();
  110. var starttime = $("#starttime").val();
  111. var endtime = $("#endtime").val();
  112. if (insName != "" && typeof (insName) != "undefined") {
  113. s += "&insName=" + encodeURI(encodeURI(insName));
  114. }
  115. if (state != "" && typeof (state) != "undefined") {
  116. s += "&state=" + state;
  117. }
  118. if (starttime != "" && typeof (starttime) != "undefined") {
  119. s += "&starttime=" + starttime;
  120. }
  121. if (endtime != "" && typeof (endtime) != "undefined") {
  122. s += "&endtime=" + endtime;
  123. }
  124. // grid.set("parms", [ {
  125. // name : "insName",
  126. // value : encodeURI($("#insName").val())
  127. // }, {
  128. // name : "starttime",
  129. // value : $("#starttime").val()
  130. // }, {
  131. // name : "endtime",
  132. // value : $("#endtime").val()
  133. // }, {
  134. // name : "modelId",
  135. // value : $("#modelId").val()
  136. // }, {
  137. // name : "name",
  138. // value : encodeURI($("#name").val())
  139. // }, {
  140. // name : "state",
  141. // value : encodeURI($("#state").val())
  142. // }]);
  143. searchByKword(s);
  144. }
  145. </script>
  146. </head>
  147. <body>
  148. <div class="tc_b">
  149. <div id="left" style="float: left; width: 100%;">
  150. <div class="tc_r">
  151. <div class="tr_con b5 f4">
  152. <div class="fl f4">
  153. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;流程查询
  154. </div>
  155. <div class="fl ">
  156. <div class="fl mar2">流程状态:</div>
  157. <div class="fl mar2 mar6">
  158. <select name="state" id="state" style="width: 130px;">
  159. <option value="" selected="selected">全部</option>
  160. <option value="0">撤销</option>
  161. <option value="1">流转中</option>
  162. <option value="2">完成</option>
  163. </select>
  164. </div>
  165. <div class="fl mar2">发起时间:</div>
  166. <div class="fl mar2 mar6">
  167. <input type="text" id="starttime" name="starttime" style="width: 130px;">
  168. </div>
  169. <div class="fl mar2">至</div>
  170. <div class="fl mar2 mar6">
  171. <input type="text" id="endtime" name="endtime" style="width: 130px;">
  172. </div>
  173. </div>
  174. <div class="div_ck_k fr">
  175. <input class="div_cx fl" name="insName" id="insName" type="text" />
  176. <input class="btn_ck fl" type="button" onclick="initList();" id="button" />
  177. </div>
  178. </div>
  179. <div class="tr_right_bg fl">
  180. <div id="contentDiv"></div>
  181. <jsp:include page="/yw/master1/page.jsp">
  182. <jsp:param name="functionName" value="initList" />
  183. <jsp:param name="p" value="1" />
  184. <jsp:param name="pSize" value="7" />
  185. </jsp:include>
  186. </div>
  187. </div>
  188. </div><%@ include file="/yw/master1_ams/borrowMgr/leftBorrowMgr.jsp"%>
  189. </div>
  190. </body>
  191. </html>