agc_index.jsp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <link href="<%=request.getContextPath() %>/pages/agc/page_agc.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js"></script>
  10. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  11. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
  12. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js" type="text/javascript"> </script>
  13. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js"></script>
  14. <script src="<%=request.getContextPath()%>/resource/js/highcharts/modules/solid-gauge.src.js"></script>
  15. <script src='<%=request.getContextPath()%>/pages/agc/agc.js'></script>
  16. <script type="text/javascript">
  17. $(document).ready(function() {
  18. agcinfo();
  19. setInterval(agcinfo, 5000);
  20. agcLine();
  21. setInterval(agcinfo, 5*60000);
  22. });
  23. function agcinfo() {
  24. $.ajax({
  25. url : "/agc/getAgcVal.action",
  26. type : "post",
  27. cache : false,
  28. dataType : "json",
  29. data : {},
  30. ifModified : false,
  31. success : function(res) {
  32. for (var key in res){
  33. if(key.indexOf("AGC001")>-1||key.indexOf("AGC002")>-1 || key.indexOf("AGC008")>-1 || key.indexOf("AGC011")>-1){
  34. $("#"+key).html(res[key]);
  35. //alert(key+"==dddd=="+res[key]);
  36. }else{
  37. //alert(key+"==dddd=="+res[key]+(res[key]==1));
  38. if(res[key]==1){
  39. $("#"+key).html('<img src="/resource/images/agc/agc_zt4.png" width="20" height="20" alt=""/>');
  40. }else if(res[key]==0){
  41. $("#"+key).html('<img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/>');
  42. }
  43. }
  44. }
  45. }
  46. });
  47. }
  48. </script>
  49. </head>
  50. <!--[if gte IE 6]>
  51. <script type="text/javascript">
  52. function correctPNG()
  53. {
  54. for(var i=0; i<document.images.length; i++)
  55. {
  56. var img = document.images[i]
  57. var imgName = img.src.toUpperCase()
  58. if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  59. {
  60. var imgID = (img.id) ? "id='" + img.id + "' " : ""
  61. var imgClass = (img.className) ? "class='" + img.className + "' " : ""
  62. var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
  63. var imgStyle = "display:inline-block;" + img.style.cssText
  64. if (img.align == "left") imgStyle = "float:left;" + imgStyle
  65. if (img.align == "right") imgStyle = "float:right;" + imgStyle
  66. if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
  67. var strNewHTML = "<span " + imgID + imgClass + imgTitle
  68. + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
  69. + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
  70. + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
  71. img.outerHTML = strNewHTML
  72. i = i-1
  73. }
  74. }
  75. }
  76. window.attachEvent("onload", correctPNG);
  77. </script>
  78. <![endif]-->
  79. <body>
  80. <div class="all" style="width:1800px;height: 800px">
  81. <!--风场-->
  82. <div class="page_agc_box">
  83. <div class="page_agc_title"><li>红花梁风电场</li><div class="page_agc_zt"><img src="/resource/images/agc/agc_zt1.png" width="60" height="27" alt=""/></div></div>
  84. <div class="page_agc_box1">
  85. <div class="page_agc_title1">实际功率</div>
  86. <div class="page_agc_num" id="CL_FDC_AGC001">66.00</div>
  87. <div class="page_agc_dw">MW</div>
  88. <div class="page_agc_title1">AGC限电指令值</div>
  89. <div class="page_agc_num" id="CL_FDC_AGC002">66.00</div>
  90. <div class="page_agc_dw">MW</div>
  91. <div class="page_agc_title1">AVC母线电压实际值</div>
  92. <div class="page_agc_num" id="CL_FDC_AGC011">66.00</div>
  93. <div class="page_agc_dw">KV</div>
  94. <div class="page_agc_title1">AVC母线调控目标值</div>
  95. <div class="page_agc_num" id="CL_FDC_AGC008">66.00</div>
  96. <div class="page_agc_dw">KV</div>
  97. <div class="page_agc_title1">AGC投入</div>
  98. <div class="page_agc_zt1" id="CL_FDC_AGC004"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  99. <div class="page_agc_title1" >AGC限电</div>
  100. <div class="page_agc_zt1" id="CL_FDC_AGC024"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  101. <div class="page_agc_title2">AVC投入</div>
  102. <div class="page_agc_zt2" id="CL_FDC_AGC005"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  103. </div>
  104. <div class="page_agc_right"><div class="agc_subbottom l" style="width: 88%;height: 88%;" id="container1"></div></div>
  105. </div>
  106. <!--风场-->
  107. <div class="page_agc_box">
  108. <div class="page_agc_title"><li>照阳河风电场</li><div class="page_agc_zt"><img src="/resource/images/agc/agc_zt1.png" width="60" height="27" alt=""/></div></div>
  109. <div class="page_agc_box1">
  110. <div class="page_agc_title1">实际功率</div>
  111. <div class="page_agc_num" id="KB_FDC_AGC001">66.00</div>
  112. <div class="page_agc_dw">MW</div>
  113. <div class="page_agc_title1">AGC限电指令值</div>
  114. <div class="page_agc_num" id="KB_FDC_AGC002">66.00</div>
  115. <div class="page_agc_dw">MW</div>
  116. <div class="page_agc_title1">AVC母线电压实际值</div>
  117. <div class="page_agc_num" id="KB_FDC_AGC011">66.00</div>
  118. <div class="page_agc_dw">KV</div>
  119. <div class="page_agc_title1">AVC母线调控目标值</div>
  120. <div class="page_agc_num" id="KB_FDC_AGC008">66.00</div>
  121. <div class="page_agc_dw">KV</div>
  122. <div class="page_agc_title1">AGC投入</div>
  123. <div class="page_agc_zt1" id="KB_FDC_AGC004"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  124. <div class="page_agc_title1" >AGC限电</div>
  125. <div class="page_agc_zt1" id="KB_FDC_AGC024"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  126. <div class="page_agc_title2">AVC投入</div>
  127. <div class="page_agc_zt2" id="KB_FDC_AGC005"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  128. </div>
  129. <div class="page_agc_right"><div class="agc_subbottom l" style="width: 88%;height: 88%;" id="container2"></div></div>
  130. </div>
  131. <!--风场-->
  132. <div class="page_agc_box">
  133. <div class="page_agc_title"><li>雁门关风电场</li><div class="page_agc_zt"><img src="/resource/images/agc/agc_zt1.png" width="60" height="27" alt=""/></div></div>
  134. <div class="page_agc_box1">
  135. <div class="page_agc_title1">实际功率</div>
  136. <div class="page_agc_num" id="DX_FDC_AGC001">66.00</div>
  137. <div class="page_agc_dw">MW</div>
  138. <div class="page_agc_title1">AGC限电指令值</div>
  139. <div class="page_agc_num" id="DX_FDC_AGC002">66.00</div>
  140. <div class="page_agc_dw">MW</div>
  141. <div class="page_agc_title1">AVC母线电压实际值</div>
  142. <div class="page_agc_num" id="DX_FDC_AGC011">66.00</div>
  143. <div class="page_agc_dw">KV</div>
  144. <div class="page_agc_title1">AVC母线调控目标值</div>
  145. <div class="page_agc_num" id="DX_FDC_AGC008">66.00</div>
  146. <div class="page_agc_dw">KV</div>
  147. <div class="page_agc_title1">AGC投入</div>
  148. <div class="page_agc_zt1" id="DX_FDC_AGC004"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  149. <div class="page_agc_title1" >AGC限电</div>
  150. <div class="page_agc_zt1" id="DX_FDC_AGC024"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  151. <div class="page_agc_title2">AVC投入</div>
  152. <div class="page_agc_zt2" id="DX_FDC_AGC005"><img src="/resource/images/agc/agc_zt3.png" width="20" height="20" alt=""/></div>
  153. </div>
  154. <div class="page_agc_right"><div class="agc_subbottom l" style="width: 88%;height: 88%;" id="container3"></div></div>
  155. </div>
  156. <!--结束-->
  157. </div>
  158. </body>
  159. </html>