| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- <%@ 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.constant.Constant" %>
- <%@ page import="com.runzhixing.tool.Util" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- 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 hiddenphone =(String)session.getAttribute("hiddenphone");
- %>
- <!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">
- <style type="text/css">
- .paiDiv a:HOVER{
- color: red;
- text-decoration: none;
- font-weight: bold;
- }
- .paiDiv a{
- color: #f08300;
- text-decoration: none;
- font-weight: bold;
- }
- .hzbspan{font-family:'Microsoft YaHei', Verdana, 'SimSun', 'Lucida Grande', 'Trebuchet MS', Helvetica, sans-serif;
- letter-spacing:normal;
- font-size: 14px;
-
- }
-
- </style>
- <script type="text/javascript">
- var hiddenP='<%=hiddenphone %>';
- var i = 1;//第几页
- var sum;//总条数
- var totalpage;//总页数
- var oldstationId;
- $(document).ready(function(){
- selectCountry11();
- selectStation();
- getcng();
- });
- //点击查询按钮
- $('#btninfosearch').click(function(){
- var id=document.getElementById("station").value;
- i = 1;
- fLoadData(i,id);
-
- });
- function fLoadTable(){
- $('#tt').datagrid({
-
- });
- }
- function getcng(){
- var stationId = document.getElementById("station").value;
- getcngdetail(stationId);
- }
- function getcngdetail(stationId){
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/checkStationInfo?stationId="+stationId,
- success:function (data){
- $.messager.progress('close');
- var obj=eval("(" + data + ")");
- document.getElementById("tableDiv").innerHTML ="";
- $.each(obj.rows, function(i,item){
- var mobile=item.mobile;
- if(hiddenP!="0"){
- mobile="无权查看!"
- }
- if(item.state==0){//断开
-
-
- document.getElementById("tableDiv").innerHTML +=
- '<center><table class="hzbspan"><tr><td>站点名称:</td><td style="padding-right:20px;">'+item.name+'</td><td>站点简称:</td><td style="padding-right:20px;">'+item.placeAB+'</td><td>站点地址:</td><td>'+item.addr+'</td></tr>'+
- '<tr><td>充装许可证:</td><td>'+item.licence+'</td><td>发证时间:</td><td>'+subTime10(item.licenceDate1)+'</td><td>有效期至:</td><td>'+subTime10(item.validity1)+'</td></tr>'+
- '<tr><td>负责人:</td><td>'+item.manager+'</td><td>技术负责人:</td><td>'+item.techManager+'</td><td>邮编:</td><td>'+item.post+'</td></tr>'+
- '<tr><td>手机:</td><td>'+mobile+'</td><td>座机:</td><td>'+item.phone+'</td><td>传真:</td><td>'+item.fax+'</td></tr>'+
- '</table></center>'+
- ''+
-
-
- '<center><table class="hzbspan"><tr ><td colspan="4" align="center" style="font-size:18px;font-weight:bold;color:#f08300;">网络连接状态</td></tr><tr><td>连接状态:</td><td style="padding-right:20px;"><img titile="断开" src="images/rzx/disconnect.png"/></td><td>断开时间:</td><td>'+subTime19(item.disconnectTime1)+'</td></tr>'+
-
- '<tr><td>服务器IP:</td><td>'+item.serverIp+'</td><td>客户端IP:</td><td>'+item.clientIp+'</td></tr>'
- +'</table>'
- +'</center>';
- }else if(item.state==1){//连接
- document.getElementById("tableDiv").innerHTML +=
- '<center><table class="hzbspan"><tr><td>站点名称:</td><td style="padding-right:20px;">'+item.name+'</td><td>站点简称:</td><td style="padding-right:20px;">'+item.placeAB+'</td><td>站点地址:</td><td>'+item.addr+'</td></tr>'+
- '<tr><td>充装许可证:</td><td>'+item.licence+'</td><td>发证时间:</td><td>'+subTime10(item.licenceDate1)+'</td><td>有效期至:</td><td>'+subTime10(item.validity1)+'</td></tr>'+
- '<tr><td>负责人:</td><td>'+item.manager+'</td><td>技术负责人:</td><td>'+item.techManager+'</td><td>邮编:</td><td>'+item.post+'</td></tr>'+
- '<tr><td>手机:</td><td>'+mobile+'</td><td>座机:</td><td>'+item.phone+'</td><td>传真:</td><td>'+item.fax+'</td></tr>'+
- '</table></center>'+
- ''+
-
-
- '<center><table class="hzbspan"><tr ><td colspan="4" align="center" style="font-size:18px;font-weight:bold;color:#f08300;">网络连接状态</td></tr><tr><td>连接状态:</td><td style="padding-right:20px;"><img titile="连接" src="images/rzx/connect.png"/></td><td>连接时间:</td><td>'+subTime19(item.connectTime1)+'</td></tr>'+
-
- '<tr><td>服务器IP:</td><td>'+item.serverIp+'</td><td>客户端IP:</td><td>'+item.clientIp+'</td></tr>'
- +'</table>'
- +'</center>';
- }else{
- }
-
- });
- }
- });
- }
- function subTime10(time){
- if(time&&time.length>=10){
- return time.substring(0,10);
- }
- return '';
- }
- function subTime19(time){
- if(time&&time.length>=19){
- return time.substring(0,19);
- }
- return '';
- }
- function operatorDetail(operatorNo){
-
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
-
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/operatorDetail?operatorno="+operatorNo,
- success:function (data){
- $.messager.progress('close');
- var obj=eval("(" + data + ")");
- $.each(obj.rows, function(i,item){
- document.getElementById("opname").value = item.name;
- document.getElementById("opsex").value = item.sex;
- document.getElementById("opidno").value = item.idNo;
- document.getElementById("oplicence").value = item.licence;
- document.getElementById("oplicenceorg").value = item.licenceOrg;
- if(!item.licenceDate||item.licenceDate=="null"){
- item.licenceDate="";
- }
- if(!item.validity||item.validity=="null"){
- item.validity="";
- }
-
- document.getElementById("oplicenceDate").value = item.licenceDate;
- document.getElementById("opvalidity").value = item.validity;
-
- });
- $('#operatorwindows').window('open');
- }
- });
-
- }
- function machineDetail(stationNo,machineNo){
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
-
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/machineDetail?stationNo="+stationNo+"&machineNo="+machineNo,
- success:function (data){
- $.messager.progress('close');
- var obj=eval("(" + data + ")");
- $.each(obj.rows, function(i,item){
- document.getElementById("maendTime").value = item.endTime;
- document.getElementById("macarNo").value = item.carNo;
- document.getElementById("maappType").value = item.appType;
- document.getElementById("malicence").value = item.licence;
- document.getElementById("malicenceorg").value = item.licenceOrg;
- document.getElementById("malicenceDate").value = item.licenceDate;
- document.getElementById("mavalidity").value = item.validity;
-
- });
- $('#machinewindows').window('open');
- }
- });
-
- }
-
- function selectCountry(){
- var id=document.getElementById("city").value;
-
- //document.getElementById("hiddenCity").value=id;
- 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 + ")");
- $.each(obj.rows, function(i,item){
- select.options.add(new Option(item.name, item.id));
- });
-
-
-
- }
- });
- selectStation();
- }
- function selectCountry11(){
- var id=document.getElementById("city").value;
-
- //document.getElementById("hiddenCity").value=id;
- 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 + ")");
- $.each(obj.rows, function(i,item){
- select.options.add(new Option(item.name, item.id));
- });
-
-
-
- }
- });
- }
-
- function selectStation(){
- var id=document.getElementById("city").value;
- var id1=document.getElementById("country").value;
- //document.getElementById("hiddenCity").value=id;
- var select = document.getElementById("station");
- for(var i=select.options.length-1;i>=0;i--) {
- select.options.remove(i);
- }
- var i=0;
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/hiddenCountry?countryId="+id1+"&cityId="+id,
- success:function (data){
- var obj=eval("(" + data + ")");
- $.each(obj.rows, function(i,item){
- if(i==0){
- if(obj.rows.length>1){
- select.options.add(new Option("请选择一个站点", ""));
- }
- i++;
- }
- select.options.add(new Option(item.name, item.id));
- });
-
-
-
- }
- });
- }
- </script>
- </head>
-
- <body>
- <!-- 查询结果:数据表格 -->
- <table id="tt" cellspacing="0" cellpadding="0" >
- </table>
-
- <div id="toolbar" style="padding-top: 10px;height: 30px;">
- <span class="easyui-linkbutton" style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" style="color: #f08300;font-size: 16px;" >省:</span></span>
- <select name="province" style="width: auto;height: 24px;min-width: 100px;" class="hzbspan">
- <%for(AuthorityRegionPlace arp:arplist){
- cplist = arp.getCityPlace();
- %>
- <option value="<%=arp.getId() %>">
- <%=arp.getName() %>
- </option>
- <%} %>
- </select>
-
- <span class="easyui-linkbutton" style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" style="color: #f08300;font-size: 16px;" >市:</span></span>
- <select name="city" id="city" style="width: auto;height: 24px;min-width: 100px;" class="hzbspan" onchange="selectCountry()">
-
- <%
-
- for(CityPlace cp:cplist){
- cyplist = cp.getSubPlaceList();
- %>
-
- <option value="<%=cp.getId() %>">
- <%=cp.getName() %>
- </option>
-
-
- <%} %>
- </select>
- <span class="easyui-linkbutton" style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" style="color: #f08300;font-size: 16px;" >县:</span></span>
- <select name="country" id = "country" style="width: auto;height: 24px;min-width: 100px;" class="hzbspan" onchange="selectStation()">
-
- </select>
-
-
-
-
- <span class="easyui-linkbutton" style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" style="color: #f08300;font-size: 16px;" >加气站:</span></span>
- <select name="station" id="station" style="width: auto;height: 24px;min-width: 100px;" class="hzbspan" onchange="getcng()">
- </select>
- <a class="easyui-linkbutton" icon="icon-search" onclick="getcng()" style="margin-bottom: 5px;" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">查 询 </span></a>
- </div>
-
- <div id="tableDiv" style="width: 100%;height: auto;border: 1px solid #4682B4;"></div>
-
-
- <div id="operatorwindows" modal="true" title="工作人员详细信息" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" icon="icon-add" style="width:900px;height: 200px;padding:5px;background:#fafafa;" >
- <div class="easyui-layout" fit="true">
- <div region="center" id="pnamecenter" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
- <table>
- <tr>
- <td>
- <span class="hzbspan">姓名: </span><input type="text" id="opname" style="width: 200px;border: none;" readonly="readonly"/>
- </td><td>
- <span class="hzbspan">性别: </span><input type="text" id="opsex" style="width: 200px;border: none;" readonly="readonly"/>
- </td><td>
- <span class="hzbspan">身份证号:</span><input type="text" id="opidno" style="width: 200px;border: none;" readonly="readonly"/>
- </td>
- </tr>
- <tr>
- <td>
- <span class="hzbspan">许可证号:</span><input type="text" id="oplicence" style="width: 200px;border: none;" readonly="readonly"/>
- </td><td>
- <span class="hzbspan">发证机构:</span><input type="text" id="oplicenceorg" style="width: 200px;border: none;" readonly="readonly"/>
- </td><td>
- <span class="hzbspan">发证时间:</span><input type="text" id="oplicenceDate" style="width: 200px;border: none;" readonly="readonly"/>
- </td></tr>
- <tr><td colspan="3">
- <span class="hzbspan">有效期: </span><input type="text" id="opvalidity" style="width: 200px;border: none;" readonly="readonly"/>
- </td></tr>
- </table>
- </div>
-
- <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
- <a id="infoaddstreetcancel" class="easyui-linkbutton" icon="icon-cancel" onclick="$('#operatorwindows').window('close');">返回</a>
- </div>
- </div>
- </div>
-
-
- <div id="machinewindows" modal="true" title="车辆详细信息" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" icon="icon-add" style="width:900px;height: 500px;;padding:5px;background:#fafafa;" >
- <div class="easyui-layout" fit="true">
- <div region="center" id="pnamecenter" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
- <span class="hzbspan">姓名: </span><input type="text" id="maendTime" style="width: 200px;" readonly="readonly"/>
- <span class="hzbspan">性别: </span><input type="text" id="macarNo" style="width: 200px;" readonly="readonly"/>
- <span class="hzbspan">应用类型:</span><input type="text" id="maappType" style="width: 200px;" readonly="readonly"/>
- <br/><br/>
- <span class="hzbspan">充装时间:</span><input type="text" id="maendTime" style="width: 200px;" readonly="readonly"/>
- <span class="hzbspan">发证机构:</span><input type="text" id="malicenceorg" style="width: 200px;" readonly="readonly"/>
- <span class="hzbspan">发证时间:</span><input type="text" id="malicenceDate" style="width: 200px;" readonly="readonly"/>
- <br/><br/>
- <span class="hzbspan">车牌号: </span><input type="text" id="macarNo" style="width: 200px;" readonly="readonly"/>
- </div>
-
- <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
- <a id="infoaddstreetcancel" class="easyui-linkbutton" icon="icon-cancel" onclick="$('#machinewindows').window('close');">返回</a>
- </div>
- </div>
- </div>
- </body>
- </html>
|