listSendDocForDealed.jsp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/gov/govflow.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/gov/send/senddoc.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/gov/promptDefine.js"></script>
  18. <script type="text/javascript">
  19. var grid = null;
  20. $(function() {
  21. grid = $("#maingrid4")
  22. .ligerGrid(
  23. {
  24. columns : [
  25. {
  26. display : '公文标题',
  27. name : 'insName',
  28. width : 250
  29. },
  30. {
  31. display : '拟稿人',
  32. name : 'creator.username',
  33. width : 100,
  34. render: function(row){
  35. var html = row.creator.username;
  36. return html;
  37. }
  38. },
  39. {
  40. display : '拟稿时间',
  41. name : 'createdate',
  42. width : 150
  43. },
  44. {
  45. display : '办结时间',
  46. name : 'finishdate',
  47. width : 150
  48. },
  49. {
  50. display : '操作',
  51. isAllowHide : false,
  52. width : 300,
  53. render : function(row) {
  54. var html = '';
  55. html = '<a href=\"#\" onclick=\"window.parent.f_addTab(\'info\'+new Date().getTime(), \'公文查看\', \'${pageContext.request.contextPath }/govSendDocAction.do?task=toInfo&insId='
  56. + row.insId + '&tabid='+getCurrentTabId()+'\');\">查看</a>&nbsp;';
  57. return html;
  58. }
  59. } ],
  60. usePager : true,
  61. pageSize : 20,
  62. parms: [{name: "insName", value: ""},
  63. {name: "starttime", value: ""},
  64. {name: "endtime", value: ""},
  65. {name: "name", value: ""} ],
  66. url : 'govSendDocAction.do?task=dealedList&time='
  67. + new Date().getTime(),
  68. pageParmName : 'p', //页索引参数名,(提交给服务器)
  69. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  70. width : '99.9%',
  71. height : '99%',enabledSort : true,
  72. onError: function(){alert("数据加载失败,请刷新页面!");}
  73. });
  74. $("#pageloading").hide();
  75. $("#starttime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  76. $("#endtime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  77. //$("#modelId").ligerComboBox();
  78. });
  79. function getTime(){
  80. return new Date().getTime();
  81. }
  82. function searchByKword(){
  83. grid.set("parms", [ {
  84. name : "insName",
  85. value : encodeURI($("#insName").val())
  86. }, {
  87. name : "starttime",
  88. value : $("#starttime").val()
  89. }, {
  90. name : "endtime",
  91. value : $("#endtime").val()
  92. }, {
  93. name : "modelId",
  94. value : $("#modelId").val()
  95. }, {
  96. name : "name",
  97. value : encodeURI($("#name").val())
  98. }]);
  99. grid.set("newPage", "1");
  100. grid.loadData(true);
  101. }
  102. function searchAll() {
  103. $("#insName").val("");
  104. $("#starttime").val("");
  105. $("#endtime").val("");
  106. $("#name").val("");
  107. searchByKword();
  108. }
  109. </script>
  110. </head>
  111. <body>
  112. <div class="container-layout">
  113. <div id="title" class="form-button" style="width: 100%;">
  114. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  115. </div>
  116. <div class="default_search" style="margin: 0; width: 100%;">
  117. <ul class="list_search" style="width:250px;">
  118. <li class="title">公文标题:</li>
  119. <li class="text">
  120. <input type="text" id="insName" name="insName" style="width: 130px;">
  121. </li>
  122. </ul>
  123. <ul class="list_search" style="width:450px;">
  124. <li class="title">拟稿时间:</li>
  125. <li class="text">
  126. <input type="text" id="starttime" name="starttime" style="width: 130px;">
  127. </li>
  128. <li class="title" style="width:10px; text-align: center; padding-left: 0px; padding-right: 3px;">
  129. </li>
  130. <li class="text">
  131. <input type="text" id="endtime" name="endtime" style="width: 130px;">
  132. </li>
  133. </ul>
  134. </div>
  135. <div class="default_search" style="margin: 0; width: 100%;">
  136. <ul style="width:250px;"><li class="title">拟稿人:</li>
  137. <li class="text">
  138. <input type="text" id="name" name="name" style="width: 130px;">
  139. </li>
  140. </ul>
  141. <ul>
  142. <li class="search-button">
  143. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  144. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  145. </li>
  146. </ul>
  147. </div>
  148. <div id="maingrid4" style="margin: 0; padding: 0; clear: both;"></div>
  149. <div style="display: none;">
  150. <!-- g data total ttt -->
  151. </div>
  152. </div>
  153. <%@ include file="/include/message.jsp"%>
  154. </body>
  155. </html>