Dynamicattempt1.jsp 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="com.runzhixing.bean.CityPlace" %>
  3. <%@ page import="com.runzhixing.bean.CountryPlace" %>
  4. <%@ page import="com.runzhixing.bean.Station" %>
  5. <%@ page import="com.runzhixing.bean.AuthorityRegionPlace" %>
  6. <%@ page import="com.runzhixing.bean.User" %>
  7. <%@ page import="com.runzhixing.constant.Constant" %>
  8. <%@ page import="com.runzhixing.tool.Util" %>
  9. <%
  10. String path = request.getContextPath();
  11. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  12. User user = (User)session.getAttribute(Constant.userMark);
  13. List<AuthorityRegionPlace> arplist = user.getPrivilegePlaces1();
  14. List<CityPlace> cplist = new ArrayList<CityPlace>();
  15. List<CountryPlace> cyplist = new ArrayList<CountryPlace>();
  16. List<Station> slist = new ArrayList<Station>();
  17. %>
  18. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  19. <html>
  20. <head>
  21. <base href="<%=basePath%>">
  22. <title>动态视图</title>
  23. <meta http-equiv="pragma" content="no-cache">
  24. <meta http-equiv="cache-control" content="no-cache">
  25. <meta http-equiv="expires" content="0">
  26. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  27. <meta http-equiv="description" content="This is my page">
  28. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  29. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  30. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  31. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  32. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  33. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  34. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
  35. <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
  36. <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
  37. <style type="text/css">
  38. .paiDiv a:HOVER{
  39. color: red;
  40. text-decoration: none;
  41. font-weight: bold;
  42. }
  43. .paiDiv a{
  44. color: #f08300;
  45. text-decoration: none;
  46. font-weight: bold;
  47. }
  48. .hzbspan{font-family:'Microsoft YaHei', Verdana, 'SimSun', 'Lucida Grande', 'Trebuchet MS', Helvetica, sans-serif;
  49. letter-spacing:normal;
  50. font-size: 14px;
  51. }
  52. .paiDiv font{
  53. font-weight: bold;
  54. color: red;
  55. }
  56. </style>
  57. <script type="text/javascript">
  58. var i = 1;//第几页
  59. var sum;//总条数
  60. var totalpage;//总页数
  61. var oldstationId;
  62. $(document).ready(function(){
  63. selectCountry11();
  64. selectStation();
  65. //getcng();
  66. });
  67. //点击查询按钮
  68. $('#btninfosearch').click(function(){
  69. var id=document.getElementById("station").value;
  70. i = 1;
  71. fLoadData(1,id);
  72. });
  73. function fLoadTable(){
  74. $('#tt').datagrid({
  75. });
  76. }
  77. function getcng(){
  78. oldstationId = document.getElementById("station").value;
  79. getcngdetail(oldstationId);
  80. }
  81. function getcng1(){
  82. getcngdetailre(oldstationId);
  83. }
  84. function getcngdetail(stationId){
  85. var v = "";
  86. var vv = "";
  87. var v0 = '<div class="paiDiv" style="border: 1px solid #63B8FF;text-align:center;width:100%;height:200px;border-top:none;"><div style="float:left;width:3%;height:200px;"></div>';
  88. var v00 = '</div><div style="width:100%;height:30px;"></div>';
  89. if(!stationId){}else{
  90. oldstationId = stationId;
  91. $.messager.progress({
  92. title: '请等待',
  93. msg: '正在加载数据...',
  94. text: '查询中.......'
  95. });
  96. $.ajax({
  97. type:"POST",
  98. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  99. url:"ajax/todayModify123?stationId="+stationId,
  100. success:function (data){
  101. $.messager.progress('close');
  102. var obj=eval("(" + data + ")");
  103. document.getElementById("tableDiv").innerHTML ="";
  104. $.each(obj.rows, function(i,item){
  105. var vcar1="";
  106. var vcar2="";
  107. var vperson1 ="";
  108. var vperson2="";
  109. var vmachine="";
  110. var icar=1;
  111. var iperson=1;
  112. var idno1 ="";
  113. var idno2 ="";
  114. if(item.tmgundir==1){
  115. if(item.media==0){
  116. vmachine = '<div style="float:left;width:200px;">2号枪<img src="images/rzx/machine.gif" style="height:120px;width:auto;"/>1号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  117. }else{
  118. vmachine = '<div style="float:left;width:200px;">2号枪<img src="images/rzx/machine1.gif" style="height:120px;width:auto;"/>1号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  119. }
  120. }else{
  121. if(item.media==0){
  122. vmachine = '<div style="float:left;width:200px;">1号枪<img src="images/rzx/machine.gif" style="height:120px;width:auto;"/>2号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  123. }else{
  124. vmachine = '<div style="float:left;width:200px;">1号枪<img src="images/rzx/machine1.gif" style="height:120px;width:auto;"/>2号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  125. }
  126. }
  127. $.each(item.tbcngstationdyn, function(i,item1){
  128. if(icar==1){
  129. if(item1.stop==0){
  130. vcar1 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/c'+item1.tsdapptype+'.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  131. }else{
  132. vcar1 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/gunSuspended1.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  133. }
  134. icar++;
  135. }else if(icar==2){
  136. if(item1.stop==0){
  137. vcar2 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/c'+item1.tsdapptype+'.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  138. }else{
  139. vcar2 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/gunSuspended1.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  140. }
  141. icar++;
  142. }
  143. $.each(item1.tbcngoperatorduty, function(i,item2){
  144. $.each(item2.tbcngoperator, function(i,item3){
  145. if(iperson==1){
  146. idno1 =item3.toidno;
  147. vperson1 ='<div style="float:left;text-align:left;width:200px;height:135px;"><img src="images/rzx/person'+item3.tosex+'.gif"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;width:50%;float:left;">工作人员信息</div><div style="border-bottom:1px solid #63B8FF;width:45%;float:left;text-align:right;"><a style="cursor:pointer;" onclick="operatorDetail('+item3.tooperatorno+')">'+item3.toname+'</a></div>上班时间:'+item2.todstarttime+'<br/>许可证号:<br/>'+item3.tolicence+'<br/>身份证号:<br/>'+item3.toidno+'</div></div>';
  148. iperson++;
  149. }else if(iperson>=2){
  150. idno2 = item3.toidno;
  151. if(idno2&&idno2!=idno1){
  152. vperson2 ='<div style="float:left;text-align:left;width:200px;height:135px;"><img src="images/rzx/person'+item3.tosex+'.gif"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;width:50%;float:left;">工作人员信息</div><div style="border-bottom:1px solid #63B8FF;width:45%;float:left;text-align:right;"><a style="cursor:pointer;" onclick="operatorDetail('+item3.tooperatorno+')">'+item3.toname+'</a></div>上班时间:'+item2.todstarttime+'<br/>许可证号:<br/>'+item3.tolicence+'<br/>身份证号:<br/>'+item3.toidno+'</div></div>';
  153. iperson++;
  154. }
  155. }
  156. });
  157. });
  158. });
  159. v = v0+vcar1+vperson1+vmachine+vperson2+vcar2+v00;
  160. document.getElementById("tableDiv").innerHTML += v;
  161. });
  162. setTimeout('getcng1()',1*60*1000);
  163. }
  164. });
  165. }
  166. }
  167. function getcngdetailre(stationId){
  168. var v = "";
  169. var vv = "";
  170. var v0 = '<div class="paiDiv" style="border: 1px solid #63B8FF;text-align:center;width:100%;height:200px;border-top:none;"><div style="float:left;width:3%;height:200px;"></div>';
  171. var v00 = '</div><div style="width:100%;height:30px;"></div>';
  172. if(!stationId){}else{
  173. oldstationId = stationId;
  174. $.ajax({
  175. type:"POST",
  176. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  177. //url:"ajax/getstationdetailreset?stationId="+stationId,
  178. url:"ajax/todayModify123?stationId="+stationId,
  179. success:function (data){
  180. var obj=eval("(" + data + ")");
  181. document.getElementById("tableDiv").innerHTML ="";
  182. $.each(obj.rows, function(i,item){
  183. var vcar1="";
  184. var vcar2="";
  185. var vperson1 ="";
  186. var vperson2="";
  187. var vmachine="";
  188. var icar=1;
  189. var iperson=1;
  190. var idno1 ="";
  191. var idno2 ="";
  192. if(item.tmgundir==1){
  193. if(item.media==0){
  194. vmachine = '<div style="float:left;width:200px;">2号枪<img src="images/rzx/machine.gif" style="height:120px;width:auto;"/>1号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  195. }else{
  196. vmachine = '<div style="float:left;width:200px;">2号枪<img src="images/rzx/machine1.gif" style="height:120px;width:auto;"/>1号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  197. }
  198. }else{
  199. if(item.media==0){
  200. vmachine = '<div style="float:left;width:200px;">1号枪<img src="images/rzx/machine.gif" style="height:120px;width:auto;"/>2号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  201. }else{
  202. vmachine = '<div style="float:left;width:200px;">1号枪<img src="images/rzx/machine1.gif" style="height:120px;width:auto;"/>2号枪<br/>'+item.tmmanu+item.tmtype+'</div>';
  203. }
  204. }
  205. $.each(item.tbcngstationdyn, function(i,item1){
  206. if(icar==1){
  207. if(item1.stop==0){
  208. vcar1 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/c'+item1.tsdapptype+'.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  209. }else{
  210. vcar1 = '<div style="float:left;text-align:left;width:200px;" class="hzbspan1"><img src="images/rzx/gunSuspended1.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  211. }
  212. icar++;
  213. }else if(icar==2){
  214. if(item1.stop==0){
  215. vcar2 = '<div style="float:left;text-align:left;width:200px;"><img src="images/rzx/c'+item1.tsdapptype+'.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  216. }else{
  217. vcar2 = '<div style="float:left;text-align:left;width:200px;" class="hzbspan1"><img src="images/rzx/gunSuspended1.gif" style="height:60px;width:auto;"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;float:left;width:50%;">车辆信息</div><div style="border-bottom:1px solid #63B8FF;float:left;width:45%;text-align:right;"><a style="cursor:pointer;" href="machineDetail?carNo='+item1.tsdcarno+'" target="_blank">详细</a></div>车牌号:'+item1.tsdcarno+'<br/>类型:'+item1.tsdplatetypeString+'<br/>充装时间:<br/>'+item1.tsdopertime+'</div></div>';
  218. }
  219. icar++;
  220. }
  221. $.each(item1.tbcngoperatorduty, function(i,item2){
  222. $.each(item2.tbcngoperator, function(i,item3){
  223. if(iperson==1){
  224. idno1 =item3.toidno;
  225. vperson1 ='<div style="float:left;text-align:left;width:200px;height:135px;"><img src="images/rzx/person'+item3.tosex+'.gif"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;width:50%;float:left;">工作人员信息</div><div style="border-bottom:1px solid #63B8FF;width:45%;float:left;text-align:right;"><a style="cursor:pointer;" onclick="operatorDetail('+item3.tooperatorno+')">'+item3.toname+'</a></div>上班时间:'+item2.todstarttime+'<br/>许可证号:<br/>'+item3.tolicence+'<br/>身份证号:<br/>'+item3.toidno+'</div></div>';
  226. iperson++;
  227. }else if(iperson>=2){
  228. idno2 = item3.toidno;
  229. if(idno2&&idno2!=idno1){
  230. vperson2 ='<div style="float:left;text-align:left;width:200px;height:135px;"><img src="images/rzx/person'+item3.tosex+'.gif"/><div style="width:100%;height:3px;"></div><div style="border:1px solid #63B8FF;border-radius: 5px;width:150px;"><div style="border-bottom:1px solid #63B8FF;width:50%;float:left;">工作人员信息</div><div style="border-bottom:1px solid #63B8FF;width:45%;float:left;text-align:right;"><a style="cursor:pointer;" onclick="operatorDetail('+item3.tooperatorno+')">'+item3.toname+'</a></div>上班时间:'+item2.todstarttime+'<br/>许可证号:<br/>'+item3.tolicence+'<br/>身份证号:<br/>'+item3.toidno+'</div></div>';
  231. iperson++;
  232. }
  233. }
  234. });
  235. });
  236. });
  237. v = v0+vcar1+vperson1+vmachine+vperson2+vcar2+v00;
  238. document.getElementById("tableDiv").innerHTML += v;
  239. });
  240. setTimeout('getcng1()',1*60*1000);
  241. }
  242. });
  243. }
  244. }
  245. function operatorDetail(operatorNo){
  246. $.messager.progress({
  247. title: '请等待',
  248. msg: '正在加载数据...',
  249. text: '查询中.......'
  250. });
  251. $.ajax({
  252. type:"POST",
  253. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  254. url:"ajax/operatorDetail?operatorno="+operatorNo,
  255. success:function (data){
  256. $.messager.progress('close');
  257. var obj=eval("(" + data + ")");
  258. $.each(obj.rows, function(i,item){
  259. document.getElementById("opname").value = item.name;
  260. if(item.sex==1){
  261. document.getElementById("opsex").value = "女";
  262. }else if(item.sex==0){
  263. document.getElementById("opsex").value = "男";
  264. }else{
  265. document.getElementById("opsex").value = "未知性别";
  266. }
  267. document.getElementById("opidno").value = item.idNo;
  268. document.getElementById("oplicence").value = item.licence;
  269. document.getElementById("oplicenceorg").value = item.licenceOrg;
  270. if(!item.licenceDate||item.licenceDate=="null"){
  271. item.licenceDate="";
  272. }else if(item.licenceDate.length>9){
  273. item.licenceDate = item.licenceDate.substring(0,10);
  274. }
  275. if(!item.validity||item.validity=="null"){
  276. item.validity="";
  277. }else if(item.validity.length>9){
  278. item.validity = item.validity.substring(0,10);
  279. }
  280. document.getElementById("oplicenceDate").value = item.licenceDate;
  281. document.getElementById("opvalidity").value = item.validity;
  282. document.getElementById("profileno").value = item.profileno;
  283. document.getElementById("operType123").value = '车用气瓶充装';
  284. });
  285. $('#operatorwindows').window('open');
  286. }
  287. });
  288. }
  289. function machineDetail(stationNo,machineNo){
  290. $.messager.progress({
  291. title: '请等待',
  292. msg: '正在加载数据...',
  293. text: '查询中.......'
  294. });
  295. $.ajax({
  296. type:"POST",
  297. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  298. url:"ajax/machineDetail?stationNo="+stationNo+"&machineNo="+machineNo,
  299. success:function (data){
  300. $.messager.progress('close');
  301. var obj=eval("(" + data + ")");
  302. $.each(obj.rows, function(i,item){
  303. document.getElementById("maendTime").value = item.endTime;
  304. document.getElementById("macarNo").value = item.carNo;
  305. document.getElementById("maappType").value = item.appType;
  306. document.getElementById("malicence").value = item.licence;
  307. document.getElementById("malicenceorg").value = item.licenceOrg;
  308. document.getElementById("malicenceDate").value = item.licenceDate;
  309. document.getElementById("mavalidity").value = item.validity;
  310. });
  311. $('#machinewindows').window('open');
  312. }
  313. });
  314. }
  315. function selectCountry(){
  316. var id=document.getElementById("city").value;
  317. //document.getElementById("hiddenCity").value=id;
  318. var select = document.getElementById("country");
  319. for(var i=select.options.length-1;i>=0;i--) {
  320. select.options.remove(i);
  321. }
  322. $.ajax({
  323. type:"POST",
  324. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  325. url:"ajax/hiddenCity?cityId="+id,
  326. success:function (data){
  327. var obj=eval("(" + data + ")");
  328. $.each(obj.rows, function(i,item){
  329. select.options.add(new Option(item.name, item.id));
  330. });
  331. }
  332. });
  333. selectStation();
  334. }
  335. function selectCountry11(){
  336. var id=document.getElementById("city").value;
  337. //document.getElementById("hiddenCity").value=id;
  338. var select = document.getElementById("country");
  339. for(var i=select.options.length-1;i>=0;i--) {
  340. select.options.remove(i);
  341. }
  342. $.ajax({
  343. type:"POST",
  344. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  345. url:"ajax/hiddenCity?cityId="+id,
  346. success:function (data){
  347. var obj=eval("(" + data + ")");
  348. if(obj.rows.length==1){
  349. select.options.add(new Option("请选择县", ""));
  350. }
  351. $.each(obj.rows, function(i,item){
  352. select.options.add(new Option(item.name, item.id));
  353. });
  354. }
  355. });
  356. }
  357. function selectStation(){
  358. var id=document.getElementById("city").value;
  359. var id1=document.getElementById("country").value;
  360. //document.getElementById("hiddenCity").value=id;
  361. var select = document.getElementById("station");
  362. for(var i=select.options.length-1;i>=0;i--) {
  363. select.options.remove(i);
  364. }
  365. var i=0;
  366. $.ajax({
  367. type:"POST",
  368. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  369. url:"ajax/hiddenCountry?countryId="+id1+"&cityId="+id+"&type=2",
  370. success:function (data){
  371. var obj=eval("(" + data + ")");
  372. select.options.add(new Option("请选择一个站点", ""));
  373. $.each(obj.rows, function(i,item){
  374. select.options.add(new Option(item.name, item.id));
  375. });
  376. }
  377. });
  378. }
  379. </script>
  380. </head>
  381. <body>
  382. <!-- 查询结果:数据表格 -->
  383. <table id="tt" cellspacing="0" cellpadding="0" >
  384. </table>
  385. <div id="toolbar" style="padding-top: 0px;height: auto;">
  386. <table style="border-collapse:separate; border-spacing:10px;">
  387. <tr>
  388. <td>
  389. <span style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" >省:</span></span>
  390. </td>
  391. <td>
  392. <select name="province" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select">
  393. <%for(AuthorityRegionPlace arp:arplist){
  394. cplist = arp.getCityPlace();
  395. %>
  396. <option value="<%=arp.getId() %>">
  397. <%=arp.getName() %>
  398. </option>
  399. <%} %>
  400. </select>
  401. </td>
  402. <td>
  403. <span style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" >市:</span></span>
  404. </td>
  405. <td>
  406. <select name="city" id="city" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectCountry()">
  407. <%
  408. for(CityPlace cp:cplist){
  409. cyplist = cp.getSubPlaceList();
  410. %>
  411. <option value="<%=cp.getId() %>">
  412. <%=cp.getName() %>
  413. </option>
  414. <%} %>
  415. </select>
  416. </td>
  417. <td>
  418. <span style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" >县:</span></span>
  419. </td>
  420. <td>
  421. <select name="country" id = "country" style="width: 150px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectStation()">
  422. </select>
  423. </td>
  424. </tr>
  425. <tr>
  426. <td>
  427. <span style="cursor: default;margin-bottom: 5px;"><span class="hzbspan" >加气站:</span></span>
  428. </td>
  429. <td colspan="4">
  430. <select onchange="getcng()" name="station" id="station" style="width: 328px;height: 34px;min-width: 100px;" class="hzbspan select" >
  431. </select>
  432. </td>
  433. <td>
  434. <a class="easyui-linkbutton" icon="icon-search" style="width: 150px;height: 34px;" onclick="getcng()" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">查&nbsp;&nbsp;询&nbsp;&nbsp;</span></a>
  435. </td>
  436. <td>
  437. </td>
  438. </tr>
  439. </table>
  440. </div>
  441. <div id="tableDiv" style="width: 100%;height: auto;border: 1px solid #4682B4;"></div>
  442. <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;" >
  443. <div class="easyui-layout" fit="true">
  444. <div region="center" id="pnamecenter" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  445. <table>
  446. <tr>
  447. <td>
  448. <span class="hzbspan">姓名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="text" id="opname" style="width: 200px;border: none;" readonly="readonly"/>
  449. </td><td>
  450. <span class="hzbspan">性别:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="text" id="opsex" style="width: 200px;border: none;" readonly="readonly"/>
  451. </td><td>
  452. <span class="hzbspan">身份证号:</span><input type="text" id="opidno" style="width: 200px;border: none;" readonly="readonly"/>
  453. </td>
  454. </tr>
  455. <tr>
  456. <td>
  457. <span class="hzbspan">许可证号:</span><input type="text" id="oplicence" style="width: 200px;border: none;" readonly="readonly"/>
  458. </td><td>
  459. <span class="hzbspan">发证机构:</span><input type="text" id="oplicenceorg" style="width: 200px;border: none;" readonly="readonly"/>
  460. </td><td>
  461. <span class="hzbspan">发证时间:</span><input type="text" id="oplicenceDate" style="width: 200px;border: none;" readonly="readonly"/>
  462. </td></tr>
  463. <tr><td>
  464. <span class="hzbspan">有效期:&nbsp;&nbsp;&nbsp;</span><input type="text" id="opvalidity" style="width: 200px;border: none;" readonly="readonly"/>
  465. </td><td>
  466. <span class="hzbspan">档案编号:</span><input type="text" id="profileno" style="width: 200px;border: none;" readonly="readonly"/>
  467. </td><td>
  468. <span class="hzbspan">作业人员种类:</span><input type="text" id="operType123" style="width: 200px;border: none;" readonly="readonly"/>
  469. </td></tr>
  470. </table>
  471. </div>
  472. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  473. <a id="infoaddstreetcancel" class="easyui-linkbutton" icon="icon-cancel" onclick="$('#operatorwindows').window('close');">返回</a>
  474. </div>
  475. </div>
  476. </div>
  477. <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;" >
  478. <div class="easyui-layout" fit="true">
  479. <div region="center" id="pnamecenter" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  480. <span class="hzbspan">姓名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="text" id="maendTime" style="width: 200px;" readonly="readonly"/>
  481. <span class="hzbspan">性别:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="text" id="macarNo" style="width: 200px;" readonly="readonly"/>
  482. <span class="hzbspan">应用类型:</span><input type="text" id="maappType" style="width: 200px;" readonly="readonly"/>
  483. <br/><br/>
  484. <span class="hzbspan">充装时间:</span><input type="text" id="maendTime" style="width: 200px;" readonly="readonly"/>
  485. <span class="hzbspan">发证机构:</span><input type="text" id="malicenceorg" style="width: 200px;" readonly="readonly"/>
  486. <span class="hzbspan">发证时间:</span><input type="text" id="malicenceDate" style="width: 200px;" readonly="readonly"/>
  487. <br/><br/>
  488. <span class="hzbspan">车牌号:&nbsp;&nbsp;&nbsp;</span><input type="text" id="macarNo" style="width: 200px;" readonly="readonly"/>
  489. </div>
  490. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  491. <a id="infoaddstreetcancel" class="easyui-linkbutton" icon="icon-cancel" onclick="$('#machinewindows').window('close');">返回</a>
  492. </div>
  493. </div>
  494. </div>
  495. </body>
  496. </html>