| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <%@ 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 src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.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" src="/shares/js/yw/yongfu/common.js"></script>
- <script type="text/javascript">
- var grid = null;
- function deleteRow(obj)
- {
- if(confirm("确定要删除该法律文件吗?")){
- window.parent.f_addTab(new Date().getTime(), '删除法律文件', '${pageContext.request.contextPath }/LawCardAction.do?task=delLawCard&lawcard_id='+obj+'&tabid=' + getCurrentTabId());
- }
- }
- $(function () {
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '项目名称', name: 'law_pro_name', width: 200},
- { display: '文书类别', name: 'law_sort', width: 100},
- { display: '政府主管单位名称', name: 'law_gov_unit', width: 150 },
- { display: '所属分公司', name: 'law_company', width: 70},
- { display: '所属项目部', name: 'law_pro_dept', width: 100},
- { display: '简要事由', name: 'law_reason', width: 100},
- { display: '负责人', name: 'law_principal', width: 100},
- { display: '出文时间', name: 'law_out_date', width: 100
- ,render: function (row) {
- var html = subDate(row.law_out_date);
- return html;
- }
- },
- { display: '收到时间', name: 'law_in_date', width: 100
- ,render: function (row) {
- var html = subDate(row.law_in_date);
- return html;
- }
- },
- { display: '原件存放处', name: 'law_original_place', width: 100},
- { display: '备注', name: 'law_remark', width: 100},
- {
- display: '操作', isAllowHide: false,width: 300,
- render: function (row)
- {
- var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/LawCardAction.do?task=infoLawCard&lawcard_id='
- + row.lawcard_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/LawCardAction.do?task=toEditLawCard&lawcard_id='
- + row.lawcard_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a> ';
- html += '<a href=\"#\" onclick=\"deleteRow('+row.lawcard_id+')\">删除</a> ';
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'LawCardAction.do?task=listLawCard&time=' + new Date().getTime(),
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
-
- });
- $("#pageloading").hide();
- });
- function searchByKword(){
- var law_pro_name = document.getElementById("law_pro_name");
- var law_sort = document.getElementById("law_sort");
- var s = "";
- if(law_pro_name.value != "" && typeof(law_pro_name.value) != "undefined" ){
- s += "&law_pro_name=" + encodeURI(encodeURI(law_pro_name.value));
- }
- if(law_sort.value != "" && typeof(law_sort.value) != "undefined" ){
- s += "&law_sort=" + law_sort.value;
- }
- grid.set("newPage", "1");
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '项目名称', name: 'law_pro_name', width: 200},
- { display: '文书类别', name: 'law_sort', width: 100},
- { display: '政府主管单位名称', name: 'law_gov_unit', width: 150 },
- { display: '所属分公司', name: 'law_company', width: 70},
- { display: '所属项目部', name: 'law_pro_dept', width: 100},
- { display: '简要事由', name: 'law_reason', width: 100},
- { display: '负责人', name: 'law_principal', width: 100},
- { display: '出文时间', name: 'law_out_date', width: 100
- ,render: function (row) {
- var html = subDate(row.law_out_date);
- return html;
- }
- },
- { display: '收到时间', name: 'law_in_date', width: 100
- ,render: function (row) {
- var html = subDate(row.law_in_date);
- return html;
- }
- },
- { display: '原件存放处', name: 'law_original_place', width: 100},
- { display: '备注', name: 'law_remark', width: 100},
- {
- display: '操作', isAllowHide: false,width: 300,
- render: function (row)
- {
- var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/LawCardAction.do?task=infoLawCard&lawcard_id='
- + row.lawcard_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/LawCardAction.do?task=toEditLawCard&lawcard_id='
- + row.lawcard_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a> ';
- html += '<a href=\"#\" onclick=\"deleteRow('+row.lawcard_id+')\">删除</a> ';
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'LawCardAction.do?task=listLawCard&time=' + new Date().getTime() + s,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
-
- });
- $("#pageloading").hide();
- }
- function searchAll() {
- $("#law_pro_name").val("");
- $("#law_sort").val("");
- searchByKword();
- }
- </script>
- </head>
- <body >
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="新增文书" onclick="window.parent.f_addTab(new Date().getTime(), '新增文书', '${pageContext.request.contextPath }/LawCardAction.do?task=toCreateLawCard&tabid=' + getCurrentTabId());"/>
- </div>
- <div class="default_search" >
- <ul class="list_search">
- <li class="title">项目名称:</li>
- <li class="text">
- <input type="text" name="law_pro_name" id="law_pro_name" >
- </li>
- </ul>
- <ul class="list_search" >
- <li class="title">文书类型:</li>
- <li class="text">
- <select name="law_sort" id="law_sort">
- <option value="">==请选择==</option>
- <c:forEach var="list" items="${listCardSort }">
- <option value="${list.data_id }">${list.value_name }</option>
- </c:forEach>
- </select>
- </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>
- </body>
- </html>
|