|
|
@@ -1,908 +1,945 @@
|
|
|
-<%@ 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;
|
|
|
- }
|
|
|
- .fitem123 label
|
|
|
- {
|
|
|
- display: inline-block;
|
|
|
- width: 250px;
|
|
|
- }
|
|
|
-
|
|
|
- </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();
|
|
|
- selectjqjandop();
|
|
|
- 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:'stationName',align:'left',title:'充装站',width:'160px',rowspan:'2'},
|
|
|
-{field:'machineName',align:'left',title:'加气机',width:'120px',rowspan:'2'},
|
|
|
-{field:'gunNo',align:'left',title:'加气枪',width:'120px',rowspan:'2'},
|
|
|
-{field:'mediaType',align:'left',title:'充装介质',width:'140px',rowspan:'2'},
|
|
|
-{field:'operatorName',align:'left',title:'操作员',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
- if(value=="未知工作人员"){
|
|
|
- return "";
|
|
|
- }
|
|
|
-
|
|
|
- return value;
|
|
|
-}},
|
|
|
-{field:'operatorNameType',align:'left',title:'充装人员种类',width:'120px',rowspan:'2'},
|
|
|
- {field:'fillState',align:'left',title:'充装状态',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
- if(value=="超期未检"){
|
|
|
- return '<div style="background-color: #f08300;">'+value+'</div>';
|
|
|
- }
|
|
|
- return value;
|
|
|
-}},
|
|
|
- {field:'fillTime1',align:'left',title:'充装时间',width:160,rowspan:'2'},
|
|
|
-
|
|
|
- {field:'FILLCHECKNName1',align:'left',title:'充前气瓶检查人员',width:140,rowspan:'2',formatter: function(value, row, index){
|
|
|
- //FILLCHECKNO1如果为空时,用充装人员填充前操作员名字,否则用FILLCHECKNName1
|
|
|
- if(isEmpty(row.FILLCHECKNNo1)){
|
|
|
- if(isEmpty(row.operatorName)){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- if(row.operatorName=="未知工作人员"){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- return row.operatorName;
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(isEmpty(row.FILLCHECKNName1)){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- if(row.FILLCHECKNName1=="未知工作人员"){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- return row.FILLCHECKNName1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}},
|
|
|
-{field:'FILLCHECKNName2',align:'left',title:'充后气瓶检查人员',width:140,rowspan:'2',formatter: function(value, row, index){
|
|
|
- //当充装状态为充前检验失败时,充后检查必须为空
|
|
|
- if(row.fillStateNum==21){
|
|
|
- return '';
|
|
|
- }
|
|
|
- //当充装状态为充装成功且充后人员FILLCHECKNO2为空时,充装时间等于充后时间,充后检查没上来,充后必须填空
|
|
|
- else if(row.fillState=="成功充装"&&isEmpty(row.FILLCHECKNNo2)&&!isEmpty(row.fillTime1)&&!isEmpty(row.endTime1)&&row.fillTime1==row.endTime1){
|
|
|
- return '';
|
|
|
- }
|
|
|
- //FILLCHECKNO2为空时,充装时间不等于充后时间,充后已经上来,用当前充装人员CngOperatorName填充
|
|
|
- else if(isEmpty(row.FILLCHECKNNo2)&&!isEmpty(row.fillTime1)&&!isEmpty(row.endTime1)&&compareDate(row.endTime1, row.fillTime1)){
|
|
|
- if(isEmpty(row.operatorName)){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- if(row.operatorName=="未知工作人员"){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- return row.operatorName;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //FILLCHECKNO2不为空,FILLCHECKNName2表示充后人员
|
|
|
- else if(!isEmpty(row.FILLCHECKNNo2)){
|
|
|
- if(row.FILLCHECKNName2=="未知工作人员"){
|
|
|
- return '';
|
|
|
- }else{
|
|
|
- return row.FILLCHECKNName2;
|
|
|
- }
|
|
|
- }else{
|
|
|
- return '';
|
|
|
- }
|
|
|
-}},
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-{field:'carNo',align:'left',title:'车牌号',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
- if(value){
|
|
|
- var v=0;
|
|
|
- if(row.appType.indexOf("其他")!=-1) {v=0;}else
|
|
|
- if(row.appType.indexOf("出租")!=-1) {v=1;}else
|
|
|
- if(row.appType.indexOf("公交")!=-1) {v=2;}else
|
|
|
- if(row.appType.indexOf("私用")!=-1){v=3;}else
|
|
|
- if(row.appType.indexOf("货运")!=-1){v=4;}else
|
|
|
- if(row.appType.indexOf("客运")!=-1) {v=5;}else
|
|
|
- if(row.appType.indexOf("外地车")!=-1) {
|
|
|
- v=9;
|
|
|
-
|
|
|
- return '<a href="carpublic?carNo='+value+'&appType='+v+'&operState=-1'+'&plateType='+row.plateType+'&fixCarNo='+row.fixCarNo+'&fillTimes='+row.fillTime1+'" target="_blank">'+value+'</a>';
|
|
|
- }else
|
|
|
- if(row.appType.indexOf("营转非")!=-1) {v=6;}
|
|
|
- return '<a href="machineDetailfill?carNo='+value+'&appType='+v+'&operState=-1'+'&plateType='+row.plateType+'&fixCarNo='+row.fixCarNo+'&fillTimes='+row.fillTime1+'" target="_blank">'+value+'</a>';
|
|
|
- }
|
|
|
- return value;
|
|
|
-
|
|
|
-}},
|
|
|
-{field:'plateTypeName',align:'left',title:'车牌类型',width:'120px',rowspan:'2'},
|
|
|
-{field:'appType',align:'left',title:'应用类型',width:'120px',rowspan:'2'},
|
|
|
-
|
|
|
-{field:'cylinderNum',align:'left',title:'气瓶数量',width:'120px',rowspan:'2'},
|
|
|
-{field:'regNo',align:'left',title:'使用登记证',width:'120px',rowspan:'2'},
|
|
|
-{field:'nowNumber',align:'left',title:'已充装次数',width:'120px',rowspan:'2'},
|
|
|
-
|
|
|
-/* {field:'fillcheckstr',align:'left',title:'已充装次数',width:'120px',rowspan:'2',hidden:true}, */
|
|
|
-
|
|
|
-{field:'endTime1',align:'left',title:'结束时间',width:160,rowspan:'2'},
|
|
|
-{field:'lowPress',align:'left',title:'充装前压',width:'120px',rowspan:'2'},
|
|
|
-{field:'highPress',align:'left',title:'充装后压',width:'120px',rowspan:'2'},
|
|
|
-{field:'flux',align:'left',title:'流量',width:'120px',rowspan:'2'},
|
|
|
-{field:'money',align:'left',title:'金额(元)',width:'120px',rowspan:'2'},
|
|
|
-
|
|
|
-{"title":"充装前检查",align:'left',"colspan":6},
|
|
|
-{"title":"充装后检查",align:'left',"colspan":3},
|
|
|
-
|
|
|
- ],
|
|
|
- [
|
|
|
-
|
|
|
-{"field":"taskNo1",align:'left',"title":'附件齐全'+"<br/>"+'符合安全'+"<br/>"+'要求',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo2",align:'left',"title":'瓶内有余'+"<br/>"+'压(首次充'+"<br/>"+'装已置换)',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo3",align:'left',"title":'外观完好、无缺陷('+"<br/>"+'裂纹、腐蚀、'+"<br/>"+'变形等)、安装稳定',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo4",align:'left',"title":'无私改'+"<br/>"+'符合规定',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo5",align:'left',"title":'无漏气、'+"<br/>"+'漏电、'+"<br/>"+'漏油现象',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo6",align:'left',"title":'电子标签与车辆'+"<br/>"+'信息相符并贴于瓶'+"<br/>"+'体上(判定标签除外)',"rowspan":1,"colspan":1},
|
|
|
-
|
|
|
-
|
|
|
-{"field":"taskNo7",align:'left',"title":'瓶内压力'+"<br/>"+'在规定范'+"<br/>"+'围内',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo8",align:'left',"title":'附件连接'+"<br/>"+'可靠、密封'+"<br/>"+'完好',"rowspan":1,"colspan":1},
|
|
|
-{"field":"taskNo9",align:'left',"title":'无鼓包、变'+"<br/>"+'形、泄露等'+"<br/>"+'异常现象',"rowspan":1,"colspan":1},
|
|
|
-
|
|
|
- ]
|
|
|
-
|
|
|
-
|
|
|
- ]
|
|
|
- });
|
|
|
- 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/hiddenspeStation?type=2",
|
|
|
- success:function (data){
|
|
|
- var obj=eval("(" + data + ")");
|
|
|
- select.options.add(new Option("全部", ""));
|
|
|
- $.each(obj.rows, function(i,item){
|
|
|
- //if(ii==1){
|
|
|
- // if(obj.rows.length>1){
|
|
|
- // select.options.add(new Option("全部", ""));
|
|
|
- // }
|
|
|
- // ii++;
|
|
|
- //}
|
|
|
- select.options.add(new Option(item.name, item.id));
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- function selectstation1(){
|
|
|
- selectstation();
|
|
|
- //changeSize();
|
|
|
- }
|
|
|
-
|
|
|
- function selectjqjandop(){
|
|
|
- selectjqj();
|
|
|
- selectoperatorNo();
|
|
|
- }
|
|
|
- function selectjqj(){
|
|
|
- var ii=1;
|
|
|
- var id=document.getElementById("station").value;
|
|
|
-
|
|
|
- var options = $("#station option:selected");
|
|
|
- var stationName = options.text();
|
|
|
- var select = document.getElementById("jqj");
|
|
|
-
|
|
|
- var select0817 = document.getElementById("jqj_0817");
|
|
|
- var select08171 = document.getElementById("jqj_08171");
|
|
|
- for(var i=select.options.length-1;i>=0;i--) {
|
|
|
- select.options.remove(i);
|
|
|
- }
|
|
|
- for(var i=select0817.options.length-1;i>=0;i--) {
|
|
|
- select0817.options.remove(i);
|
|
|
- }
|
|
|
- for(var i=select08171.options.length-1;i>=0;i--) {
|
|
|
- select08171.options.remove(i);
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type:"POST",
|
|
|
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
- url:"ajax/hiddenjqj?stationId="+id,
|
|
|
- success:function (data){
|
|
|
- var obj=eval("(" + data + ")");
|
|
|
- select.options.add(new Option("全部", ""));
|
|
|
- $.each(obj.rows, function(i,item){
|
|
|
- select.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
- select0817.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
- select08171.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- document.getElementById("stationId0817").value=id;
|
|
|
- document.getElementById("stationName0817").innerText=stationName;
|
|
|
- document.getElementById("stationName08171").innerText=stationName;
|
|
|
- if(stationName){
|
|
|
- $('#btnadd').linkbutton('enable');
|
|
|
- $('#btnadd1').linkbutton('enable');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- var oper="";
|
|
|
- var username = '<%=username %>';
|
|
|
- var opers=[];
|
|
|
- function selectoperatorNo(){
|
|
|
- var ii=1;
|
|
|
- var id=document.getElementById("station").value;
|
|
|
- var select = document.getElementById("operatorNo");
|
|
|
- var fillCheckNo1 = document.getElementById("fillCheckNo1");
|
|
|
- var fillCheckNo2 = document.getElementById("fillCheckNo2");
|
|
|
- for(var i=select.options.length-1;i>=0;i--) {
|
|
|
- select.options.remove(i);
|
|
|
- }
|
|
|
- for(var i=fillCheckNo1.options.length-1;i>=0;i--) {
|
|
|
- fillCheckNo1.options.remove(i);
|
|
|
- }
|
|
|
- for(var i=fillCheckNo2.options.length-1;i>=0;i--) {
|
|
|
- fillCheckNo2.options.remove(i);
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type:"POST",
|
|
|
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
- url:"ajax/hiddenoperatorNo?stationId="+id,
|
|
|
- success:function (data){
|
|
|
- var obj=eval("(" + data + ")");
|
|
|
- select.options.add(new Option("全部", ""));
|
|
|
- fillCheckNo1.options.add(new Option("无", ""));
|
|
|
- fillCheckNo2.options.add(new Option("无", ""));
|
|
|
- $.each(obj.rows, function(i,item){
|
|
|
- select.options.add(new Option(item.name, item.operatorNo));
|
|
|
- fillCheckNo1.options.add(new Option(item.name, item.operatorNo));
|
|
|
- fillCheckNo2.options.add(new Option(item.name, item.operatorNo));
|
|
|
- if(item.name!=username){
|
|
|
- oper = item.name;
|
|
|
- opers.push(item.name);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
- document.getElementById("stationId08171").value=id;
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- function expt1(){
|
|
|
- expt(grid);
|
|
|
- }
|
|
|
- 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 selectjqjandop22(){
|
|
|
- selectjqjandop();
|
|
|
- //changeSize();
|
|
|
-}
|
|
|
-function selectoperatorNo22(){
|
|
|
- //selectoperatorNo();
|
|
|
- //changeSize();
|
|
|
-}
|
|
|
-function add(){
|
|
|
- $("#add").dialog("open").dialog('setTitle', '设置加气机状态');
|
|
|
- $("#add").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
-}
|
|
|
-function add1(){
|
|
|
- $("#add1").dialog("open").dialog('setTitle', '设置检查人员');
|
|
|
- $("#add1").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
-}
|
|
|
-function fillAfter(){
|
|
|
- $("#fillAfter").dialog("open").dialog('setTitle', '补录充后检查');
|
|
|
- $("#fillAfter").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
-}
|
|
|
-
|
|
|
-function save(){
|
|
|
- $.messager.progress({
|
|
|
- title: '请等待',
|
|
|
- msg: '正在提交数据...',
|
|
|
- text: '提交中.......'
|
|
|
- });
|
|
|
- $("#addfm").form("submit", {
|
|
|
- url: "ajax/updateMachine",
|
|
|
- onsubmit: function () {
|
|
|
- return $(this).form("validate");
|
|
|
- },
|
|
|
- success:function (data){
|
|
|
- $.messager.progress('close');
|
|
|
- var vData = $.parseJSON(data);
|
|
|
- var result = vData.result;
|
|
|
- if(result==0){
|
|
|
- show("设置失败!");
|
|
|
- }else{
|
|
|
- show("设置成功!");
|
|
|
- $('#add').dialog('close');
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- error:function(XMLHttpRequest,textStatus, errorThrown) {
|
|
|
- $.messager.progress('close');
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-function save1(){
|
|
|
- $.messager.progress({
|
|
|
- title: '请等待',
|
|
|
- msg: '正在提交数据...',
|
|
|
- text: '提交中.......'
|
|
|
- });
|
|
|
- $("#add1fm").form("submit", {
|
|
|
- url: "ajax/updateFillCheckOper",
|
|
|
- onsubmit: function () {
|
|
|
- return $(this).form("validate");
|
|
|
- },
|
|
|
- success:function (data){
|
|
|
- $.messager.progress('close');
|
|
|
- var vData = $.parseJSON(data);
|
|
|
- var result = vData.result;
|
|
|
- if(result==0){
|
|
|
- show("设置失败!");
|
|
|
- }else{
|
|
|
- show("设置成功!");
|
|
|
- $('#add1').dialog('close');
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- error:function(XMLHttpRequest,textStatus, errorThrown) {
|
|
|
- $.messager.progress('close');
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-//判断字符是否为空的方法
|
|
|
-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();" >
|
|
|
- </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" onchange="selectjqjandop22();" >
|
|
|
- <option value="">全部</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <span class="hzbspan" >加气机:</span>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <select name="jqj" id ="jqj" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectoperatorNo22();" >
|
|
|
- <option value="">全部</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr><td>
|
|
|
- <span style="cursor: default"><span class="hzbspan">应用类型:</span></span></td>
|
|
|
- <td><select name="appType" id="appType" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
- <option value="-1" selected="selected">全部</option>
|
|
|
- <option value="0">其他</option>
|
|
|
- <option value="1">出租</option>
|
|
|
- <option value="2">公交</option>
|
|
|
- <option value="3">私用</option>
|
|
|
- <option value="4">货运</option>
|
|
|
- <option value="5">客运</option>
|
|
|
- <option value="6">营转非</option>
|
|
|
- <option value="9">外地车</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="gunNo" id="gunNo" style="width: 150px;height: 34px;" class="hzbspan" placeholder="- - - - - - -">
|
|
|
- </td>
|
|
|
- <td><span style="cursor: default"><span class="hzbspan">操作员:</span></span></td>
|
|
|
- <td><select name="operatorNo" id ="operatorNo" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" >
|
|
|
- <option value="">全部</option>
|
|
|
- </select></td>
|
|
|
- </tr><tr>
|
|
|
- <td>
|
|
|
-
|
|
|
- <span style="cursor: default"><span class="hzbspan">充装状态:</span></span></td>
|
|
|
- <td><select name="fillState" id="fillState" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
- <option value="-1" selected="selected">全部</option>
|
|
|
- <option value="0">成功充装</option>
|
|
|
- <option value="1">灰名单允许</option>
|
|
|
- <option value="2">灰名单不允许</option>
|
|
|
- <option value="3">黑名单不充装</option>
|
|
|
- <option value="4">检验未通过</option>
|
|
|
- <option value="5">超期未检</option>
|
|
|
- <option value="6">使用年限超出</option>
|
|
|
- <option value="7">次数不足</option>
|
|
|
- <option value="8">当天次数不足</option>
|
|
|
- <option value="9">站点不匹配</option>
|
|
|
- <option value="10">加气机不匹配</option>
|
|
|
- <option value="11">加气枪不匹配</option>
|
|
|
-
|
|
|
- </select></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 select" data-options="prompt:'- - - - - - -'">
|
|
|
- </td>
|
|
|
- <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>
|
|
|
- <td>
|
|
|
-
|
|
|
-
|
|
|
- <span class="hzbspan">充装介质:</span></td>
|
|
|
- <td>
|
|
|
- <select name="cylinderType" id="cylinderType" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
- <option value="-1">全部</option>
|
|
|
- <option value="0">CNG-高压气体</option>
|
|
|
- <option value="1">LNG-低温液化天然气</option>
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- </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>
|
|
|
- <a id="btnadd" onclick="add();" class="easyui-linkbutton" icon="icon-config" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">设置加气机状态</span></a>
|
|
|
- <a id="btnadd1" onclick="add1();" class="easyui-linkbutton" icon="icon-config" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">设置检查人员</span></a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <div id="dialog2"></div>
|
|
|
- <div id="add" class="easyui-dialog" style="width: 440px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg-buttons">
|
|
|
- <form id="addfm" method="post">
|
|
|
- <input name="stationNo" id="stationId0817" type="text" style="display: none;"/>
|
|
|
- <div class="fitem">
|
|
|
- <label> 站点:</label>
|
|
|
- <span id="stationName0817"></span>
|
|
|
- </div>
|
|
|
- <div class="fitem">
|
|
|
- <label> 加气机:</label>
|
|
|
- <select name="machineNo" id="jqj_0817" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="fitem">
|
|
|
- <label>加气机状态:</label>
|
|
|
- <select name="machineState" id="jqjState" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
- <option value="0">在用</option>
|
|
|
- <option value="1">可用</option>
|
|
|
- <option value="2">检修</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- <div id="dlg-buttons">
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save()" iconcls="icon-add">保存</a>
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add').dialog('close')"
|
|
|
- iconcls="icon-cancel">关闭</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div id="add1" class="easyui-dialog" style="width: 440px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg1-buttons">
|
|
|
- <form id="add1fm" method="post">
|
|
|
- <input name="stationNo" id="stationId08171" type="text" style="display: none;" />
|
|
|
- <div class="fitem">
|
|
|
- <label> 站点:</label>
|
|
|
- <span id="stationName08171"></span>
|
|
|
- </div>
|
|
|
- <div class="fitem">
|
|
|
- <label> 加气机:</label>
|
|
|
- <select name="machineNo" id="jqj_08171" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="fitem">
|
|
|
- <label>充前检查人员:</label>
|
|
|
- <select name="fillCheckNo1" id="fillCheckNo1" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="fitem">
|
|
|
- <label>充后检查人员:</label>
|
|
|
- <select name="fillCheckNo2" id="fillCheckNo2" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- <div id="dlg1-buttons">
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save1()" iconcls="icon-add">保存</a>
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add1').dialog('close')"
|
|
|
- iconcls="icon-cancel">关闭</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div id="fillAfter" class="easyui-dialog" style="width: 900px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg2-buttons">
|
|
|
- <form id="fillAfterfm" method="post">
|
|
|
- <table style="font-weight: 450;font-size: 12px;">
|
|
|
- <tr>
|
|
|
- <td><span style="font-weight: 550;font-size: 18px;">充后检查项:</span></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="text-indent: 2em;">瓶内压力在规定范围内:</td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item1" type="radio" value="0" checked="checked" />合格 </td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item1" type="radio" value="1" />不合格 </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="text-indent: 2em;">附件连接可靠、密封完好:</td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item2" type="radio" value="0" checked="checked"/>合格 </td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item2" type="radio" value="1" />不合格 </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="text-indent: 2em;">无鼓包、变形、泄露等异常现象:</td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item3" type="radio" value="0" checked="checked"/>合格 </td>
|
|
|
- <td> </td>
|
|
|
- <td><input name="item3" type="radio" value="1" />不合格 </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
-
|
|
|
- </form>
|
|
|
- <div id="dlg2-buttons">
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save1()" iconcls="icon-add">保存</a>
|
|
|
- <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add1').dialog('close')"
|
|
|
- iconcls="icon-cancel">关闭</a>
|
|
|
- </div>
|
|
|
- </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;
|
|
|
+ }
|
|
|
+ .fitem123 label
|
|
|
+ {
|
|
|
+ display: inline-block;
|
|
|
+ width: 250px;
|
|
|
+ }
|
|
|
+
|
|
|
+ </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();
|
|
|
+ selectjqjandop();
|
|
|
+ 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:'stationName',align:'left',title:'充装站',width:'160px',rowspan:'2'},
|
|
|
+ {field:'machineName',align:'left',title:'加气机',width:'120px',rowspan:'2'},
|
|
|
+ {field:'gunNo',align:'left',title:'加气枪',width:'120px',rowspan:'2'},
|
|
|
+ {field:'mediaType',align:'left',title:'充装介质',width:'140px',rowspan:'2'},
|
|
|
+ {field:'operatorName',align:'left',title:'操作员',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ if(value=="未知工作人员"){
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ return value;
|
|
|
+ }},
|
|
|
+ {field:'operatorNameType',align:'left',title:'充装人员种类',width:'120px',rowspan:'2'},
|
|
|
+ {field:'fillState',align:'left',title:'充装状态',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ if(value=="超期未检"){
|
|
|
+ return '<div style="background-color: #f08300;">'+value+'</div>';
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+ }},
|
|
|
+ {field:'fillTime1',align:'left',title:'充装时间',width:160,rowspan:'2'},
|
|
|
+
|
|
|
+ {field:'FILLCHECKNName1',align:'left',title:'充前气瓶检查人员',width:140,rowspan:'2',formatter: function(value, row, index){
|
|
|
+ /*
|
|
|
+ //FILLCHECKNO1如果为空时,用充装人员填充前操作员名字,否则用FILLCHECKNName1
|
|
|
+ if(isEmpty(row.FILLCHECKNNo1)){
|
|
|
+ if(isEmpty(row.operatorName)){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ if(row.operatorName=="未知工作人员"){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ return row.operatorName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(isEmpty(row.FILLCHECKNName1)){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ if(row.FILLCHECKNName1=="未知工作人员"){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ return row.FILLCHECKNName1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
+ return value;
|
|
|
+ }},
|
|
|
+ {field:'FILLCHECKNName2',align:'left',title:'充后气瓶检查人员',width:140,rowspan:'2',formatter: function(value, row, index){
|
|
|
+ /*
|
|
|
+ //当充装状态为充前检验失败时,充后检查必须为空
|
|
|
+ if(row.fillStateNum==21){
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ //当充装状态为充装成功且充后人员FILLCHECKNO2为空时,充装时间等于充后时间,充后检查没上来,充后必须填空
|
|
|
+ else if(row.fillState=="成功充装"&&isEmpty(row.FILLCHECKNNo2)&&!isEmpty(row.fillTime1)&&!isEmpty(row.endTime1)&&row.fillTime1==row.endTime1){
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ //FILLCHECKNO2为空时,充装时间不等于充后时间,充后已经上来,用当前充装人员CngOperatorName填充
|
|
|
+ else if(isEmpty(row.FILLCHECKNNo2)&&!isEmpty(row.fillTime1)&&!isEmpty(row.endTime1)&&compareDate(row.endTime1, row.fillTime1)){
|
|
|
+ if(isEmpty(row.operatorName)){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ if(row.operatorName=="未知工作人员"){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ return row.operatorName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //FILLCHECKNO2不为空,FILLCHECKNName2表示充后人员
|
|
|
+ else if(!isEmpty(row.FILLCHECKNNo2)){
|
|
|
+ if(row.FILLCHECKNName2=="未知工作人员"){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ return row.FILLCHECKNName2;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ */
|
|
|
+ return value;
|
|
|
+ }},
|
|
|
+ {field:'fillMonitorName',align:'left',title:'充装监督人员',width:140,rowspan:'2',formatter: function(value, row, index){
|
|
|
+ /*
|
|
|
+ if(isEmpty(row.fillMonitorNo)){//监督人员不存在
|
|
|
+ if (!isEmpty(row.FILLCHECKNNo2) && !(row.FILLCHECKNName2=="未知工作人员")) {//充后检查人员存在
|
|
|
+ return row.FILLCHECKNName2;
|
|
|
+ }
|
|
|
+ if(!isEmpty(row.FILLCHECKNNo1) && !(row.FILLCHECKNName1=="未知工作人员")){//充前检查人员存在
|
|
|
+ return row.FILLCHECKNName1;
|
|
|
+ }
|
|
|
+ if(!isEmpty(row.operatorName) && !(row.operatorName=="未知工作人员")){//充装人员
|
|
|
+ return row.operatorName;
|
|
|
+ }
|
|
|
+ }else{//监督人员存在
|
|
|
+ if(!(row.fillMonitorName=="未知工作人员")){
|
|
|
+ return row.fillMonitorName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ */
|
|
|
+ return value;
|
|
|
+ }},
|
|
|
+
|
|
|
+ {field:'carNo',align:'left',title:'车牌号',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ if(value){
|
|
|
+ var v=0;
|
|
|
+ if(row.appType.indexOf("其他")!=-1) {v=0;}else
|
|
|
+ if(row.appType.indexOf("出租")!=-1) {v=1;}else
|
|
|
+ if(row.appType.indexOf("公交")!=-1) {v=2;}else
|
|
|
+ if(row.appType.indexOf("私用")!=-1){v=3;}else
|
|
|
+ if(row.appType.indexOf("货运")!=-1){v=4;}else
|
|
|
+ if(row.appType.indexOf("客运")!=-1) {v=5;}else
|
|
|
+ if(row.appType.indexOf("外地车")!=-1) {
|
|
|
+ v=9;
|
|
|
+
|
|
|
+ return '<a href="carpublic?carNo='+value+'&appType='+v+'&operState=-1'+'&plateType='+row.plateType+'&fixCarNo='+row.fixCarNo+'&fillTimes='+row.fillTime1+'" target="_blank">'+value+'</a>';
|
|
|
+ }else
|
|
|
+ if(row.appType.indexOf("营转非")!=-1) {v=6;}
|
|
|
+ return '<a href="machineDetailfill?carNo='+value+'&appType='+v+'&operState=-1'+'&plateType='+row.plateType+'&fixCarNo='+row.fixCarNo+'&fillTimes='+row.fillTime1+'" target="_blank">'+value+'</a>';
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+
|
|
|
+ }},
|
|
|
+ {field:'plateTypeName',align:'left',title:'车牌类型',width:'120px',rowspan:'2'},
|
|
|
+ {field:'appType',align:'left',title:'应用类型',width:'120px',rowspan:'2'},
|
|
|
+
|
|
|
+ {field:'cylinderNum',align:'left',title:'气瓶数量',width:'120px',rowspan:'2'},
|
|
|
+ {field:'regNo',align:'left',title:'使用登记证',width:'120px',rowspan:'2'},
|
|
|
+ {field:'nowNumber',align:'left',title:'已充装次数',width:'120px',rowspan:'2'},
|
|
|
+
|
|
|
+ /* {field:'fillcheckstr',align:'left',title:'已充装次数',width:'120px',rowspan:'2',hidden:true}, */
|
|
|
+
|
|
|
+ {field:'endTime1',align:'left',title:'结束时间',width:160,rowspan:'2'},
|
|
|
+ {field:'lowPress',align:'left',title:'充装前压',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ return parseFloat(value).toFixed(2);
|
|
|
+ }},
|
|
|
+ {field:'highPress',align:'left',title:'充装后压',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ return parseFloat(value).toFixed(2);
|
|
|
+ }},
|
|
|
+ {field:'flux',align:'left',title:'流量',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ return parseFloat(value).toFixed(2);
|
|
|
+ }},
|
|
|
+ {field:'money',align:'left',title:'金额(元)',width:'120px',rowspan:'2',formatter: function(value, row, index){
|
|
|
+ return parseFloat(value).toFixed(2);
|
|
|
+ }},
|
|
|
+
|
|
|
+ {"title":"充装前检查",align:'left',"colspan":6},
|
|
|
+ {"title":"充装中检查",align:'left',"colspan":3},
|
|
|
+ {"title":"充装后检查",align:'left',"colspan":3},
|
|
|
+
|
|
|
+ ],
|
|
|
+ [
|
|
|
+
|
|
|
+ {"field":"taskNo1",align:'left',"title":'附件齐全'+"<br/>"+'符合安全'+"<br/>"+'要求',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo2",align:'left',"title":'瓶内有余'+"<br/>"+'压(首次充'+"<br/>"+'装已置换)',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo3",align:'left',"title":'外观完好、无缺陷('+"<br/>"+'裂纹、腐蚀、'+"<br/>"+'变形等)、安装稳定',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo4",align:'left',"title":'无私改'+"<br/>"+'符合规定',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo5",align:'left',"title":'无漏气、'+"<br/>"+'漏电、'+"<br/>"+'漏油现象',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo6",align:'left',"title":'电子标签与车辆'+"<br/>"+'信息相符并贴于瓶'+"<br/>"+'体上(判定标签除外)',"rowspan":1,"colspan":1},
|
|
|
+
|
|
|
+ {"field":"taskNo10",align:'left',"title":'压力',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo11",align:'left',"title":'温度',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo12",align:'left',"title":'外观完整性',"rowspan":1},
|
|
|
+
|
|
|
+ {"field":"taskNo7",align:'left',"title":'瓶内压力'+"<br/>"+'在规定范'+"<br/>"+'围内',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo8",align:'left',"title":'附件连接'+"<br/>"+'可靠、密封'+"<br/>"+'完好',"rowspan":1,"colspan":1},
|
|
|
+ {"field":"taskNo9",align:'left',"title":'无鼓包、变'+"<br/>"+'形、泄露等'+"<br/>"+'异常现象',"rowspan":1,"colspan":1},
|
|
|
+
|
|
|
+ ]
|
|
|
+
|
|
|
+
|
|
|
+ ]
|
|
|
+ });
|
|
|
+ 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/hiddenspeStation?type=2",
|
|
|
+ success:function (data){
|
|
|
+ var obj=eval("(" + data + ")");
|
|
|
+ select.options.add(new Option("全部", ""));
|
|
|
+ $.each(obj.rows, function(i,item){
|
|
|
+ //if(ii==1){
|
|
|
+ // if(obj.rows.length>1){
|
|
|
+ // select.options.add(new Option("全部", ""));
|
|
|
+ // }
|
|
|
+ // ii++;
|
|
|
+ //}
|
|
|
+ select.options.add(new Option(item.name, item.id));
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function selectstation1(){
|
|
|
+ selectstation();
|
|
|
+ //changeSize();
|
|
|
+ }
|
|
|
+
|
|
|
+ function selectjqjandop(){
|
|
|
+ selectjqj();
|
|
|
+ selectoperatorNo();
|
|
|
+ }
|
|
|
+ function selectjqj(){
|
|
|
+ var ii=1;
|
|
|
+ var id=document.getElementById("station").value;
|
|
|
+
|
|
|
+ var options = $("#station option:selected");
|
|
|
+ var stationName = options.text();
|
|
|
+ var select = document.getElementById("jqj");
|
|
|
+
|
|
|
+ var select0817 = document.getElementById("jqj_0817");
|
|
|
+ var select08171 = document.getElementById("jqj_08171");
|
|
|
+ for(var i=select.options.length-1;i>=0;i--) {
|
|
|
+ select.options.remove(i);
|
|
|
+ }
|
|
|
+ for(var i=select0817.options.length-1;i>=0;i--) {
|
|
|
+ select0817.options.remove(i);
|
|
|
+ }
|
|
|
+ for(var i=select08171.options.length-1;i>=0;i--) {
|
|
|
+ select08171.options.remove(i);
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type:"POST",
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
+ url:"ajax/hiddenjqj?stationId="+id,
|
|
|
+ success:function (data){
|
|
|
+ var obj=eval("(" + data + ")");
|
|
|
+ select.options.add(new Option("全部", ""));
|
|
|
+ $.each(obj.rows, function(i,item){
|
|
|
+ select.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
+ select0817.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
+ select08171.options.add(new Option(item.manu+item.type, item.machineNo));
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ document.getElementById("stationId0817").value=id;
|
|
|
+ document.getElementById("stationName0817").innerText=stationName;
|
|
|
+ document.getElementById("stationName08171").innerText=stationName;
|
|
|
+ if(stationName){
|
|
|
+ $('#btnadd').linkbutton('enable');
|
|
|
+ $('#btnadd1').linkbutton('enable');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ var oper="";
|
|
|
+ var username = '<%=username %>';
|
|
|
+ var opers=[];
|
|
|
+ function selectoperatorNo(){
|
|
|
+ var ii=1;
|
|
|
+ var id=document.getElementById("station").value;
|
|
|
+ var select = document.getElementById("operatorNo");
|
|
|
+ var fillCheckNo1 = document.getElementById("fillCheckNo1");
|
|
|
+ var fillCheckNo2 = document.getElementById("fillCheckNo2");
|
|
|
+ for(var i=select.options.length-1;i>=0;i--) {
|
|
|
+ select.options.remove(i);
|
|
|
+ }
|
|
|
+ for(var i=fillCheckNo1.options.length-1;i>=0;i--) {
|
|
|
+ fillCheckNo1.options.remove(i);
|
|
|
+ }
|
|
|
+ for(var i=fillCheckNo2.options.length-1;i>=0;i--) {
|
|
|
+ fillCheckNo2.options.remove(i);
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type:"POST",
|
|
|
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
+ url:"ajax/hiddenoperatorNo?stationId="+id,
|
|
|
+ success:function (data){
|
|
|
+ var obj=eval("(" + data + ")");
|
|
|
+ select.options.add(new Option("全部", ""));
|
|
|
+ fillCheckNo1.options.add(new Option("无", ""));
|
|
|
+ fillCheckNo2.options.add(new Option("无", ""));
|
|
|
+ $.each(obj.rows, function(i,item){
|
|
|
+ select.options.add(new Option(item.name, item.operatorNo));
|
|
|
+ fillCheckNo1.options.add(new Option(item.name, item.operatorNo));
|
|
|
+ fillCheckNo2.options.add(new Option(item.name, item.operatorNo));
|
|
|
+ if(item.name!=username){
|
|
|
+ oper = item.name;
|
|
|
+ opers.push(item.name);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ document.getElementById("stationId08171").value=id;
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function expt1(){
|
|
|
+ expt(grid);
|
|
|
+ }
|
|
|
+ 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 selectjqjandop22(){
|
|
|
+ selectjqjandop();
|
|
|
+ //changeSize();
|
|
|
+}
|
|
|
+function selectoperatorNo22(){
|
|
|
+ //selectoperatorNo();
|
|
|
+ //changeSize();
|
|
|
+}
|
|
|
+function add(){
|
|
|
+ $("#add").dialog("open").dialog('setTitle', '设置加气机状态');
|
|
|
+ $("#add").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
+}
|
|
|
+function add1(){
|
|
|
+ $("#add1").dialog("open").dialog('setTitle', '设置检查人员');
|
|
|
+ $("#add1").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
+}
|
|
|
+function fillAfter(){
|
|
|
+ $("#fillAfter").dialog("open").dialog('setTitle', '补录充后检查');
|
|
|
+ $("#fillAfter").panel("move",{top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
|
|
|
+}
|
|
|
+
|
|
|
+function save(){
|
|
|
+ $.messager.progress({
|
|
|
+ title: '请等待',
|
|
|
+ msg: '正在提交数据...',
|
|
|
+ text: '提交中.......'
|
|
|
+ });
|
|
|
+ $("#addfm").form("submit", {
|
|
|
+ url: "ajax/updateMachine",
|
|
|
+ onsubmit: function () {
|
|
|
+ return $(this).form("validate");
|
|
|
+ },
|
|
|
+ success:function (data){
|
|
|
+ $.messager.progress('close');
|
|
|
+ var vData = $.parseJSON(data);
|
|
|
+ var result = vData.result;
|
|
|
+ if(result==0){
|
|
|
+ show("设置失败!");
|
|
|
+ }else{
|
|
|
+ show("设置成功!");
|
|
|
+ $('#add').dialog('close');
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ error:function(XMLHttpRequest,textStatus, errorThrown) {
|
|
|
+ $.messager.progress('close');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+function save1(){
|
|
|
+ $.messager.progress({
|
|
|
+ title: '请等待',
|
|
|
+ msg: '正在提交数据...',
|
|
|
+ text: '提交中.......'
|
|
|
+ });
|
|
|
+ $("#add1fm").form("submit", {
|
|
|
+ url: "ajax/updateFillCheckOper",
|
|
|
+ onsubmit: function () {
|
|
|
+ return $(this).form("validate");
|
|
|
+ },
|
|
|
+ success:function (data){
|
|
|
+ $.messager.progress('close');
|
|
|
+ var vData = $.parseJSON(data);
|
|
|
+ var result = vData.result;
|
|
|
+ if(result==0){
|
|
|
+ show("设置失败!");
|
|
|
+ }else{
|
|
|
+ show("设置成功!");
|
|
|
+ $('#add1').dialog('close');
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ error:function(XMLHttpRequest,textStatus, errorThrown) {
|
|
|
+ $.messager.progress('close');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//判断字符是否为空的方法
|
|
|
+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();" >
|
|
|
+ </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" onchange="selectjqjandop22();" >
|
|
|
+ <option value="">全部</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <span class="hzbspan" >加气机:</span>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <select name="jqj" id ="jqj" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectoperatorNo22();" >
|
|
|
+ <option value="">全部</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr><td>
|
|
|
+ <span style="cursor: default"><span class="hzbspan">应用类型:</span></span></td>
|
|
|
+ <td><select name="appType" id="appType" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
+ <option value="-1" selected="selected">全部</option>
|
|
|
+ <option value="0">其他</option>
|
|
|
+ <option value="1">出租</option>
|
|
|
+ <option value="2">公交</option>
|
|
|
+ <option value="3">私用</option>
|
|
|
+ <option value="4">货运</option>
|
|
|
+ <option value="5">客运</option>
|
|
|
+ <option value="6">营转非</option>
|
|
|
+ <option value="9">外地车</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="gunNo" id="gunNo" style="width: 150px;height: 34px;" class="hzbspan" placeholder="- - - - - - -">
|
|
|
+ </td>
|
|
|
+ <td><span style="cursor: default"><span class="hzbspan">操作员:</span></span></td>
|
|
|
+ <td><select name="operatorNo" id ="operatorNo" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" >
|
|
|
+ <option value="">全部</option>
|
|
|
+ </select></td>
|
|
|
+ </tr><tr>
|
|
|
+ <td>
|
|
|
+
|
|
|
+ <span style="cursor: default"><span class="hzbspan">充装状态:</span></span></td>
|
|
|
+ <td><select name="fillState" id="fillState" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
+ <option value="-1" selected="selected">全部</option>
|
|
|
+ <option value="0">成功充装</option>
|
|
|
+ <option value="1">灰名单允许</option>
|
|
|
+ <option value="2">灰名单不允许</option>
|
|
|
+ <option value="3">黑名单不充装</option>
|
|
|
+ <option value="4">检验未通过</option>
|
|
|
+ <option value="5">超期未检</option>
|
|
|
+ <option value="6">使用年限超出</option>
|
|
|
+ <option value="7">次数不足</option>
|
|
|
+ <option value="8">当天次数不足</option>
|
|
|
+ <option value="9">站点不匹配</option>
|
|
|
+ <option value="10">加气机不匹配</option>
|
|
|
+ <option value="11">加气枪不匹配</option>
|
|
|
+
|
|
|
+ </select></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 select" data-options="prompt:'- - - - - - -'">
|
|
|
+ </td>
|
|
|
+ <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>
|
|
|
+ <td>
|
|
|
+
|
|
|
+
|
|
|
+ <span class="hzbspan">充装介质:</span></td>
|
|
|
+ <td>
|
|
|
+ <select name="cylinderType" id="cylinderType" style="width: 150px;height: 34px;" class="hzbspan select" >
|
|
|
+ <option value="-1">全部</option>
|
|
|
+ <option value="0">CNG-高压气体</option>
|
|
|
+ <option value="1">LNG-低温液化天然气</option>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ </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>
|
|
|
+ <a id="btnadd" onclick="add();" class="easyui-linkbutton" icon="icon-config" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">设置加气机状态</span></a>
|
|
|
+ <a id="btnadd1" onclick="add1();" class="easyui-linkbutton" icon="icon-config" href="javascript:void(0)" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">设置检查人员</span></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div id="dialog2"></div>
|
|
|
+ <div id="add" class="easyui-dialog" style="width: 440px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg-buttons">
|
|
|
+ <form id="addfm" method="post">
|
|
|
+ <input name="stationNo" id="stationId0817" type="text" style="display: none;"/>
|
|
|
+ <div class="fitem">
|
|
|
+ <label> 站点:</label>
|
|
|
+ <span id="stationName0817"></span>
|
|
|
+ </div>
|
|
|
+ <div class="fitem">
|
|
|
+ <label> 加气机:</label>
|
|
|
+ <select name="machineNo" id="jqj_0817" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="fitem">
|
|
|
+ <label>加气机状态:</label>
|
|
|
+ <select name="machineState" id="jqjState" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
+ <option value="0">在用</option>
|
|
|
+ <option value="1">可用</option>
|
|
|
+ <option value="2">检修</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <div id="dlg-buttons">
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save()" iconcls="icon-add">保存</a>
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add').dialog('close')"
|
|
|
+ iconcls="icon-cancel">关闭</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="add1" class="easyui-dialog" style="width: 440px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg1-buttons">
|
|
|
+ <form id="add1fm" method="post">
|
|
|
+ <input name="stationNo" id="stationId08171" type="text" style="display: none;" />
|
|
|
+ <div class="fitem">
|
|
|
+ <label> 站点:</label>
|
|
|
+ <span id="stationName08171"></span>
|
|
|
+ </div>
|
|
|
+ <div class="fitem">
|
|
|
+ <label> 加气机:</label>
|
|
|
+ <select name="machineNo" id="jqj_08171" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="fitem">
|
|
|
+ <label>充前检查人员:</label>
|
|
|
+ <select name="fillCheckNo1" id="fillCheckNo1" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="fitem">
|
|
|
+ <label>充后检查人员:</label>
|
|
|
+ <select name="fillCheckNo2" id="fillCheckNo2" style="width: 200px;height: 34px;" class="hzbspan" >
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <div id="dlg1-buttons">
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save1()" iconcls="icon-add">保存</a>
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add1').dialog('close')"
|
|
|
+ iconcls="icon-cancel">关闭</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="fillAfter" class="easyui-dialog" style="width: 900px; height: 250px; padding: 10px 40px;" shadow="false" closed="true" modal="true" buttons="#dlg2-buttons">
|
|
|
+ <form id="fillAfterfm" method="post">
|
|
|
+ <table style="font-weight: 450;font-size: 12px;">
|
|
|
+ <tr>
|
|
|
+ <td><span style="font-weight: 550;font-size: 18px;">充后检查项:</span></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-indent: 2em;">瓶内压力在规定范围内:</td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item1" type="radio" value="0" checked="checked" />合格 </td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item1" type="radio" value="1" />不合格 </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-indent: 2em;">附件连接可靠、密封完好:</td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item2" type="radio" value="0" checked="checked"/>合格 </td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item2" type="radio" value="1" />不合格 </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-indent: 2em;">无鼓包、变形、泄露等异常现象:</td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item3" type="radio" value="0" checked="checked"/>合格 </td>
|
|
|
+ <td> </td>
|
|
|
+ <td><input name="item3" type="radio" value="1" />不合格 </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ <div id="dlg2-buttons">
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save1()" iconcls="icon-add">保存</a>
|
|
|
+ <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#add1').dialog('close')"
|
|
|
+ iconcls="icon-cancel">关闭</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </body>
|
|
|
+</html>
|