listDoing.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 type="text/javascript" src="/shares/js/jquery-1.8.2.js"></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">
  16. var grid = null;
  17. $(function () {
  18. grid = $("#maingrid4").ligerGrid({
  19. columns: [
  20. { display: '标题', name: 'title', width: 300,
  21. render : function (row){
  22. var html = row.insName;
  23. return html;
  24. } },
  25. { display: '发起人', name: 'creator', width: 200,
  26. render : function (row){
  27. var html = row.creator.username;
  28. return html;
  29. } },
  30. { display: '创建时间', name: 'createdate', width: 200,
  31. render : function (row){
  32. var html = row.createdate;
  33. return html;
  34. } },
  35. {
  36. display: '操作', isAllowHide: false,
  37. render: function (row)
  38. {
  39. var html = '';
  40. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看收文信息\', \'${pageContext.request.contextPath }/govDispatchAction.do?task=toInfo&id='
  41. + row.did + '\');\">查看</a>&nbsp;';
  42. return html;
  43. }
  44. }
  45. ],
  46. pageSize:20,
  47. url: 'govDispatchAction.do?task=listDoing&time=' + new Date().getTime(),
  48. parms: [{name: "insName", value: ""},
  49. {name: "starttime", value: ""},
  50. {name: "endtime", value: ""}],
  51. pageParmName: 'p', //页索引参数名,(提交给服务器)
  52. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  53. width: '99.9%',
  54. height: '99%',
  55. onError: function(){alert("数据加载失败,请刷新页面!");}
  56. });
  57. $("#starttime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  58. $("#endtime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
  59. $("#pageloading").hide();
  60. });
  61. function searchByKword(){
  62. grid.set("parms", [ {
  63. name : "insName",
  64. value : encodeURI($("#insName").val())
  65. }, {
  66. name : "starttime",
  67. value : $("#starttime").val()
  68. }, {
  69. name : "endtime",
  70. value : $("#endtime").val()
  71. }]);
  72. grid.set("newPage", "1");
  73. grid.loadData(true);
  74. }
  75. function searchAll() {
  76. $("#insName").val("");
  77. $("#starttime").val("");
  78. $("#endtime").val("");
  79. searchByKword();
  80. }
  81. function close1(){
  82. window.parent.tab.removeSelectedTabItem();
  83. }
  84. </script>
  85. </head>
  86. <body>
  87. <div class="container-layout">
  88. <div id="title" class="form-button" style="width: 100%">
  89. <input onclick="close1();" type="button" value="关闭" class="l-button">
  90. </div>
  91. <div class="default_search" style="margin: 0; width: 100%;">
  92. <ul class="list_search">
  93. <li class="title">标题:</li>
  94. <li class="text">
  95. <input type="text" id="insName" name="insName" value="" style="width: 130px;">
  96. </li>
  97. </ul>
  98. <ul class="list_search" style="width:450px;">
  99. <li class="title">发起时间:</li>
  100. <li class="text">
  101. <input type="text" id="starttime" name="starttime" style="width: 130px;">
  102. </li>
  103. <li class="title" style="width:10px; text-align: center; padding-left: 0px; padding-right: 3px;">
  104. </li>
  105. <li class="text">
  106. <input type="text" id="endtime" name="endtime" style="width: 130px;">
  107. </li>
  108. </ul>
  109. <ul>
  110. <li class="search-button">
  111. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  112. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  113. </li>
  114. </ul>
  115. </div><div style="clear: both;">
  116. <div id="maingrid4" style="margin:0; padding:0"></div>
  117. </div>
  118. <div style="display:none;">
  119. </div>
  120. </div>
  121. <%@ include file="/include/message.jsp"%>
  122. </body>
  123. </html>