map.js 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. /**
  2. * map.js
  3. */
  4. Ext.Loader.setConfig({
  5. enabled: true
  6. });
  7. Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux');
  8. Ext.require([
  9. 'Ext.grid.*',
  10. 'Ext.data.*',
  11. 'Ext.ux.RowExpander',
  12. 'Ext.selection.CheckboxModel'
  13. ]);
  14. var sm = Ext.create('Ext.selection.CheckboxModel');
  15. var myMask;
  16. var baseUrl = "";
  17. var theme = "";
  18. var mapStyle = "";
  19. var map;
  20. var mapzoom = 11;
  21. var company_cur = 0;
  22. var StatusStore = null,
  23. AlarmStore = null;
  24. var firstDraw = true;
  25. var storeTime = 60000;
  26. var centerLng = 121.475644;
  27. var currentLng = 121.475644;
  28. var centerLat = 31.1857;
  29. var currentLat = 31.1857;
  30. var rotation = 0;
  31. var alarm_show_window = null;
  32. var show_alarm_list;
  33. var show_list_cur = 0
  34. var V_LOGINNAME = '',
  35. V_PASSWORD = '';
  36. var listSync = true;
  37. var synctime = 0;
  38. var company_code = '';
  39. var start = 0;
  40. var end = 360;
  41. var targetZoom = 20;
  42. var maxHeight = 10000;
  43. var maxWidth = 10000;
  44. var SearchList = null;
  45. var markers = [];
  46. var current_company_code = "";
  47. var LabelShow = false;
  48. var MapShow = false;
  49. var last_move;
  50. var wsUri = "wss://iot.usky.cn:55120";
  51. var websocket = null;
  52. var win1_config = {
  53. title: '<table border=0><tr><td style="width:100px;overflow:hidden">火灾监控</td><td id="win1-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-12" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-11"></span></td></tr></table>',
  54. titleColor: '#ffffff',
  55. titleIconColor: '#ffffff',
  56. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  57. backgroundColor: 'rgba(23,21,57,0.2)',
  58. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  59. border: '1px solid rgba(0,123,255,0.3)',
  60. borderRadius: '10px',
  61. position: 'absolute',
  62. width: 320,
  63. height: 120,
  64. top: 100,
  65. left: 50,
  66. zIndex: 200,
  67. bodyText: '<div id="win1" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_1" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_11" class="data_bar_total_label" style="width:80px;" onclick="show_all_fireAlarm()">报告总数</td><td id="data_number_11" class="data_bar_total_number" style="width:100px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_12" class="data_bar_alarm_label" onclick="show_all_fireAlarm()">待处理</td><td id="data_number_12" class="data_bar_alarm_number" onclick="show_all_fireAlarm()"></td></tr></table></div>'
  68. }
  69. var win2_config = {
  70. title: '<table border=0><tr><td style="width:100px;overflow:hidden">电气火灾监控</td><td id="win2-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-22" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-21"></span></td></tr></table>',
  71. titleColor: '#ffffff',
  72. titleIconColor: '#ffffff',
  73. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  74. backgroundColor: 'rgba(23,21,57,0.2)',
  75. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  76. border: '1px solid rgba(0,123,255,0.3)',
  77. borderRadius: '10px',
  78. position: 'absolute',
  79. width: 320,
  80. height: 120,
  81. top: 260,
  82. left: 50,
  83. zIndex: 260,
  84. bodyText: '<div id="win2" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_2" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_21" class="data_bar_total_label" style="width:80px;" onclick="show_all_efireAlarm()">报告总数</td><td id="data_number_21" class="data_bar_total_number" style="width:100px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_22" class="data_bar_alarm_label" onclick="show_all_efireAlarm()">待处理</td><td id="data_number_22" class="data_bar_alarm_number" onclick="show_all_efireAlarm()"></td></tr></table></div>'
  85. }
  86. var win3_config = {
  87. title: '<table border=0><tr><td style="width:100px;overflow:hidden">水系统监控</td><td id="win3-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-32" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-31"></span></td></tr></table>',
  88. titleColor: '#ffffff',
  89. titleIconColor: '#ffffff',
  90. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  91. backgroundColor: 'rgba(23,21,57,0.2)',
  92. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  93. border: '1px solid rgba(0,123,255,0.3)',
  94. borderRadius: '10px',
  95. position: 'absolute',
  96. width: 320,
  97. height: 120,
  98. top: 420,
  99. left: 50,
  100. zIndex: 260,
  101. bodyText: '<div id="win3" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_3" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_31" class="data_bar_total_label" style="width:80px;" onclick="show_all_waterAlarm()">报告总数</td><td id="data_number_31" class="data_bar_total_number" style="width:100px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_32" class="data_bar_alarm_label" onclick="show_all_waterAlarm()">待处理</td><td id="data_number_32" class="data_bar_alarm_number" onclick="show_all_waterAlarm()"></td></tr></table></div>'
  102. }
  103. var win4_config = {
  104. title: '<table border=0><tr><td style="width:100px;overflow:hidden">RTU监控</td><td id="win4-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-42" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-41"></span></td></tr></table>',
  105. titleColor: '#ffffff',
  106. titleIconColor: '#ffffff',
  107. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  108. backgroundColor: 'rgba(23,21,57,0.2)',
  109. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  110. border: '1px solid rgba(0,123,255,0.3)',
  111. borderRadius: '10px',
  112. position: 'absolute',
  113. width: 320,
  114. height: 120,
  115. top: 580,
  116. left: 50,
  117. zIndex: 260,
  118. bodyText: '<div id="win4" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_4" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_rtuAlarm()"></td></tr><tr><td id="data_label_41" class="data_bar_total_label" style="width:80px;" onclick="show_all_rtuAlarm()">报告总数</td><td id="data_number_41" class="data_bar_total_number" style="width:100px;" onclick="show_all_rtuAlarm()"></td></tr><tr><td id="data_label_42" class="data_bar_alarm_label" onclick="show_all_rtuAlarm()">待处理</td><td id="data_number_42" class="data_bar_alarm_number" onclick="show_all_rtuAlarm()"></td></tr></table></div>'
  119. }
  120. var dev1_config = {
  121. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">火灾监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev1_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev1-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev1-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  122. titleColor: '#ffffff',
  123. titleIconColor: '#ffffff',
  124. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  125. backgroundColor: 'rgba(23,21,57,0.2)',
  126. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  127. border: '1px solid rgba(0,123,255,0.3)',
  128. borderRadius: '10px',
  129. position: 'absolute',
  130. width: 320,
  131. height: 100,
  132. top: 219,
  133. left: 50,
  134. zIndex: 200,
  135. floding: 'true',
  136. bodyText: '<div id="dev1" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_12" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_13" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_14" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_fireDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_14" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  137. }
  138. var dev2_config = {
  139. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">电气火灾监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev2_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev2-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev2-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  140. titleColor: '#ffffff',
  141. titleIconColor: '#ffffff',
  142. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  143. backgroundColor: 'rgba(23,21,57,0.2)',
  144. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  145. border: '1px solid rgba(0,123,255,0.3)',
  146. borderRadius: '10px',
  147. position: 'absolute',
  148. width: 320,
  149. height: 100,
  150. top: 379,
  151. left: 50,
  152. zIndex: 200,
  153. floding: 'true',
  154. bodyText: '<div id="dev2" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_22" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_23" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_24" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_efireDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_24" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  155. }
  156. var dev3_config = {
  157. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">水系统监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev3_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev3-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev3-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  158. titleColor: '#ffffff',
  159. titleIconColor: '#ffffff',
  160. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  161. backgroundColor: 'rgba(23,21,57,0.2)',
  162. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  163. border: '1px solid rgba(0,123,255,0.3)',
  164. borderRadius: '10px',
  165. position: 'absolute',
  166. width: 320,
  167. height: 100,
  168. top: 539,
  169. left: 50,
  170. zIndex: 200,
  171. floding: 'true',
  172. bodyText: '<div id="dev3" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_32" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_33" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_34" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_waterDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_34" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  173. }
  174. var dev4_config = {
  175. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">RTU监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev4_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev4-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev4-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  176. titleColor: '#ffffff',
  177. titleIconColor: '#ffffff',
  178. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  179. backgroundColor: 'rgba(23,21,57,0.2)',
  180. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  181. border: '1px solid rgba(0,123,255,0.3)',
  182. borderRadius: '10px',
  183. position: 'absolute',
  184. width: 320,
  185. height: 100,
  186. top: 699,
  187. left: 50,
  188. zIndex: 200,
  189. floding: 'true',
  190. bodyText: '<div id="dev4" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px;"><tr><td>已处理:</td><td id="device_count_num_42" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_43" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_44" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_rtuDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_44" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  191. }
  192. var alarm_alert_config = {
  193. title: '<table border=0 style="width:320px;"><tr><td id="rt_alarm_alert_icon" style="width:24px;height:24px;"></td><td><span id="rt_alarm_alert_title" style="text-align:right;margin-left:10px;font-widght:bold;color:#31e9ff;overflow:hidden;"></span></td><td style="width:32px;color:#ffffff;cursor:pointer;text-align:left;" onclick="close_alert()"><div style="width:16px;height:16px;background-image:url(../../res/img/common/close-tmp.gif)"></div></td></tr></table>',
  194. titleColor: '#ffffff',
  195. titleIconColor: '#ffffff',
  196. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  197. backgroundColor: 'rgba(23,21,57,0.2)',
  198. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  199. border: '1px solid #31e9ff',
  200. borderRadius: '10px',
  201. position: 'absolute',
  202. width: 320,
  203. height: 120,
  204. bottom: -100,
  205. right: 95,
  206. zIndex: 990,
  207. bodyText: '<div><table border="0" style="border:0px solid #31e9ff;margin:5px;font-size:9px;color:#ffffff"><tr><td colspan=2 style="height:20px;"><div id="alarm_time" style="margin-top:3px;"></div><div id="alarm_company" style="margin-top:3px;"></div><div id="alarm_device" style="margin-top:3px;"></div></td></tr></table></div>'
  208. }
  209. var winypxy1_config = {
  210. title: '<table border=0><tr><td style="width:100px;overflow:hidden">智能烟感监控</td><td id="win1-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-12" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-11"></span></td></tr></table>',
  211. titleColor: '#ffffff',
  212. titleIconColor: '#ffffff',
  213. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  214. backgroundColor: 'rgba(23,21,57,0.2)',
  215. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  216. border: '1px solid rgba(0,123,255,0.3)',
  217. borderRadius: '10px',
  218. position: 'absolute',
  219. width: 320,
  220. height: 120,
  221. top: 60,
  222. left: 50,
  223. zIndex: 200,
  224. bodyText: '<div id="win1" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_1" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_11" class="data_bar_total_label" style="width:80px;" onclick="show_all_fireAlarm()">报告总数</td><td id="data_number_11" class="data_bar_total_number" style="width:100px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_12" class="data_bar_alarm_label" onclick="show_all_fireAlarm()">待处理</td><td id="data_number_12" class="data_bar_alarm_number" onclick="show_all_fireAlarm()"></td></tr></table></div>'
  225. }
  226. var devypxy1_config = {
  227. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">智能烟感监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev1_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev1-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev1-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  228. titleColor: '#ffffff',
  229. titleIconColor: '#ffffff',
  230. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  231. backgroundColor: 'rgba(23,21,57,0.2)',
  232. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  233. border: '1px solid rgba(0,123,255,0.3)',
  234. borderRadius: '10px',
  235. position: 'absolute',
  236. width: 320,
  237. height: 100,
  238. top: 179,
  239. left: 50,
  240. zIndex: 200,
  241. floding: 'true',
  242. bodyText: '<div id="dev1" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_12" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_13" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_14" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_fireDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_14" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  243. }
  244. var winypxy2_config = {
  245. title: '<table border=0><tr><td style="width:100px;overflow:hidden">电气火灾监控</td><td id="win2-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-22" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-21"></span></td></tr></table>',
  246. titleColor: '#ffffff',
  247. titleIconColor: '#ffffff',
  248. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  249. backgroundColor: 'rgba(23,21,57,0.2)',
  250. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  251. border: '1px solid rgba(0,123,255,0.3)',
  252. borderRadius: '10px',
  253. position: 'absolute',
  254. width: 320,
  255. height: 120,
  256. top: 220,
  257. left: 50,
  258. zIndex: 260,
  259. bodyText: '<div id="win2" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_2" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_21" class="data_bar_total_label" style="width:80px;" onclick="show_all_efireAlarm()">报告总数</td><td id="data_number_21" class="data_bar_total_number" style="width:100px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_22" class="data_bar_alarm_label" onclick="show_all_efireAlarm()">待处理</td><td id="data_number_22" class="data_bar_alarm_number" onclick="show_all_efireAlarm()"></td></tr></table></div>'
  260. }
  261. var winypxy3_config = {
  262. title: '<table border=0><tr><td style="width:100px;overflow:hidden">智能水表监控</td><td id="win3-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-32" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-31"></span></td></tr></table>',
  263. titleColor: '#ffffff',
  264. titleIconColor: '#ffffff',
  265. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  266. backgroundColor: 'rgba(23,21,57,0.2)',
  267. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  268. border: '1px solid rgba(0,123,255,0.3)',
  269. borderRadius: '10px',
  270. position: 'absolute',
  271. width: 320,
  272. height: 120,
  273. top: 380,
  274. left: 50,
  275. zIndex: 260,
  276. bodyText: '<div id="win3" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_3" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_31" class="data_bar_total_label" style="width:80px;" onclick="show_all_waterAlarm()">报告总数</td><td id="data_number_31" class="data_bar_total_number" style="width:100px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_32" class="data_bar_alarm_label" onclick="show_all_waterAlarm()">待处理</td><td id="data_number_32" class="data_bar_alarm_number" onclick="show_all_waterAlarm()"></td></tr></table></div>'
  277. }
  278. var winypxy4_config = {
  279. title: '<table border=0><tr><td style="width:140px;overflow:hidden">智能消火栓监控</td><td id="win4-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-42" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-41"></span></td></tr></table>',
  280. titleColor: '#ffffff',
  281. titleIconColor: '#ffffff',
  282. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  283. backgroundColor: 'rgba(23,21,57,0.2)',
  284. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  285. border: '1px solid rgba(0,123,255,0.3)',
  286. borderRadius: '10px',
  287. position: 'absolute',
  288. width: 320,
  289. height: 120,
  290. top: 540,
  291. left: 50,
  292. zIndex: 260,
  293. bodyText: '<div id="win4" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_4" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_41" class="data_bar_total_label" style="width:80px;" onclick="show_all_waterAlarm()">报告总数</td><td id="data_number_41" class="data_bar_total_number" style="width:100px;" onclick="show_all_waterAlarm()"></td></tr><tr><td id="data_label_42" class="data_bar_alarm_label" onclick="show_all_waterAlarm()">待处理</td><td id="data_number_42" class="data_bar_alarm_number" onclick="show_all_waterAlarm()"></td></tr></table></div>'
  294. }
  295. var winypxy5_config = {
  296. title: '<table border=0><tr><td style="width:140px;overflow:hidden">智能井盖监控</td><td id="win5-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-52" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-51"></span></td></tr></table>',
  297. titleColor: '#ffffff',
  298. titleIconColor: '#ffffff',
  299. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  300. backgroundColor: 'rgba(23,21,57,0.2)',
  301. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  302. border: '1px solid rgba(0,123,255,0.3)',
  303. borderRadius: '10px',
  304. position: 'absolute',
  305. width: 320,
  306. height: 120,
  307. top: 700,
  308. left: 50,
  309. zIndex: 260,
  310. bodyText: '<div id="win5" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_5" rowspan=3 style="width:110px; height:110px; margin-top:-10px;"></td></tr><tr><td id="data_label_51" class="data_bar_total_label" style="width:80px;">报告总数</td><td id="data_number_51" class="data_bar_total_number" style="width:100px;"></td></tr><tr><td id="data_label_52" class="data_bar_alarm_label">待处理</td><td id="data_number_52" class="data_bar_alarm_number"></td></tr></table></div>'
  311. }
  312. var devypxy2_config = {
  313. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">电气火灾监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev2_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev2-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev2-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  314. titleColor: '#ffffff',
  315. titleIconColor: '#ffffff',
  316. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  317. backgroundColor: 'rgba(23,21,57,0.2)',
  318. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  319. border: '1px solid rgba(0,123,255,0.3)',
  320. borderRadius: '10px',
  321. position: 'absolute',
  322. width: 320,
  323. height: 100,
  324. top: 339,
  325. left: 50,
  326. zIndex: 200,
  327. floding: 'true',
  328. bodyText: '<div id="dev2" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_22" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_23" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_24" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_efireDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_24" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  329. }
  330. var devypxy3_config = {
  331. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">智能水表监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev3_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev3-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev3-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  332. titleColor: '#ffffff',
  333. titleIconColor: '#ffffff',
  334. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  335. backgroundColor: 'rgba(23,21,57,0.2)',
  336. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  337. border: '1px solid rgba(0,123,255,0.3)',
  338. borderRadius: '10px',
  339. position: 'absolute',
  340. width: 320,
  341. height: 100,
  342. top: 499,
  343. left: 50,
  344. zIndex: 200,
  345. floding: 'true',
  346. bodyText: '<div id="dev3" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px"><tr><td>已处理:</td><td id="device_count_num_32" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_33" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_34" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_waterDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_34" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  347. }
  348. var devypxy4_config = {
  349. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">智能消火栓监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev4_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev4-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev4-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  350. titleColor: '#ffffff',
  351. titleIconColor: '#ffffff',
  352. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  353. backgroundColor: 'rgba(23,21,57,0.2)',
  354. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  355. border: '1px solid rgba(0,123,255,0.3)',
  356. borderRadius: '10px',
  357. position: 'absolute',
  358. width: 320,
  359. height: 100,
  360. top: 659,
  361. left: 50,
  362. zIndex: 200,
  363. floding: 'true',
  364. bodyText: '<div id="dev4" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px;"><tr><td>已处理:</td><td id="device_count_num_42" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_43" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_44" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;" onclick="show_all_waterDevice()"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_44" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  365. }
  366. var devypxy5_config = {
  367. title: '<table><tr><td style="width:145px;overflow:hidden;font-weight:bold;">智能井盖监控设备</td><td><table border=0 style="font-weight:normal;font-size:9px;margin-top:3px;"><tr><td><div style="width:45px;text-align:right;">设备数:</div></td><td><div id="dev5_count" style="color:#31e9ff;width:30px;"></div></td><td><div id="dev5-title-hiden" style="display:none;font-size:9px;text-align:right;">待处理:</div></td><td><div id="dev5-label-hidden" style="display:none;"></div></td></tr></table></td></tr></table>',
  368. titleColor: '#ffffff',
  369. titleIconColor: '#ffffff',
  370. titleBackgroundColor: 'rgba(0,0,0,0.1)',
  371. backgroundColor: 'rgba(23,21,57,0.2)',
  372. backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))',
  373. border: '1px solid rgba(0,123,255,0.3)',
  374. borderRadius: '10px',
  375. position: 'absolute',
  376. width: 320,
  377. height: 100,
  378. top: 819,
  379. left: 50,
  380. zIndex: 200,
  381. floding: 'true',
  382. bodyText: '<div id="dev5" style="font-size:9px;font-weight:normal;"><table border="0" style="border:0px solid #000;width:300px;"><tr><td>已处理:</td><td id="device_count_num_52" class="device_confirm_num1"></td><td>待处理:</td><td id="device_count_num_53" class="device_confirm_num2"></td><td>处置率:</td><td id="device_count_num_54" class="device_confirm_num3"></td></tr><tr><td colspan=6 style="height:28px;"><div style="border:0px solid #000;border-radius:3px;width:300px;height:6px;background-color:rgba(255,255,255,0.1);"><div id="device_confirm_54" style="border:0px solid #00a7d1;margin:0px;padding:0px;border-radius:3px;height:6px;width:300px;background-color:#00a7d1"></div></div></td></tr></table></div>'
  383. }
  384. var close_alert = function() {
  385. removeDIV("rt_alarm_alert");
  386. }
  387. var initWebSocket = function() {
  388. try {
  389. if (typeof MozWebSocket == 'function')
  390. WebSocket = MozWebSocket;
  391. if (websocket && websocket.readyState == 1)
  392. websocket.close();
  393. websocket = new WebSocket(wsUri);
  394. websocket.onopen = function(evt) {
  395. var json = {};
  396. json.agentid = $("#V_LOGINNAME").val();
  397. console.log("Connected.");
  398. (function() {})()
  399. websocket.send(JSON.stringify(json));
  400. };
  401. websocket.onclose = function(evt) {
  402. console.log("DisConnected.");
  403. (function() {})()
  404. initWebSocket();
  405. };
  406. websocket.onmessage = function(evt) {
  407. console.log("Received:", evt.data);
  408. var jData = eval('(' + evt.data + ')');
  409. if (jData.dwtype != undefined) {
  410. if (document.getElementById('rt_alarm_alert') != undefined)
  411. removeDIV('rt_alarm_alert');
  412. var alarm_alert = new UNote();
  413. alarm_alert.create("rt_alarm_alert", "container", alarm_alert_config);
  414. var Icon = document.createElement('img');
  415. Icon.width = '32';
  416. Icon.height = '32';
  417. Icon.src = "../../res/img/icons/alarm_tab_04.gif"
  418. if (jData.detype == 1) {
  419. Icon.src = "../../res/img/icons/alarm_tab_01.gif"
  420. } else if (jData.dwtype == 2) {
  421. Icon.src = "../../res/img/icons/alarm_tab_03.gif"
  422. } else if (jData.dwtype == 6) {
  423. Icon.src = "../../res/img/icons/alarm_tab_04.gif"
  424. } else if (jData.dwtype == 7) {
  425. Icon.src = "../../res/img/icons/alarm_tab_02.gif"
  426. } else if (jData.dwtype == 16) {
  427. Icon.src = "../../res/img/icons/alarm_tab_05.gif"
  428. }
  429. document.getElementById("rt_alarm_alert_icon").innerHTML = "";
  430. document.getElementById("rt_alarm_alert_icon").appendChild(Icon);
  431. document.getElementById("rt_alarm_alert_title").innerHTML = jData.evtname;
  432. document.getElementById("alarm_time").innerHTML = jData.time;
  433. document.getElementById("alarm_company").innerHTML = jData.company;
  434. document.getElementById("alarm_device").innerHTML = jData.devicename;
  435. alarm_alert.show();
  436. $("#rt_alarm_alert").animate({
  437. bottom: '0px'
  438. });
  439. }
  440. };
  441. websocket.onerror = function(evt) {
  442. console.log("Error:", evt.data);
  443. (function() {})()
  444. };
  445. } catch (exception) {
  446. console.log("Exception:", exception);
  447. (function() {})()
  448. }
  449. }
  450. var toDecimal = function(x) {
  451. var f = parseFloat(x);
  452. if (isNaN(f)) {
  453. return;
  454. }
  455. f = Math.round(x * 100) / 100;
  456. return f;
  457. }
  458. var bigger_mouseover = function() {
  459. $("#map_btn_bigger").removeClass('map_btn_bigger_off');
  460. $("#map_btn_bigger").addClass('map_btn_bigger_on');
  461. }
  462. var bigger_mouseout = function() {
  463. $("#map_btn_bigger").removeClass('map_btn_bigger_on');
  464. $("#map_btn_bigger").addClass('map_btn_bigger_off');
  465. }
  466. var bigger_click = function() {
  467. map.zoomIn();
  468. }
  469. var smaller_mouseover = function() {
  470. $("#map_btn_smaller").removeClass('map_btn_smaller_off');
  471. $("#map_btn_smaller").addClass('map_btn_smaller_on');
  472. }
  473. var smaller_mouseout = function() {
  474. $("#map_btn_smaller").removeClass('map_btn_smaller_on');
  475. $("#map_btn_smaller").addClass('map_btn_smaller_off');
  476. }
  477. var smaller_click = function() {
  478. map.zoomOut();
  479. }
  480. var shower_mouseover = function() {
  481. if (!LabelShow) {
  482. $("#map_btn_showlaebl").removeClass('map_btn_showlaebl_off');
  483. $("#map_btn_showlaebl").addClass('map_btn_showlaebl_on');
  484. }
  485. }
  486. var shower_mouseout = function() {
  487. if (!LabelShow) {
  488. $("#map_btn_showlaebl").removeClass('map_btn_showlaebl_on');
  489. $("#map_btn_showlaebl").addClass('map_btn_showlaebl_off');
  490. }
  491. }
  492. var shower_click = function() {
  493. LabelShow = !LabelShow;
  494. if (LabelShow) {
  495. $("#map_btn_showlaebl").removeClass('map_btn_showlaebl_on');
  496. $("#map_btn_showlaebl").addClass('map_btn_hidelabel');
  497. $(".info").removeClass('hiden');
  498. $(".info").addClass('shown');
  499. } else {
  500. $("#map_btn_showlaebl").removeClass('map_btn_hidelabel');
  501. $("#map_btn_showlaebl").addClass('map_btn_showlaebl_on');
  502. $(".info").removeClass('shown');
  503. $(".info").addClass('hiden');
  504. }
  505. }
  506. var left_mouseover = function() {
  507. $("#map_btn_left").removeClass('map_btn_left_off');
  508. $("#map_btn_left").addClass('map_btn_left_on');
  509. }
  510. var left_mouseout = function() {
  511. $("#map_btn_left").removeClass('map_btn_left_on');
  512. $("#map_btn_left").addClass('map_btn_left_off');
  513. }
  514. var left_click = function() {
  515. rotation = map.getRotation();
  516. rotation -= 5;
  517. if (rotation < 0)
  518. rotation = 360 + rotation;
  519. map.setRotation(rotation);
  520. draw_all();
  521. }
  522. var right_mouseover = function() {
  523. $("#map_btn_right").removeClass('map_btn_right_off');
  524. $("#map_btn_right").addClass('map_btn_right_on');
  525. }
  526. var right_mouseout = function() {
  527. $("#map_btn_right").removeClass('map_btn_right_on');
  528. $("#map_btn_right").addClass('map_btn_right_off');
  529. }
  530. var right_click = function() {
  531. rotation = map.getRotation();
  532. rotation += 5;
  533. if (rotation > 360)
  534. rotation = rotation - 360;
  535. map.setRotation(rotation);
  536. draw_all();
  537. }
  538. var higher_mouseover = function() {
  539. $("#map_btn_high").removeClass('map_btn_high_off');
  540. $("#map_btn_high").addClass('map_btn_high_on');
  541. }
  542. var higher_mouseout = function() {
  543. $("#map_btn_high").removeClass('map_btn_high_on');
  544. $("#map_btn_high").addClass('map_btn_high_off');
  545. }
  546. var higher_click = function() {
  547. var pitch = map.getPitch();
  548. pitch -= 5;
  549. if (pitch < 0)
  550. pitch = 0;
  551. map.setPitch(pitch);
  552. }
  553. var lower_mouseover = function() {
  554. $("#map_btn_low").removeClass('map_btn_low_off');
  555. $("#map_btn_low").addClass('map_btn_low_on');
  556. }
  557. var lower_mouseout = function() {
  558. $("#map_btn_low").removeClass('map_btn_low_on');
  559. $("#map_btn_low").addClass('map_btn_low_off');
  560. }
  561. var lower_click = function() {
  562. var pitch = map.getPitch();
  563. pitch += 5;
  564. if (pitch > 83)
  565. pitch = 83;
  566. map.setPitch(pitch);
  567. }
  568. var clear_search = function() {
  569. SearchList = null
  570. show_list_cur = 0;
  571. $("#fp_backbtn").css("display", "none");
  572. firstDraw = true;
  573. if ($("#search_company").val().length > 0) {
  574. $("#search_company").val('');
  575. $("#company_code").val('');
  576. $("#saerch_company_list").html('');
  577. }
  578. if ((!LabelShow) && (StatusStore.length > 0)) {
  579. for (var i = 0; i < StatusStore.length; i++) {
  580. $("#label_" + StatusStore[i].company_code).css('display', 'none');
  581. }
  582. }
  583. }
  584. var update_companyList = function() {
  585. $("#saerch_company_list").html('');
  586. SearchList = null
  587. show_list_cur = 0;
  588. if ($("#search_company").val().length > 0) {
  589. var query = new Object();
  590. query.V_LOGINNAME = V_LOGINNAME;
  591. query.V_PASSWORD = V_PASSWORD;
  592. query.V_COMPANY_NAME = $("#search_company").val();
  593. $.ajax({
  594. type: 'POST',
  595. url: baseUrl + "/iot/company/getList",
  596. data: {
  597. queryJson: Ext.JSON.encode(query),
  598. sort: "[{property:'V_COMPANY_NAME',direction:'ASC'}]"
  599. },
  600. success: function(result) {
  601. var json = eval('(' + result + ')');
  602. if (json.action == 'getCompanyList') {
  603. var list = json.RESULT;
  604. if (list.length > 0) {
  605. SearchList = list;
  606. var saerch_company_list = document.getElementById('saerch_company_list');
  607. var table = document.createElement('table');
  608. table.border = '0';
  609. table.style.width = '300px';
  610. table.style.border = '0px solid #000';
  611. saerch_company_list.appendChild(table);
  612. for (var i = 0; i < list.length; i++) {
  613. var tr = document.createElement('tr');
  614. tr.style.border = '0px solid #000';
  615. table.appendChild(tr);
  616. var td = document.createElement('td');
  617. td.id = 'company_code_list_' + list[i].V_COMPANY_CODE;
  618. td.company_code = list[i].V_COMPANY_CODE;
  619. td.style.border = '1px solid rgba(255,255,255,0.0)';
  620. td.style.background = 'rgba(255,255,255,0.3)';
  621. td.style.fontSize = '14px';
  622. td.style.cursor = "pointer";
  623. td.innerHTML = list[i].V_COMPANY_NAME;
  624. tr.appendChild(td);
  625. $("#company_code_list_" + list[i].V_COMPANY_CODE).mouseover(function() {
  626. $(this).css({ "border": "1px solid rgba(64,85,98,0.7)", "background": "rgba(64,85,98,0.7)", "color": "#ffff00", "cursor": "pointer", "font-size": "14px" });
  627. $("#label_" + this.company_code).css('display', 'block');
  628. show_list_cur = i + 1;
  629. });
  630. $("#company_code_list_" + list[i].V_COMPANY_CODE).mouseout(function() {
  631. $(this).css({ "border": "1px solid rgba(255,255,255,0.0)", "background": "rgba(255,255,255,0.3)", "color": "#ffffff", "cursor": "pointer", "font-size": "14px" });
  632. if (!LabelShow)
  633. $("#label_" + this.company_code).css('display', 'none');
  634. });
  635. $("#company_code_list_" + list[i].V_COMPANY_CODE).click(function(e) {
  636. showBuilding(this.company_code);
  637. });
  638. }
  639. }
  640. }
  641. }
  642. });
  643. }
  644. }
  645. var key_fun = function(event) {
  646. var x = (navigator.appname == "Netscape") ? event.which : window.event.keyCode;
  647. if (x == 38) {
  648. if (SearchList != null) {
  649. if ((show_list_cur > 0) && (show_list_cur <= SearchList.length)) {
  650. show_list_cur--;
  651. for (var i = 0; i < SearchList.length; i++) {
  652. $("#company_code_list_" + SearchList[i].V_COMPANY_CODE).css({ "border": "1px solid rgba(255,255,255,0.0)", "background": "rgba(255,255,255,0.3)", "color": "#ffffff", "cursor": "pointer", "font-size": "14px" });
  653. var div = document.getElementById("label_" + SearchList[i].V_COMPANY_CODE);
  654. if (!LabelShow) {
  655. if (div != undefined)
  656. div.style.display = 'none';
  657. }
  658. if (i == (show_list_cur - 1)) {
  659. $("#company_code_list_" + SearchList[i].V_COMPANY_CODE).css({ "border": "1px solid rgba(64,85,98,0.7)", "background": "rgba(64,85,98,0.7)", "color": "#ffff00", "cursor": "pointer", "font-size": "14px" });
  660. if (div != undefined)
  661. div.style.display = 'block';
  662. }
  663. }
  664. }
  665. }
  666. } else if (x == 40) {
  667. if (SearchList != null) {
  668. if ((show_list_cur >= 0) && (show_list_cur < SearchList.length)) {
  669. show_list_cur++;
  670. for (var i = 0; i < SearchList.length; i++) {
  671. $("#company_code_list_" + SearchList[i].V_COMPANY_CODE).css({ "border": "1px solid rgba(255,255,255,0.0)", "background": "rgba(255,255,255,0.3)", "color": "#ffffff", "cursor": "pointer", "font-size": "14px" });
  672. var div = document.getElementById("label_" + SearchList[i].V_COMPANY_CODE);
  673. if (!LabelShow) {
  674. if (div != undefined)
  675. div.style.display = 'none';
  676. }
  677. if (i == (show_list_cur - 1)) {
  678. $("#company_code_list_" + SearchList[i].V_COMPANY_CODE).css({ "border": "1px solid rgba(64,85,98,0.7)", "background": "rgba(64,85,98,0.7)", "color": "#ffff00", "cursor": "pointer", "font-size": "14px" });
  679. if (div != undefined)
  680. div.style.display = 'block';
  681. }
  682. }
  683. }
  684. }
  685. } else if (x == 13) {
  686. if (SearchList != null) {
  687. if ((show_list_cur >= 0) && (show_list_cur <= SearchList.length)) {
  688. showBuilding(SearchList[show_list_cur - 1].V_COMPANY_CODE);
  689. }
  690. }
  691. } else if (x == 27) {
  692. clear_search();
  693. }
  694. }
  695. var chk_lat = function(lat) {
  696. if (lat < 30)
  697. return false;
  698. if (lat > 32)
  699. return false;
  700. return true;
  701. }
  702. var chk_lng = function(lng) {
  703. if (lng < 110)
  704. return false;
  705. if (lng > 135)
  706. return false;
  707. return true;
  708. }
  709. var showBuilding = function(company_code) {
  710. if ((StatusStore != null) && (StatusStore.length > 0)) {
  711. for (var i = 0; i < StatusStore.length; i++) {
  712. if (StatusStore[i].company_code == company_code) {
  713. map.setCenter(new AMap.LngLat(StatusStore[i].lng, StatusStore[i].lat, true));
  714. map.setPitch(83);
  715. map.setZoom(18);
  716. $("#data_number_11").html(StatusStore[i].d1a);
  717. $("#data_number_12").html(StatusStore[i].d1a - StatusStore[i].d1ac);
  718. $("#data_number_21").html(StatusStore[i].d7a);
  719. $("#data_number_22").html(StatusStore[i].d7a - StatusStore[i].d7ac);
  720. $("#data_number_31").html(StatusStore[i].d2a);
  721. $("#data_number_32").html(StatusStore[i].d2a - StatusStore[i].d2ac);
  722. if (V_LOGINNAME == 'ypxy') {
  723. var query = new Object();
  724. query.V_LOGINNAME = V_LOGINNAME;
  725. query.V_PASSWORD = V_PASSWORD;
  726. query.dwtype = '2';
  727. query.COMMSTATUS = 'NO';
  728. if ((company_code != null) && (company_code != 'null') && (company_code.length > 0))
  729. query.company_code = company_code;
  730. $.ajax({
  731. type: 'POST',
  732. url: baseUrl + "iot/alarm/view/getConfirmStatusByDays",
  733. data: {
  734. queryJson: Ext.JSON.encode(query)
  735. },
  736. success: function(result) {
  737. var json = eval('(' + result + ')');
  738. if (json.action == 'getConfirmStatusByDays') {
  739. if (json.check == 'true') {
  740. ConfirmStore = json.RESULT;
  741. if (json.company_name != null)
  742. companyName = json.company_name;
  743. else
  744. companyName = null;
  745. for (var i = 0; i < ConfirmStore.length; i++) {
  746. if (ConfirmStore[i].id == 'water_alarm') {
  747. $("#data_number_41").html(ConfirmStore[i].count);
  748. $("#data_number_42").html(ConfirmStore[i].count - ConfirmStore[i].sum);
  749. draw_pie('data_pie_4', ConfirmStore[i].count, ConfirmStore[i].sum);
  750. // $("#device_count_num_41").html(StatusStore[i].d6);
  751. $("#device_count_num_42").html(ConfirmStore[i].count);
  752. $("#device_count_num_43").html(ConfirmStore[i].count - ConfirmStore[i].sum);
  753. if (ConfirmStore[i].count == 0)
  754. $("#device_count_num_44").html('100%');
  755. else
  756. $("#device_count_num_44").html(toDecimal(ConfirmStore[i].sum * 100 / ConfirmStore[i].count) + '%');
  757. if (ConfirmStore[i].count != 0)
  758. $("#device_confirm_44").css('width', (280 * ConfirmStore[i].sum / ConfirmStore[i].count) + 'px');
  759. else
  760. $("#device_confirm_44").css('width', '280px');
  761. $("#data_number_51").html(0);
  762. $("#data_number_52").html(0);
  763. draw_pie('data_pie_5', 0, 0);
  764. $("#device_count_num_52").html(0);
  765. $("#device_count_num_53").html(0);
  766. $("#device_count_num_54").html('100%');
  767. $("#device_confirm_54").css('width', '280px');
  768. }
  769. }
  770. } else {
  771. Ext.Msg.alert('错误信息', '访问权限错误,请重新登录', function() {
  772. window.parent.document.location = baseUrl;
  773. });
  774. }
  775. }
  776. }
  777. });
  778. } else {
  779. $("#data_number_41").html(StatusStore[i].d6a);
  780. $("#data_number_42").html(StatusStore[i].d6a - StatusStore[i].d6ac);
  781. draw_pie('data_pie_4', StatusStore[i].d6a, StatusStore[i].d6ac);
  782. $("#device_count_num_41").html(StatusStore[i].d6);
  783. $("#device_count_num_42").html(StatusStore[i].d6oc);
  784. $("#device_count_num_43").html(StatusStore[i].d6o - StatusStore[i].d6oc);
  785. if (StatusStore[i].d6o == 0)
  786. $("#device_count_num_44").html('100%');
  787. else
  788. $("#device_count_num_44").html(toDecimal(StatusStore[i].d6oc * 100 / StatusStore[i].d6o) + '%');
  789. if (StatusStore[i].d6o != 0)
  790. $("#device_confirm_44").css('width', (280 * StatusStore[i].d6oc / StatusStore[i].d6o) + 'px');
  791. else
  792. $("#device_confirm_44").css('width', '280px');
  793. }
  794. draw_pie('data_pie_1', StatusStore[i].d1a, StatusStore[i].d1ac);
  795. draw_pie('data_pie_2', StatusStore[i].d7a, StatusStore[i].d7ac);
  796. draw_pie('data_pie_3', StatusStore[i].d2a, StatusStore[i].d2ac);
  797. $("#device_count_num_11").html(StatusStore[i].d1);
  798. $("#device_count_num_12").html(StatusStore[i].d1oc);
  799. $("#device_count_num_13").html(StatusStore[i].d1o - StatusStore[i].d1oc);
  800. if (StatusStore[i].d1o == 0)
  801. $("#device_count_num_14").html('100%');
  802. else
  803. $("#device_count_num_14").html(toDecimal(StatusStore[i].d1oc * 100 / StatusStore[i].d1o) + '%');
  804. $("#device_count_num_21").html(StatusStore[i].d7);
  805. $("#device_count_num_22").html(StatusStore[i].d7oc);
  806. $("#device_count_num_23").html(StatusStore[i].d7o - StatusStore[i].d7oc);
  807. if (StatusStore[i].d7o == 0)
  808. $("#device_count_num_24").html('100%');
  809. else
  810. $("#device_count_num_24").html(toDecimal(StatusStore[i].d7oc * 100 / StatusStore[i].d7o) + '%');
  811. $("#device_count_num_31").html(StatusStore[i].d2);
  812. $("#device_count_num_32").html(StatusStore[i].d2oc);
  813. $("#device_count_num_33").html(StatusStore[i].d2o - StatusStore[i].d2oc);
  814. if (StatusStore[i].d2o == 0)
  815. $("#device_count_num_34").html('100%');
  816. else
  817. $("#device_count_num_34").html(toDecimal(StatusStore[i].d2oc * 100 / StatusStore[i].d2o) + '%');
  818. if (StatusStore[i].d1o != 0) {
  819. $("#device_confirm_14").css('width', (280 * StatusStore[i].d1oc / StatusStore[i].d1o) + 'px');
  820. } else
  821. $("#device_confirm_14").css('width', '280px');
  822. if (StatusStore[i].d7o != 0)
  823. $("#device_confirm_24").css('width', (280 * StatusStore[i].d7oc / StatusStore[i].d7o) + 'px');
  824. else
  825. $("#device_confirm_24").css('width', '280px');
  826. if (StatusStore[i].d2o != 0)
  827. $("#device_confirm_34").css('width', (280 * StatusStore[i].d2oc / StatusStore[i].d2o) + 'px');
  828. else
  829. $("#device_confirm_34").css('width', '280px');
  830. $("#label_" + company_code).css('display', 'block');
  831. break;
  832. }
  833. }
  834. }
  835. }
  836. var clear_detail_info = function() {
  837. var d0 = 0,
  838. d0o = 0,
  839. d0oc = 0,
  840. d0a = 0,
  841. d0ac = 0;
  842. var d1 = 0,
  843. d1o = 0,
  844. d1oc = 0,
  845. d1a = 0,
  846. d1ac = 0;
  847. var d2 = 0,
  848. d2o = 0,
  849. d2oc = 0,
  850. d2a = 0,
  851. d2ac = 0;
  852. var d6 = 0,
  853. d6o = 0,
  854. d6oc = 0,
  855. d6a = 0,
  856. d6ac = 0;
  857. var d7 = 0,
  858. d7o = 0,
  859. d7oc = 0,
  860. d7a = 0,
  861. d7ac = 0;
  862. var detail_info = document.getElementById('detail_info');
  863. var parent = document.getElementById('container');
  864. if (detail_info != undefined) {
  865. parent.removeChild(detail_info);
  866. current_company_code = "";
  867. for (var i = 0; i < StatusStore.length; i++) {
  868. var obj = StatusStore[i];
  869. d1 += obj.d1;
  870. d1o += obj.d1o;
  871. d1a += obj.d1a;
  872. d1oc += obj.d1oc;
  873. d1ac += obj.d1ac;
  874. d2 += obj.d2;
  875. d2o += obj.d2o;
  876. d2a += obj.d2a;
  877. d2oc += obj.d2oc;
  878. d2ac += obj.d2ac;
  879. d6 += obj.d6;
  880. d6o += obj.d6o;
  881. d6a += obj.d6a;
  882. d6oc += obj.d6oc;
  883. d6ac += obj.d6ac;
  884. d7 += obj.d7;
  885. d7o += obj.d7o;
  886. d7a += obj.d7a;
  887. d7oc += obj.d7oc;
  888. d7ac += obj.d7ac;
  889. }
  890. $("#data_number_11").html(d1a);
  891. $("#data_number_12").html(d1a - d1ac);
  892. $("#data_number_21").html(d7a);
  893. $("#data_number_22").html(d7a - d7ac);
  894. $("#data_number_31").html(d2a);
  895. $("#data_number_32").html(d2a - d2ac);
  896. if (V_LOGINNAME == 'ypxy') {
  897. var query = new Object();
  898. query.V_LOGINNAME = V_LOGINNAME;
  899. query.V_PASSWORD = V_PASSWORD;
  900. query.dwtype = '2';
  901. query.COMMSTATUS = 'NO';
  902. if ((company_code != null) && (company_code != 'null') && (company_code.length > 0))
  903. query.company_code = company_code;
  904. $.ajax({
  905. type: 'POST',
  906. url: baseUrl + "iot/alarm/view/getConfirmStatusByDays",
  907. data: {
  908. queryJson: Ext.JSON.encode(query)
  909. },
  910. success: function(result) {
  911. var json = eval('(' + result + ')');
  912. if (json.action == 'getConfirmStatusByDays') {
  913. if (json.check == 'true') {
  914. ConfirmStore = json.RESULT;
  915. if (json.company_name != null)
  916. companyName = json.company_name;
  917. else
  918. companyName = null;
  919. for (var i = 0; i < ConfirmStore.length; i++) {
  920. if (ConfirmStore[i].id == 'water_alarm') {
  921. $("#data_number_41").html(ConfirmStore[i].count);
  922. $("#data_number_42").html(ConfirmStore[i].count - ConfirmStore[i].sum);
  923. draw_pie('data_pie_4', ConfirmStore[i].count, ConfirmStore[i].sum);
  924. // $("#device_count_num_41").html(StatusStore[i].d6);
  925. $("#device_count_num_42").html(ConfirmStore[i].count);
  926. $("#device_count_num_43").html(ConfirmStore[i].count - ConfirmStore[i].sum);
  927. if (ConfirmStore[i].count == 0)
  928. $("#device_count_num_44").html('100%');
  929. else
  930. $("#device_count_num_44").html(toDecimal(ConfirmStore[i].sum * 100 / ConfirmStore[i].count) + '%');
  931. if (ConfirmStore[i].count != 0)
  932. $("#device_confirm_44").css('width', (280 * ConfirmStore[i].sum / ConfirmStore[i].count) + 'px');
  933. else
  934. $("#device_confirm_44").css('width', '280px');
  935. $("#data_number_51").html(0);
  936. $("#data_number_52").html(0);
  937. draw_pie('data_pie_5', 0, 0);
  938. $("#device_count_num_52").html(0);
  939. $("#device_count_num_53").html(0);
  940. $("#device_count_num_54").html('100%');
  941. $("#device_confirm_54").css('width', '280px');
  942. }
  943. }
  944. } else {
  945. Ext.Msg.alert('错误信息', '访问权限错误,请重新登录', function() {
  946. window.parent.document.location = baseUrl;
  947. });
  948. }
  949. }
  950. }
  951. });
  952. } else {
  953. $("#data_number_41").html(d6a);
  954. $("#data_number_42").html(d6a - d6ac);
  955. draw_pie('data_pie_4', d6a, d6ac);
  956. $("#device_count_num_41").html(d6);
  957. $("#device_count_num_42").html(d6oc);
  958. $("#device_count_num_43").html(d6o - d6oc);
  959. if (d6o == 0)
  960. $("#device_count_num_44").html('100%');
  961. else
  962. $("#device_count_num_44").html(toDecimal(d6oc * 100 / d6o) + '%');
  963. if (d6o != 0)
  964. $("#device_confirm_44").css('width', (280 * d6oc / d6o) + 'px');
  965. else
  966. $("#device_confirm_44").css('width', '280px');
  967. }
  968. draw_pie('data_pie_1', d1a, d1ac);
  969. draw_pie('data_pie_2', d7a, d7ac);
  970. draw_pie('data_pie_3', d2a, d2ac);
  971. $("#device_count_num_11").html(d1);
  972. $("#device_count_num_12").html(d1oc);
  973. $("#device_count_num_13").html(d1o - d1oc);
  974. if (d1o == 0)
  975. $("#device_count_num_14").html('100%');
  976. else
  977. $("#device_count_num_14").html(toDecimal(d1oc * 100 / d1o) + '%');
  978. $("#device_count_num_21").html(d7);
  979. $("#device_count_num_22").html(d7oc);
  980. $("#device_count_num_23").html(d7o - d7oc);
  981. if (d7o == 0)
  982. $("#device_count_num_24").html('100%');
  983. else
  984. $("#device_count_num_24").html(toDecimal(d7oc * 100 / d7o) + '%');
  985. $("#device_count_num_31").html(d2);
  986. $("#device_count_num_32").html(d2oc);
  987. $("#device_count_num_33").html(d2o - d2oc);
  988. if (d2o == 0)
  989. $("#device_count_num_34").html('100%');
  990. else
  991. $("#device_count_num_34").html(toDecimal(d2oc * 100 / d2o) + '%');
  992. if (d1o != 0) {
  993. $("#device_confirm_14").css('width', (280 * d1oc / d1o) + 'px');
  994. } else
  995. $("#device_confirm_14").css('width', '280px');
  996. if (d7o != 0)
  997. $("#device_confirm_24").css('width', (280 * d7oc / d7o) + 'px');
  998. else
  999. $("#device_confirm_24").css('width', '280px');
  1000. if (d2o != 0)
  1001. $("#device_confirm_34").css('width', (280 * d2oc / d2o) + 'px');
  1002. else
  1003. $("#device_confirm_34").css('width', '280px');
  1004. $(".alarm_tab_area").remove();
  1005. if ((AlarmStore != null) && (AlarmStore.length > 0)) {
  1006. var parent = document.getElementById('container');
  1007. AlarmStore.sort(alarmSortByTime);
  1008. var area = document.createElement('div');
  1009. area.id = 'alarm_tab_area';
  1010. area.setAttribute('class', 'alarm_tab_area');
  1011. parent.appendChild(area);
  1012. for (var i = 0; i < AlarmStore.length; i++) {
  1013. if (i >= 6)
  1014. break;
  1015. var tab = document.createElement('div');
  1016. tab.id = 'alarm_tab_' + (i + 1);
  1017. tab.setAttribute('class', 'alarm_tab');
  1018. tab.setAttribute('onclick', (AlarmStore[i].dwtype == 1) ? 'show_all_fireAlarm()' :
  1019. (AlarmStore[i].dwtype == 2) ? 'show_all_waterAlarm()' :
  1020. (AlarmStore[i].dwtype == 5) ? 'show_all_waterAlarm()' :
  1021. (AlarmStore[i].dwtype == 6) ? 'show_all_rtuAlarm()' :
  1022. (AlarmStore[i].dwtype == 7) ? 'show_all_efireAlarm()' : '#');
  1023. tab.style.top = (120 * i) + 'px';
  1024. if (($(document).innerHeight() - 205) > (120 * (i + 1)))
  1025. $('#alarm_tab_area').css('height', ($(document).innerHeight() - 205) + 'px');
  1026. else
  1027. $('#alarm_tab_area').css('height', ($(document).innerHeight() - 205) + 'px');
  1028. area.appendChild(tab);
  1029. var title = document.createElement('div');
  1030. title.id = 'alarm_tab_title_' + (i + 1);
  1031. title.setAttribute('class', 'alarm_tab_title');
  1032. title.innerHTML = (AlarmStore[i].dwtype == 1) ? '火警监测报告' :
  1033. (AlarmStore[i].dwtype == 2) ? '水系统监测报告' :
  1034. (AlarmStore[i].dwtype == 5) ? '水系统监测报告' :
  1035. (AlarmStore[i].dwtype == 6) ? 'RTU监测报告' :
  1036. (AlarmStore[i].dwtype == 7) ? '电气火灾监测报告' : '其他报告';
  1037. tab.appendChild(title);
  1038. var time_label = document.createElement('div');
  1039. time_label.id = 'alarm_tab_time_' + (i + 1);
  1040. time_label.setAttribute('class', 'alarm_tab_time');
  1041. time_label.innerHTML = AlarmStore[i].time;
  1042. tab.appendChild(time_label);
  1043. var data = document.createElement('div');
  1044. data.id = "alarm_tab_data_" + (i + 1);
  1045. data.setAttribute('class', 'alarm_tab_data');
  1046. data.innerHTML = AlarmStore[i].company_name + ' ' + AlarmStore[i].data;
  1047. tab.appendChild(data);
  1048. var icon = document.createElement('img');
  1049. icon.setAttribute('class', 'alarm_tab_icon');
  1050. icon.height = '66';
  1051. icon.width = '66';
  1052. icon.src = baseUrl + 'res/img/icons/' + ((AlarmStore[i].dwtype == 1) ? 'alarm_tab_01.gif' :
  1053. (AlarmStore[i].dwtype == 2) ? 'alarm_tab_03.gif' :
  1054. (AlarmStore[i].dwtype == 5) ? 'alarm_tab_03.gif' :
  1055. (AlarmStore[i].dwtype == 6) ? 'alarm_tab_04.gif' :
  1056. (AlarmStore[i].dwtype == 7) ? 'alarm_tab_02.gif' : 'alarm_tab_04.gif');
  1057. // var icon = document.createElement('div');
  1058. // icon.id = "alarm_tab_icon_"+(i+1);
  1059. // icon.setAttribute('class',(AlarmStore[i].dwtype==1)?'alarm_tab_icon alarm_icon_01':
  1060. // (AlarmStore[i].dwtype==2)?'alarm_tab_icon alarm_icon_03':
  1061. // (AlarmStore[i].dwtype==5)?'alarm_tab_icon alarm_icon_03':
  1062. // (AlarmStore[i].dwtype==6)?'alarm_tab_icon alarm_icon_04':
  1063. // (AlarmStore[i].dwtype==7)?'alarm_tab_icon alarm_icon_02':'alarm_tab_icon alarm_icon_04');
  1064. tab.appendChild(icon);
  1065. }
  1066. }
  1067. }
  1068. }
  1069. var showInfo = function(e) {
  1070. var pixel = e.pixel;
  1071. var company_code = e.target.getExtData().company_code;
  1072. var detail_info;
  1073. var parent = document.getElementById('container')
  1074. for (var i = 0; i < StatusStore.length; i++) {
  1075. if (StatusStore[i].company_code == company_code) {
  1076. if (current_company_code == company_code)
  1077. return;
  1078. clear_detail_info();