| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="h" uri="/WEB-INF/tlds/author.tld" %>
- <!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 }/main.css" rel="stylesheet" type="text/css" />
- <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/ligerui.all.js" type="text/javascript"></script>
- <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/ams/flow/amsflow.js"></script>
- <script type="text/javascript">
- var grid = null;
-
- $(function (){
- // 修改查询时不需要具体到时分秒 linww20150122 begin
- $("#beginDate").ligerDateEditor({ showTime: false, width:130,labelAlign: 'left'});
- $("#endDate").ligerDateEditor({ showTime: false,width:130, labelAlign: 'left'});
- // 修改查询时不需要具体到时分秒 linww20150122 begin
- searchByKword();
- });
-
- function initList(params) {
-
-
- grid = $("#maingrid4").ligerGrid({columns :
- [{display : '档案类目',name : 'category_name',width : '15%'},
- {display : '部门',name : 'groupname',width : '10%',render:function(row){if(null==row.groupname){return "--"}else{return row.groupname}}},
- {display : '档案名称',name : 'archive_name',width : '30%'},
- //统计 借阅 linww20150126 begin
- {display : '借阅中',name : 'num',width : '10%',render:function(row){
- var h = "";
- if(row.borrow_state==2){
- h += "<a href='javascript:num(" + row.universalid + ")'>"+row.num+"</a> ";
- }
- else
- h += "0 ";
- return h;
- }},
- {display : '历史借阅',name : 'num',width : '10%',render:function(row){
- var h = "";
- if(row.borrow_state==3){
- h += "<a href='javascript:num2(" + row.universalid + ")'>"+row.num+"</a> ";
- }
- else {
- if(row.total-row.num==0){
- h += "0 ";
- }
- else{
- h += "<a href='javascript:num2(" + row.universalid + ")'>"+(row.total-row.num)+"</a> ";
- }
- }
- return h;
- }},
- {display : '总共借阅次数',name : 'num2',width : '10%',render:function(row){
- var h = "";
- h += "<a href='javascript:num3(" + row.universalid + ")'>"+row.total+"</a> ";
- return h;
- }}
- //统计 借阅 linww20150126 end
- ],
- pageSizeOptions: [10,20, 30, 40, 50],
- pageSize : 20,
- rownumbers:true,
- url : 'amsStatisticalBorrow.do?method=borrowData&time='+ new Date().getTime()+params,
-
- pageParmName : 'p',
- pagesizeParmName : 'pSize',
- width : '99.5%',
- height : '99%',
- onError:function(err){
- alert("获取数据失败,请刷新页面后重试!");
- }
- });
- $("#pageloading").hide();
- $("#starttime").ligerDateEditor({ showTime: true, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
- $("#endtime").ligerDateEditor({ showTime: true, width:120, labelAlign: 'left', format :"yyyy-MM-dd"});
- $("#modelId").ligerComboBox();
- };
- function searchByKword() {
- if(null != grid){
- grid.set("newPage","1");
- }
- var s="";
-
- s += "&groupname="+encodeURI(encodeURI($("#groupname").val()));
- s += "&category_name="+encodeURI(encodeURI($("#category_name").val()));
- s += "&beginDate="+encodeURI(encodeURI($("#beginDate").val()));
- s += "&endDate="+encodeURI(encodeURI($("#endDate").val()));
- s += "&archive_name="+encodeURI(encodeURI($("#archive_name").val()));
- initList(s);
- }
- function num(id){
- // submitAUrl("amsStatisticalBorrow.do?method=toBorrowDetail&universalid="+id);
- search("amsStatisticalBorrow.do?method=toBorrowDetail&universalid="+id);
- }
- //借阅历查看
- function num2(id){
- search2("amsStatisticalBorrow.do?method=toBorrowDetailhistory&universalid="+id);
- }
- //借阅总详细查看
- function num3(id){
- search3("amsStatisticalBorrow.do?method=toBorrowDetailTotal&universalid="+id);
- }
- function search(url) {
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog
- .open({
- url : url,
- height : 400,
- width : 800,
- title:"借阅中详细",
- name : "listDialog"
- });
- }
- }
- function search2(url) {
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog
- .open({
- url : url,
- height : 400,
- width : 800,
- title:"借阅历史详细",
- name : "listDialog"
- });
- }
- }
- function search3(url) {
- var obj = window.top;
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog
- .open({
- url : url,
- height : 400,
- width : 800,
- title:"总共借阅次数详细",
- name : "listDialog"
- });
- }
- }
- </script>
- </head>
- <body>
- <form id="requestForm" action="" method="post">
- <div class="container">
- <!-- <div id="title" class="form-button" style="width: 100%;">
- <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">类目、部门、档案名称、起止日期、操作类型、操作人
- </div> -->
- <div class="default_search" style="margin: 0; width: 100%; padding:0;">
- <ul class="list_search" style="width:250px;">
- <li class="title">档案类目:</li>
- <li class="text">
- <input type="text" id="category_name" name="map.category_name" style="width: 130px;">
- </li>
- </ul>
-
- <ul class="list_search" style="width:450px;">
- <li class="title">借阅时间:</li>
- <li class="text">
- <input type="text" id="beginDate" name="beginDate" style="width: 130px;">
- </li>
- <li class="title title_rqjg">
- 至
- </li>
- <li class="text">
- <input type="text" id="endDate" name="endDate" style="width: 130px;">
- </li>
- </ul>
-
- </div>
- <div class="default_search" style="margin: 0; width: 100%; padding:0;">
- <ul class="list_search" style="width:250px;">
- <li class="title">部门:</li>
- <li class="text">
- <input type="text" id="groupname" name="map.groupname" style="width: 130px;">
- </li>
- </ul>
- <ul style="width:250px;"><li class="title">档案名称:</li>
- <li class="text">
- <input type="text" id="archive_name" name="archive_name" style="width: 130px;">
- </li>
- </ul>
- <ul><li class="search-button"><input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/></li>
-
- </ul>
- </div>
- </div>
- </form>
- <div id="maingrid4" style="margin: 0; padding: 0;clear: both;"></div>
-
- <div style="display: none;">
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|