bgman.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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. <%
  8. String path = request.getContextPath();
  9. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  10. String username = (String)session.getAttribute("username");
  11. String place = (String)session.getAttribute("place");
  12. String place1=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. if(place.equals("四川省")){
  17. place1+="市场监督管理局";
  18. }else{
  19. place1+="质量技术监督局";
  20. }
  21. }
  22. User uu = (User)session.getAttribute(Constant.userMark);
  23. String s = uu.getPrivilegeCode();
  24. if(s.length()>6) {
  25. s = s.substring(0, 6);
  26. }
  27. s = s.replaceAll("(00)*$", "");//// 一直过滤到最高行政地域(删去尾部的 00 )
  28. List<Announcement> list = new InformationAnnouncementProcedure().areatedmachinerunningstate1(5000, 1, -1, s, s, null, null, null, 0);
  29. int id=-1;
  30. String title="";
  31. String anTime="";
  32. if(list.size()>0){
  33. for(Announcement an:list){
  34. if(an.getId()>id){
  35. id=an.getId();
  36. title = an.getTitle();
  37. anTime = an.getPublishTime1();
  38. }
  39. }
  40. }
  41. %>
  42. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  43. <html xmlns="http://www.w3.org/1999/xhtml">
  44. <head id="Head1">
  45. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  46. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  47. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  48. <title>CNG气瓶实时动态监管集成系统</title>
  49. <link href="css/default.css" rel="stylesheet" type="text/css" />
  50. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  51. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  52. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  53. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  54. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js"></script>
  55. <script type="text/javascript" src="js/easyui/XiuCai.index.js"> </script>
  56. <style type="text/css">
  57. .hzb a:HOVER{
  58. color: red;
  59. text-decoration: underline;
  60. }
  61. .hzb a{
  62. color: #f08300;
  63. text-decoration: underline;
  64. }
  65. </style>
  66. <script type="text/javascript">
  67. $(document).ready(function(){
  68. var newAnnTitle = document.getElementById("newAnnTitle").value;
  69. var newAnnID = document.getElementById("newAnnID").value;
  70. var newAnnTIME = document.getElementById("newAnnTIME").value;
  71. if(!newAnnID){
  72. show1("暂时没有公告!");
  73. }else{
  74. if(newAnnID=="-1"){
  75. show1("暂时没有公告!");
  76. }else{
  77. if(!newAnnTitle){
  78. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+无标题+'('+newAnnTIME+')'+'</span></a>');
  79. }else{
  80. show1("有新公告,标题:"+'<span class="hzb"><a href="Detailbyid?hiddenID='+newAnnID+'" target="_blank">'+newAnnTitle+'('+newAnnTIME+')'+'</span></a>');
  81. }
  82. }
  83. }
  84. });
  85. var _menus = {
  86. "menus": [{
  87. "menuid": "55",
  88. "icon": "icon-more",
  89. "menuname": "信息管理",
  90. "menus": [{
  91. "menuid": "31",
  92. "menuname": "公告信息查看",
  93. "icon": "icon-search",
  94. "url": "jsp/rzx/infoMan/CheckAnnouncementInfo.jsp"
  95. },{
  96. "menuid": "31",
  97. "menuname": "添加公告信息",
  98. "icon": "icon-add",
  99. "url": "jsp/rzx/infoMan/releaseAnnouncement.jsp"
  100. }]
  101. },{
  102. "menuid": "1",
  103. "icon": "icon-tip",
  104. "menuname": "系统日志查看",
  105. "menus": [{
  106. "menuid": "121",
  107. "menuname": "查看网络情况",
  108. "icon": "icon-filter",
  109. "url": "jsp/rzx/log/Networksituation.jsp"
  110. },{
  111. "menuid": "122",
  112. "menuname": "系统告警日志",
  113. "icon": "icon-save",
  114. "url": "ajax/AdvanceSystemwarninglog"
  115. }]
  116. },
  117. {
  118. "menuid": "56",
  119. "icon": "icon-edit",
  120. "menuname": "系统设置",
  121. "menus": [{
  122. "menuid": "31",
  123. "menuname": "报警参数设置",
  124. "icon": "icon-edit",
  125. "url": "jsp/rzx/systemSet/warningparaset.jsp"
  126. }]
  127. },
  128. {
  129. "menuid": "56",
  130. "icon": "icon-more",
  131. "menuname": "系统管理",
  132. "menus": [{
  133. "menuid": "143",
  134. "menuname": "监察人员管理",
  135. "icon": "icon-more",
  136. "url": "jsp/rzx/systemMan/Supervisormanagement.jsp"
  137. },
  138. {
  139. "menuid": "153",
  140. "menuname": "场所管理",
  141. "icon": "icon-tip",
  142. "url": "jsp/rzx/systemMan/Placemanagement.jsp"
  143. }
  144. ]
  145. },
  146. {
  147. "menuid": "56",
  148. "icon": "icon-large-smartart",
  149. "menuname": "充装情况",
  150. "menus": [{
  151. "menuid": "144",
  152. "menuname": "动态视图",
  153. "icon": "icon-large-chart",
  154. "url": "jsp/rzx/filling/Dynamicattempt1.jsp"
  155. },
  156. {
  157. "menuid": "154",
  158. "menuname": "加气机运行状态",
  159. "icon": "icon-large-smartart",
  160. "url": "jsp/rzx/filling/Aeratedmachinerunningstate.jsp"
  161. }]
  162. },
  163. {
  164. "menuid": "56",
  165. "icon": "icon-search",
  166. "menuname": "数据查询",
  167. "menus": [{
  168. "menuid": "145",
  169. "menuname": "人员巡查情况",
  170. "icon": "icon-search",
  171. "url": "jsp/rzx/dataQuery/PersonnelInspection21.jsp"
  172. },
  173. {
  174. "menuid": "155",
  175. "menuname": "巡查数据查询",
  176. "icon": "icon-search",
  177. "url": "jsp/rzx/dataQuery/InspectiondataQuery.jsp"
  178. },
  179. {
  180. "menuid": "165",
  181. "menuname": "气瓶数据查询",
  182. "icon": "icon-search",
  183. "url": "jsp/rzx/dataQuery/CylinderdataQuery1.jsp?clear=1"
  184. },
  185. {
  186. "menuid": "175",
  187. "menuname": "改装数据查询",
  188. "icon": "icon-search",
  189. "url": "jsp/rzx/dataQuery/ModifieddataQuery.jsp"
  190. },
  191. {
  192. "menuid": "185",
  193. "menuname": "充装数据查询",
  194. "icon": "icon-search",
  195. "url": "jsp/rzx/dataQuery/FillingdataQuery.jsp"
  196. },
  197. {
  198. "menuid": "195",
  199. "menuname": "检验数据查询",
  200. "icon": "icon-search",
  201. "url": "jsp/rzx/dataQuery/TestingdataQuery.jsp"
  202. },{
  203. "menuid": "165",
  204. "menuname": "监检数据查询",
  205. "icon": "icon-search",
  206. "url": "jsp/rzx/dataQuery/checkSeeQuery.jsp"
  207. },
  208. {
  209. "menuid": "205",
  210. "menuname": "车辆数据查询",
  211. "icon": "icon-search",
  212. "url": "jsp/rzx/dataQuery/CarsdataQuery.jsp"
  213. },{
  214. "menuid": "165",
  215. "menuname": "外地车标签查询",
  216. "icon": "icon-search",
  217. "url": "jsp/rzx/dataQuery/NonlocalCarsUIDQuery.jsp"
  218. },{
  219. "menuid": "165",
  220. "menuname": "标签发放信息",
  221. "icon": "icon-search",
  222. "url": "jsp/rzx/dataQuery/tagIssuingInfobgman.jsp"
  223. },
  224. {
  225. "menuid": "155",
  226. "menuname": "黑名单查询",
  227. "icon": "icon-search",
  228. "url": "jsp/rzx/dataQuery/BlacklistQuery.jsp"
  229. },
  230. {
  231. "menuid": "155",
  232. "menuname": "CNG质量查询",
  233. "icon": "icon-search",
  234. "url": "jsp/rzx/dataQuery/CNGQualityQuery.jsp"
  235. },
  236. {
  237. "menuid": "215",
  238. "menuname": "特种设备数据查询",
  239. "icon": "icon-search",
  240. "url": "jsp/rzx/dataQuery/SpecialequipmentdataQuery.jsp"
  241. }]
  242. },
  243. {
  244. "menuid": "56",
  245. "icon": "icon-large-chart",
  246. "menuname": "数据统计",
  247. "menus": [{
  248. "menuid": "145",
  249. "menuname": "充装数据统计",
  250. "icon": "icon-large-chart",
  251. "url": "jsp/rzx/dataStatistics/FillingdataStatistics.jsp"
  252. },
  253. {
  254. "menuid": "155",
  255. "menuname": "车辆数据统计",
  256. "icon": "icon-large-shapes",
  257. "url": "jsp/rzx/dataStatistics/CarsdataStatistics.jsp"
  258. },
  259. {
  260. "menuid": "165",
  261. "menuname": "气瓶数据统计",
  262. "icon": "icon-large-smartart",
  263. "url": "jsp/rzx/dataStatistics/CylinderdataStatistics.jsp"
  264. }]
  265. }]
  266. };
  267. //设置登录窗口
  268. function openlogin() {
  269. $('#l').window({
  270. title: '登陆',
  271. width: 300,
  272. modal: true,
  273. shadow: true,
  274. closed: true,
  275. height: 160,
  276. resizable:false
  277. });
  278. }
  279. function openPwd() {
  280. $('#w').window({
  281. title: '修改密码',
  282. width: 300,
  283. modal: true,
  284. shadow: true,
  285. closed: true,
  286. height: 'auto',
  287. resizable:false
  288. });
  289. }
  290. //关闭修改密码窗口
  291. function closePwd() {
  292. $('#w').window('close');
  293. }
  294. //关闭登录窗口
  295. function closelogin() {
  296. $('#l').window('close');
  297. }
  298. //登陆
  299. function serverLogin() {
  300. var $name = $('#txtName');
  301. var $pass = $('#txtPass');
  302. if ($name.val() == '') {
  303. msgShow('系统提示', '请输入用户名!', 'warning');
  304. return false;
  305. }
  306. if ($pass.val() == '') {
  307. msgShow('系统提示', '请输入密码!', 'warning');
  308. return false;
  309. }
  310. $.post('ajax/ajax_login?name=' + $name.val()+'&pass='+$pass.val(), function(msg) {
  311. msgShow('系统提示', '恭喜,登陆成功!<br>欢迎您:' + msg, 'info');
  312. $name.val('');
  313. $pass.val('');
  314. $('#l').window('close');
  315. })
  316. }
  317. //修改密码
  318. function serverAlterpass() {
  319. var $oldpass = $('#txtOldPass').val().replace(/\s+/g,"");;
  320. var $newpass = $('#txtNewPass').val().replace(/\s+/g,"");;
  321. var $rePass = $('#txtRePass').val().replace(/\s+/g,"");;
  322. if ($oldpass == '') {
  323. msgShow('系统提示', '请输入旧密码!', 'warning');
  324. return false;
  325. }
  326. if ($newpass == '') {
  327. msgShow('系统提示', '请输入新密码!', 'warning');
  328. return false;
  329. }
  330. if ($rePass == '') {
  331. msgShow('系统提示', '请再一次输入新密码!', 'warning');
  332. return false;
  333. }
  334. if ($newpass != $rePass) {
  335. msgShow('系统提示', '两次密码不一至!请重新输入', 'warning');
  336. return false;
  337. }
  338. $.ajax({
  339. type:"POST",
  340. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  341. data:$('#alterpasswordform').serialize(),
  342. url:"ajax/alterpassword",
  343. success:function (data){
  344. var obj=eval("(" + data + ")");
  345. $.each(obj.rows, function(i,item){
  346. if(item.sresult=="0"){
  347. $('#txtOldPass').val('');
  348. $('#txtNewPass').val('');
  349. $('#txtRePass').val('');
  350. $('#w').window('close');
  351. // msgShow('系统提示', '恭喜,密码修改成功!<br>您的新密码为:' + item.pass, 'info');
  352. show("修改成功您的新密码为:"+item.pass.substring(0,1)+"********");
  353. }else if(item.sresult=="2"){
  354. show("修改错误");
  355. }else if(item.sresult=="3"){
  356. show("用户不存在");
  357. }else if(item.sresult=="4"){
  358. show("旧密码错误");
  359. }
  360. });
  361. }
  362. });
  363. }
  364. function show(message) {
  365. $.messager.show({
  366. title: '提示信息',
  367. msg: message,
  368. timeout: 2000,
  369. showType: 'slide'
  370. });
  371. }
  372. function show1(message) {
  373. $.messager.show({
  374. title: '提示信息',
  375. msg: message,
  376. timeout: 15000,
  377. showType: 'slide'
  378. });
  379. }
  380. $(function() {
  381. openlogin();
  382. openPwd();
  383. $('#login').click(function() {
  384. $('#l').window('open');
  385. });
  386. $('#btnlogin').click(function() {
  387. serverLogin();
  388. })
  389. $('#btnloginCancel').click(function(){closelogin();})
  390. $('#editpass').click(function() {
  391. $('#w').window('open');
  392. });
  393. $('#btnEp').click(function() {
  394. serverAlterpass();
  395. })
  396. $('#btnCancel').click(function(){closePwd();})
  397. $('#loginOut').click(function() {
  398. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  399. if (r) {
  400. window.location.href = 'jsp/login/loginre.jsp';
  401. }
  402. });
  403. })
  404. });
  405. function sExit(){
  406. $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
  407. if (r) {
  408. window.location.href = 'jsp/login/loginre.jsp';
  409. //IE6
  410. window.event.returnValue = false;
  411. }
  412. });
  413. }
  414. </script>
  415. </head>
  416. <body class="easyui-layout" style="overflow-y: hidden" fit="true" scroll="no">
  417. <noscript>
  418. <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
  419. <img src="images/noscript.gif" alt='抱歉,请开启脚本支持!' />
  420. </div></noscript>
  421. <div id="loading-mask" style="position:absolute;top:0px; left:0px; width:100%; height:100%; background:#D2E0F2; z-index:20000">
  422. <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;">
  423. <img src="images/loading.gif" align="absmiddle" /> 正在加载中,请稍候...</div>
  424. </div>
  425. <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
  426. background: url(images/rzx/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
  427. line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
  428. <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>
  429. <span style="padding-left:10px; font-size: 16px; "><img src="images/rzx/blocks.gif" width="20" height="20" align="absmiddle" />气瓶电子标签动态监管集成系统-<%=place1 %></span>
  430. </div>
  431. <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
  432. <div class="footer">By 四川润智兴科技有限公司 版权所有</div>
  433. </div>
  434. <div region="west" split="true" title="导航菜单" style="width:180px;" id="west">
  435. <div id="nav">
  436. <!-- 导航内容 -->
  437. </div>
  438. </div>
  439. <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden" >
  440. <div id="tabs" class="easyui-tabs" fit="true" border="false" >
  441. <div title="欢迎使用" style="padding:20px;overflow:hidden; color:#f08300; " >
  442. <center><h1 style="font-size:24px;">* 气瓶电子标签动态监管集成系统-<%=place1 %></h1></center>
  443. </div>
  444. </div>
  445. </div>
  446. <!--修改密码窗口-->
  447. <div id="w" class="easyui-window" title="修改密码" collapsible="false" minimizable="false"
  448. maximizable="false" icon="icon-save" style="width: 300px; height: auto; padding: 5px;
  449. background: #fafafa;">
  450. <form id="alterpasswordform">
  451. <div fit="true" >
  452. <div region="center" border="false" style="padding: 0px; background: #fff; border: 1px solid #ccc;height: auto;">
  453. <table cellpadding=3>
  454. <tr>
  455. <td>旧密码:</td>
  456. <td><input id="txtOldPass" name="txtOldPass" type="Password" class="txt01" /></td>
  457. </tr>
  458. <tr>
  459. <td>新密码:</td>
  460. <td><input id="txtNewPass" name="txtNewPass" type="Password" class="txt01" /></td>
  461. </tr>
  462. <tr>
  463. <td>确认密码:</td>
  464. <td><input id="txtRePass" type="Password" name="txtRePass" class="txt01" /></td>
  465. </tr>
  466. </table>
  467. </div>
  468. <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
  469. <a id="btnEp" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  470. 确定</a> <a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  471. </div>
  472. </div>
  473. </form>
  474. </div>
  475. <!--登陆窗口-->
  476. <div id="l" class="easyui-window" title="登陆窗口" collapsible="false" minimizable="false"
  477. maximizable="false" icon="icon-save" style="width: 300px; height: 150px; padding: 15px;
  478. background: #fafafa;">
  479. <div class="easyui-layout" fit="true">
  480. <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
  481. <table cellpadding=3>
  482. <tr>
  483. <td>用户名:</td>
  484. <td><input id="txtName" type="text" class="txt01" /></td>
  485. </tr>
  486. <tr>
  487. <td>密码:</td>
  488. <td><input id="txtPass" type="Password" class="txt01" /></td>
  489. </tr>
  490. </table>
  491. </div>
  492. <div region="south" border="false" style="text-align: right; ">
  493. <a id="btnlogin" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" >
  494. 确定</a> <a id="btnloginCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)">取消</a>
  495. </div>
  496. </div>
  497. </div>
  498. <div id="mm" class="easyui-menu" style="width:150px;">
  499. <div id="tabupdate">刷新</div>
  500. <div class="menu-sep"></div>
  501. <div id="close">关闭</div>
  502. <div id="closeall">全部关闭</div>
  503. <div id="closeother">除此之外全部关闭</div>
  504. <div class="menu-sep"></div>
  505. <div id="closeright">当前页右侧全部关闭</div>
  506. <div id="closeleft">当前页左侧全部关闭</div>
  507. <div class="menu-sep"></div>
  508. <div id="exit">退出</div>
  509. </div>
  510. <input type="hidden" value="<%=title %>" name="newAnnTitle" id="newAnnTitle"/>
  511. <input type="hidden" value="<%=id %>" name="newAnnID" id="newAnnID"/>
  512. <input type="hidden" value="<%=anTime %>" name="newAnnTIME" id="newAnnTIME"/>
  513. </body>
  514. </html>