fillingbgman.jsp 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  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. {
  147. "menuid": "155",
  148. "menuname": "考勤数据查询",
  149. "icon": "icon-search",
  150. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  151. },
  152. {
  153. "menuid": "165",
  154. "menuname": "外地车标签查询",
  155. "icon": "icon-search",
  156. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  157. },
  158. {
  159. "menuid": "155",
  160. "menuname": "介质质量查询",
  161. "icon": "icon-search",
  162. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  163. },
  164. {
  165. "menuid": "215",
  166. "menuname": "特种设备数据查询",
  167. "icon": "icon-search",
  168. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  169. }]
  170. },{
  171. "menuid": "1",
  172. "icon": "icon-tip",
  173. "menuname": "数据管理",
  174. "menus": [{
  175. "menuid": "121",
  176. "menuname": "特种设备数据录入",
  177. "icon": "icon-filter",
  178. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  179. },{
  180. "menuid": "122",
  181. "menuname": "介质质量数据录入",
  182. "icon": "icon-save",
  183. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  184. }]
  185. },
  186. {
  187. "menuid": "56",
  188. "icon": "icon-large-chart",
  189. "menuname": "数据统计",
  190. "menus": [{
  191. "menuid": "145",
  192. "menuname": "充装数据统计",
  193. "icon": "icon-large-chart",
  194. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  195. },
  196. {
  197. "menuid": "155",
  198. "menuname": "考勤数据统计",
  199. "icon": "icon-large-shapes",
  200. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  201. }]
  202. },
  203. {
  204. "menuid": "56",
  205. "icon": "icon-more",
  206. "menuname": "系统管理",
  207. "menus": [{
  208. "menuid": "143",
  209. "menuname": "站点信息查看",
  210. "icon": "icon-more",
  211. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  212. },
  213. {
  214. "menuid": "153",
  215. "menuname": "充装设备信息",
  216. "icon": "icon-tip",
  217. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  218. },
  219. {
  220. "menuid": "153",
  221. "menuname": "工作人员信息",
  222. "icon": "icon-tip",
  223. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  224. },
  225. {
  226. "menuid": "153",
  227. "menuname": "手持时间同步码",
  228. "icon": "icon-tip",
  229. "url": "jsp/rzx/systemMan/timeSync.jsp"
  230. }
  231. ]
  232. }]
  233. };
  234. }else{
  235. _menus = {
  236. "menus": [
  237. {
  238. "menuid": "56",
  239. "icon": "icon-large-smartart",
  240. "menuname": "充装情况",
  241. "menus": [{
  242. "menuid": "144",
  243. "menuname": "动态视图",
  244. "icon": "icon-large-chart",
  245. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  246. }]
  247. },
  248. {
  249. "menuid": "56",
  250. "icon": "icon-search",
  251. "menuname": "数据查询",
  252. "menus": [
  253. {
  254. "menuid": "145",
  255. "menuname": "充装数据查询",
  256. "icon": "icon-search",
  257. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  258. },
  259. {
  260. "menuid": "155",
  261. "menuname": "考勤数据查询",
  262. "icon": "icon-search",
  263. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  264. },
  265. {
  266. "menuid": "165",
  267. "menuname": "外地车标签查询",
  268. "icon": "icon-search",
  269. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  270. },
  271. {
  272. "menuid": "155",
  273. "menuname": "介质质量查询",
  274. "icon": "icon-search",
  275. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  276. },
  277. {
  278. "menuid": "215",
  279. "menuname": "特种设备数据查询",
  280. "icon": "icon-search",
  281. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  282. }]
  283. },{
  284. "menuid": "1",
  285. "icon": "icon-tip",
  286. "menuname": "数据管理",
  287. "menus": [{
  288. "menuid": "121",
  289. "menuname": "特种设备数据录入",
  290. "icon": "icon-filter",
  291. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  292. },{
  293. "menuid": "122",
  294. "menuname": "介质质量数据录入",
  295. "icon": "icon-save",
  296. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  297. },
  298. {
  299. "menuid": "145",
  300. "menuname": "充后数据补录",
  301. "icon": "icon-upload",
  302. "url": "jsp/rzx/dataMan/FillAfterDataCollect.jsp"
  303. }]
  304. },
  305. {
  306. "menuid": "56",
  307. "icon": "icon-large-chart",
  308. "menuname": "数据统计",
  309. "menus": [{
  310. "menuid": "145",
  311. "menuname": "充装数据统计",
  312. "icon": "icon-large-chart",
  313. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  314. },
  315. {
  316. "menuid": "155",
  317. "menuname": "考勤数据统计",
  318. "icon": "icon-large-shapes",
  319. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  320. }]
  321. },
  322. {
  323. "menuid": "56",
  324. "icon": "icon-more",
  325. "menuname": "系统管理",
  326. "menus": [{
  327. "menuid": "143",
  328. "menuname": "站点信息查看",
  329. "icon": "icon-more",
  330. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  331. },
  332. {
  333. "menuid": "153",
  334. "menuname": "充装设备信息",
  335. "icon": "icon-tip",
  336. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  337. },
  338. {
  339. "menuid": "153",
  340. "menuname": "工作人员信息",
  341. "icon": "icon-tip",
  342. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  343. },
  344. {
  345. "menuid": "153",
  346. "menuname": "手持时间同步码",
  347. "icon": "icon-tip",
  348. "url": "jsp/rzx/systemMan/timeSync.jsp"
  349. }
  350. ]
  351. }]
  352. };
  353. }
  354. }else{
  355. if(fillAuth=="0"){
  356. _menus = {
  357. "menus": [{
  358. "menuid": "55",
  359. "icon": "icon-more",
  360. "menuname": "信息管理",
  361. "menus": [{
  362. "menuid": "31",
  363. "menuname": "公告信息查看",
  364. "icon": "icon-search",
  365. "url": "jsp/rzx/infoMan/CheckAnnouncementInfofilling.jsp"
  366. }]
  367. },
  368. {
  369. "menuid": "56",
  370. "icon": "icon-large-smartart",
  371. "menuname": "充装情况",
  372. "menus": [{
  373. "menuid": "144",
  374. "menuname": "动态视图",
  375. "icon": "icon-large-chart",
  376. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  377. }]
  378. },
  379. {
  380. "menuid": "56",
  381. "icon": "icon-search",
  382. "menuname": "数据查询",
  383. "menus": [{
  384. "menuid": "145",
  385. "menuname": "充装数据查询",
  386. "icon": "icon-search",
  387. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  388. },
  389. {
  390. "menuid": "155",
  391. "menuname": "考勤数据查询",
  392. "icon": "icon-search",
  393. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  394. },
  395. {
  396. "menuid": "165",
  397. "menuname": "外地车标签查询",
  398. "icon": "icon-search",
  399. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  400. },
  401. {
  402. "menuid": "155",
  403. "menuname": "介质质量查询",
  404. "icon": "icon-search",
  405. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  406. },
  407. {
  408. "menuid": "215",
  409. "menuname": "特种设备数据查询",
  410. "icon": "icon-search",
  411. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  412. }]
  413. },{
  414. "menuid": "1",
  415. "icon": "icon-tip",
  416. "menuname": "数据管理",
  417. "menus": [{
  418. "menuid": "121",
  419. "menuname": "特种设备数据录入",
  420. "icon": "icon-filter",
  421. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  422. },{
  423. "menuid": "122",
  424. "menuname": "介质质量数据录入",
  425. "icon": "icon-save",
  426. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  427. }]
  428. },
  429. {
  430. "menuid": "56",
  431. "icon": "icon-large-chart",
  432. "menuname": "数据统计",
  433. "menus": [{
  434. "menuid": "145",
  435. "menuname": "充装数据统计",
  436. "icon": "icon-large-chart",
  437. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  438. },
  439. {
  440. "menuid": "155",
  441. "menuname": "考勤数据统计",
  442. "icon": "icon-large-shapes",
  443. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  444. }]
  445. },
  446. {
  447. "menuid": "56",
  448. "icon": "icon-more",
  449. "menuname": "系统管理",
  450. "menus": [{
  451. "menuid": "143",
  452. "menuname": "站点信息查看",
  453. "icon": "icon-more",
  454. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  455. },
  456. {
  457. "menuid": "153",
  458. "menuname": "充装设备信息",
  459. "icon": "icon-tip",
  460. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  461. },
  462. {
  463. "menuid": "153",
  464. "menuname": "工作人员信息",
  465. "icon": "icon-tip",
  466. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  467. },
  468. {
  469. "menuid": "153",
  470. "menuname": "手持时间同步码",
  471. "icon": "icon-tip",
  472. "url": "jsp/rzx/systemMan/timeSync.jsp"
  473. }
  474. ]
  475. }]
  476. };
  477. }else{
  478. _menus = {
  479. "menus": [{
  480. "menuid": "55",
  481. "icon": "icon-more",
  482. "menuname": "信息管理",
  483. "menus": [{
  484. "menuid": "31",
  485. "menuname": "公告信息查看",
  486. "icon": "icon-search",
  487. "url": "jsp/rzx/infoMan/CheckAnnouncementInfofilling.jsp"
  488. }]
  489. },
  490. {
  491. "menuid": "56",
  492. "icon": "icon-large-smartart",
  493. "menuname": "充装情况",
  494. "menus": [{
  495. "menuid": "144",
  496. "menuname": "动态视图",
  497. "icon": "icon-large-chart",
  498. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  499. }]
  500. },
  501. {
  502. "menuid": "56",
  503. "icon": "icon-search",
  504. "menuname": "数据查询",
  505. "menus": [
  506. {
  507. "menuid": "145",
  508. "menuname": "充装数据查询",
  509. "icon": "icon-search",
  510. "url": "jsp/rzx/dataQuery/FillingdataQueryfilling.jsp"
  511. },
  512. {
  513. "menuid": "155",
  514. "menuname": "考勤数据查询",
  515. "icon": "icon-search",
  516. "url": "jsp/rzx/dataQuery/workattendanceQuery.jsp"
  517. },
  518. {
  519. "menuid": "165",
  520. "menuname": "外地车标签查询",
  521. "icon": "icon-search",
  522. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQueryfilling.jsp"
  523. },
  524. {
  525. "menuid": "155",
  526. "menuname": "介质质量查询",
  527. "icon": "icon-search",
  528. "url": "jsp/rzx/dataQuery/CNGQualityQueryfilling.jsp"
  529. },
  530. {
  531. "menuid": "215",
  532. "menuname": "特种设备数据查询",
  533. "icon": "icon-search",
  534. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQueryfilling.jsp"
  535. }]
  536. },{
  537. "menuid": "1",
  538. "icon": "icon-tip",
  539. "menuname": "数据管理",
  540. "menus": [{
  541. "menuid": "121",
  542. "menuname": "特种设备数据录入",
  543. "icon": "icon-filter",
  544. "url": "jsp/rzx/dataMan/Specialequipmentdataintofilling.jsp"
  545. },{
  546. "menuid": "122",
  547. "menuname": "介质质量数据录入",
  548. "icon": "icon-save",
  549. "url": "jsp/rzx/dataMan/CNGQualityIntofilling.jsp"
  550. },
  551. {
  552. "menuid": "145",
  553. "menuname": "充后数据补录",
  554. "icon": "icon-upload",
  555. "url": "jsp/rzx/dataMan/FillAfterDataCollect.jsp"
  556. }]
  557. },
  558. {
  559. "menuid": "56",
  560. "icon": "icon-large-chart",
  561. "menuname": "数据统计",
  562. "menus": [{
  563. "menuid": "145",
  564. "menuname": "充装数据统计",
  565. "icon": "icon-large-chart",
  566. "url": "jsp/rzx/dataStatistics1/FillingdataStatistics.jsp"
  567. },
  568. {
  569. "menuid": "155",
  570. "menuname": "考勤数据统计",
  571. "icon": "icon-large-shapes",
  572. "url": "jsp/rzx/dataStatistics1/kaoqindataStatistics.jsp"
  573. }]
  574. },
  575. {
  576. "menuid": "56",
  577. "icon": "icon-more",
  578. "menuname": "系统管理",
  579. "menus": [{
  580. "menuid": "143",
  581. "menuname": "站点信息查看",
  582. "icon": "icon-more",
  583. "url": "jsp/rzx/systemMan/checkStationInfofilling.jsp"
  584. },
  585. {
  586. "menuid": "153",
  587. "menuname": "充装设备信息",
  588. "icon": "icon-tip",
  589. "url": "jsp/rzx/systemMan/fillingMachineInfo.jsp"
  590. },
  591. {
  592. "menuid": "153",
  593. "menuname": "工作人员信息",
  594. "icon": "icon-tip",
  595. "url": "jsp/rzx/systemMan/workPersonInfofilling.jsp"
  596. },
  597. {
  598. "menuid": "153",
  599. "menuname": "手持时间同步码",
  600. "icon": "icon-tip",
  601. "url": "jsp/rzx/systemMan/timeSync.jsp"
  602. }
  603. ]
  604. }]
  605. };
  606. }
  607. }
  608. //设置登录窗口
  609. function openlogin() {
  610. $('#l').window({
  611. title: '登陆',
  612. width: 300,
  613. modal: true,
  614. shadow: true,
  615. closed: true,
  616. height: 160,
  617. resizable:false
  618. });
  619. }
  620. function openPwd() {
  621. $('#w').window({
  622. title: '修改密码',
  623. width: 300,
  624. modal: true,
  625. shadow: true,
  626. closed: true,
  627. height: 'auto',
  628. resizable:false
  629. });
  630. }
  631. //关闭修改密码窗口
  632. function closePwd() {
  633. $('#w').window('close');
  634. }
  635. //关闭登录窗口
  636. function closelogin() {
  637. $('#l').window('close');
  638. }
  639. //登陆
  640. function serverLogin() {
  641. var $name = $('#txtName');
  642. var $pass = $('#txtPass');
  643. if ($name.val() == '') {
  644. msgShow('系统提示', '请输入用户名!', 'warning');
  645. return false;
  646. }
  647. if ($pass.val() == '') {
  648. msgShow('系统提示', '请输入密码!', 'warning');
  649. return false;
  650. }
  651. $.post('ajax/ajax_login?name=' + $name.val()+'&pass='+$pass.val(), function(msg) {
  652. msgShow('系统提示', '恭喜,登陆成功!<br>欢迎您:' + msg, 'info');
  653. $name.val('');
  654. $pass.val('');
  655. $('#l').window('close');
  656. })
  657. }
  658. function checkPwd(pwd)
  659. {
  660. var regNumber = /\d+/; //验证0-9的任意数字最少出现1次。
  661. var regString = /[a-zA-Z]+/; //验证大小写26个字母任意字母最少出现1次。
  662. if (regNumber.test(pwd) && regString.test(pwd)) {
  663.     return true;
  664. }else{
  665.     return false;
  666. }
  667. }
  668. //修改密码
  669. function serverAlterpass() {
  670. var $oldpass = $('#txtOldPass').val().replace(/\s+/g,"");;
  671. var $newpass = $('#txtNewPass').val().replace(/\s+/g,"");;
  672. var $rePass = $('#txtRePass').val().replace(/\s+/g,"");;
  673. if ($oldpass == '') {
  674. msgShow('系统提示', '请输入旧密码!', 'warning');
  675. return false;
  676. }
  677. if ($newpass == '') {
  678. msgShow('系统提示', '请输入新密码!', 'warning');
  679. return false;
  680. }else if($newpass.length<8){
  681. msgShow('系统提示', '密码长度不能低于8位!且须包含数字和字母!!!', 'warning');
  682. return false;
  683. }
  684. if($newpass.match(/^.*[A-Z]+.*$/)==null){
  685. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  686. return false;
  687. }
  688. if($newpass.match(/^.*[a-z]+.*$/)==null){
  689. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  690. return false;
  691. }
  692. if($newpass.match(/^.*[0-9]+.*$/)==null){
  693. alert("密码必须包含数字和大小写字母!!!且长度不能低于8位");
  694. return false;
  695. }
  696. if ($rePass == '') {
  697. msgShow('系统提示', '请再一次输入新密码!', 'warning');
  698. return false;
  699. }
  700. if ($newpass != $rePass) {
  701. msgShow('系统提示', '两次密码不一至!请重新输入', 'warning');
  702. return false;
  703. }
  704. $.ajax({
  705. type:"POST",
  706. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  707. data:$('#alterpasswordform').serialize(),
  708. url:"ajax/alterpassword",
  709. success:function (data){
  710. var obj=eval("(" + data + ")");
  711. $.each(obj.rows, function(i,item){
  712. if(item.sresult=="0"){
  713. $('#txtOldPass').val('');
  714. $('#txtNewPass').val('');
  715. $('#txtRePass').val('');
  716. $('#w').window('close');
  717. // msgShow('系统提示', '恭喜,密码修改成功!<br>您的新密码为:' + item.pass, 'info');
  718. show("修改成功您的新密码为:"+item.pass.substring(0,1)+"********");
  719. }else if(item.sresult=="2"){
  720. show("修改错误");
  721. }else if(item.sresult=="3"){
  722. show("用户不存在");
  723. }else if(item.sresult=="4"){
  724. show("旧密码错误");
  725. }
  726. });
  727. }
  728. });
  729. }
  730. function show(message) {
  731. $.messager.show({
  732. title: '提示信息',
  733. msg: message,
  734. timeout: 2000,
  735. showType: 'slide'
  736. });
  737. }
  738. function show1(message) {
  739. $.messager.show({
  740. title: '提示信息',
  741. msg: message,
  742. timeout: 15000,
  743. showType: 'slide'
  744. });
  745. }
  746. $(function() {
  747. openlogin();
  748. openPwd();
  749. $('#login').click(function() {
  750. $('#l').window('open');
  751. });
  752. $('#btnlogin').click(function() {
  753. serverLogin();
  754. })
  755. $('#btnloginCancel').click(function(){closelogin();})
  756. $('#editpass').click(function() {
  757. $('#w').window('open');
  758. });
  759. $('#btnEp').click(function() {
  760. serverAlterpass();
  761. })
  762. $('#btnCancel').click(function(){closePwd();})
  763. $('#loginOut').click(function() {
  764. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  765. if (r) {
  766. location.href = 'jsp/login/loginre.jsp';
  767. }
  768. });
  769. })
  770. });
  771. function sExit(){
  772. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  773. if (r) {
  774. $.ajax({
  775. type:"POST",
  776. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  777. url:"safeExit",
  778. success:function (data){
  779. window.location.href = 'jsp/login/loginre.jsp';
  780. //IE6
  781. window.event.returnValue = false;
  782. }
  783. });
  784. }
  785. });
  786. }
  787. </script>
  788. </head>
  789. <body class="easyui-layout" style="overflow-y: hidden" fit="true" scroll="no">
  790. <noscript>
  791. <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
  792. <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
  793. </div></noscript>
  794. <div id="loading-mask" style="position:absolute;top:0px; left:0px; width:100%; height:100%; background:#D2E0F2; z-index:20000">
  795. <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;">
  796. <img src="images/loading.gif" align="absmiddle" /> 正在加载中,请稍候...</div>
  797. </div>
  798. <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
  799. background: url(images/rzx/layout-browser-hd-bg12.gif) #817865 repeat-x center 50%;
  800. line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
  801. <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>
  802. <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>
  803. <span style="padding-left:100px; font-size: 12px; ">
  804. <marquee scrollAmount=2 width="780px">
  805. <span style="font-size: 12px;">
  806. 为了确保系统安全,请使用包含数字、字母、大写字符等内容的密码,遇到系统不能正常登录,数据异常等情况,及时与客服联系!
  807. </span>
  808. </marquee>
  809. </span>
  810. </div>
  811. <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
  812. <div class="footer"> </div>
  813. </div>
  814. <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
  815. <div id="nav">
  816. <!-- 导航内容 -->
  817. </div>
  818. </div>
  819. <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
  820. <div id="tabs" class="easyui-tabs" fit="true" border="false" >
  821. <div title="欢迎使用" style="padding:20px;overflow:hidden; color:#f08300; " >
  822. <center><h1 style="font-size:24px;">* <%=MyFilter.man_prefix %>-<%=place %> 充装站管理</h1></center>
  823. </div>
  824. </div>
  825. </div>
  826. <!--修改密码窗口-->
  827. <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
  828. maximizable="false" icon="icon-save" style="width: 300px; height: auto; padding: 5px;
  829. background: #fafafa;">
  830. <form id="alterpasswordform">
  831. <div fit="true" >
  832. <div region="center" border="false" style="padding: 0px; background: #fff; border: 1px solid #ccc;height: auto;">
  833. <table cellpadding=3>
  834. <tr>
  835. <td>旧密码:</td>
  836. <td><input id="txtOldPass" name="txtOldPass" type="Password" class="txt01" /></td>
  837. </tr>
  838. <tr>
  839. <td>新密码:</td>
  840. <td><input id="txtNewPass" name="txtNewPass" type="Password" class="txt01" /></td>
  841. </tr>
  842. <tr>
  843. <td>确认密码:</td>
  844. <td><input id="txtRePass" type="Password" name="txtRePass" class="txt01" /></td>
  845. </tr>
  846. </table>
  847. </div>
  848. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  849. <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  850. 确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  851. </div>
  852. </div>
  853. </form>
  854. </div>
  855. <!--登陆窗口-->
  856. <div id="l" class="easyui-window" title="登陆窗口" collapsible="false" minimizable="false"
  857. maximizable="false" icon="icon-save" style="width: 300px; height: 150px; padding: 15px;
  858. background: #fafafa;">
  859. <div class="easyui-layout" fit="true">
  860. <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  861. <table cellpadding=3>
  862. <tr>
  863. <td>用户名:</td>
  864. <td><input id="txtName" type="text" class="txt01" /></td>
  865. </tr>
  866. <tr>
  867. <td>密码:</td>
  868. <td><input id="txtPass" type="Password" class="txt01" /></td>
  869. </tr>
  870. </table>
  871. </div>
  872. <div region="south" border="false" style="text-align: right; ">
  873. <a id="btnlogin" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  874. 确定</a> <a id="btnloginCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  875. </div>
  876. </div>
  877. </div>
  878. <div id="mm" class="easyui-menu" style="width:150px;">
  879. <div id="tabupdate">刷新</div>
  880. <div class="menu-sep"></div>
  881. <div id="close">关闭</div>
  882. <div id="closeall">全部关闭</div>
  883. <div id="closeother">除此之外全部关闭</div>
  884. <div class="menu-sep"></div>
  885. <div id="closeright">当前页右侧全部关闭</div>
  886. <div id="closeleft">当前页左侧全部关闭</div>
  887. <div class="menu-sep"></div>
  888. <div id="exit">退出</div>
  889. </div>
  890. <input type="hidden" value="<%=title %>" name="newAnnTitle" id="newAnnTitle"/>
  891. <input type="hidden" value="<%=id %>" name="newAnnID" id="newAnnID"/>
  892. <input type="hidden" value="<%=anTime %>" name="newAnnTIME" id="newAnnTIME"/>
  893. <input type="hidden" value="<%=validity%>" name="validity" id="validity"/>
  894. </body>
  895. </html>