| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>待办发文</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(function () {
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '标题', name: 'title', width: 300,
- render : function (row){
- var html = row.insId.insName;
- return html;
- } },
- { display: '发起人', name: 'creator', width: 200,
- render : function (row){
- var html = row.insId.creator.username;
- return html;
- } },
- { display: '创建时间', name: 'createdate', width: 200,
- render : function (row){
- var html = row.insId.createdate;
- return html;
- } },
- {
- display: '操作', isAllowHide: false,
- render: function (row)
- {
- var html = '';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'办理\','
- +'\'${pageContext.request.contextPath }/govDispatchAction.do?task=toProcess&id='+row.did+'&tinsId='
- + row.tinsId + '\');\">办理</a> ';
- return html;
- }
- }
- ],
- pageSize:20,
- url: 'govDispatchAction.do?task=listTodo&time=' + new Date().getTime(),
- parms: [{name: "insName", value: ""},
- {name: "starttime", value: ""},
- {name: "endtime", value: ""}],
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width: '99.9%',
- height: '99%',
- onError: function(){alert("数据加载失败,请刷新页面!");}
- });
- $("#starttime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
- $("#endtime").ligerDateEditor({ showTime: false, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
- $("#pageloading").hide();
- });
- function searchByKword(){
-
- grid.set("parms", [ {
- name : "insName",
- value : encodeURI($("#insName").val())
- }, {
- name : "starttime",
- value : $("#starttime").val()
- }, {
- name : "endtime",
- value : $("#endtime").val()
- }]);
- grid.set("newPage", "1");
- grid.loadData(true);
- }
- function searchAll() {
- $("#insName").val("");
- $("#starttime").val("");
- $("#endtime").val("");
- searchByKword();
- }
-
- function close1(){
- window.parent.tab.removeSelectedTabItem();
- }
-
- </script>
- </head>
- <body>
- <div class="container-layout">
- <div id="title" class="form-button" style="width: 100%">
- <input onclick="close1();" type="button" value="关闭" class="l-button">
- </div>
- <div class="default_search" style="margin: 0; width: 100%;">
- <ul class="list_search">
- <li class="title">标题:</li>
- <li class="text">
- <input type="text" id="insName" name="insName" value="" style="width: 130px;">
- </li>
- </ul>
- <ul class="list_search" style="width:450px;">
- <li class="title">发起时间:</li>
- <li class="text">
- <input type="text" id="starttime" name="starttime" style="width: 130px;">
- </li>
- <li class="title" style="width:10px; text-align: center; padding-left: 0px; padding-right: 3px;">
- 至
- </li>
- <li class="text">
- <input type="text" id="endtime" name="endtime" style="width: 130px;">
- </li>
- </ul>
- <ul>
- <li class="search-button">
- <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
- <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
- </li>
- </ul>
- </div><div style="clear: both;">
- <div id="maingrid4" style="margin:0; padding:0"></div>
- </div>
- <div style="display:none;">
- </div>
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|