| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page import="com.runzhixing.bean.PreferEntry" %>
- <%@ page import="com.runzhixing.bean.User" %>
- <%@ page import="com.runzhixing.constant.Constant" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- User user = (User)session.getAttribute(Constant.userMark);
- User user1 = (User)session.getAttribute(Constant.cylinderSum);
- PreferEntry pe = user.getPrefer(Constant.CylinderPreWarningTime);
-
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>外地车充装比例情况</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
- <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
- <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
- <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
- <script type="text/javascript">
- var i = 1;//第几页
- var sum;//总条数
- var totalpage;//总页数
-
- var overbili;
- var fillingbili;
- var seriesName;
- $(document).ready(function(){
- fLoadTable();
- fLoadData(1,10);
- });
-
-
- function fLoadTable(){
- $('#tt').datagrid({
-
-
- fit: true,//自动大小
- title: '今日各站点外地车充装比例情况',
- width: '100%',
- height: 'auto',
- fitColumns: true,
- loadMsg:'正在加载, 请稍等 …',
- nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
- striped : true,//设置为true将交替显示行背景
- collapsible : false,//显示可折叠按钮
- fitColumns:true,//允许表格自动缩放,以适应父容器
- rownumbers:true,
- columns:[[
- {field:'seriesName',title:'站点',width:'34%',formatter: function(value, row, index){
- seriesName = value;
- return '<font style="color:black;font-size:14px;" class="hzbspan">'+seriesName+'<font style="color:red;font-size:12px;" class="hzbspan">(双击查看详情)</font></font>';
-
-
- }},
- {field:'value',title:'外地车充装比例',width:'33%',formatter: function(value, row, index){
- if(value>=0){
- fillingbili = value.toFixed(2);
- return '<font style="color:green;" class="hzbspan">'+value.toFixed(2)+'%</font>';
- }else{
- fillingbili = value;
- return '<font style="color:red;font-weight: bold;" class="hzbspan">'+value+'</font>';
- }
-
- }},
- {field:'overWarn',title:'超出警戒值',width:'33%',formatter: function(value, row, index){
- if(value>0){
- overbili = value.toFixed(2);
- return '<img src="images/rzx/caution.png"/> <font style="color:red;font-weight: bold;" class="hzbspan">'+value.toFixed(2)+'个百分点</font>';}else{
- overbili = value;
- return '<font style="color:green;"></font>';
- }
-
- }}
-
- ]],
- onDblClickRow: function (rowIndex, rowData) {
-
- var myDate = new Date();
- var cylinderTime = myDate.getTime();
-
- var cylinderpName = "images/createImg/"+cylinderTime+".png";
- var inputpName = $('#inputpName').val();
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/makeChart?overWarn="+overbili+"&seriesName="+rowData.seriesName+"&stationNo="+rowData.cateName+"&value="+fillingbili+"&systempName="+cylinderTime,
- success:function (data){
- $("#infoaddstreetwindows").panel({title:rowData.seriesName});
- document.getElementById("pnamecenter").innerHTML='<img src='+cylinderpName+' height="400" width="800" />';
- $('#infoaddstreetwindows').window('open');
- $.messager.progress('close');
- }
- });
- }
- });
- }
- function fLoadData(page,rows){
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/systemWarninglog",
- success:function (data){
- $.messager.progress('close');
- var vData = $.parseJSON(data);
- sum = vData.total;
- totalpage = Math.ceil(sum/rows);
- $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
- $('#pp').pagination({
- total:sum,
- pageList: [2,10,50,100],
- beforePageText: '第',//页数文本框前显示的汉字
- afterPageText: '页 共 {pages} 页',
- displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
- onSelectPage:function(pageNumber, pageSize){
- fLoadData();
- }
-
-
- });
- }
- });
-
-
- }
- function detail1(){
- var row = $('#tt').datagrid('getSelected');
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/makeChart?fillingbili="+fillingbili+"&fillingName="+fillingName,
- success:function (data){
- $('#infoaddstreetwindows').window('open');
- }
- });
- }
-
-
- function detail11(){
- var row = $('#tt').datagrid('getSelected');
- if(!row){
- $.messager.alert('提示', "请选择一条数据信息", 'info');
- return;
- }
- var inputpName = $('#inputpName').val();
- if (row){
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/makeChart?overWarn="+overbili+"&seriesName="+row.seriesName+"&stationNo="+row.cateName+"&value="+fillingbili,
- success:function (data){
- $.messager.progress('close');
- document.getElementById("infoaddstreetwindows").title='';
- document.getElementById("pnamecenter").innerHTML='<img src='+inputpName+' height="400" width="800" />';
- $('#infoaddstreetwindows').window('open');
- }
- });
- }
- }
-
- function detail111(overbili,seriesName,cateName,fillingbili){
- var inputpName = $('#inputpName').val();
- if (row){
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/makeChart?overWarn="+overbili+"&seriesName="+seriesName+"&stationNo="+cateName+"&value="+fillingbili,
- success:function (data){
- $.messager.progress('close');
- document.getElementById("infoaddstreetwindows").title='';
- document.getElementById("pnamecenter").innerHTML='<img src='+inputpName+' height="400" width="800" />';
- $('#infoaddstreetwindows').window('open');
- }
- });
- }
- }
-
- function detail2(){
- $('#infoaddstreetwindows1').window('open');
- }
-
- function infoaddstreetcancel(){
- $('#infoaddstreetwindows').window('close');
- }
- function infoaddstreetcancel1(){
- $('#infoaddstreetwindows1').window('close');
- }
- </script>
- </head>
-
- <body>
- <center><span class="hzbspan" style="color: #f08300;font-weight: bold;"><%=pe.getValue()+pe.getUnit() %></span><span class="hzbspan">后将要检验的气瓶数量:</span><span class="hzbspan" style="color: #f08300;font-weight: bold;"><%=user1.getCylinderSum1dm() %></span> <span class="hzbspan"><a href="jsp/rzx/dataQuery/SylogReCylinderdataQuery.jsp" style="cursor: pointer;">详情..</a></span> <span class="hzbspan">迄今仍未检验的气瓶数量:</span><span class="hzbspan" style="color: #f08300;font-weight: bold;"><%=user1.getCylinderSum() %></span> <span class="hzbspan"><a
- href="jsp/rzx/dataQuery/SylogCylinderdataQuery.jsp" style="cursor: pointer;">详情..</a></span></center>
- <!-- 查询结果:数据表格 -->
- <table id="tt" cellspacing="0" cellpadding="0" >
- </table>
-
-
-
-
-
- <div id="infoaddstreetwindows" modal="true" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" icon="icon-add" style="width:900px;height: 500px;;padding:5px;background:#fafafa;" >
- <div class="easyui-layout" fit="true">
- <div region="center" id="pnamecenter" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
- <!--<img alt="车辆充装情况饼状图" src="images/createImg/20150922101249.png">
- --></div>
-
- <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
- <a id="infoaddstreetcancel" class="easyui-linkbutton" icon="icon-cancel" onclick="infoaddstreetcancel()">返回</a>
- </div>
- </div>
- </div>
-
- <div id="toolbar" style="padding-top: 10px;height: 30px;">
- <a onclick="detail11()" class="easyui-linkbutton easyui-tooltip" title="Alter" data-options="iconCls:'icon-tip',plain:true">详情</a>
- </div>
-
-
-
- <form action="makeChart" id="makeChart" method="post"></form>
- </body>
- </html>
|