tempFdj.jsp 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp" %>
  3. <%
  4. String contextPath = request.getContextPath();
  5. %>
  6. <head>
  7. <script type="text/javascript">
  8. function processTimer(){
  9. var wfId =$("#wfId").val();
  10. var ais=$("#ais").val();
  11. $.ajax({
  12. url: "temperature.action",
  13. type: "post",
  14. cache: false,
  15. dataType: "json",
  16. data: {"wfId":wfId,"ais":ais},
  17. success: function(vo){
  18. if(null !=vo)
  19. {
  20. eval(vo);
  21. $.each(vo, function(m, obj) {
  22. //if(parseFloat(obj.value)==850){
  23. //$("#"+obj.id).html("0.0");
  24. //}else{
  25. $("#"+obj.id).html(parseFloat(obj.value)+"");
  26. if(obj.color=="white"){
  27. $("#"+obj.id+"l").attr("background","../resource/images/temperature/title_Left.fw.png");
  28. $("#"+obj.id).attr("background","../resource/images/temperature/title_Center.fw.png");
  29. $("#"+obj.id+"r").attr("background","../resource/images/temperature/title_Right.fw.png");
  30. }
  31. else if(obj.color=="yellow"){
  32. $("#"+obj.id+"l").attr("background","../resource/images/temperature/gj_left.fw.png");
  33. $("#"+obj.id).attr("background","../resource/images/temperature/gj_Center.fw.png");
  34. $("#"+obj.id+"r").attr("background","../resource/images/temperature/gj_Right.fw.png");
  35. }
  36. else if(obj.color=="red"){
  37. $("#"+obj.id+"l").attr("background","../resource/images/temperature/error_left.fw.png");
  38. $("#"+obj.id).attr("background","../resource/images/temperature/error_Center.fw.png");
  39. $("#"+obj.id+"r").attr("background","../resource/images/temperature/error_Right.fw.png");
  40. }
  41. //}
  42. });
  43. }
  44. }
  45. });
  46. }
  47. function selStatus(s){
  48. }
  49. $(document).ready(function() {
  50. processTimer();
  51. setInterval(processTimer,3000);
  52. });
  53. </script>
  54. <style type="text/css">
  55. body {
  56. margin-left: 0px;
  57. margin-top: 0px;
  58. margin-right: 0px;
  59. margin-bottom: 0px;
  60. }
  61. .Bar_Text_Css {
  62. font-size: 16px;
  63. font-style: normal;
  64. font-weight: bolder;
  65. color: #FFF;
  66. }
  67. </style>
  68. </head>
  69. <body >
  70. <form action="javascript:thisPage();" method="post" id="f1">
  71. <input type="hidden" id="ais" name="ais" value="${ais }" />
  72. <input type="hidden" id="wfId" name="wfId"
  73. value="${wfId }" />
  74. <s:iterator value="windturbines" id="var">
  75. <div style="float:left;margin:5px;padding:5px;width:250;">
  76. <table width="300" border="0" cellspacing="0" cellpadding="0">
  77. <tr>
  78. <td width="10" height="30" background="../resource/images/temperature/fj_Code_Left.fw.png">
  79. <td class="Bar_Text_Css" background="../resource/images/temperature/fj_Center_Right.fw.png" align="center" id="${var.id}" colspan="4">风机编号:${var.code}</td>
  80. <td width="10" background="../resource/images/temperature/fj_Code_Right.fw.png">
  81. </tr>
  82. <tr>
  83. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  84. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组U1温度</td>
  85. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  86. <td id="${var.id}AI045l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  87. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI045">0</td>
  88. <td id="${var.id}AI045r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  89. </tr>
  90. <tr>
  91. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  92. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组V1温度</td>
  93. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  94. <td id="${var.id}AI047l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  95. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI047">0</td>
  96. <td id="${var.id}AI047r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  97. </tr>
  98. <tr>
  99. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  100. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组W1温度</td>
  101. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  102. <td id="${var.id}AI049l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  103. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI049">0</td>
  104. <td id="${var.id}AI049r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  105. </tr>
  106. <tr>
  107. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  108. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组U2温度</td>
  109. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  110. <td id="${var.id}AI046l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  111. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI046">0</td>
  112. <td id="${var.id}AI046r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  113. </tr>
  114. <tr>
  115. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  116. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组V2温度</td>
  117. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  118. <td id="${var.id}AI048l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  119. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI048">0</td>
  120. <td id="${var.id}AI048r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  121. </tr>
  122. <tr>
  123. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  124. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机绕组W2温度</td>
  125. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  126. <td id="${var.id}AI050l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  127. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI050">0</td>
  128. <td id="${var.id}AI050r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  129. </tr>
  130. <tr>
  131. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  132. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机轴承a温度</td>
  133. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  134. <td id="${var.id}AI052l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  135. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI052">0</td>
  136. <td id="${var.id}AI052r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  137. </tr>
  138. <tr>
  139. <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
  140. <td width="140" background="../resource/images/temperature/title_Center.fw.png">发电机轴承b温度</td>
  141. <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  142. <td id="${var.id}AI053l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
  143. <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI053">0</td>
  144. <td id="${var.id}AI053r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
  145. </tr>
  146. </table>
  147. </div>
  148. </s:iterator>
  149. </form>
  150. </body>