| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <%@ 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: 'img', width: 50, align:'center',
- render : function (row){
- var curDate = dateFtt('yyyy-MM-dd',new Date());
- var createDate = row.createdate.substring(0,10);
- var d = datedifference(curDate,createDate);
- var img = "";
- if(d <= 1){
- img = "green.png";
- }else if(d <= 3){
- img = "yellow.png";
- }else{
- img = "red.png";
- }
- var html = "<img src='/shares/images/gov/"+img+"' style='width:20px;'/>";
- return html;
- }},
- { display: '标题', name: 'title', width: 300,
- render : function (row){
- var html = row.insName;
- return html;
- } },
- { display: '发起人', name: 'creator', width: 200,
- render : function (row){
- var html = row.creator.username;
- return html;
- } },
- { display: '创建时间', name: 'createdate', width: 200,
- render : function (row){
- var html = row.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 }/govReceiveAction.do?task=toInfo&id='
- + row.rid + '\');\">查看</a> ';
- html += '<a href=\"#\" onclick=\"addInfo(\'催办成功!\');\">催办</a> ';
- return html;
- }
- }
- ],
- pageSize:20,
- url: 'govReceiveAction.do?task=listDoing2Db&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();
- }
-
- function datedifference(sDate1, sDate2) { //sDate1和sDate2是2006-12-18格式
- var dateSpan,
- tempDate,
- iDays;
- sDate1 = Date.parse(sDate1);
- sDate2 = Date.parse(sDate2);
- dateSpan = sDate2 - sDate1;
- dateSpan = Math.abs(dateSpan);
- iDays = Math.floor(dateSpan / (24 * 3600 * 1000));
- return iDays
- };
-
- function dateFtt(fmt,date)
- { //author: meizz
- var o = {
- "M+" : date.getMonth()+1, //月份
- "d+" : date.getDate(), //日
- "h+" : date.getHours(), //小时
- "m+" : date.getMinutes(), //分
- "s+" : date.getSeconds(), //秒
- "q+" : Math.floor((date.getMonth()+3)/3), //季度
- "S" : date.getMilliseconds() //毫秒
- };
- if(/(y+)/.test(fmt))
- fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
- for(var k in o)
- if(new RegExp("("+ k +")").test(fmt))
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
- return fmt;
- }
-
- </script>
- <style type="text/css">
- .circle{
- width: 20px;
- height: 20px;
- background-color:red;
- border-radius: 50%;
- -moz-border-radius: 50%;
- -webkit-border-radius: 50%;
- }
-
- </style>
- </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>
|