windpowerStatus.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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() %>/pages/monitor/css/page_fjjz_hebei.css" rel="stylesheet" type="text/css" />
  10. <script type='text/javascript' src='<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js'></script>
  11. <link href="<%=request.getContextPath() %>/resource/css/page_sjjr.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14. getWindPowerStatus();
  15. window.setInterval(getWindPowerStatus, 20000);
  16. });
  17. function getWindPowerStatus(){
  18. $.ajax({
  19. url : "/matrix/windPowerStatusAjax.action",
  20. type : "post",
  21. cache : false,
  22. dataType : "json",
  23. data : {},
  24. async : false,
  25. ifModified : false,
  26. success : function(res) {
  27. var arr = new Array();
  28. //崇礼数据
  29. //var clFjStatus = res.clFjStatus;
  30. //var clSyzStatus = res.clSyzStatus;
  31. //var clCftStatus = res.clCftStatus;
  32. //var clDjlStatus = res.clDjlStatus;
  33. //var clAGCStatus = res.clAGCStatus;
  34. var obj=initData("clFjStatus",res.clFjStatus);
  35. var obj1=initData("clSyzStatus",res.clSyzStatus);
  36. var obj2=initData("clCftStatus",res.clCftStatus);
  37. var obj3=initData("clDjlStatus",res.clDjlStatus);
  38. var obj4=initData("clAGCStatus",res.clAGCStatus);
  39. arr.push(obj);
  40. arr.push(obj1);
  41. arr.push(obj2);
  42. arr.push(obj3);
  43. arr.push(obj4);
  44. <%-- if(clFjStatus=='1'){
  45. $("#clFjStatus").attr("class","zt1 l");
  46. $("#clFjStatusImg").attr("src","<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png");
  47. }else{
  48. $("#clFjStatus").attr("class","zt2 l");
  49. $("#clFjStatusImg").attr("src","<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt2.png");
  50. } --%>
  51. //康宝数据
  52. //var kbFjStatus = res.kbFjStatus;
  53. //var kbSyzStatus = res.kbSyzStatus;
  54. //var kbCftStatus = res.kbCftStatus;
  55. //var kbDjlStatus = res.kbDjlStatus;
  56. //var kbAGCStatus = res.kbAGCStatus;
  57. var obj5=initData("kbFjStatus",res.kbFjStatus);
  58. var obj6=initData("kbSyzStatus",res.kbSyzStatus);
  59. var obj7=initData("kbCftStatus",res.kbCftStatus);
  60. var obj8=initData("kbDjlStatus",res.kbDjlStatus);
  61. var obj9=initData("kbAGCStatus",res.kbAGCStatus);
  62. arr.push(obj5);
  63. arr.push(obj6);
  64. arr.push(obj7);
  65. arr.push(obj8);
  66. arr.push(obj9);
  67. //五福堂数据
  68. //var wftFjStatus = res.wftFjStatus;
  69. var obj10=initData("wftFjStatus",res.wftFjStatus);
  70. arr.push(obj10);
  71. //代县数据
  72. /* var dxFjStatus = res.dxFjStatus;
  73. var dxSyzStatus = res.dxSyzStatus;
  74. var dxCftStatus = res.dxCftStatus;
  75. var dxDjlStatus = res.dxDjlStatus;
  76. var dxAGCStatus = res.dxAGCStatus;*/
  77. var obj11=initData("dxFjStatus",res.dxFjStatus);
  78. var obj12=initData("dxSyzStatus",res.dxSyzStatus);
  79. var obj13=initData("dxCftStatus",res.dxCftStatus);
  80. var obj14=initData("dxDjlStatus",res.dxDjlStatus);
  81. var obj15=initData("dxAGCStatus",res.dxAGCStatus);
  82. arr.push(obj11);
  83. arr.push(obj12);
  84. arr.push(obj13);
  85. arr.push(obj14);
  86. arr.push(obj15);
  87. for(var i=0;i<arr.length;i++){
  88. if(arr[i].value=='1'){
  89. $("#"+arr[i].code).attr("class","zt1 l");
  90. $("#"+arr[i].code+"Img").attr("src","<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png");
  91. }else{
  92. $("#"+arr[i].code).attr("class","zt2 l");
  93. $("#"+arr[i].code+"Img").attr("src","<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt2.png");
  94. }
  95. }
  96. //console.log(arr);
  97. //console.log(res);
  98. }
  99. });
  100. }
  101. function initData(code,value){
  102. var obj = new Object();
  103. obj.code=code;
  104. obj.value=value;
  105. return obj;
  106. }
  107. </script>
  108. </head>
  109. <body>
  110. <div class="sjjr_all l">
  111. <div class="sjjr_box l" style="margin-bottom:5px">
  112. <div class="top l">红花梁风电场</div>
  113. <div class="center l">
  114. <div id="clFjStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon1.png" width="90" height="90" alt=""/></div><div class="text">风机接入状态</div><div class="zt"><img id="clFjStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  115. <div id="clSyzStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon2.png" width="90" height="90" alt=""/></div><div class="text">升压站接入状态</div><div class="zt"><img id="clSyzStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  116. <div id="clCftStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon3.png" width="90" height="90" alt=""/></div><div class="text">测风塔接入状态</div><div class="zt"><img id="clCftStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  117. <div id="clDjlStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon4.png" width="90" height="90" alt=""/></div><div class="text">电计量接入状态</div><div class="zt"><img id="clDjlStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  118. <div id="clAGCStatus" class="zt1 l"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon5.png" width="90" height="90" alt=""/></div><div class="text">AGC/AVC接入状态</div><div class="zt"><img id="clAGCStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  119. </div>
  120. <div class="bottom l"></div>
  121. </div>
  122. <div class="sjjr_box l" style="margin-bottom:5px">
  123. <div class="top l">照阳河风电场</div>
  124. <div class="center l">
  125. <div id="kbFjStatus" class="zt1 l"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon1.png" width="90" height="90" alt=""/></div><div class="text">康保风机接入状态</div><div class="zt"><img id="kbFjStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  126. <div id="wftFjStatus" class="zt1 l" style="margin-left:11px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon1.png" width="90" height="90" alt=""/></div><div class="text">五福堂风机接入状态</div><div class="zt"><img id="wftFjStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  127. <div id="kbSyzStatus" class="zt1 l" style="margin-left:11px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon2.png" width="90" height="90" alt=""/></div><div class="text">升压站接入状态</div><div class="zt"><img id="kbSyzStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  128. <div id="kbCftStatus" class="zt1 l" style="margin-left:11px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon3.png" width="90" height="90" alt=""/></div><div class="text">测风塔接入状态</div><div class="zt"><img id="kbCftStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  129. <div id="kbDjlStatus" class="zt1 l" style="margin-left:11px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon4.png" width="90" height="90" alt=""/></div><div class="text">电计量接入状态</div><div class="zt"><img id="kbDjlStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  130. <div id="kbAGCStatus" class="zt1 l" style="margin-left:11px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon5.png" width="90" height="90" alt=""/></div><div class="text">AGC/AVC接入状态</div><div class="zt"><img id="kbAGCStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  131. </div>
  132. <div class="bottom l"></div>
  133. </div>
  134. <div class="sjjr_box l">
  135. <div class="top l">雁门关风电场</div>
  136. <div class="center l">
  137. <div id="dxFjStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon1.png" width="90" height="90" alt=""/></div><div class="text">风机接入状态</div><div class="zt"><img id="dxFjStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  138. <div id="dxSyzStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon2.png" width="90" height="90" alt=""/></div><div class="text">升压站接入状态</div><div class="zt"><img id="dxSyzStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  139. <div id="dxCftStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon3.png" width="90" height="90" alt=""/></div><div class="text">测风塔接入状态</div><div class="zt"><img id="dxCftStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  140. <div id="dxDjlStatus" class="zt1 l" style="margin-right:67px;"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon4.png" width="90" height="90" alt=""/></div><div class="text">电计量接入状态</div><div class="zt"><img id="dxDjlStatusImg"s rc="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  141. <div id="dxAGCStatus" class="zt1 l"><div class="icon"><img src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_icon5.png" width="90" height="90" alt=""/></div><div class="text">AGC/AVC接入状态</div><div class="zt"><img id="dxAGCStatusImg" src="<%=request.getContextPath() %>/resource/images/monitor/sjjr_zt1.png" width="55" height="55" alt=""/></div></div>
  142. </div>
  143. <div class="bottom l"></div>
  144. </div>
  145. </div>
  146. </body>
  147. </html>