|
@@ -1,495 +1,496 @@
|
|
|
-<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
|
|
-
|
|
|
|
|
-<%@ page import="com.runzhixing.bean.CityPlace" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.bean.CountryPlace" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.bean.Station" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.bean.AuthorityRegionPlace" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.bean.User" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.tool.Util" %>
|
|
|
|
|
-<%@ page import="com.runzhixing.constant.Constant" %>
|
|
|
|
|
-<%
|
|
|
|
|
-String path = request.getContextPath();
|
|
|
|
|
-String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
|
|
-String username = (String) session.getAttribute("username");
|
|
|
|
|
-
|
|
|
|
|
-User user = (User)session.getAttribute(Constant.userMark);
|
|
|
|
|
-List<AuthorityRegionPlace> arplist = user.getPrivilegePlaces1();
|
|
|
|
|
-
|
|
|
|
|
-List<CityPlace> cplist = new ArrayList<CityPlace>();
|
|
|
|
|
-List<CountryPlace> cyplist = new ArrayList<CountryPlace>();
|
|
|
|
|
-List<Station> slist = new ArrayList<Station>();
|
|
|
|
|
-String ssid = (String) session.getAttribute(Constant.Privilege);
|
|
|
|
|
-%>
|
|
|
|
|
-
|
|
|
|
|
-<!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/easyui/export.js"></script>
|
|
|
|
|
- <script type="text/javascript" src="js/common/area.js"></script>
|
|
|
|
|
- <style type="text/css">
|
|
|
|
|
- .datagrid-header-row td{font-weight: bold;}
|
|
|
|
|
- #fm
|
|
|
|
|
- {
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- padding: 10px 30px;
|
|
|
|
|
- }
|
|
|
|
|
- .ftitle
|
|
|
|
|
- {
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- padding: 5px 0;
|
|
|
|
|
- margin-bottom: 10px;
|
|
|
|
|
- border-bottom: 1px solid #ccc;
|
|
|
|
|
- }
|
|
|
|
|
- .fitem
|
|
|
|
|
- {
|
|
|
|
|
- margin-bottom: 5px;
|
|
|
|
|
- }
|
|
|
|
|
- .fitem label
|
|
|
|
|
- {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- width: 100px;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- </style>
|
|
|
|
|
- <style type="text/css">
|
|
|
|
|
- a:HOVER{
|
|
|
|
|
- color: red;
|
|
|
|
|
- text-decoration: none;
|
|
|
|
|
- }
|
|
|
|
|
- a{
|
|
|
|
|
- color: #f08300;
|
|
|
|
|
- text-decoration: none;
|
|
|
|
|
- }
|
|
|
|
|
- </style>
|
|
|
|
|
-
|
|
|
|
|
- <script type="text/javascript">
|
|
|
|
|
- var ssid = '<%=ssid %>';
|
|
|
|
|
- var grid="";
|
|
|
|
|
- var exportString="";
|
|
|
|
|
- var i = 1;//第几页
|
|
|
|
|
- var sum;//总条数
|
|
|
|
|
-
|
|
|
|
|
- var pageSize =10;
|
|
|
|
|
- var totalpage;//总页数
|
|
|
|
|
- $(document).ready(function(){
|
|
|
|
|
- pageSize = $('#pageSize').val();
|
|
|
|
|
-
|
|
|
|
|
- selectCountry();
|
|
|
|
|
- selectstation();
|
|
|
|
|
- fLoadTable();
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- $('#btnadd').linkbutton('disable');
|
|
|
|
|
- $('#btnadd1').linkbutton('disable');
|
|
|
|
|
- //fLoadData(i,pageSize);
|
|
|
|
|
-
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- function show(message) {
|
|
|
|
|
- $.messager.show({
|
|
|
|
|
- title: '提示信息',
|
|
|
|
|
- msg: message,
|
|
|
|
|
- timeout: 2000,
|
|
|
|
|
- showType: 'slide'
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- function fLoadTable(){
|
|
|
|
|
- grid=$('#tt').datagrid({
|
|
|
|
|
- fit: true,//自动大小
|
|
|
|
|
- title: '',
|
|
|
|
|
- width: '100%',
|
|
|
|
|
- height: 580,
|
|
|
|
|
- toolbar: '#toolbar',
|
|
|
|
|
- fitColumns: true,
|
|
|
|
|
- singleSelect:false,
|
|
|
|
|
- loadMsg:'正在加载, 请稍等 …',
|
|
|
|
|
- nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
|
|
|
|
|
- striped : true,//设置为true将交替显示行背景
|
|
|
|
|
- collapsible : false,//显示可折叠按钮
|
|
|
|
|
- singleSelect:false,
|
|
|
|
|
- fitColumns:true,//允许表格自动缩放,以适应父容器
|
|
|
|
|
- rownumbers:true,
|
|
|
|
|
- pagination:true,//分页控件
|
|
|
|
|
-
|
|
|
|
|
- columns:[[
|
|
|
|
|
- {field:'guid',align:'left',title:'UID',width:'160px',rowspan:'2'},
|
|
|
|
|
- {field:'stationNo',align:'left',title:'站编号',width:'160px',rowspan:'2'},
|
|
|
|
|
- {field:'stationName',align:'left',title:'站名称',width:'160px',rowspan:'2'},
|
|
|
|
|
- {field:'carNo',align:'left',title:'车牌号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'plateType',align:'left',title:'车牌类型',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'plateColor',align:'left',title:'车牌颜色',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'medium',align:'left',title:'充装介质',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'regNo',align:'left',title:'使用登记证号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'regDate',align:'left',title:'发证时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'regValidity',align:'left',title:'证件有效期',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'regUnit',align:'left',title:'发证单位',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'cylinderType',align:'left',title:'气瓶类型',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'cylinderNo',align:'left',title:'气瓶出厂编号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'productName',align:'left',title:'生产厂家',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'productDate',align:'left',title:'生产日期',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'startuseDate',align:'left',title:'投用日期',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'yearLimit',align:'left',title:'使用年限',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'productLicence',align:'left',title:'生产许可',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'productType',align:'left',title:'气瓶产品型号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'weight',align:'left',title:'重量',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'vol',align:'left',title:'容积',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'thickness',align:'left',title:'壁厚',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'press',align:'left',title:'压力',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'material',align:'left',title:'材质',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'installStation',align:'left',title:'安装单位',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'installCert',align:'left',title:'安装合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'installDate',align:'left',title:'安装时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'monitorStation',align:'left',title:'监检单位',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'monitorCert',align:'left',title:'监检合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'monitorDate',align:'left',title:'监检时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'checkStation',align:'left',title:'检验单位',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'checkCert',align:'left',title:'检验合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'checkDate',align:'left',title:'检验时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'nextCheckDate',align:'left',title:'下次检验时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeChecker',align:'left',title:'充装检查人员',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeTime',align:'left',title:'充半检查时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeItems',align:'left',title:'充装前检查项目',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeResult',align:'left',title:'充前检查结果',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeException',align:'left',title:'充前检查异常项目',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'carRemark',align:'left',title:'车辆其它信息',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'cylinderRemark',align:'left',title:'气瓶其它信息',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'beforeVerifier',align:'left',title:'充前审核人员',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorName',align:'left',title:'操作人员姓名',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorId',align:'left',title:'操作人员身份证号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorNo',align:'left',title:'操作人员编号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorType',align:'left',title:'操作人员类型',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorDoc',align:'left',title:'操作人员档案号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorCert',align:'left',title:'操作人员班证书',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorLicDate',align:'left',title:'发证时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'operatorLicValidity',align:'left',title:'证书有效期',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'machineFactory',align:'left',title:'充装设备厂家',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'machineNo',align:'left',title:'充装设备编号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'machineName',align:'left',title:'充装设备名称',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'gunNo',align:'left',title:'充装枪号',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'fillStartTime',align:'left',title:'充装时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'FillBeforePress',align:'left',title:'充前压力',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'fillEndTime',align:'left',title:'充装结束时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'FillEndPress',align:'left',title:'充装结束压力',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'FillUnit',align:'left',title:'充装量单位',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'FillNum',align:'left',title:'充装量',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'FillDensity',align:'left',title:'充装密度',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'money',align:'left',title:'金额',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterChecker',align:'left',title:'充后检查人员',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterTime',align:'left',title:'充后检查时间',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterTimes',align:'left',title:'充后检查项目',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterResult',align:'left',title:'充后结果',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterException',align:'left',title:'充后检查异常项目',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'afterVerifier',align:'left',title:'充后审核人员',width:'120px',rowspan:'2'},
|
|
|
|
|
- {field:'remark',align:'left',title:'备注',width:'120px',rowspan:'2'}
|
|
|
|
|
-
|
|
|
|
|
- ]]
|
|
|
|
|
- });
|
|
|
|
|
- if(ssid.substring(0, 2)!="51"){
|
|
|
|
|
- $('#tt').datagrid('hideColumn','lowPress');
|
|
|
|
|
- $('#tt').datagrid('hideColumn','highPress');
|
|
|
|
|
- $('#tt').datagrid('hideColumn','flux');
|
|
|
|
|
- $('#tt').datagrid('hideColumn','money');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- function fLoadData(page,rows){
|
|
|
|
|
- if(!$('#station option:selected').text()){
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- $.messager.progress({
|
|
|
|
|
- title: '请等待',
|
|
|
|
|
- msg: '正在加载数据...',
|
|
|
|
|
- text: '查询中.......'
|
|
|
|
|
- });
|
|
|
|
|
- $.ajax({
|
|
|
|
|
- type:"POST",
|
|
|
|
|
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
- data:$('#fillingform').serialize(),
|
|
|
|
|
- url:"ajax/fillingDataQuery?page="+page+"&psize="+rows,
|
|
|
|
|
- success:function (data){
|
|
|
|
|
- $.messager.progress('close');
|
|
|
|
|
- var vData = $.parseJSON(data);
|
|
|
|
|
- sum = vData.total;
|
|
|
|
|
- if(sum==0){
|
|
|
|
|
- show("没有查询到相关信息!!!");
|
|
|
|
|
- }
|
|
|
|
|
- totalpage = Math.ceil(sum/rows);
|
|
|
|
|
- $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
|
|
|
|
|
- var p = $('#tt').datagrid('getPager');
|
|
|
|
|
- $(p).pagination({
|
|
|
|
|
- pageList: [10,20,30,100,200,400],//可以设置每页记录条数的列表
|
|
|
|
|
- beforePageText: '第',//页数文本框前显示的汉字
|
|
|
|
|
- afterPageText: '页 共 {pages} 页',
|
|
|
|
|
- displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
|
|
|
|
- onSelectPage: function (pageNumber, pageSize) {
|
|
|
|
|
- fLoadData(pageNumber, pageSize);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function selectCountry(){
|
|
|
|
|
- var id=document.getElementById("city").value;
|
|
|
|
|
- var select = document.getElementById("country");
|
|
|
|
|
- for(var i=select.options.length-1;i>=0;i--) {
|
|
|
|
|
- select.options.remove(i);
|
|
|
|
|
- }
|
|
|
|
|
- $.ajax({
|
|
|
|
|
- type:"POST",
|
|
|
|
|
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
- url:"ajax/hiddenCity?cityId="+id,
|
|
|
|
|
- success:function (data){
|
|
|
|
|
- var obj=eval("(" + data + ")");
|
|
|
|
|
- if(obj.rows.length==1){
|
|
|
|
|
- select.options.add(new Option("请选择县", ""));
|
|
|
|
|
- }
|
|
|
|
|
- $.each(obj.rows, function(i,item){
|
|
|
|
|
- select.options.add(new Option(item.name, item.id));
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function selectCountry1(){
|
|
|
|
|
- selectCountry();
|
|
|
|
|
- selectstation();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function changeSize(){
|
|
|
|
|
- fLoadData(1,10);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function selectstation(){
|
|
|
|
|
- var ii=1;
|
|
|
|
|
- var id=document.getElementById("country").value;
|
|
|
|
|
- var select = document.getElementById("station");
|
|
|
|
|
- for(var i=select.options.length-1;i>=0;i--) {
|
|
|
|
|
- select.options.remove(i);
|
|
|
|
|
- }
|
|
|
|
|
- $.ajax({
|
|
|
|
|
- type:"POST",
|
|
|
|
|
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
- data:$('#fillingform').serialize(),
|
|
|
|
|
- //url:"ajax/hiddenCNGStation?cityId="+id,
|
|
|
|
|
- url:"ajax/hiddenspeStation2?type=7",
|
|
|
|
|
- success:function (data){
|
|
|
|
|
- var obj=eval("(" + data + ")");
|
|
|
|
|
- select.options.add(new Option("全部", ""));
|
|
|
|
|
- $.each(obj.rows, function(i,item){
|
|
|
|
|
-
|
|
|
|
|
- select.options.add(new Option(item.name, item.id));
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- function selectstation1(){
|
|
|
|
|
- selectstation();
|
|
|
|
|
- //changeSize();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- function exptSingle(){
|
|
|
|
|
- if(!grid){
|
|
|
|
|
- alert("数据为空");
|
|
|
|
|
- return false;
|
|
|
|
|
- }else{
|
|
|
|
|
- expt(grid);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- function exptAll(){
|
|
|
|
|
- fLoadDataAll(1,5000);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function fLoadDataAll(page,rows){
|
|
|
|
|
- var startTime1 = $('#startTime').datebox('getValue');
|
|
|
|
|
- var endTime1 = $('#endTime').datebox('getValue');
|
|
|
|
|
- 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",
|
|
|
|
|
- data:$('#fillingform').serialize(),
|
|
|
|
|
- url:"ajax/fillingDataQuery?page="+page+"&psize="+rows,
|
|
|
|
|
- success:function (data){
|
|
|
|
|
- $.messager.progress('close');
|
|
|
|
|
- var vData = $.parseJSON(data);
|
|
|
|
|
- sum = vData.total;
|
|
|
|
|
-
|
|
|
|
|
- if(sum==0){
|
|
|
|
|
- show("没有查询到相关信息!!!");
|
|
|
|
|
- }
|
|
|
|
|
- totalpage = Math.ceil(sum/rows);
|
|
|
|
|
- document.getElementById("total").innerText = sum;
|
|
|
|
|
- document.getElementById("totalpage").innerText = totalpage;
|
|
|
|
|
- var vData = $.parseJSON(data);
|
|
|
|
|
- $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
|
|
|
|
|
- var p = $('#tt').datagrid('getPager');
|
|
|
|
|
- $(p).pagination({
|
|
|
|
|
- pageList: [10,20,30,100,200,400],//可以设置每页记录条数的列表
|
|
|
|
|
- beforePageText: '第',//页数文本框前显示的汉字
|
|
|
|
|
- afterPageText: '页 共 {pages} 页',
|
|
|
|
|
- displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
|
|
|
|
- onSelectPage: function (pageNumber, pageSize) {
|
|
|
|
|
- fLoadData(pageNumber, pageSize);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- if(!grid){
|
|
|
|
|
- alert("数据为空");
|
|
|
|
|
- return false;
|
|
|
|
|
- }else{
|
|
|
|
|
- expt(grid);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-//判断字符是否为空的方法
|
|
|
|
|
-function isEmpty(obj){
|
|
|
|
|
- if(typeof obj == "undefined" || obj == null || obj == ""){
|
|
|
|
|
- return true;
|
|
|
|
|
- }else{
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-//比较两个时间大小
|
|
|
|
|
-function compareDate(date1,date2){
|
|
|
|
|
- var oDate1 = new Date(date1);
|
|
|
|
|
- var oDate2 = new Date(date2);
|
|
|
|
|
- if(oDate1.getTime() > oDate2.getTime()){
|
|
|
|
|
- return true; //第一个大
|
|
|
|
|
- } else {
|
|
|
|
|
- return false; //第二个大
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
- </script>
|
|
|
|
|
-
|
|
|
|
|
- </head>
|
|
|
|
|
-
|
|
|
|
|
- <body>
|
|
|
|
|
- <!-- 查询结果:数据表格 -->
|
|
|
|
|
- <table id="tt" cellspacing="0" cellpadding="0" ></table>
|
|
|
|
|
- <div id="toolbar" style="padding-top: 0px;height: auto;">
|
|
|
|
|
- <form id="fillingform" action="ajax/filling" method="post">
|
|
|
|
|
- <input type="text" name="fillCheck2" id="fillCheck2" style="width: 150px;height: 34px;display: none;" class="hzbspan" value="-1">
|
|
|
|
|
- <table>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span class="hzbspan">省:</span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <select name="province" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select">
|
|
|
|
|
- <%for(AuthorityRegionPlace arp:arplist){
|
|
|
|
|
- cplist = arp.getCityPlace();
|
|
|
|
|
- %>
|
|
|
|
|
- <option value="<%=arp.getId() %>">
|
|
|
|
|
- <%=arp.getName() %>
|
|
|
|
|
- </option>
|
|
|
|
|
- <%} %>
|
|
|
|
|
- </select>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span class="hzbspan">市:</span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <select name="city" id="city" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectCountry1()">
|
|
|
|
|
- <%
|
|
|
|
|
- for(CityPlace cp:cplist){
|
|
|
|
|
- cyplist = cp.getSubPlaceList();
|
|
|
|
|
- %>
|
|
|
|
|
- <option value="<%=cp.getId() %>">
|
|
|
|
|
- <%=cp.getName() %>
|
|
|
|
|
- </option>
|
|
|
|
|
- <%} %>
|
|
|
|
|
- </select>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span class="hzbspan">县:</span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <select name="country" id = "country" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectstation1();" >
|
|
|
|
|
- <option value="">全部</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span class="hzbspan">充装站点:</span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <select name="station" id ="station" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" >
|
|
|
|
|
- <option value="">全部</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span style="cursor: default"><span class="hzbspan">开始时间:</span></span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <input type="text" name="startTime" id="startTime" class="easyui-datebox" style="width: 150px;height: 34px;" class="hzbspan" data-options="prompt:'- - - - - - -'">
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span style="cursor: default"><span class="hzbspan">结束时间:</span></span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <input type="text" name="endTime" id="endTime" class="easyui-datebox" style="width: 150px;height: 34px;" class="hzbspan" data-options="prompt:'- - - - - - -'">
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span style="cursor: default"><span class="hzbspan">车牌号:</span></span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <input type="text" name="carNo" id="carNo" style="width: 150px;height: 34px;" class="hzbspan" placeholder="- - - - - - -">
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td colspan="5">
|
|
|
|
|
- <a id="btninfosearch" onclick="changeSize();" 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>
|
|
|
|
|
- <a id="btninfosearch" onclick="exptSingle();" class="easyui-linkbutton" icon="icon-export" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">导出</span></a>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </form>
|
|
|
|
|
- </div>
|
|
|
|
|
- </body>
|
|
|
|
|
-</html>
|
|
|
|
|
|
|
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
|
|
+
|
|
|
|
|
+<%@ page import="com.runzhixing.bean.CityPlace" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.bean.CountryPlace" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.bean.Station" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.bean.AuthorityRegionPlace" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.bean.User" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.tool.Util" %>
|
|
|
|
|
+<%@ page import="com.runzhixing.constant.Constant" %>
|
|
|
|
|
+<%
|
|
|
|
|
+String path = request.getContextPath();
|
|
|
|
|
+String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
|
|
+String username = (String) session.getAttribute("username");
|
|
|
|
|
+
|
|
|
|
|
+User user = (User)session.getAttribute(Constant.userMark);
|
|
|
|
|
+List<AuthorityRegionPlace> arplist = user.getPrivilegePlaces1();
|
|
|
|
|
+
|
|
|
|
|
+List<CityPlace> cplist = new ArrayList<CityPlace>();
|
|
|
|
|
+List<CountryPlace> cyplist = new ArrayList<CountryPlace>();
|
|
|
|
|
+List<Station> slist = new ArrayList<Station>();
|
|
|
|
|
+String ssid = (String) session.getAttribute(Constant.Privilege);
|
|
|
|
|
+%>
|
|
|
|
|
+
|
|
|
|
|
+<!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/easyui/export.js"></script>
|
|
|
|
|
+ <script type="text/javascript" src="js/common/area.js"></script>
|
|
|
|
|
+ <style type="text/css">
|
|
|
|
|
+ .datagrid-header-row td{font-weight: bold;}
|
|
|
|
|
+ #fm
|
|
|
|
|
+ {
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ padding: 10px 30px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .ftitle
|
|
|
|
|
+ {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ padding: 5px 0;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
|
|
+ }
|
|
|
|
|
+ .fitem
|
|
|
|
|
+ {
|
|
|
|
|
+ margin-bottom: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .fitem label
|
|
|
|
|
+ {
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ width: 100px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ </style>
|
|
|
|
|
+ <style type="text/css">
|
|
|
|
|
+ a:HOVER{
|
|
|
|
|
+ color: red;
|
|
|
|
|
+ text-decoration: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a{
|
|
|
|
|
+ color: #f08300;
|
|
|
|
|
+ text-decoration: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ </style>
|
|
|
|
|
+
|
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
|
+ var ssid = '<%=ssid %>';
|
|
|
|
|
+ var grid="";
|
|
|
|
|
+ var exportString="";
|
|
|
|
|
+ var i = 1;//第几页
|
|
|
|
|
+ var sum;//总条数
|
|
|
|
|
+
|
|
|
|
|
+ var pageSize =10;
|
|
|
|
|
+ var totalpage;//总页数
|
|
|
|
|
+ $(document).ready(function(){
|
|
|
|
|
+ pageSize = $('#pageSize').val();
|
|
|
|
|
+
|
|
|
|
|
+ selectCountry();
|
|
|
|
|
+ selectstation();
|
|
|
|
|
+ fLoadTable();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ $('#btnadd').linkbutton('disable');
|
|
|
|
|
+ $('#btnadd1').linkbutton('disable');
|
|
|
|
|
+ //fLoadData(i,pageSize);
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ function show(message) {
|
|
|
|
|
+ $.messager.show({
|
|
|
|
|
+ title: '提示信息',
|
|
|
|
|
+ msg: message,
|
|
|
|
|
+ timeout: 2000,
|
|
|
|
|
+ showType: 'slide'
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ function fLoadTable(){
|
|
|
|
|
+ grid=$('#tt').datagrid({
|
|
|
|
|
+ fit: true,//自动大小
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
+ height: 580,
|
|
|
|
|
+ toolbar: '#toolbar',
|
|
|
|
|
+ fitColumns: true,
|
|
|
|
|
+ singleSelect:false,
|
|
|
|
|
+ loadMsg:'正在加载, 请稍等 …',
|
|
|
|
|
+ nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
|
|
|
|
|
+ striped : true,//设置为true将交替显示行背景
|
|
|
|
|
+ collapsible : false,//显示可折叠按钮
|
|
|
|
|
+ singleSelect:false,
|
|
|
|
|
+ fitColumns:true,//允许表格自动缩放,以适应父容器
|
|
|
|
|
+ rownumbers:true,
|
|
|
|
|
+ pagination:true,//分页控件
|
|
|
|
|
+
|
|
|
|
|
+ columns:[[
|
|
|
|
|
+ {field:'guid',align:'left',title:'UID',width:'160px',rowspan:'2'},
|
|
|
|
|
+ {field:'stationNo',align:'left',title:'站编号',width:'160px',rowspan:'2'},
|
|
|
|
|
+ {field:'stationName',align:'left',title:'站名称',width:'160px',rowspan:'2'},
|
|
|
|
|
+ {field:'carNo',align:'left',title:'车牌号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'plateType',align:'left',title:'车牌类型',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'plateColor',align:'left',title:'车牌颜色',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'medium',align:'left',title:'充装介质',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'regNo',align:'left',title:'使用登记证号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'regDate',align:'left',title:'发证时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'regValidity',align:'left',title:'证件有效期',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'regUnit',align:'left',title:'发证单位',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'cylinderType',align:'left',title:'气瓶类型',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'cylinderNo',align:'left',title:'气瓶出厂编号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'productName',align:'left',title:'生产厂家',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'productDate',align:'left',title:'生产日期',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'startuseDate',align:'left',title:'投用日期',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'yearLimit',align:'left',title:'使用年限',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'productLicence',align:'left',title:'生产许可',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'productType',align:'left',title:'气瓶产品型号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'weight',align:'left',title:'重量',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'vol',align:'left',title:'容积',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'thickness',align:'left',title:'壁厚',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'press',align:'left',title:'压力',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'material',align:'left',title:'材质',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'installStation',align:'left',title:'安装单位',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'installCert',align:'left',title:'安装合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'installDate',align:'left',title:'安装时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'monitorStation',align:'left',title:'监检单位',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'monitorCert',align:'left',title:'监检合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'monitorDate',align:'left',title:'监检时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'checkStation',align:'left',title:'检验单位',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'checkCert',align:'left',title:'检验合格证',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'checkDate',align:'left',title:'检验时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'nextCheckDate',align:'left',title:'下次检验时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeChecker',align:'left',title:'充装检查人员',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeTime',align:'left',title:'充半检查时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeItems',align:'left',title:'充装前检查项目',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeResult',align:'left',title:'充前检查结果',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeException',align:'left',title:'充前检查异常项目',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'carRemark',align:'left',title:'车辆其它信息',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'cylinderRemark',align:'left',title:'气瓶其它信息',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'beforeVerifier',align:'left',title:'充前审核人员',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorName',align:'left',title:'操作人员姓名',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorId',align:'left',title:'操作人员身份证号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorNo',align:'left',title:'操作人员编号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorType',align:'left',title:'操作人员类型',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorDoc',align:'left',title:'操作人员档案号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorCert',align:'left',title:'操作人员班证书',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorLicDate',align:'left',title:'发证时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'operatorLicValidity',align:'left',title:'证书有效期',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'machineFactory',align:'left',title:'充装设备厂家',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'machineNo',align:'left',title:'充装设备编号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'machineName',align:'left',title:'充装设备名称',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'gunNo',align:'left',title:'充装枪号',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'fillStartTime',align:'left',title:'充装时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'FillBeforePress',align:'left',title:'充前压力',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'fillEndTime',align:'left',title:'充装结束时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'FillEndPress',align:'left',title:'充装结束压力',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'FillUnit',align:'left',title:'充装量单位',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'FillNum',align:'left',title:'充装量',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'FillDensity',align:'left',title:'充装密度',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'money',align:'left',title:'金额',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterChecker',align:'left',title:'充后检查人员',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterTime',align:'left',title:'充后检查时间',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterTimes',align:'left',title:'充后检查项目',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterResult',align:'left',title:'充后结果',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterException',align:'left',title:'充后检查异常项目',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'afterVerifier',align:'left',title:'充后审核人员',width:'120px',rowspan:'2'},
|
|
|
|
|
+ {field:'remark',align:'left',title:'备注',width:'120px',rowspan:'2'}
|
|
|
|
|
+
|
|
|
|
|
+ ]]
|
|
|
|
|
+ });
|
|
|
|
|
+ if(ssid.substring(0, 2)!="51"){
|
|
|
|
|
+ $('#tt').datagrid('hideColumn','lowPress');
|
|
|
|
|
+ $('#tt').datagrid('hideColumn','highPress');
|
|
|
|
|
+ $('#tt').datagrid('hideColumn','flux');
|
|
|
|
|
+ $('#tt').datagrid('hideColumn','money');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ function fLoadData(page,rows){
|
|
|
|
|
+ if(!$('#station option:selected').text()){
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ $.messager.progress({
|
|
|
|
|
+ title: '请等待',
|
|
|
|
|
+ msg: '正在加载数据...',
|
|
|
|
|
+ text: '查询中.......'
|
|
|
|
|
+ });
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type:"POST",
|
|
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
+ data:$('#fillingform').serialize(),
|
|
|
|
|
+ url:"ajax/fillingDataQuery?page="+page+"&psize="+rows,
|
|
|
|
|
+ success:function (data){
|
|
|
|
|
+ $.messager.progress('close');
|
|
|
|
|
+ var vData = $.parseJSON(data);
|
|
|
|
|
+ sum = vData.total;
|
|
|
|
|
+ if(sum==0){
|
|
|
|
|
+ show("没有查询到相关信息!!!");
|
|
|
|
|
+ }
|
|
|
|
|
+ totalpage = Math.ceil(sum/rows);
|
|
|
|
|
+ $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
|
|
|
|
|
+ var p = $('#tt').datagrid('getPager');
|
|
|
|
|
+ $(p).pagination({
|
|
|
|
|
+ pageList: [10,20,30,100,200,400],//可以设置每页记录条数的列表
|
|
|
|
|
+ beforePageText: '第',//页数文本框前显示的汉字
|
|
|
|
|
+ afterPageText: '页 共 {pages} 页',
|
|
|
|
|
+ displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
|
|
|
|
+ onSelectPage: function (pageNumber, pageSize) {
|
|
|
|
|
+ fLoadData(pageNumber, pageSize);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function selectCountry(){
|
|
|
|
|
+ var id=document.getElementById("city").value;
|
|
|
|
|
+ var select = document.getElementById("country");
|
|
|
|
|
+ for(var i=select.options.length-1;i>=0;i--) {
|
|
|
|
|
+ select.options.remove(i);
|
|
|
|
|
+ }
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type:"POST",
|
|
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
+ url:"ajax/hiddenCity?cityId="+id,
|
|
|
|
|
+ success:function (data){
|
|
|
|
|
+ var obj=eval("(" + data + ")");
|
|
|
|
|
+ if(obj.rows.length==1){
|
|
|
|
|
+ select.options.add(new Option("请选择县", ""));
|
|
|
|
|
+ }
|
|
|
|
|
+ $.each(obj.rows, function(i,item){
|
|
|
|
|
+ select.options.add(new Option(item.name, item.id));
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function selectCountry1(){
|
|
|
|
|
+ selectCountry();
|
|
|
|
|
+ selectstation();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function changeSize(){
|
|
|
|
|
+ fLoadData(1,10);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function selectstation(){
|
|
|
|
|
+ var ii=1;
|
|
|
|
|
+ var id=document.getElementById("country").value;
|
|
|
|
|
+ var select = document.getElementById("station");
|
|
|
|
|
+ for(var i=select.options.length-1;i>=0;i--) {
|
|
|
|
|
+ select.options.remove(i);
|
|
|
|
|
+ }
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ type:"POST",
|
|
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
|
+ data:$('#fillingform').serialize(),
|
|
|
|
|
+ //url:"ajax/hiddenCNGStation?cityId="+id,
|
|
|
|
|
+ url:"ajax/hiddenspeStation2?type=7",
|
|
|
|
|
+ success:function (data){
|
|
|
|
|
+ var obj=eval("(" + data + ")");
|
|
|
|
|
+ select.options.add(new Option("全部", ""));
|
|
|
|
|
+ $.each(obj.rows, function(i,item){
|
|
|
|
|
+
|
|
|
|
|
+ select.options.add(new Option(item.name, item.id));
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ function selectstation1(){
|
|
|
|
|
+ selectstation();
|
|
|
|
|
+ //changeSize();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ function exptSingle(){
|
|
|
|
|
+ if(!grid){
|
|
|
|
|
+ alert("数据为空");
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ expt(grid);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ function exptAll(){
|
|
|
|
|
+ fLoadDataAll(1,5000);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function fLoadDataAll(page,rows){
|
|
|
|
|
+ var startTime1 = $('#startTime').datebox('getValue');
|
|
|
|
|
+ var endTime1 = $('#endTime').datebox('getValue');
|
|
|
|
|
+ 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",
|
|
|
|
|
+ data:$('#fillingform').serialize(),
|
|
|
|
|
+ url:"ajax/fillingDataQuery?page="+page+"&psize="+rows,
|
|
|
|
|
+ success:function (data){
|
|
|
|
|
+ $.messager.progress('close');
|
|
|
|
|
+ var vData = $.parseJSON(data);
|
|
|
|
|
+ sum = vData.total;
|
|
|
|
|
+
|
|
|
|
|
+ if(sum==0){
|
|
|
|
|
+ show("没有查询到相关信息!!!");
|
|
|
|
|
+ }
|
|
|
|
|
+ totalpage = Math.ceil(sum/rows);
|
|
|
|
|
+ document.getElementById("total").innerText = sum;
|
|
|
|
|
+ document.getElementById("totalpage").innerText = totalpage;
|
|
|
|
|
+ var vData = $.parseJSON(data);
|
|
|
|
|
+ $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
|
|
|
|
|
+ var p = $('#tt').datagrid('getPager');
|
|
|
|
|
+ $(p).pagination({
|
|
|
|
|
+ pageList: [10,20,30,100,200,400],//可以设置每页记录条数的列表
|
|
|
|
|
+ beforePageText: '第',//页数文本框前显示的汉字
|
|
|
|
|
+ afterPageText: '页 共 {pages} 页',
|
|
|
|
|
+ displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
|
|
|
|
|
+ onSelectPage: function (pageNumber, pageSize) {
|
|
|
|
|
+ fLoadData(pageNumber, pageSize);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if(!grid){
|
|
|
|
|
+ alert("数据为空");
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ expt(grid);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+//判断字符是否为空的方法
|
|
|
|
|
+function isEmpty(obj){
|
|
|
|
|
+ if(typeof obj == "undefined" || obj == null || obj == ""){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+//比较两个时间大小
|
|
|
|
|
+function compareDate(date1,date2){
|
|
|
|
|
+ var oDate1 = new Date(date1);
|
|
|
|
|
+ var oDate2 = new Date(date2);
|
|
|
|
|
+ if(oDate1.getTime() > oDate2.getTime()){
|
|
|
|
|
+ return true; //第一个大
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return false; //第二个大
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+ </head>
|
|
|
|
|
+
|
|
|
|
|
+ <body>
|
|
|
|
|
+ <!-- 查询结果:数据表格 -->
|
|
|
|
|
+ <table id="tt" cellspacing="0" cellpadding="0" ></table>
|
|
|
|
|
+ <div id="toolbar" style="padding-top: 0px;height: auto;">
|
|
|
|
|
+ <form id="fillingform" action="ajax/filling" method="post">
|
|
|
|
|
+ <input type="text" name="fillCheck2" id="fillCheck2" style="width: 150px;height: 34px;display: none;" class="hzbspan" value="-1">
|
|
|
|
|
+ <table>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span class="hzbspan">省:</span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <select name="province" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select">
|
|
|
|
|
+ <%for(AuthorityRegionPlace arp:arplist){
|
|
|
|
|
+ cplist = arp.getCityPlace();
|
|
|
|
|
+ %>
|
|
|
|
|
+ <option value="<%=arp.getId() %>">
|
|
|
|
|
+ <%=arp.getName() %>
|
|
|
|
|
+ </option>
|
|
|
|
|
+ <%} %>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span class="hzbspan">市:</span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <select name="city" id="city" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectCountry1()">
|
|
|
|
|
+ <%
|
|
|
|
|
+ for(CityPlace cp:cplist){
|
|
|
|
|
+ cyplist = cp.getSubPlaceList();
|
|
|
|
|
+ %>
|
|
|
|
|
+ <option value="<%=cp.getId() %>">
|
|
|
|
|
+ <%=cp.getName() %>
|
|
|
|
|
+ </option>
|
|
|
|
|
+ <%} %>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span class="hzbspan">县:</span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <select name="country" id = "country" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectstation1();" >
|
|
|
|
|
+ <option value="">全部</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span class="hzbspan">充装站点:</span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <select name="station" id ="station" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" >
|
|
|
|
|
+ <option value="">全部</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span style="cursor: default"><span class="hzbspan">开始时间:</span></span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <input type="text" name="startTime" id="startTime" class="easyui-datebox" style="width: 150px;height: 34px;" class="hzbspan" data-options="prompt:'- - - - - - -'">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span style="cursor: default"><span class="hzbspan">结束时间:</span></span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <input type="text" name="endTime" id="endTime" class="easyui-datebox" style="width: 150px;height: 34px;" class="hzbspan" data-options="prompt:'- - - - - - -'">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span style="cursor: default"><span class="hzbspan">车牌号:</span></span>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <input type="text" name="carNo" id="carNo" style="width: 150px;height: 34px;" class="hzbspan" placeholder="- - - - - - -">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td colspan="5">
|
|
|
|
|
+ <a id="btninfosearch" onclick="changeSize();" 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>
|
|
|
|
|
+ <a id="btninfosearch" onclick="exptSingle();" class="easyui-linkbutton" icon="icon-export" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">导出</span></a>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </body>
|
|
|
|
|
+</html>
|