fillingbgman.jsp 17 KB

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