123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp" %>
- <%
- String contextPath = request.getContextPath();
- %>
- <head>
- <script type="text/javascript">
- function processTimer(){
- var wfId =$("#wfId").val();
- var ais=$("#ais").val();
-
- $.ajax({
- url: "temperature.action",
- type: "post",
- cache: false,
- dataType: "json",
- data: {"wfId":wfId,"ais":ais},
- success: function(vo){
- if(null !=vo)
- {
- eval(vo);
- $.each(vo, function(m, obj) {
-
- $("#"+obj.id).html(parseFloat(obj.value)+"");
- if(obj.color=="white"){
- $("#"+obj.id+"l").attr("background","../resource/images/temperature/title_Left.fw.png");
- $("#"+obj.id).attr("background","../resource/images/temperature/title_Center.fw.png");
- $("#"+obj.id+"r").attr("background","../resource/images/temperature/title_Right.fw.png");
- }
- else if(obj.color=="yellow"){
- $("#"+obj.id+"l").attr("background","../resource/images/temperature/gj_left.fw.png");
- $("#"+obj.id).attr("background","../resource/images/temperature/gj_Center.fw.png");
- $("#"+obj.id+"r").attr("background","../resource/images/temperature/gj_Right.fw.png");
- }
- else if(obj.color=="red"){
- $("#"+obj.id+"l").attr("background","../resource/images/temperature/error_left.fw.png");
- $("#"+obj.id).attr("background","../resource/images/temperature/error_Center.fw.png");
- $("#"+obj.id+"r").attr("background","../resource/images/temperature/error_Right.fw.png");
- }
-
-
- });
- }
-
- }
- });
- }
- $(document).ready(function() {
- processTimer();
- setInterval(processTimer,3000);
- });
-
- </script>
- <style type="text/css">
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- }
- .Bar_Text_Css {
- font-size: 16px;
- font-style: normal;
- font-weight: bolder;
- color: #FFF;
- }
- </style>
- </head>
- <body>
- <input type="hidden" id="ais" name="ais" value="${ais }" />
- <input type="hidden" id="wfId" name="wfId"
- value="${wfId }" />
- <s:iterator value="windturbines" id="var">
- <div style="float:left;margin:5px;padding:5px;width:250;">
- <table width="300" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="10" height="30" background="../resource/images/temperature/fj_Code_Left.fw.png">
- <td class="Bar_Text_Css" background="../resource/images/temperature/fj_Center_Right.fw.png" align="center" id="${var.id}" colspan="4">风机编号:${var.code}</td>
- <td width="10" background="../resource/images/temperature/fj_Code_Right.fw.png">
- </tr>
-
- <tr>
- <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png">环境温度</td>
- <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
-
- <td id="${var.id}AI056l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI056">0</td>
- <td id="${var.id}AI056r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
- </tr>
-
- <tr>
- <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png">机舱温度</td>
- <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
-
- <td id="${var.id}AI057l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI057">0</td>
- <td id="${var.id}AI057r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
- </tr>
-
- <tr>
- <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png">塔底柜温度</td>
- <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
-
- <td id="${var.id}AI069l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI069">0</td>
- <td id="${var.id}AI069r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
- </tr>
-
- <tr>
- <td width="5" height="30" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png">机舱柜内温度</td>
- <td width="5" background="../resource/images/temperature/title_Right.fw.png"/>
-
- <td id="${var.id}AI070l" width="5" background="../resource/images/temperature/title_Left.fw.png"/>
- <td width="140" background="../resource/images/temperature/title_Center.fw.png" id="${var.id}AI070">0</td>
- <td id="${var.id}AI070r" width="5" background="../resource/images/temperature/title_Right.fw.png"/>
- </tr>
-
-
-
-
-
- </table>
-
- </div>
- </s:iterator>
- </body>
|