fillingbgman.jsp 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="com.runzhixing.constant.Constant"%>
  3. <%@ page import="com.runzhixing.bean.User"%>
  4. <%@ page import="com.runzhixing.bean.Announcement"%>
  5. <%@ page import="java.util.List"%>
  6. <%@ page import="com.runzhixing.packageProcedure.InformationAnnouncementProcedure"%>
  7. <%@ page import="com.runzhixing.filter.MyFilter"%>
  8. <%
  9. String path = request.getContextPath();
  10. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  11. String username = (String)session.getAttribute("username");
  12. String place = (String)session.getAttribute("place");
  13. if(place!=null&&!place.trim().equals("")){
  14. String end = place.substring(place.length()-1,place.length());
  15. if(end.equals("市")||end.equals("县")) place= place.substring(0,place.length()-1);
  16. }
  17. User uu = (User)session.getAttribute(Constant.userMark);
  18. String s = uu.getPrivilegeCode();
  19. if(s.length()>6) {
  20. s = s.substring(0, 6);
  21. }
  22. s = s.replaceAll("(00)*$", "");//// 一直过滤到最高行政地域(删去尾部的 00 )
  23. List<Announcement> list = new InformationAnnouncementProcedure().areatedmachinerunningstate1(5000, 1, -1, s, s, null, null, null, 0);
  24. int id=-1;
  25. String title="";
  26. String anTime="";
  27. if(list.size()>0){
  28. for(Announcement an:list){
  29. if(an.getId()>id){
  30. id=an.getId();
  31. title = an.getTitle();
  32. anTime = an.getPublishTime1();
  33. }
  34. }
  35. }
  36. //查询各部门有效期
  37. List<Announcement> list1 = new ArrayList<Announcement>();
  38. String PrivilegeCode = (String)request.getSession().getAttribute("PrivilegeCode");
  39. if(PrivilegeCode!=null&&!PrivilegeCode.trim().equals("")){
  40. if(PrivilegeCode.length()>=4&&PrivilegeCode.substring(0,4).equals("1502")){//包头市
  41. list1 = new InformationAnnouncementProcedure()
  42. .checkValidity((String)request.getSession().getAttribute("PrivilegeCode"),(String)request.getSession().getAttribute("sOperatorNo"),s,Integer.parseInt((String)session.getAttribute(Constant.moudel)));
  43. }
  44. }
  45. String validity="";
  46. if (list1.size() > 0) {
  47. Announcement an = new Announcement();
  48. an=list1.get(0);
  49. if(an.getL()>0){
  50. validity+="<span style='color: yellow;'>证书快过期!";
  51. }else{
  52. validity+="<span style='color: red;'>证书已过期!";
  53. }
  54. validity+= "<br/>站点编号:"+an.getStationNo()+" <br/>站点名:"+an.getStationName()+" <br/>有效期:"+an.getValidity()+" <br/>联系人:"+an.getManager()+" <br/>电话:"+an.getPhone();
  55. validity+="</span>";
  56. }
  57. if (list1.size() > 1) {
  58. validity+="<br/><a href='CheckValidity' target='_blank'>还有"+(list1.size()-1)+"条过期信息,点击查询&gt;&gt;</a>";
  59. }
  60. String fillAuth = (String) session.getAttribute("fillAuth");
  61. %>
  62. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml">
  63. <html xmlns="http://www.w3.org/1999/xhtml">
  64. <head id="Head1">
  65. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  66. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  67. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  68. <title><%=MyFilter.man_prefix %></title>
  69. <link href="css/default.css" rel="stylesheet" type="text/css" />
  70. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  71. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  72. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  73. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  74. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js"></script>
  75. <script type="text/javascript" src="js/easyui/XiuCai.index.js"> </script>
  76. <style type="text/css">
  77. .hzb a:HOVER{
  78. color: red;
  79. text-decoration: underline;
  80. }
  81. .hzb a{
  82. color: #f08300;
  83. text-decoration: underline;
  84. }
  85. </style>
  86. <script type="text/javascript">
  87. var info_publish = '<%=MyFilter.info_publish %>';
  88. var fillAuth = '<%=fillAuth %>'
  89. $(document).ready(function(){
  90. var newAnnTitle = document.getElementById("newAnnTitle").value;
  91. var newAnnID = document.getElementById("newAnnID").value;
  92. var newAnnTIME = document.getElementById("newAnnTIME").value;
  93. if(info_publish=="0"){}else{
  94. if(!newAnnID){
  95. show1("暂时没有公告!");
  96. }else{
  97. if(newAnnID=="-1"){
  98. show1("暂时没有公告!");
  99. }else{
  100. if(!newAnnTitle){
  101. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+无标题+'('+newAnnTIME+')'+'</span></a>');
  102. }else{
  103. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+newAnnTitle+'('+newAnnTIME+')'+'</span></a>');
  104. }
  105. }
  106. }
  107. }
  108. var validity = document.getElementById("validity").value;
  109. if(validity){
  110. $.messager.show({
  111. title: '证书信息提示',
  112. msg: validity,
  113. timeout: 0,
  114. showType: 'slide' ,
  115. width:400,
  116. height:200
  117. });
  118. }
  119. });
  120. var _menus;
  121. if(info_publish=="0"){
  122. if(fillAuth=="0"){
  123. _menus = {
  124. "menus": [
  125. {
  126. "menuid": "56",
  127. "icon": "icon-large-smartart",
  128. "menuname": "充装情况",
  129. "menus": [{
  130. "menuid": "144",
  131. "menuname": "动态视图",
  132. "icon": "icon-large-chart",
  133. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  134. }]
  135. },
  136. {
  137. "menuid": "56",
  138. "icon": "icon-search",
  139. "menuname": "数据查询",
  140. "menus": [{
  141. "menuid": "145",
  142. "menuname": "充装数据查询",
  143. "icon": "icon-search",
  144. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  145. },
  146. <% if(MyFilter.chgStart){ %>
  147. {
  148. "menuid": "145",
  149. "menuname": "氢气充装查询",
  150. "icon": "icon-search",
  151. "url": "jsp/rzx/dataQuery/HcngFillingdataQuery.jsp"
  152. },
  153. <% } %>
  154. {
  155. "menuid": "155",
  156. "menuname": "考勤数据查询",
  157. "icon": "icon-search",
  158. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  159. },
  160. {
  161. "menuid": "165",
  162. "menuname": "外地车标签查询",
  163. "icon": "icon-search",
  164. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  165. },
  166. {
  167. "menuid": "155",
  168. "menuname": "介质质量查询",
  169. "icon": "icon-search",
  170. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  171. },
  172. {
  173. "menuid": "215",
  174. "menuname": "特种设备数据查询",
  175. "icon": "icon-search",
  176. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  177. }]
  178. },{
  179. "menuid": "1",
  180. "icon": "icon-tip",
  181. "menuname": "数据管理",
  182. "menus": [{
  183. "menuid": "121",
  184. "menuname": "特种设备数据录入",
  185. "icon": "icon-filter",
  186. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  187. },{
  188. "menuid": "122",
  189. "menuname": "介质质量数据录入",
  190. "icon": "icon-save",
  191. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  192. }]
  193. },
  194. {
  195. "menuid": "56",
  196. "icon": "icon-large-chart",
  197. "menuname": "数据统计",
  198. "menus": [{
  199. "menuid": "145",
  200. "menuname": "充装数据统计",
  201. "icon": "icon-large-chart",
  202. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  203. },
  204. {
  205. "menuid": "155",
  206. "menuname": "考勤数据统计",
  207. "icon": "icon-large-shapes",
  208. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  209. }]
  210. },
  211. {
  212. "menuid": "56",
  213. "icon": "icon-more",
  214. "menuname": "系统管理",
  215. "menus": [{
  216. "menuid": "143",
  217. "menuname": "站点信息查看",
  218. "icon": "icon-more",
  219. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  220. },
  221. {
  222. "menuid": "153",
  223. "menuname": "充装设备信息",
  224. "icon": "icon-tip",
  225. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  226. },
  227. {
  228. "menuid": "153",
  229. "menuname": "工作人员信息",
  230. "icon": "icon-tip",
  231. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  232. },
  233. {
  234. "menuid": "153",
  235. "menuname": "手持时间同步码",
  236. "icon": "icon-tip",
  237. "url": "jsp/rzx/systemMan/timeSync.jsp"
  238. }
  239. ]
  240. }]
  241. };
  242. }else{
  243. _menus = {
  244. "menus": [
  245. {
  246. "menuid": "56",
  247. "icon": "icon-large-smartart",
  248. "menuname": "充装情况",
  249. "menus": [{
  250. "menuid": "144",
  251. "menuname": "动态视图",
  252. "icon": "icon-large-chart",
  253. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  254. }]
  255. },
  256. {
  257. "menuid": "56",
  258. "icon": "icon-search",
  259. "menuname": "数据查询",
  260. "menus": [
  261. {
  262. "menuid": "145",
  263. "menuname": "充装数据查询",
  264. "icon": "icon-search",
  265. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  266. },
  267. {
  268. "menuid": "155",
  269. "menuname": "考勤数据查询",
  270. "icon": "icon-search",
  271. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  272. },
  273. {
  274. "menuid": "165",
  275. "menuname": "外地车标签查询",
  276. "icon": "icon-search",
  277. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  278. },
  279. {
  280. "menuid": "155",
  281. "menuname": "介质质量查询",
  282. "icon": "icon-search",
  283. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  284. },
  285. {
  286. "menuid": "215",
  287. "menuname": "特种设备数据查询",
  288. "icon": "icon-search",
  289. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  290. }]
  291. },{
  292. "menuid": "1",
  293. "icon": "icon-tip",
  294. "menuname": "数据管理",
  295. "menus": [{
  296. "menuid": "121",
  297. "menuname": "特种设备数据录入",
  298. "icon": "icon-filter",
  299. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  300. },{
  301. "menuid": "122",
  302. "menuname": "介质质量数据录入",
  303. "icon": "icon-save",
  304. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  305. },
  306. {
  307. "menuid": "145",
  308. "menuname": "充后数据补录",
  309. "icon": "icon-upload",
  310. "url": "jsp/rzx/dataMan/FillAfterDataCollect.jsp"
  311. }]
  312. },
  313. {
  314. "menuid": "56",
  315. "icon": "icon-large-chart",
  316. "menuname": "数据统计",
  317. "menus": [{
  318. "menuid": "145",
  319. "menuname": "充装数据统计",
  320. "icon": "icon-large-chart",
  321. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  322. },
  323. {
  324. "menuid": "155",
  325. "menuname": "考勤数据统计",
  326. "icon": "icon-large-shapes",
  327. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  328. }]
  329. },
  330. {
  331. "menuid": "56",
  332. "icon": "icon-more",
  333. "menuname": "系统管理",
  334. "menus": [{
  335. "menuid": "143",
  336. "menuname": "站点信息查看",
  337. "icon": "icon-more",
  338. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  339. },
  340. {
  341. "menuid": "153",
  342. "menuname": "充装设备信息",
  343. "icon": "icon-tip",
  344. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  345. },
  346. {
  347. "menuid": "153",
  348. "menuname": "工作人员信息",
  349. "icon": "icon-tip",
  350. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  351. },
  352. {
  353. "menuid": "153",
  354. "menuname": "手持时间同步码",
  355. "icon": "icon-tip",
  356. "url": "jsp/rzx/systemMan/timeSync.jsp"
  357. }
  358. ]
  359. }]
  360. };
  361. }
  362. }else{
  363. if(fillAuth=="0"){
  364. _menus = {
  365. "menus": [{
  366. "menuid": "55",
  367. "icon": "icon-more",
  368. "menuname": "信息管理",
  369. "menus": [{
  370. "menuid": "31",
  371. "menuname": "公告信息查看",
  372. "icon": "icon-search",
  373. "url": "jsp/rzx/infoMan/CheckAnnouncementInfofilling.jsp"
  374. }]
  375. },
  376. {
  377. "menuid": "56",
  378. "icon": "icon-large-smartart",
  379. "menuname": "充装情况",
  380. "menus": [{
  381. "menuid": "144",
  382. "menuname": "动态视图",
  383. "icon": "icon-large-chart",
  384. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  385. }]
  386. },
  387. {
  388. "menuid": "56",
  389. "icon": "icon-search",
  390. "menuname": "数据查询",
  391. "menus": [{
  392. "menuid": "145",
  393. "menuname": "充装数据查询",
  394. "icon": "icon-search",
  395. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  396. },
  397. <% if(MyFilter.chgStart){ %>
  398. {
  399. "menuid": "145",
  400. "menuname": "氢气充装查询",
  401. "icon": "icon-search",
  402. "url": "jsp/rzx/dataQuery/HcngFillingdataQuery.jsp"
  403. },
  404. <% } %>
  405. {
  406. "menuid": "155",
  407. "menuname": "考勤数据查询",
  408. "icon": "icon-search",
  409. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  410. },
  411. {
  412. "menuid": "165",
  413. "menuname": "外地车标签查询",
  414. "icon": "icon-search",
  415. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  416. },
  417. {
  418. "menuid": "155",
  419. "menuname": "介质质量查询",
  420. "icon": "icon-search",
  421. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  422. },
  423. {
  424. "menuid": "215",
  425. "menuname": "特种设备数据查询",
  426. "icon": "icon-search",
  427. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  428. }]
  429. },{
  430. "menuid": "1",
  431. "icon": "icon-tip",
  432. "menuname": "数据管理",
  433. "menus": [{
  434. "menuid": "121",
  435. "menuname": "特种设备数据录入",
  436. "icon": "icon-filter",
  437. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  438. },{
  439. "menuid": "122",
  440. "menuname": "介质质量数据录入",
  441. "icon": "icon-save",
  442. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  443. }]
  444. },
  445. {
  446. "menuid": "56",
  447. "icon": "icon-large-chart",
  448. "menuname": "数据统计",
  449. "menus": [{
  450. "menuid": "145",
  451. "menuname": "充装数据统计",
  452. "icon": "icon-large-chart",
  453. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  454. },
  455. {
  456. "menuid": "155",
  457. "menuname": "考勤数据统计",
  458. "icon": "icon-large-shapes",
  459. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  460. }]
  461. },
  462. {
  463. "menuid": "56",
  464. "icon": "icon-more",
  465. "menuname": "系统管理",
  466. "menus": [{
  467. "menuid": "143",
  468. "menuname": "站点信息查看",
  469. "icon": "icon-more",
  470. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  471. },
  472. {
  473. "menuid": "153",
  474. "menuname": "充装设备信息",
  475. "icon": "icon-tip",
  476. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  477. },
  478. {
  479. "menuid": "153",
  480. "menuname": "工作人员信息",
  481. "icon": "icon-tip",
  482. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  483. },
  484. {
  485. "menuid": "153",
  486. "menuname": "手持时间同步码",
  487. "icon": "icon-tip",
  488. "url": "jsp/rzx/systemMan/timeSync.jsp"
  489. }
  490. ]
  491. }]
  492. };
  493. }else{
  494. _menus = {
  495. "menus": [{
  496. "menuid": "55",
  497. "icon": "icon-more",
  498. "menuname": "信息管理",
  499. "menus": [{
  500. "menuid": "31",
  501. "menuname": "公告信息查看",
  502. "icon": "icon-search",
  503. "url": "jsp/rzx/infoMan/CheckAnnouncementInfofilling.jsp"
  504. }]
  505. },
  506. {
  507. "menuid": "56",
  508. "icon": "icon-large-smartart",
  509. "menuname": "充装情况",
  510. "menus": [{
  511. "menuid": "144",
  512. "menuname": "动态视图",
  513. "icon": "icon-large-chart",
  514. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  515. }]
  516. },
  517. {
  518. "menuid": "56",
  519. "icon": "icon-search",
  520. "menuname": "数据查询",
  521. "menus": [
  522. {
  523. "menuid": "145",
  524. "menuname": "充装数据查询",
  525. "icon": "icon-search",
  526. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  527. },
  528. {
  529. "menuid": "155",
  530. "menuname": "考勤数据查询",
  531. "icon": "icon-search",
  532. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  533. },
  534. {
  535. "menuid": "165",
  536. "menuname": "外地车标签查询",
  537. "icon": "icon-search",
  538. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  539. },
  540. {
  541. "menuid": "155",
  542. "menuname": "介质质量查询",
  543. "icon": "icon-search",
  544. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  545. },
  546. {
  547. "menuid": "215",
  548. "menuname": "特种设备数据查询",
  549. "icon": "icon-search",
  550. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  551. }]
  552. },{
  553. "menuid": "1",
  554. "icon": "icon-tip",
  555. "menuname": "数据管理",
  556. "menus": [{
  557. "menuid": "121",
  558. "menuname": "特种设备数据录入",
  559. "icon": "icon-filter",
  560. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  561. },{
  562. "menuid": "122",
  563. "menuname": "介质质量数据录入",
  564. "icon": "icon-save",
  565. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  566. },
  567. {
  568. "menuid": "145",
  569. "menuname": "充后数据补录",
  570. "icon": "icon-upload",
  571. "url": "jsp/rzx/dataMan/FillAfterDataCollect.jsp"
  572. }]
  573. },
  574. {
  575. "menuid": "56",
  576. "icon": "icon-large-chart",
  577. "menuname": "数据统计",
  578. "menus": [{
  579. "menuid": "145",
  580. "menuname": "充装数据统计",
  581. "icon": "icon-large-chart",
  582. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  583. },
  584. {
  585. "menuid": "155",
  586. "menuname": "考勤数据统计",
  587. "icon": "icon-large-shapes",
  588. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  589. }]
  590. },
  591. {
  592. "menuid": "56",
  593. "icon": "icon-more",
  594. "menuname": "系统管理",
  595. "menus": [{
  596. "menuid": "143",
  597. "menuname": "站点信息查看",
  598. "icon": "icon-more",
  599. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  600. },
  601. {
  602. "menuid": "153",
  603. "menuname": "充装设备信息",
  604. "icon": "icon-tip",
  605. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  606. },
  607. {
  608. "menuid": "153",
  609. "menuname": "工作人员信息",
  610. "icon": "icon-tip",
  611. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  612. },
  613. {
  614. "menuid": "153",
  615. "menuname": "手持时间同步码",
  616. "icon": "icon-tip",
  617. "url": "jsp/rzx/systemMan/timeSync.jsp"
  618. }
  619. ]
  620. }]
  621. };
  622. }
  623. }
  624. //设置登录窗口
  625. function openlogin() {
  626. $('#l').window({
  627. title: '登陆',
  628. width: 300,
  629. modal: true,
  630. shadow: true,
  631. closed: true,
  632. height: 160,
  633. resizable:false
  634. });
  635. }
  636. function openPwd() {
  637. $('#w').window({
  638. title: '修改密码',
  639. width: 300,
  640. modal: true,
  641. shadow: true,
  642. closed: true,
  643. height: 'auto',
  644. resizable:false
  645. });
  646. }
  647. //关闭修改密码窗口
  648. function closePwd() {
  649. $('#w').window('close');
  650. }
  651. //关闭登录窗口
  652. function closelogin() {
  653. $('#l').window('close');
  654. }
  655. //登陆
  656. function serverLogin() {
  657. var $name = $('#txtName');
  658. var $pass = $('#txtPass');
  659. if ($name.val() == '') {
  660. msgShow('系统提示', '请输入用户名!', 'warning');
  661. return false;
  662. }
  663. if ($pass.val() == '') {
  664. msgShow('系统提示', '请输入密码!', 'warning');
  665. return false;
  666. }
  667. $.post('ajax/ajax_login?name=' + $name.val()+'&pass='+$pass.val(), function(msg) {
  668. msgShow('系统提示', '恭喜,登陆成功!<br>欢迎您:' + msg, 'info');
  669. $name.val('');
  670. $pass.val('');
  671. $('#l').window('close');
  672. })
  673. }
  674. function checkPwd(pwd)
  675. {
  676. var regNumber = /\d+/; //验证0-9的任意数字最少出现1次。
  677. var regString = /[a-zA-Z]+/; //验证大小写26个字母任意字母最少出现1次。
  678. if (regNumber.test(pwd) && regString.test(pwd)) {
  679.     return true;
  680. }else{
  681.     return false;
  682. }
  683. }
  684. //修改密码
  685. function serverAlterpass() {
  686. var $oldpass = $('#txtOldPass').val().replace(/\s+/g,"");;
  687. var $newpass = $('#txtNewPass').val().replace(/\s+/g,"");;
  688. var $rePass = $('#txtRePass').val().replace(/\s+/g,"");;
  689. if ($oldpass == '') {
  690. msgShow('系统提示', '请输入旧密码!', 'warning');
  691. return false;
  692. }
  693. if ($newpass == '') {
  694. msgShow('系统提示', '请输入新密码!', 'warning');
  695. return false;
  696. }else if($newpass.length<8){
  697. msgShow('系统提示', '密码长度不能低于8位!且须包含数字和字母!!!', 'warning');
  698. return false;
  699. }
  700. if($newpass.match(/^.*[A-Z]+.*$/)==null){
  701. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  702. return false;
  703. }
  704. if($newpass.match(/^.*[a-z]+.*$/)==null){
  705. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  706. return false;
  707. }
  708. if($newpass.match(/^.*[0-9]+.*$/)==null){
  709. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  710. return false;
  711. }
  712. if ($rePass == '') {
  713. msgShow('系统提示', '请再一次输入新密码!', 'warning');
  714. return false;
  715. }
  716. if ($newpass != $rePass) {
  717. msgShow('系统提示', '两次密码不一至!请重新输入', 'warning');
  718. return false;
  719. }
  720. $.ajax({
  721. type:"POST",
  722. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  723. data:$('#alterpasswordform').serialize(),
  724. url:"ajax/alterpassword",
  725. success:function (data){
  726. var obj=eval("(" + data + ")");
  727. $.each(obj.rows, function(i,item){
  728. if(item.sresult=="0"){
  729. $('#txtOldPass').val('');
  730. $('#txtNewPass').val('');
  731. $('#txtRePass').val('');
  732. $('#w').window('close');
  733. // msgShow('系统提示', '恭喜,密码修改成功!<br>您的新密码为:' + item.pass, 'info');
  734. show("修改成功您的新密码为:"+item.pass.substring(0,1)+"********");
  735. }else if(item.sresult=="2"){
  736. show("修改错误");
  737. }else if(item.sresult=="3"){
  738. show("用户不存在");
  739. }else if(item.sresult=="4"){
  740. show("旧密码错误");
  741. }
  742. });
  743. }
  744. });
  745. }
  746. function show(message) {
  747. $.messager.show({
  748. title: '提示信息',
  749. msg: message,
  750. timeout: 2000,
  751. showType: 'slide'
  752. });
  753. }
  754. function show1(message) {
  755. $.messager.show({
  756. title: '提示信息',
  757. msg: message,
  758. timeout: 15000,
  759. showType: 'slide'
  760. });
  761. }
  762. $(function() {
  763. openlogin();
  764. openPwd();
  765. $('#login').click(function() {
  766. $('#l').window('open');
  767. });
  768. $('#btnlogin').click(function() {
  769. serverLogin();
  770. })
  771. $('#btnloginCancel').click(function(){closelogin();})
  772. $('#editpass').click(function() {
  773. $('#w').window('open');
  774. });
  775. $('#btnEp').click(function() {
  776. serverAlterpass();
  777. })
  778. $('#btnCancel').click(function(){closePwd();})
  779. $('#loginOut').click(function() {
  780. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  781. if (r) {
  782. location.href = 'jsp/login/loginre.jsp';
  783. }
  784. });
  785. })
  786. });
  787. function sExit(){
  788. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  789. if (r) {
  790. $.ajax({
  791. type:"POST",
  792. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  793. url:"safeExit",
  794. success:function (data){
  795. window.location.href = 'jsp/login/loginre.jsp';
  796. //IE6
  797. window.event.returnValue = false;
  798. }
  799. });
  800. }
  801. });
  802. }
  803. </script>
  804. </head>
  805. <body class="easyui-layout" style="overflow-y: hidden" fit="true" scroll="no">
  806. <noscript>
  807. <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
  808. <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
  809. </div></noscript>
  810. <div id="loading-mask" style="position:absolute;top:0px; left:0px; width:100%; height:100%; background:#D2E0F2; z-index:20000">
  811. <div id="pageloading" style="position:absolute; top:50%; left:50%; margin:-120px 0px 0px -120px; text-align:center; border:2px solid #8DB2E3; width:200px; height:40px; font-size:14px;padding:10px; font-weight:bold; background:#fff; color:#15428B;">
  812. <img src="images/loading.gif" align="absmiddle" /> 正在加载中,请稍候...</div>
  813. </div>
  814. <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
  815. background: url(images/rzx/layout-browser-hd-bg12.gif) #817865 repeat-x center 50%;
  816. line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
  817. <span style="float:right; padding-right:20px;" class="head">欢迎您 <%=username %> <a href="#" id="editpass">修改密码</a> <a href="javaScript:void(0);" onclick="sExit();return false;">安全退出</a></span>
  818. <% if(MyFilter.placeStart){ %>
  819. <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %>-<%=place %> 充装站管理</span>
  820. <% }else { %>
  821. <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" /><%=MyFilter.man_prefix %>-充装站管理</span>
  822. <% }%>
  823. <span style="padding-left:100px; font-size: 12px; ">
  824. <marquee scrollAmount=2 width="780px">
  825. <span style="font-size: 12px;">
  826. 为了确保系统安全,请使用包含数字、字母、大写字符等内容的密码,遇到系统不能正常登录,数据异常等情况,及时与客服联系!
  827. </span>
  828. </marquee>
  829. </span>
  830. </div>
  831. <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
  832. <div class="footer"> </div>
  833. </div>
  834. <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
  835. <div id="nav">
  836. <!-- 导航内容 -->
  837. </div>
  838. </div>
  839. <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
  840. <div id="tabs" class="easyui-tabs" fit="true" border="false" >
  841. <div title="欢迎使用" style="padding:20px;overflow:hidden; color:#f08300; " >
  842. <center>
  843. <% if(MyFilter.placeStart){ %>
  844. <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-<%=place %> 充装站管理</h1>
  845. <% }else { %>
  846. <h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-充装站管理</h1>
  847. <% }%>
  848. </center>
  849. </div>
  850. </div>
  851. </div>
  852. <!--修改密码窗口-->
  853. <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
  854. maximizable="false" icon="icon-save" style="width: 300px; height: auto; padding: 5px;
  855. background: #fafafa;">
  856. <form id="alterpasswordform">
  857. <div fit="true" >
  858. <div region="center" border="false" style="padding: 0px; background: #fff; border: 1px solid #ccc;height: auto;">
  859. <table cellpadding=3>
  860. <tr>
  861. <td>旧密码:</td>
  862. <td><input id="txtOldPass" name="txtOldPass" type="Password" class="txt01" /></td>
  863. </tr>
  864. <tr>
  865. <td>新密码:</td>
  866. <td><input id="txtNewPass" name="txtNewPass" type="Password" class="txt01" /></td>
  867. </tr>
  868. <tr>
  869. <td>确认密码:</td>
  870. <td><input id="txtRePass" type="Password" name="txtRePass" class="txt01" /></td>
  871. </tr>
  872. </table>
  873. </div>
  874. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  875. <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  876. 确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  877. </div>
  878. </div>
  879. </form>
  880. </div>
  881. <!--登陆窗口-->
  882. <div id="l" class="easyui-window" title="登陆窗口" collapsible="false" minimizable="false"
  883. maximizable="false" icon="icon-save" style="width: 300px; height: 150px; padding: 15px;
  884. background: #fafafa;">
  885. <div class="easyui-layout" fit="true">
  886. <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  887. <table cellpadding=3>
  888. <tr>
  889. <td>用户名:</td>
  890. <td><input id="txtName" type="text" class="txt01" /></td>
  891. </tr>
  892. <tr>
  893. <td>密码:</td>
  894. <td><input id="txtPass" type="Password" class="txt01" /></td>
  895. </tr>
  896. </table>
  897. </div>
  898. <div region="south" border="false" style="text-align: right; ">
  899. <a id="btnlogin" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  900. 确定</a> <a id="btnloginCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  901. </div>
  902. </div>
  903. </div>
  904. <div id="mm" class="easyui-menu" style="width:150px;">
  905. <div id="tabupdate">刷新</div>
  906. <div class="menu-sep"></div>
  907. <div id="close">关闭</div>
  908. <div id="closeall">全部关闭</div>
  909. <div id="closeother">除此之外全部关闭</div>
  910. <div class="menu-sep"></div>
  911. <div id="closeright">当前页右侧全部关闭</div>
  912. <div id="closeleft">当前页左侧全部关闭</div>
  913. <div class="menu-sep"></div>
  914. <div id="exit">退出</div>
  915. </div>
  916. <input type="hidden" value="<%=title %>" name="newAnnTitle" id="newAnnTitle"/>
  917. <input type="hidden" value="<%=id %>" name="newAnnID" id="newAnnID"/>
  918. <input type="hidden" value="<%=anTime %>" name="newAnnTIME" id="newAnnTIME"/>
  919. <input type="hidden" value="<%=validity%>" name="validity" id="validity"/>
  920. </body>
  921. </html>