index.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title>南方电网公司应急指挥平台</title>
  7. <!--框架必需start-->
  8. <%@include file="include.jsp" %>
  9. <!--浮动面板start-->
  10. <script type="text/javascript" src="../scripts/qui/libs/js/popup/floatPanel.js"></script>
  11. <!--浮动面板end-->
  12. <!-- 详细信息的js -->
  13. <script type="text/javascript" src="../scripts/business/monitor/togetherAnalysis/tagDetailInfo.js"></script>
  14. <script type="text/javascript" src="../scripts/business/monitor/lwquery/tagInfo.js"></script>
  15. <!-- 详细信息的js -->
  16. <!-- 地图放大缩小 -->
  17. <script type="text/javascript" src="../scripts/mapCommon.js"></script>
  18. <style type="text/css">
  19. #head{
  20. background-color:#E6E6FA;
  21. margin:0;
  22. }
  23. #content{
  24. background:#CCCCCC;
  25. margin:0;
  26. }
  27. </style>
  28. <script type="text/javascript">
  29. /*
  30. *初始化函数
  31. */
  32. function initComplete(){
  33. $("#map").height($(window).height());//map页面高度等于浏览器内容页面高度减去菜单栏高度
  34. $("#FlexProject").height($(window).height());
  35. $("#emb").height($(window).height());//设置地图高度为浏览器下窗口可见高度
  36. }
  37. //var mapLoaded = false;
  38. function showAdminRegion(){
  39. //mapLoaded = true;
  40. flexElement = getSWF();
  41. flexElement.showAdminRegion(top.com.sinosoft.lz.system.user.LoginInfo.getUserDistCode(),1);
  42. top.mapLoaded = true;
  43. }
  44. //获取要标注的地图对象
  45. function getSWF() {
  46. var flexElement;
  47. if (navigator.appName.indexOf("Microsoft") != -1) {
  48. flexElement = FlexProject;
  49. }else {
  50. flexElement = document.getElementsByTagName("embed")[0];
  51. }
  52. //监听esc
  53. document.onkeydown=function(event){
  54. var e = event || window.event || arguments.callee.caller.arguments[0];
  55. if(e && e.keyCode==27){ // 按 Esc
  56. flexElement.ESCremoveBuffer(true);
  57. }
  58. };
  59. wheel(flexElement,afterwheel,true);
  60. return flexElement;
  61. }
  62. /**
  63. * 鼠标滚轮定点放大的方法
  64. * @param obj
  65. * @param fn
  66. * @param useCapture
  67. * @return
  68. */
  69. function wheel(obj, fn ,useCapture){
  70. var mousewheelevt=(/Firefox/i.test(navigator.userAgent))? "DOMMouseScroll" : "mousewheel" ;
  71. //FF doesn't recognize mousewheel as of FF3.x
  72. if (obj.attachEvent) //if IE (and Opera depending on user setting)
  73. obj.attachEvent("on"+mousewheelevt, handler, useCapture);
  74. else if (obj.addEventListener) //WC3 browsers
  75. obj.addEventListener(mousewheelevt, handler, useCapture);
  76. function handler(event) {
  77. var delta = 0;
  78. var event = window.event || event ;
  79. var delta = event.detail ? -event.detail/3 : event.wheelDelta/120;
  80. if (event.preventDefault)
  81. event.preventDefault();
  82. event.returnValue = false;
  83. return fn.apply(obj, [event, delta,obj]);
  84. }
  85. }
  86. function afterwheel(event, delta,obj){
  87. //这个是FLEX里写的放大缩小方法
  88. obj.WheelScroll(delta);
  89. }
  90. //获取编码
  91. var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getUnitCode()+""; //部门id
  92. var P_dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getPUnitCode(); //父部门id
  93. /*
  94. *缓冲区查询
  95. */
  96. function bufferStart(){
  97. var condition = "";
  98. var distance = $("#distance_id").val();
  99. //alert(distance)
  100. $("input:checkbox[name=hobby-1]").each(function(){
  101. if($(this).attr("checked")){
  102. condition += $(this).val()+",";//获取选中的值并拼接成字符串
  103. }
  104. })
  105. if(condition==""){
  106. top.Dialog.alert("请选择查询项!");
  107. }else{
  108. condition += dept_id+","+P_dept_id;
  109. var f = getSWF();
  110. f.showCarsByCircle(distance*1000,condition);
  111. }
  112. }
  113. /**
  114. * 视频弹出框
  115. * @return
  116. */
  117. function showVideo(id){
  118. var diag = new top.Dialog();
  119. diag.Title = "视频信息";
  120. diag.URL = $.pathname() + '/page/monitor/wcsb/gpscamera.html?'+id;
  121. diag.Top="100%";//距离顶部
  122. diag.Left="100%";//距离左部
  123. diag.Modal=false;//是否显示遮罩
  124. // diag.AutoClose=5,//5秒后自动关闭
  125. diag.Width=500;
  126. diag.Height = 300;
  127. diag.ShowMaxButton=true;//最大化
  128. diag.ShowMinButton=true;//最小化
  129. diag.ShowCancelButton = false;
  130. diag.ShowOkButton = false;
  131. diag.show();
  132. }
  133. function zoomin(){//放大
  134. document.getElementById("show2").style.display="none";
  135. flexElement.activateMapNavigation("zoomin");
  136. }
  137. function zoomout(){//缩小
  138. document.getElementById("show2").style.display="none";
  139. flexElement.activateMapNavigation("zoomout");
  140. }
  141. function pan(){//平移
  142. document.getElementById("show2").style.display="none";
  143. flexElement.activateMapNavigation("pan");
  144. }
  145. function clearmap(){//清除
  146. document.getElementById("show2").style.display="none";
  147. flexElement.activateMapNavigation("clearmap");
  148. }
  149. function measureByPolygon(){//面积测量
  150. document.getElementById("show2").style.display="none";
  151. flexElement.measureByPolygon();
  152. }
  153. function measureByLine(){//距离测量
  154. document.getElementById("show2").style.display="none";
  155. flexElement.measureByLine();
  156. }
  157. function createGraphicSymbolWindow(){//图例
  158. document.getElementById("show2").style.display="none";
  159. flexElement.createGraphicSymbolWindow();
  160. }
  161. function gsMapLayerVisible(){//高速切换
  162. document.getElementById("show2").style.display="none";
  163. flexElement.gsMapLayerVisible();
  164. }
  165. function showMapWeather(){//天气预报
  166. document.getElementById("show2").style.display="none";
  167. flexElement.showMapWeather();
  168. }
  169. function zoomFull(){//全图
  170. // alert("w3");
  171. document.getElementById("show2").style.display="none";
  172. flexElement.activateMapNavigation("ViewerContainer.NAVIGATION_ZOOM_FULL");
  173. }
  174. function closeWin(){
  175. document.getElementById("show2").style.display="none";
  176. }
  177. </script>
  178. </head>
  179. <body>
  180. <!-- 地图 -->
  181. <div id="content">
  182. <div id="map" width="100%" style="background-color: #ffffff">
  183. <object id="FlexProject" width="100%"
  184. classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" name="FlexProject">
  185. <param name="movie" value="/nwyj/page/bin-release/index.swf" />
  186. <param name="quality" value="high" />
  187. <param name="bgcolor" value="#ffffff" />
  188. <param name="allowScriptAccess" value="always" />
  189. <param name="allowFullScreen" value="true" />
  190. <param name="wmode" value="transparent" />
  191. <embed src="/nwyj/page/bin-release/index.swf" width="100%" wmode="transparent" name="embed" id="emb"
  192. allowFullScreen="true" quality="high" type="application/x-shockwave-flash"></embed>
  193. </object>
  194. <div style="left: auto; top: 5px; right: 32px; bottom: auto; position: absolute; z-index: 1001;background-color:#ffffff">
  195. <!-- 设备状态监控 -->
  196. <div style="border:1px solid #c4c7cc;float:left;;display: none" id="sbjc">
  197. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  198. <div style="width:25px;">
  199. <div class="popupMenu_link">
  200. <a href="javascript:;" onclick="ssjcList('sbjc')"><img src="../images/map1/1.png" keepDefaultStyle="true" width="18" height="18" title="设备监测"/></a>
  201. </div>
  202. <div class="popupMenu_con white_con" id="show2" style="display:none;width:180px;top:25px;left:0px;">
  203. <span style="font-size:14px;background-color:#F9F9F9;border-bottom: 1px solid #76A3C1;font-weight:bold;">设备监控
  204. <font onclick="closeWin()" style=" position: absolute; z-index: 50;top: 7px;right: 4px; width: 12px; height: 12px; background: url(../images/map1/close.gif) no-repeat;border: 0;cursor: pointer;"></font>
  205. </span>
  206. <input id="jk1" type="checkbox" onclick="parent.video();"/>固定点视频</br>
  207. <input id="jk2" type="checkbox" onclick="parent.traffic();"/>交调设备</br>
  208. <input id="jk3" type="checkbox" onclick="parent.infoBoard();"/>情报板</br>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <div style="width:5px;float:left;">&nbsp;</div>
  214. <div style="border:1px solid #c4c7cc;float:left;">
  215. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  216. <a href="javascript:;" onclick="zoomin()"><img src="../images/map1/11.png" keepDefaultStyle="true" title="放大" width="18" height="18"/></a><!-- 放大 -->
  217. </div>
  218. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  219. <a href="javascript:;" onclick="zoomout()"><img src="../images/map1/12.png" keepDefaultStyle="true" title="缩小" width="18" height="18"/></a><!-- 缩小 -->
  220. </div>
  221. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  222. <a href="javascript:;" onclick="zoomFull()"><img src="../images/map1/14.png" keepDefaultStyle="true" title="全图" width="18" height="18"/></a><!-- 全图 -->
  223. </div>
  224. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  225. <a href="javascript:;" onclick="pan()"><img src="../images/map1/13.png" keepDefaultStyle="true" title="平移" width="18" height="18"/></a><!-- 平移 -->
  226. </div>
  227. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  228. <a href="javascript:;" onclick="measureByLine()"><img src="../images/map1/26.png" keepDefaultStyle="true" title="测距" width="18" height="18"/></a><!-- 测距 -->
  229. </div>
  230. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  231. <a href="javascript:;" onclick="measureByPolygon()" ><img src="../images/map1/25.png" width="18" keepDefaultStyle="true" title="测面积" height="18"/></a><!-- 测面积-->
  232. </div>
  233. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  234. <a href="javascript:;" onclick="createGraphicSymbolWindow()"><img src="../images/map1/17.png" keepDefaultStyle="true" title="图例" width="18" height="18"/></a><!-- 图例-->
  235. </div>
  236. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  237. <a href="javascript:;" onclick="gsMapLayerVisible()"><img src="../images/map1/19.png" keepDefaultStyle="true" title="高速切换" width="18" height="18"/></a><!-- 高速切换-->
  238. </div>
  239. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  240. <a href="javascript:;" onclick="showMapWeather()"><img src="../images/map1/18.png" keepDefaultStyle="true" title="天气预报" width="18" height="18"/></a><!-- 天气预报-->
  241. </div>
  242. <div style="bottom:332px; right: 230px; border-right: 1px solid #ecedef; padding:4px;float:left;">
  243. <a href="javascript:;" onclick="clearmap()"><img src="../images/map1/21.png" keepDefaultStyle="true" title="清图" width="18" height="18"/></a><!-- 清图-->
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </body>
  250. </html>