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