page_power.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. else if(wpId=="SY_FDC")
  94. {
  95. setTab(1,3);
  96. }
  97. wpAllInfoAjax();
  98. apdata();
  99. window.setInterval(wpAllInfoAjax, 60000);
  100. window.setInterval(apdata, 60000);
  101. });
  102. function selectpw(wpId,type)
  103. {
  104. setTab(1,type);
  105. $("#wpId").val(wpId);
  106. wpAllInfoAjax();
  107. apdata();
  108. }
  109. function goback()
  110. {
  111. $("#f1").attr("action","/matrix/monitormainIndex.action").submit();
  112. }
  113. function wpAllInfoAjax() {
  114. var wpId=$("#wpId").val();
  115. $.ajax( {
  116. url : "/wpmonitor/windfarmrealtimeinfo.action?wpId="+wpId,
  117. type : "post",
  118. cache : false,
  119. dataType : "json",
  120. data : {},
  121. ifModified : false,
  122. success : function(res) {
  123. $("#aqts").html(res["aqts"] + "");
  124. $("#wpName").html(res["wpName"] + "");
  125. $("#zjrl").html(res["zjrl"]*10 + "");
  126. $("#sjgl").html(res["sjgl"] + "");
  127. $("#fs").html(res["fs"] + "");
  128. $("#rfdl").html(res["rfdl"] + "");
  129. $("#rswdl").html(res["rswdl"] + "");
  130. $("#yxts").html(res["yxts"] + "");
  131. $("#djts").html(res["djts"] + "");
  132. $("#whts").html(res["whts"] + "");
  133. $("#gzts").html(res["gzts"] + "");
  134. $("#lxts").html(res["lxts"] + "");
  135. $("#xdts").html(res["xdts"] + "");
  136. $("#jrts").html(res["jrts"] + "");
  137. $("#whss").html(res["whss"] + "");
  138. $("#gzss").html(res["gzss"] + "");
  139. $("#xdss").html(res["xdss"] + "");
  140. $("#slss").html(res["slss"] + "");
  141. $("#xnss").html(res["xnss"] + "");
  142. $("#whssy").html(res["whssy"] + "");
  143. $("#gzssy").html(res["gzssy"] + "");
  144. $("#xdssy").html(res["xdssy"] + "");
  145. $("#slssy").html(res["slssy"] + "");
  146. $("#xnssy").html(res["xnssy"] + "");
  147. $("#whssn").html(res["whssn"] + "");
  148. $("#gzssn").html(res["gzssn"] + "");
  149. $("#xdssn").html(res["xdssn"] + "");
  150. $("#slssn").html(res["slssn"] + "");
  151. $("#xnssn").html(res["xnssn"] + "");
  152. }
  153. });
  154. }
  155. function windfarm()
  156. {
  157. $("#f1").attr("action","/wpmonitor/zmindex.action").submit();
  158. }
  159. function tower()
  160. {
  161. $("#f1").attr("action","/wpmonitor/windtower.action").submit();
  162. }
  163. function powerfirst()
  164. {
  165. $("#f1").attr("action","/wpmonitor/pfindex.action").submit();
  166. }
  167. function wtinfo()
  168. {
  169. $("#f1").attr("action","/wpmonitor/wtindex.action").submit();
  170. }
  171. function power()
  172. {
  173. $("#f1").attr("action","/wpmonitor/pwindex.action").submit();
  174. }
  175. function fjpb()
  176. {
  177. $("#f1").attr("action","/wpmonitor/lineindex.action").submit();
  178. }
  179. function reloadHighchart(){
  180. apdata();
  181. }
  182. </script>
  183. <body>
  184. <form action="#" id="f1" method="post">
  185. <s:hidden id="wtId" name="wtId"></s:hidden>
  186. <s:hidden id="wpId" name="wpId"></s:hidden>
  187. <div class="all">
  188. <div class="index_menu">
  189. <div id="tab1">
  190. <ul>
  191. <li onclick="selectpw('CL_FDC',0)">红花梁风电场</li>
  192. <li onclick="selectpw('KB_FDC',1)">照阳河风电场</li>
  193. <li onclick="selectpw('DX_FDC',2)">雁门关风电场</li>
  194. <li onclick="selectpw('SY_FDC',3)">冠山风电场</li>
  195. </ul>
  196. </div>
  197. </div>
  198. <div class="page_top1">
  199. <div class="index_top_left">综合指标</div>
  200. <div class="page_top_right">
  201. <div class="index_top_center">
  202. <div class="page_top_center_top" id="wpName">雁门关风电场</div>
  203. <div class="page_top_center_top_a">安全天数</div>
  204. <div class="page_top_center_center" id="aqts"></div>
  205. <div class="page_top_center_bottom">天</div>
  206. </div>
  207. <div class="index_top_right_box">
  208. <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>
  209. <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>
  210. <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>
  211. <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>
  212. <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>
  213. </div>
  214. <div class="index_top_right_box">
  215. <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>
  216. <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>
  217. <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>
  218. <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>
  219. <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>
  220. </div>
  221. <div class="index_top_right_box">
  222. <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>
  223. <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>
  224. <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>
  225. <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>
  226. <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>
  227. </div>
  228. <div class="index_top_right_box">
  229. <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>
  230. <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>
  231. <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>
  232. <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>
  233. <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>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="page_top2">
  238. <div class="page_top_left">风机状态</div>
  239. <div class="page_top_right1">
  240. <div class="page_top_center2">
  241. <div class="page_top_center_top2">接入</div>
  242. <div class="page_top_center_center2" id="jrts"></div>
  243. <div class="page_top_center_bottom2">台</div>
  244. </div>
  245. <div class="page_top_right_box">
  246. <div class="page_list">
  247. <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>
  248. <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>
  249. <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>
  250. </div>
  251. <div class="page_list1">
  252. <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>
  253. <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>
  254. <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>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <div class="page_bottom">
  260. <!--左侧导航-->
  261. <div id="left_menu">
  262. <!-- <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>
  263. --><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>
  264. <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>
  265. <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>
  266. <!-- <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>
  267. -->
  268. <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>
  269. </div>
  270. <div id="inputDiv" style="height: 20px;float: right;">
  271. <input type="radio" name="timeStep" value="1" onclick="reloadHighchart()" checked="checked"/>4小时
  272. <input type="radio" name="timeStep" value="2" onclick="reloadHighchart()"/>1天
  273. <input type="radio" name="timeStep" value="3" onclick="reloadHighchart()"/>3天
  274. </div>
  275. <div id="container1" style="height: 660px"></div>
  276. </div>
  277. </div>
  278. </form>
  279. </body>
  280. </html>