map.jsp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <%@ page import="java.util.regex.Pattern" %>
  2. <%@ page import="java.util.regex.Matcher" %>
  3. <%@ page language="java" contentType="text/html; charset=UTF-8"
  4. pageEncoding="UTF-8" %>
  5. <%@ page session="true" %>
  6. <%
  7. String path = request.getContextPath();
  8. String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
  9. String baseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/";
  10. String t = String.valueOf(System.currentTimeMillis());
  11. String theme = request.getParameter("theme");
  12. String viewAlarmType = request.getParameter("viewAlarmType");
  13. String pieAlarmType = request.getParameter("pieAlarmType");
  14. String statusType = request.getParameter("statusType");
  15. String css_name = "ext-all-access.css";
  16. String company_code = request.getParameter("company_code");
  17. String loginname = request.getParameter("loginname");
  18. String password = request.getParameter("password");
  19. if (viewAlarmType == null)
  20. viewAlarmType = "11110010";
  21. if (!myRegex(viewAlarmType)) {
  22. viewAlarmType = "";
  23. }
  24. if (pieAlarmType == null)
  25. pieAlarmType = "11110010";
  26. if (!myRegex(pieAlarmType)) {
  27. pieAlarmType = null;
  28. }
  29. if (statusType == null)
  30. statusType = "11110010";
  31. if (!myRegex(statusType)) {
  32. statusType = null;
  33. }
  34. if ((company_code == null) || (company_code == "null"))
  35. company_code = "";
  36. if (!myRegex(company_code)) {
  37. company_code = "";
  38. }
  39. if (theme != null) {
  40. if (theme.equals("gray"))
  41. css_name = "ext-all-gray.css";
  42. else if (theme.equals("access"))
  43. css_name = "ext-all-access.css";
  44. else if (theme.equals("neptune"))
  45. css_name = "ext-neptune.css";
  46. else if (theme.equals("default"))
  47. css_name = "ext-all.css";
  48. else if (theme.equals("scoped"))
  49. css_name = "ext-all-scoped";
  50. else if (theme.equals("ie"))
  51. css_name = "ext-ie.css";
  52. else if (theme.equals("sandbox"))
  53. css_name = "ext-sandbox.css";
  54. else if (theme.equals("standard"))
  55. css_name = "ext-standard.css";
  56. else {
  57. theme = "";
  58. }
  59. } else
  60. theme = "";
  61. %>
  62. <%!
  63. public boolean myRegex(String str) {
  64. Pattern pattern = Pattern.compile("^[0-9]*$");
  65. Matcher matcher = pattern.matcher(str);
  66. return matcher.matches();
  67. }
  68. %>
  69. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  70. <html>
  71. <head>
  72. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  73. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  74. <link type="text/css" rel="stylesheet"
  75. href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"/>
  76. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/img/myImages.css" %>"/>
  77. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/extjs/resources/css/"+css_name+"?t="+t %>"/>
  78. <link type="text/css" rel="stylesheet" href="<%=basePath+"view/efireAnalysis/layui/css/layui.css" %>"/>
  79. <script type="text/javascript" src="<%=basePath+"res/extjs/ext-all.js" %>"></script>
  80. <script type="text/javascript" src="<%=basePath+"res/jquery/jquery-3.5.1.min.js" %>"></script>
  81. <script type="text/javascript"
  82. src="https://webapi.amap.com/maps?v=1.4.13&key=246349bf278f6225fa80156828d0f061&plugin=AMap.Geocoder,Map3D"></script>
  83. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts.js" %>"></script>
  84. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts-3d.js" %>"></script>
  85. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/highcharts-more.js" %>"></script>
  86. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/solid-gauge.js" %>"></script>
  87. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/sunburst.js" %>"></script>
  88. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/exporting.js" %>"></script>
  89. <script type="text/javascript" src="<%=basePath+"res/highcharts/code/modules/export-data.js" %>"></script>
  90. <script type="text/javascript" src="<%=basePath+"res/usky/usky.js" %>"></script>
  91. <script type="text/javascript" src="<%=basePath+"view/frontpage/scripts/map.js" %>"></script>
  92. <script type="text/javascript" src="<%=basePath+"view/efireAnalysis/layui/layui.js" %>"></script>
  93. <title>Insert title here</title>
  94. <style>
  95. html, body,
  96. #container {
  97. width: 100%;
  98. height: 100%;
  99. }
  100. .layui-layer-title {
  101. background: #081A32 !important;
  102. color: #fff !important;
  103. border-bottom: 1px solid #1E9FFF !important;
  104. }
  105. .layui-layer {
  106. background: #072442 !important;
  107. color: #fff;
  108. }
  109. .layui-layer-ico {
  110. border-radius: 50%;
  111. }
  112. .layui-layer-btn .layui-layer-btn0 {
  113. font-size: 0.2rem;
  114. }
  115. </style>
  116. </head>
  117. <body style="padding:0;margin:0;border:0px;overflow:hidden;">
  118. <div id="container" style="background-image:radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,1.0));">
  119. <!--
  120. <div id="mask_t" class="mask_top"></div>
  121. <div id="mask_b" class="mask_bottom"></div>
  122. <div id="mask_l" class="mask_left"></div>
  123. <div id="mask_r" class="mask_right"></div>
  124. -->
  125. <div id="map_header" class="map_header"></div>
  126. <div id="bar5" class="search bar5">
  127. <!-- <form > -->
  128. <table style="border:none;" border="0" cellpadding="0" cellspacing="0">
  129. <tr style="border:none;border-collapse: collapse;">
  130. <td style="border:none;border-collapse: collapse; padding:0px; margin:0px;">
  131. <input id="search_company" name="search_company" type="text" placeholder="请输入单位名称..."
  132. autocomplete="off" onkeydown="key_fun(event);">
  133. <div class="bar5_clear" onclick="clear_search();" style="cursor:pointer;"></div>
  134. </td>
  135. </tr>
  136. </table>
  137. <!-- </form> -->
  138. </div>
  139. <div id="saerch_company_list" class="search_company_list"
  140. style="position:absolute;top:80px;right:200px;z-index:1001;font-size:14px;"></div>
  141. <!--
  142. <div id="border_top_left" style="background:url(../../res/img/border-tl.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; top:20px; left:20px;"></div>
  143. <div id="border_top_right" style="background:url(../../res/img/border-tr.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; top:20px; right:20px;"></div>
  144. <div id="border_bottom_left" style="background:url(../../res/img/border-bl.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; bottom:20px; left:20px;"></div>
  145. <div id="border_bottom_right" style="background:url(../../res/img/border-br.png) no-repeat; width:117px; height:117px; z-index:500; position:absolute; bottom:20px; right:20px;"></div>
  146. -->
  147. <!-- <div id="data_bar_area" class="data_bar_area">
  148. <div id="data_bar" style="background:url(../../res/img/icons/data_bar.png) no-repeat;width:371px;height:891px;">
  149. <table id="data_bar_table" style="border:0px solid #000;position:absolute;top:55px;left:41px;width:300px;">
  150. <tr>
  151. <td id="data_title_1" colspan=2 class="data_bar_title" onclick="show_all_fireAlarm()">火灾监控</td>
  152. <td id="data_pie_1" rowspan=3 style="width:100px" onclick="show_all_fireAlarm()"></td>
  153. </tr>
  154. <tr>
  155. <td id="data_label_11" class="data_bar_total_label" onclick="show_all_fireAlarm()">报告总数</td>
  156. <td id="data_number_11" class="data_bar_total_number" onclick="show_all_fireAlarm()"></td>
  157. </tr>
  158. <tr>
  159. <td id="data_label_12" class="data_bar_alarm_label" onclick="show_all_fireAlarm()">待处理</td>
  160. <td id="data_number_12" class="data_bar_alarm_number" onclick="show_all_fireAlarm()"></td>
  161. </tr>
  162. <tr>
  163. <td id="data_title_2" colspan=2 class="data_bar_title" onclick="show_all_efireAlarm()">电气火灾监控</td>
  164. <td id="data_pie_2" rowspan=3 style="width:100px" onclick="show_all_efireAlarm()"></td>
  165. </tr>
  166. <tr>
  167. <td id="data_label_21" class="data_bar_total_label" onclick="show_all_efireAlarm()">报告总数</td>
  168. <td id="data_number_21" class="data_bar_total_number" onclick="show_all_efireAlarm()"></td>
  169. </tr>
  170. <tr>
  171. <td id="data_label_22" class="data_bar_alarm_label" onclick="show_all_efireAlarm()">待处理</td>
  172. <td id="data_number_22" class="data_bar_alarm_number" onclick="show_all_efireAlarm()"></td>
  173. </tr>
  174. <tr>
  175. <td id="data_title_3" colspan=2 class="data_bar_title" onclick="show_all_waterAlarm()">水系统监控</td>
  176. <td id="data_pie_3" rowspan=3 style="width:100px" onclick="show_all_waterAlarm()"></td>
  177. </tr>
  178. <tr>
  179. <td id="data_label_31" class="data_bar_total_label" onclick="show_all_waterAlarm()">报告总数</td>
  180. <td id="data_number_31" class="data_bar_total_number" onclick="show_all_waterAlarm()"></td>
  181. </tr>
  182. <tr>
  183. <td id="data_label_32" class="data_bar_alarm_label" onclick="show_all_waterAlarm()">待处理</td>
  184. <td id="data_number_32" class="data_bar_alarm_number" onclick="show_all_waterAlarm()"></td>
  185. </tr>
  186. <tr>
  187. <td id="data_title_4" colspan=2 class="data_bar_title" onclick="show_all_rtuAlarm()">RTU监控</td>
  188. <td id="data_pie_4" rowspan=3 style="width:100px" onclick="show_all_rtuAlarm()"></td>
  189. </tr>
  190. <tr>
  191. <td id="data_label_41" class="data_bar_total_label" onclick="show_all_rtuAlarm()">报告总数</td>
  192. <td id="data_number_41" class="data_bar_total_number" onclick="show_all_rtuAlarm()"></td>
  193. </tr>
  194. <tr>
  195. <td id="data_label_42" class="data_bar_alarm_label" onclick="show_all_rtuAlarm()">待处理</td>
  196. <td id="data_number_42" class="data_bar_alarm_number" onclick="show_all_rtuAlarm()"></td>
  197. </tr>
  198. </table>
  199. <table id="device_bar_table" style="position:absolute;top:561px;left:41px;width:280px;">
  200. <tr>
  201. <td id="device_title_1" colspan=2 class="device_info_title" onclick="show_all_fireDevice()">火灾监控设备</td>
  202. <td id="device_count_1" class="align_right device_info" onclick="show_all_fireDevice()">总数:<span id="device_count_num_11" class="device_confirm_num0">0</span></td>
  203. </tr>
  204. <tr>
  205. <td id="device_confirm_11" class="device_info" onclick="show_all_fireDevice()">已处理:<span id="device_count_num_12" class="device_confirm_num1">0</span></td>
  206. <td id="device_confirm_12" class="device_info" onclick="show_all_fireDevice()">待处理:<span id="device_count_num_13" class="device_confirm_num2">0</span></td>
  207. <td id="device_confirm_13" class="align_right device_info" onclick="show_all_fireDevice()">处置率:<span id="device_count_num_14" class="device_confirm_num3">0%</span></td>
  208. </tr>
  209. <tr>
  210. <td colspan=3 style="height:28px;" onclick="show_all_fireDevice()">
  211. <div style="border:0px solid #000;border-radius:3px;width:280px;height:6px;background-color:rgba(255,255,255,0.1);">
  212. <div id="device_confirm_14" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:280px;background-color:#00a7d1"></div>
  213. </div>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td id="device_title_2" colspan=2 class="device_info_title" onclick="show_all_efireDevice()">电气火灾监控设备</td>
  218. <td id="device_count_2" class="align_right device_info" onclick="show_all_efireDevice()">总数:<span id="device_count_num_21" class="device_confirm_num0">0</span></td>
  219. </tr>
  220. <tr>
  221. <td id="device_confirm_21" class="device_info" onclick="show_all_efireDevice()">已处理:<span id="device_count_num_22" class="device_confirm_num1">0</span></td>
  222. <td id="device_confirm_22" class="device_info" onclick="show_all_efireDevice()">待处理:<span id="device_count_num_23" class="device_confirm_num2">0</span></td>
  223. <td id="device_confirm_23" class="align_right device_info" onclick="show_all_efireDevice()">处置率:<span id="device_count_num_24" class="device_confirm_num3">0%</span></td>
  224. </tr>
  225. <tr>
  226. <td colspan=3 style="height:28px;" onclick="show_all_efireDevice()">
  227. <div style="border:0px solid #000;border-radius:3px;width:280px;height:6px;background-color:rgba(255,255,255,0.1);">
  228. <div id="device_confirm_24" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:280px;background-color:#00a7d1"></div>
  229. </div>
  230. </td>
  231. </tr>
  232. <tr>
  233. <td id="device_title_3" colspan=2 class="device_info_title" onclick="show_all_waterDevice()">水系统监控设备</td>
  234. <td id="device_count_3" class="align_right device_info" onclick="show_all_waterDevice()">总数:<span id="device_count_num_31" class="device_confirm_num0">0</span></td>
  235. </tr>
  236. <tr>
  237. <td id="device_confirm_31" class="device_info" onclick="show_all_waterDevice()">已处理:<span id="device_count_num_32" class="device_confirm_num1">0</span></td>
  238. <td id="device_confirm_32" class="device_info" onclick="show_all_waterDevice()">待处理:<span id="device_count_num_33" class="device_confirm_num2">0</span></td>
  239. <td id="device_confirm_33" class="align_right device_info" onclick="show_all_waterDevice()">处置率:<span id="device_count_num_34" class="device_confirm_num3">0%</span></td>
  240. </tr>
  241. <tr>
  242. <td colspan=3 style="height:28px;" onclick="show_all_waterDevice()">
  243. <div style="border:0px solid #000;border-radius:3px;width:280px;height:6px;background-color:rgba(255,255,255,0.1);">
  244. <div id="device_confirm_34" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:280px;background-color:#00a7d1"></div>
  245. </div>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td id="device_title_4" colspan=2 class="device_info_title" onclick="show_all_rtuDevice()">RTU监控设备</td>
  250. <td id="device_count_4" class="align_right device_info" onclick="show_all_rtuDevice()">总数:<span id="device_count_num_41" class="device_confirm_num0">0</span></td>
  251. </tr>
  252. <tr>
  253. <td id="device_confirm_41" class="device_info" onclick="show_all_rtuDevice()">已处理:<span id="device_count_num_42" class="device_confirm_num1">0</span></td>
  254. <td id="device_confirm_42" class="device_info" onclick="show_all_rtuDevice()">待处理:<span id="device_count_num_43" class="device_confirm_num2">0</span></td>
  255. <td id="device_confirm_43" class="align_right device_info" onclick="show_all_rtuDevice()">处置率:<span id="device_count_num_44" class="device_confirm_num3">0%</span></td>
  256. </tr>
  257. <tr>
  258. <td colspan=3 style="height:28px;" onclick="show_all_rtuDevice()">
  259. <div style="border:0px solid #000;border-radius:3px;width:280px;height:6px;background-color:rgba(255,255,255,0.1);">
  260. <div id="device_confirm_44" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:280px;background-color:#00a7d1"></div>
  261. </div>
  262. </td>
  263. </tr>
  264. </table>
  265. </div>
  266. </div> -->
  267. <div id="map_btn_bigger" class="map_btn map_btn_bigger_off" onmouseover="bigger_mouseover();"
  268. onmouseout="bigger_mouseout();" onclick="bigger_click();"></div>
  269. <div id="map_btn_smaller" class="map_btn map_btn_smaller_off" onmouseover="smaller_mouseover();"
  270. onmouseout="smaller_mouseout();" onclick="smaller_click();"></div>
  271. <div id="map_btn_showlaebl" class="map_btn map_btn_showlaebl_off" onmouseover="shower_mouseover();"
  272. onmouseout="shower_mouseout();" onclick="shower_click();"></div>
  273. <div id="map_btn_left" class="map_btn map_btn_left_off" onmouseover="left_mouseover();"
  274. onmouseout="left_mouseout();" onclick="left_click();"></div>
  275. <div id="map_btn_right" class="map_btn map_btn_right_off" onmouseover="right_mouseover();"
  276. onmouseout="right_mouseout();" onclick="right_click();"></div>
  277. <div id="map_btn_high" class="map_btn map_btn_high_off" onmouseover="higher_mouseover();"
  278. onmouseout="higher_mouseout();" onclick="higher_click();"></div>
  279. <div id="map_btn_low" class="map_btn map_btn_low_off" onmouseover="lower_mouseover();"
  280. onmouseout="lower_mouseout();" onclick="lower_click();"></div>
  281. </div>
  282. <input type="hidden" id="theme" name="theme" value="<%=theme %>"/>
  283. <input type="hidden" id="basePath" name="basePath" value="<%=basePath %>"/>
  284. <input type="hidden" id="viewAlarmType" name="viewAlarmType" value="<%=viewAlarmType %>"/>
  285. <input type="hidden" id="pieAlarmType" name="pieAlarmType" value="<%=pieAlarmType %>"/>
  286. <input type="hidden" id="statusType" name="statusType" value="<%=statusType %>"/>
  287. <input type="hidden" id="V_LOGINNAME" name="V_LOGINNAME" value="<%=loginname %>"/>
  288. <input type="hidden" id="V_PASSWORD" name="V_PASSWORD" value="<%=password %>"/>
  289. <input type="hidden" id="company_code" name="company_code" value="<%=company_code %>"/>
  290. </body>
  291. </html>