| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!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" src="js/common/area.js"></script>
- <script type="text/javascript">
- var i = 1;//第几页
- var sum;//总条数
- var totalpage;//总页数
- $(document).ready(function(){
- fLoadTable();
- fLoadData(1,10);
- });
- function fLoadTable(){
- $('#tt').datagrid({
- fit: true,//自动大小
- title: '参数表',
- width: '100%',
- height: 580,
- toolbar: '#toolbar',
- fitColumns: true,
- singleSelect:false,
- loadMsg:'正在加载, 请稍等 …',
- nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
- striped : true,//设置为true将交替显示行背景
- collapsible : true,//显示可折叠按钮
- singleSelect:true,//为true时只能选择单行
- fitColumns:true,//允许表格自动缩放,以适应父容器
- rownumbers:true,
- frozenColumns:[[ //选择框
- {field:'ck',checkbox:true}
- ]],
- columns:[[
- {field:'area',title:'主标签',width:'7%'},
- {field:'time1',title:'从标签',width:'7%'},
- {field:'time2',title:'使用登记证号',width:'7%'},
- {field:'time2',title:'车牌号',width:'7%'},
- {field:'time2',title:'应用类型',width:'7%'},
- {field:'time2',title:'气瓶安装数量',width:'7%'},
- {field:'time2',title:'气瓶出厂编号',width:'7%'},
- {field:'time2',title:'气瓶类型',width:'7%'},
- {field:'time2',title:'生产厂家简称',width:'7%'},
- {field:'time2',title:'巡查类型',width:'7%'},
- {field:'time2',title:'巡查时间',width:'7%'},
- {field:'time2',title:'巡查人员',width:'7%'},
- {field:'time2',title:'巡查人员单位',width:'7%'}
-
- ]]
- });
- }
- function fLoadData(page,rows){
- document.getElementById("pageNumber").innerText = i;
- document.getElementById("from").innerText = (page-1)*rows;
- document.getElementById("to").innerText = page*rows;
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/infoview",
- success:function (data){
- $.messager.progress('close');
- var vData = $.parseJSON(data);
- sum = vData.total;
- totalpage = Math.ceil(sum/rows);
- document.getElementById("total").innerText = sum;
- document.getElementById("totalpage").innerText = totalpage;
- $('#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();
- }
-
-
- });
- }
- });
-
-
- }
- </script>
-
- </head>
-
- <body>
- <!-- 查询结果:数据表格 -->
- <table id="tt" cellspacing="0" cellpadding="0" >
- </table>
- <div id="" style="background:#efefef;width:100%; border:1px solid #ccc;position: absolute;bottom: 0px;float: left;">
- <!--<input type="text" id="pageNumber">-->
- <div style="float: left;text-align: left;padding-left: 20px;">
- <span class="hzbspan">第</span><span id="pageNumber" class="hzbspan"></span><span class="hzbspan">页 共</span><span class="hzbspan" id="totalpage"></span><span class="hzbspan">页 </span>
- <select onchange="changeSize();" id="pageSize">
- <option value="5">5</option>
- <option value="10" selected="selected">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- </select>
- <a id="prepage" class="easyui-linkbutton easyui-tooltip" title="上一页" data-options="iconCls:'icon-undo',plain:true" ></a>
- <input type="text" id="selectpage" style="width: 30px;" onchange="selectpage();"/>
- <a id="nextpage" class="easyui-linkbutton easyui-tooltip" title="下一页" data-options="iconCls:'icon-redo',plain:true" ></a>
- </div>
- <div style="float: left;text-align: right;position: absolute;right: 20px;padding-top: 2px" ><span class="hzbspan">当前显示</span><span class="hzbspan" id="from"></span>-<span class="hzbspan" id="to"></span><span class="hzbspan"> 记录 共</span><span class="hzbspan" id ="total"></span><span class="hzbspan">条记录</span></div>
- </div>
- <div id="toolbar" style="padding-top: 10px;height: auto;">
-
- <form name="form1" method="post" runat="server">
-
- <div class="info">
- <div>
- <span class="easyui-linkbutton" style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" style="color: #f08300;font-size: 16px;" >查询条件:</span></span>
-
- <span class="hzbspan">市: </span>
- <select id="s_province" name="s_province" style="width: 100px;height: 24px;" class="hzbspan"></select>
- <span class="hzbspan">县: </span>
- <select id="s_city" name="s_city" style="width: 100px;height: 24px;" class="hzbspan"></select>
- <span class="hzbspan">单位: </span>
- <select id="s_county" name="s_county" style="width: 100px;height: 24px;" class="hzbspan"></select>
- <script class="resources library" src="area.js" type="text/javascript"></script>
- <script type="text/javascript">_init_area();</script>
- </div>
- <div id="show"></div>
- </div>
- <script type="text/javascript">
- var Gid = document.getElementById ;
- var showArea = function(){
- Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +
- Gid('s_city').value + " - 县/区" +
- Gid('s_county').value + "</h3>"
- }
- Gid('s_county').setAttribute('onchange','showArea()');
- </script>
-
-
-
-
- <span style="cursor: default"><span class="hzbspan">储气井: </span></span> <select name="address" style="width: 100px;height: 24px;" class="hzbspan">
- <option>全部</option>
- </select>
- <span style="cursor: default"><span class="hzbspan">物理地址: </span></span> <input type="text" style="width: 100px;height: 24px;" class="hzbspan">
-
-
-
- <a id="btninfosearch" class="easyui-linkbutton" icon="icon-search" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">查 询 </span></a>
- </form>
- </div>
- </body>
- </html>
|