<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>按借阅单位统计</title>
|
<link href="static/plugins/font-awesome/css/font-awesome.css"
|
rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css"
|
rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/styles/initialize.css"
|
type="text/css">
|
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/archives.css" type="text/css">
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript"
|
src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<script type="text/javascript"
|
src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
|
<script src="static/plugins/echarts/echarts.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/plugins/datagrid-cellediting.js"></script>
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
<style>
|
html, body {
|
height: 100%;
|
}
|
|
.table_statistical {
|
width: 100%;
|
height: 100%;
|
border: 0;
|
}
|
|
.table_statistical tr td {
|
width: 50%;
|
height: 100%;
|
}
|
|
.table_statistical_div {
|
width: 100%;
|
height: 100%;
|
padding-top: 3%;
|
}
|
</style>
|
</head>
|
|
<body class="pt-tree">
|
<div class="archives_statistics">
|
<h3 class="statistics_title">
|
【按借阅单位统计】
|
</h3>
|
<div class="option_row clear">
|
<span class="option_col1">统计数据过滤查询</span>
|
<ul class="clear">
|
<li>部门名称: <input class="easyui-textbox" id="deptName"
|
style="width:150px; height: 24px;"/>
|
</li>
|
<li class="statistics_btn_row" style="display: flex;align-items:center;height:24px">
|
<button class="pt-btn pt-btn-purple" onclick="utilizationStatistics()"><i class="fa fa-bar-chart"></i>开始统计
|
</button>
|
</li>
|
|
</ul>
|
</div>
|
</div>
|
|
<div class="statistics_txt">
|
<div class="title">统计结果</div>
|
<div class="statistics_scroll" style="padding:0">
|
<div id="tab_statistical">
|
<div name="statisticsIframe" id="statisticsIframe" width="100%" frameborder="no" border="0"
|
marginwidth="0" marginheight="0" allowtransparency="yes">
|
<table id="tb_utilizationForm" style="width:100%;">
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
|
<script>
|
|
|
$(function () {
|
new ResizeScroll({
|
"id": ".statistics_scroll",
|
fun: function () {
|
var wh = $(window).height();
|
//重新计算iframe高度
|
$("#statisticsIframe").height(wh - 60 - 160);
|
return (wh - 60 - 124);
|
}
|
});
|
utilizationStatistics();
|
})
|
|
|
function initDate() {
|
var nowDate = new Date();
|
var backDate = new Date(nowDate);
|
backDate.setDate(nowDate.getDate() - 180);
|
var startDate = formatterDate(backDate);
|
var endDate = formatterDate(nowDate);
|
$('#startDate').datebox('setValue', startDate);
|
$('#endDate').datebox('setValue', endDate);
|
}
|
|
function formatterDate(date) {
|
var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
|
var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
|
+ (date.getMonth() + 1);
|
return date.getFullYear() + '-' + month + '-' + day;
|
};
|
|
|
function utilizationStatistics() {
|
|
var wh = $(window).height();
|
var deptName = $("#deptName").numberbox("getValue");
|
|
|
var url = "utlStatistics/getUtlStatisticsByDept?deptName=" + deptName;
|
$("#tb_utilizationForm").datagrid({
|
rownumbers: true,
|
method: "get",
|
checkOnSelect: false,
|
selectOnCheck: false,
|
url: url,
|
toolbar: "#toolbar_form",
|
emptyMsg: "没有找到匹配的记录",
|
height: wh - 200,
|
columns: [[
|
{
|
field: 'ck',
|
checkbox: true
|
},
|
{
|
field: 'deptName',
|
title: '部门名称',
|
width: 100,
|
}, {
|
field: 'borrow',
|
title: '借阅人次',
|
width: 100,
|
}, {
|
field: 'borrowFileCount',
|
title: '借阅份数',
|
width: 100,
|
}, {
|
field: 'borrowItemCount',
|
title: '借阅件数',
|
width: 100,
|
}, {
|
field: 'process',
|
title: '加工人次',
|
width: 100,
|
}, {
|
field: 'processFileCount',
|
title: '加工份数',
|
width: 100,
|
}, {
|
field: 'processItemCount',
|
title: '加工件数',
|
width: 100,
|
}, {
|
field: 'physical',
|
title: '实物利用人次',
|
width: 100,
|
}, {
|
field: 'physicalFileCount',
|
title: '实物利用份数',
|
width: 100,
|
}, {
|
field: 'physicalItemCount',
|
title: '实物利用件数',
|
width: 100,
|
}
|
]]
|
|
})
|
}
|
|
</script>
|
</body>
|
</html>
|