fillingbgman.jsp 18 KB

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