123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <%@ page contentType="text/html; charset=utf-8" session="false" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>我的工作台</title>
- <%@ include file="../common/header.jsp" %>
- <link type="text/css" rel="stylesheet" href="${contextPath}/css/themes/easyui.css" />
- <script type="text/javascript" src="${contextPath }/js/jquery.easyui.min.js"></script>
- <script type="text/javascript" src="${contextPath }/js/calendar/WdatePicker.js"></script>
- <style type="text/css">
- .tabs-panels{
- border-style: none none none none;
- }
- .tabs-header{
- border-style: none none none none;
- }
- </style>
- <script type="text/javascript">
- $(document).ready( function() {
- $("input.datebox").bind("click", function() {WdatePicker();});
- setNowDate();
- $("#tt").height(document.body.clientHeight-50);
- });
-
- $(window).resize(function(){
- $("#tt").height(document.body.clientHeight-50);
- $(".tabs-header").width(document.body.clientWidth*0.98);
- $(".tabs-wrap").width(document.body.clientWidth*0.98);
- });
-
- //初始化日期
- function setNowDate(){
- var myDate = new Date();
- var year = myDate.getFullYear();
- var month = myDate.getMonth()+1;
- var day = myDate.getDate();
- var nowdate = year + "-" + month + "-" + day;
- $("#beginDate").val(nowdate);
- $("#endDate").val(nowdate);
- }
- //查询数据
- function queryDate(){
- var tab = $("#tt").tabs("getSelected");
- var title = tab.panel("options").title;
- if(title == "按车次、班次统计"){
- $("#r1Result").load("${contextPath }/admin/statistics/reeorlink.html?reeorno=1");
- }else if(title == "违章统计"){
- $("#r2Result").load("${contextPath }/admin/statistics/reeorlink.html?reeorno=2");
- }else if(title == "饲料投喂误差"){
- $("#r3Result").load("${contextPath }/admin/statistics/reeorlink.html?reeorno=3");
- }else if(title == "饲料添加误差"){
- $("#r4Result").load("${contextPath }/admin/statistics/reeorlink.html?reeorno=4");
- }
- }
- //导出数据
- function excelDate(){
- var beginDate = $("#beginDate").val();
- var endDate = $("#endDate").val();
- var tab = $("#tt").tabs("getSelected");
- var title = tab.panel("options").title;
- if(title == "按车次、班次统计"){
- document.location.href="${contextPath }/admin/statistics/reeorexcel.html?reeorno=1&beginDate="+beginDate+"&endDate="+endDate;
- }else if(title == "违章统计"){
- document.location.href="${contextPath }/admin/statistics/reeorexcel.html?reeorno=2&beginDate="+beginDate+"&endDate="+endDate;
- }else if(title == "饲料投喂误差"){
- document.location.href="${contextPath }/admin/statistics/reeorexcel.html?reeorno=3&beginDate="+beginDate+"&endDate="+endDate;
- }else if(title == "饲料添加误差"){
- document.location.href="${contextPath }/admin/statistics/reeorexcel.html?reeorno=4&beginDate="+beginDate+"&endDate="+endDate;
- }
- }
- function leftDate(){
- var beginDate = $("#beginDate").val();
- var endDate = $("#endDate").val();
- var newbDate = checkDate(beginDate,"left");
- var neweDate = checkDate(endDate,"left");
- $("#beginDate").val(newbDate);
- $("#endDate").val(neweDate);
- queryDate();
- }
- function rightDate(){
- var beginDate = $("#beginDate").val();
- var endDate = $("#endDate").val();
- var newbDate = checkDate(beginDate,"");
- var neweDate = checkDate(endDate,"");
- $("#beginDate").val(newbDate);
- $("#endDate").val(neweDate);
- queryDate();
- }
- </script>
- </head>
- <body>
- <div style="background-color: #E0E0E0;">
- <div style="height: " class="navfrm">
- <span>当前位置:</span>
- <span><a href="${contextPath }/admin/welcome.html">首页</a></span>
- <span> >> </span>
- <span>误差分析</span>
- </div>
- <input type="hidden" id="Times" name="Times" value="" />
- <input type="hidden" id="DataCaptureNo" name="DataCaptureNo" value="" />
- <input type="hidden" id="DriverID" name="DriverID" value="" />
- <input type="hidden" id="currentpId" name="currentpId" value="${currentpId }" />
- <input id="beginDate" name="beginDate" style="width:100px;" class="datebox" value=""/> -
- <input id="endDate" name="endDate" style="width:100px;" class="datebox" value=""/>
- <input type="button" value="<" onclick="leftDate();" /><input type="button" value=">" onclick="rightDate();" />
- <input type="button" value="查询" onclick="queryDate()" class="sysub" />
- <input type="button" value="导出Excel" onclick="excelDate()" class="sysub" />
- <div id="tt" class="easyui-tabs" style="width:100%;height:100%;">
- <div title="按车次、班次统计">
- <div id="r1Result" style="padding: 2px;"></div>
- </div>
- <div title="违章统计">
- <div id="r2Result" style="padding: 2px;"></div>
- </div>
- <div title="饲料投喂误差">
- <div id="r3Result" style="padding: 1px;"></div>
- </div>
- <div title="饲料添加误差">
- <div id="r4Result" style="padding: 2px;"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
|