page_power.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <%@ page language="java" contentType="text/html;charset=utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  8. <title>国电电力山西新能源公司生产运行监控平台</title>
  9. <link href="<%=request.getContextPath() %>/resource/css/hbsj/index.css" rel="stylesheet" type="text/css" />
  10. <script type='text/javascript' src='<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js'></script>
  11. <script type="text/javascript"
  12. src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js">
  13. </script>
  14. <link rel="stylesheet" type="text/css"
  15. href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
  16. <script
  17. src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js"
  18. type="text/javascript">
  19. </script>
  20. <script
  21. src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js">
  22. </script>
  23. <script
  24. src="<%=request.getContextPath()%>/resource/js/highcharts/modules/solid-gauge.src.js">
  25. </script>
  26. <script type="text/ecmascript"
  27. src="<%=request.getContextPath()%>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js">
  28. </script>
  29. <script type="text/ecmascript"
  30. src="<%=request.getContextPath()%>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js">
  31. </script>
  32. <link rel="stylesheet" type="text/css"
  33. href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  34. <script type='text/javascript' src='<%=request.getContextPath() %>/pages/monitor/hbsj/power.js'></script>
  35. <script type="text/javascript">
  36. function setTab(m,n){
  37. var menu=document.getElementById("tab"+m).getElementsByTagName("li");
  38. for(i=0;i<menu.length;i++)
  39. {
  40. menu[i].className=(i==n?"now":"");
  41. }
  42. }
  43. </script>
  44. </head>
  45. <!--[if gte IE 6]>
  46. <script type="text/javascript">
  47. function correctPNG()
  48. {
  49. for(var i=0; i<document.images.length; i++)
  50. {
  51. var img = document.images[i]
  52. var imgName = img.src.toUpperCase()
  53. if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  54. {
  55. var imgID = (img.id) ? "id='" + img.id + "' " : ""
  56. var imgClass = (img.className) ? "class='" + img.className + "' " : ""
  57. var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
  58. var imgStyle = "display:inline-block;" + img.style.cssText
  59. if (img.align == "left") imgStyle = "float:left;" + imgStyle
  60. if (img.align == "right") imgStyle = "float:right;" + imgStyle
  61. if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
  62. var strNewHTML = "<span " + imgID + imgClass + imgTitle
  63. + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
  64. + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
  65. + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
  66. img.outerHTML = strNewHTML
  67. i = i-1
  68. }
  69. }
  70. }
  71. window.attachEvent("onload", correctPNG);
  72. </script>
  73. <![endif]-->
  74. <script type="text/javascript">
  75. $(document).ready(function() {
  76. $("#wpId").val('<s:property value="wpId"/>');
  77. if(wpId!=null && wpId!=undefined)
  78. {
  79. $("#wpId").val(wpId);
  80. }
  81. var wpId=$("#wpId").val();
  82. if(wpId=="CL_FDC")
  83. {
  84. setTab(1,0);
  85. }else if(wpId=="KB_FDC")
  86. {
  87. setTab(1,1);
  88. }
  89. else if(wpId=="DX_FDC")
  90. {
  91. setTab(1,2);
  92. }
  93. wpAllInfoAjax();
  94. apdata();
  95. window.setInterval(wpAllInfoAjax, 60000);
  96. window.setInterval(apdata, 60000);
  97. });
  98. function selectpw(wpId,type)
  99. {
  100. setTab(1,type);
  101. $("#wpId").val(wpId);
  102. wpAllInfoAjax();
  103. apdata();
  104. }
  105. function goback()
  106. {
  107. $("#f1").attr("action","/matrix/monitormainIndex.action").submit();
  108. }
  109. function wpAllInfoAjax() {
  110. var wpId=$("#wpId").val();
  111. $.ajax( {
  112. url : "/wpmonitor/windfarmrealtimeinfo.action?wpId="+wpId,
  113. type : "post",
  114. cache : false,
  115. dataType : "json",
  116. data : {},
  117. ifModified : false,
  118. success : function(res) {
  119. $("#aqts").html(res["aqts"] + "");
  120. $("#wpName").html(res["wpName"] + "");
  121. $("#zjrl").html(res["zjrl"]*10 + "");
  122. $("#sjgl").html(res["sjgl"] + "");
  123. $("#fs").html(res["fs"] + "");
  124. $("#rfdl").html(res["rfdl"] + "");
  125. $("#rswdl").html(res["rswdl"] + "");
  126. $("#yxts").html(res["yxts"] + "");
  127. $("#djts").html(res["djts"] + "");
  128. $("#whts").html(res["whts"] + "");
  129. $("#gzts").html(res["gzts"] + "");
  130. $("#lxts").html(res["lxts"] + "");
  131. $("#xdts").html(res["xdts"] + "");
  132. $("#jrts").html(res["jrts"] + "");
  133. $("#whss").html(res["whss"] + "");
  134. $("#gzss").html(res["gzss"] + "");
  135. $("#xdss").html(res["xdss"] + "");
  136. $("#slss").html(res["slss"] + "");
  137. $("#xnss").html(res["xnss"] + "");
  138. $("#whssy").html(res["whssy"] + "");
  139. $("#gzssy").html(res["gzssy"] + "");
  140. $("#xdssy").html(res["xdssy"] + "");
  141. $("#slssy").html(res["slssy"] + "");
  142. $("#xnssy").html(res["xnssy"] + "");
  143. $("#whssn").html(res["whssn"] + "");
  144. $("#gzssn").html(res["gzssn"] + "");
  145. $("#xdssn").html(res["xdssn"] + "");
  146. $("#slssn").html(res["slssn"] + "");
  147. $("#xnssn").html(res["xnssn"] + "");
  148. }
  149. });
  150. }
  151. function windfarm()
  152. {
  153. $("#f1").attr("action","/wpmonitor/zmindex.action").submit();
  154. }
  155. function tower()
  156. {
  157. $("#f1").attr("action","/wpmonitor/windtower.action").submit();
  158. }
  159. function powerfirst()
  160. {
  161. $("#f1").attr("action","/wpmonitor/pfindex.action").submit();
  162. }
  163. function wtinfo()
  164. {
  165. $("#f1").attr("action","/wpmonitor/wtindex.action").submit();
  166. }
  167. function power()
  168. {
  169. $("#f1").attr("action","/wpmonitor/pwindex.action").submit();
  170. }
  171. function fjpb()
  172. {
  173. $("#f1").attr("action","/wpmonitor/lineindex.action").submit();
  174. }
  175. function reloadHighchart(){
  176. apdata();
  177. }
  178. </script>
  179. <body>
  180. <form action="#" id="f1" method="post">
  181. <s:hidden id="wtId" name="wtId"></s:hidden>
  182. <s:hidden id="wpId" name="wpId"></s:hidden>
  183. <div class="all">
  184. <div class="index_menu">
  185. <div id="tab1">
  186. <ul>
  187. <li onclick="selectpw('CL_FDC',0)">红花梁风电场</li>
  188. <li onclick="selectpw('KB_FDC',1)">照阳河风电场</li>
  189. <li onclick="selectpw('DX_FDC',2)">雁门关风电场</li>
  190. </ul>
  191. </div>
  192. </div>
  193. <div class="page_top1">
  194. <div class="index_top_left">综合指标</div>
  195. <div class="page_top_right">
  196. <div class="index_top_center">
  197. <div class="page_top_center_top" id="wpName">雁门关风电场</div>
  198. <div class="page_top_center_top_a">安全天数</div>
  199. <div class="page_top_center_center" id="aqts"></div>
  200. <div class="page_top_center_bottom">天</div>
  201. </div>
  202. <div class="index_top_right_box">
  203. <div class="company_list"><div class="company_list_a">装机容量</div><div class="company_list_b" id="zjrl"></div><div class="company_list_c">MW</div></div>
  204. <div class="company_list"><div class="company_list_a">功率</div><div class="company_list_b" id="sjgl"></div><div class="company_list_c">MW</div></div>
  205. <div class="company_list"><div class="company_list_a">风速</div><div class="company_list_b" id="fs"></div><div class="company_list_c">m/s</div></div>
  206. <div class="company_list"><div class="company_list_a">发电量</div><div class="company_list_b" id="rfdl"></div><div class="company_list_c">万kWh</div></div>
  207. <div class="company_list1"><div class="company_list_a">上网电量</div><div class="company_list_b" id="rswdl"></div><div class="company_list_c">万kWh</div></div>
  208. </div>
  209. <div class="index_top_right_box">
  210. <div class="company_list"><div class="company_list_a">日维护损失电量</div><div class="company_list_b" id="whss"></div><div class="company_list_c">万kWh</div></div>
  211. <div class="company_list"><div class="company_list_a">日故障损失电量</div><div class="company_list_b" id="gzss"></div><div class="company_list_c">万kWh</div></div>
  212. <div class="company_list"><div class="company_list_a">日限电损失电量</div><div class="company_list_b" id="xdss"></div><div class="company_list_c">万kWh</div></div>
  213. <div class="company_list"><div class="company_list_a">日受累损失电量</div><div class="company_list_b" id="slss"></div><div class="company_list_c">万kWh</div></div>
  214. <div class="company_list1"><div class="company_list_a">日性能损失电量</div><div class="company_list_b" id="xnss"></div><div class="company_list_c">万kWh</div></div>
  215. </div>
  216. <div class="index_top_right_box">
  217. <div class="company_list"><div class="company_list_a">月维护损失电量</div><div class="company_list_b" id="whssy"></div><div class="company_list_c">万kWh</div></div>
  218. <div class="company_list"><div class="company_list_a">月故障损失电量</div><div class="company_list_b" id="gzssy"></div><div class="company_list_c">万kWh</div></div>
  219. <div class="company_list"><div class="company_list_a">月限电损失电量</div><div class="company_list_b" id="xdssy"></div><div class="company_list_c">万kWh</div></div>
  220. <div class="company_list"><div class="company_list_a">月受累损失电量</div><div class="company_list_b" id="slssy"></div><div class="company_list_c">万kWh</div></div>
  221. <div class="company_list1"><div class="company_list_a">月性能损失电量</div><div class="company_list_b" id="xnssy"></div><div class="company_list_c">万kWh</div></div>
  222. </div>
  223. <div class="index_top_right_box">
  224. <div class="company_list"><div class="company_list_a">年维护损失电量</div><div class="company_list_b" id="whssn"></div><div class="company_list_c">万kWh</div></div>
  225. <div class="company_list"><div class="company_list_a">年故障损失电量</div><div class="company_list_b" id="gzssn"></div><div class="company_list_c">万kWh</div></div>
  226. <div class="company_list"><div class="company_list_a">年限电损失电量</div><div class="company_list_b" id="xdssn"></div><div class="company_list_c">万kWh</div></div>
  227. <div class="company_list"><div class="company_list_a">年受累损失电量</div><div class="company_list_b" id="slssn"></div><div class="company_list_c">万kWh</div></div>
  228. <div class="company_list1"><div class="company_list_a">年性能损失电量</div><div class="company_list_b" id="xnssn"></div><div class="company_list_c">万kWh</div></div>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="page_top2">
  233. <div class="page_top_left">风机状态</div>
  234. <div class="page_top_right1">
  235. <div class="page_top_center2">
  236. <div class="page_top_center_top2">接入</div>
  237. <div class="page_top_center_center2" id="jrts"></div>
  238. <div class="page_top_center_bottom2">台</div>
  239. </div>
  240. <div class="page_top_right_box">
  241. <div class="page_list">
  242. <div class="page_list_box"><div class="page_list_box_left1"></div><div class="page_list_box_right"><div class="page_list_box_right_top">运行</div><div class="page_list_box_right_bottom1" id="yxts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  243. <div class="page_list_box"><div class="page_list_box_left2"></div><div class="page_list_box_right"><div class="page_list_box_right_top">待机</div><div class="page_list_box_right_bottom1" id="djts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  244. <div class="page_list_box"><div class="page_list_box_left3"></div><div class="page_list_box_right"><div class="page_list_box_right_top">故障</div><div class="page_list_box_right_bottom1" id="gzts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  245. </div>
  246. <div class="page_list1">
  247. <div class="page_list_box"><div class="page_list_box_left4"></div><div class="page_list_box_right"><div class="page_list_box_right_top">维护</div><div class="page_list_box_right_bottom1" id="whts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  248. <div class="page_list_box"><div class="page_list_box_left5"></div><div class="page_list_box_right"><div class="page_list_box_right_top">限电</div><div class="page_list_box_right_bottom1" id="xdts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  249. <div class="page_list_box"><div class="page_list_box_left6"></div><div class="page_list_box_right"><div class="page_list_box_right_top">离线</div><div class="page_list_box_right_bottom1" id="lxts"></div><div class="page_list_box_right_bottom2">台</div></div></div>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="page_bottom">
  255. <!--左侧导航-->
  256. <div id="left_menu">
  257. <a href="#" class="left_menu_out" id="button2" onmouseover="button5.className='left_menu_out';button6.className='left_menu_out';button4.className='left_menu_out';button1.className='left_menu_out';button3.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="windfarm()"><li>总貌图</li></a>
  258. <a href="#" class="left_menu_out" id="button1" onmouseover="button5.className='left_menu_out';button6.className='left_menu_out';button4.className='left_menu_out';button2.className='left_menu_out';button3.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="fjpb()"><li>排布图</li></a>
  259. <a href="#" class="left_menu_out" id="button3" onmouseover="button5.className='left_menu_out';button6.className='left_menu_out';button4.className='left_menu_out';button2.className='left_menu_out';button1.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="powerfirst()"><li>升压站</li></a>
  260. <a href="#" class="left_menu_out" id="button4" onmouseover="button5.className='left_menu_out';button6.className='left_menu_out';button1.className='left_menu_out';button2.className='left_menu_out';button3.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="tower()"><li>测风塔</li></a>
  261. <a href="#" class="left_menu_out" id="button5" onmouseover="button1.className='left_menu_out';button6.className='left_menu_out';button4.className='left_menu_out';button2.className='left_menu_out';button3.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="wtinfo()"><li>风机信息</li></a>
  262. <a href="#" class="left_menu_over" id="button6" onmouseover="button5.className='left_menu_out';button1.className='left_menu_out';button4.className='left_menu_out';button2.className='left_menu_out';button3.className='left_menu_out';this.className='left_menu_over'" onmouseout="this.className='left_menu_over'" onclick="power()"><li>功率曲线</li></a>
  263. </div>
  264. <div id="inputDiv" style="height: 20px;float: right;">
  265. <input type="radio" name="timeStep" value="1" onclick="reloadHighchart()" checked="checked"/>4小时
  266. <input type="radio" name="timeStep" value="2" onclick="reloadHighchart()"/>1天
  267. <input type="radio" name="timeStep" value="3" onclick="reloadHighchart()"/>3天
  268. </div>
  269. <div id="container1" style="height: 660px"></div>
  270. </div>
  271. </div>
  272. </form>
  273. </body>
  274. </html>