| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>环控运行状态</title>
- <script type="text/javascript" src="views/xt/hjkz/yxcs/editYxcs.js"></script>
- </head>
- <body>
- <table width="99%" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="86%" class="right_tb_line" height="30">
- <div class="save">
- <ul>
- <li><a href="#" onclick="javascript:saveHjkzyxcs('$!from','$!xtHkyxcs.id')">保存</a></li>
- </ul>
- </div>
- <div class="qx">
- <ul>
- <li><a href="#" onclick="javascript:cancelHkyxcs('$!xtHkyxcs.id')">取消</a></li>
- </ul>
- </div>
- <div class="sx">
- <ul>
- <li><a href="#" onclick="javascript:loadLast()">获取最新一次配置</a></li>
- </ul>
- </div>
- </td>
- </tr>
- </table>
- <div id="htmlError"></div>
- <form name="yxcsForm" id="yxcsForm" method="post" action="saveIfmHjkzYxcs.htm">
- <input type="hidden" id="id" name="xtHkyxcs.id" value="$!xtHkyxcs.id" />
- <input name="mcid" id="mcid" type="hidden" value="$!xtHkyxcs.mcid"/>
- <input name="zsid" id="zsid" type="hidden" value="$!xtHkyxcs.zsid"/>
- <input name="dksl" id="dksl" type="hidden" value="$!xtHkyxcs.dksl"/>
- <table width="99%" align="center" cellpadding="0" cellspacing="0" class="tabline">
- <tr class="listm">
- <td colspan="4">基本信息</td>
- </tr>
- <tr>
- <td class="tdcolor1">牧场名称 <span class="tip_star">*</span></td>
- <td class="tdcolor2">
- <select name="xtHkyxcs.mcid" id="mcmc" style="width: 140px;" valid="required" errmsg="牧场不能为空!" #if("$!xtSbcs.mcid" != "") disabled="disabled" #end>
- <option selected="selected" value="">-牧场名称-</option>
- </select>
- </td>
- <td class="tdcolor1">猪舍名称 <span class="tip_star">*</span></td>
- <td class="tdcolor2">
- <select name="xtHkyxcs.zsid" id="zsmc" style="width: 140px;" valid="required" errmsg="猪舍不能为空!" #if("$!xtSbcs.zsid" != "") disabled="disabled" #end>
- <option selected="selected" value="">-猪舍名称-</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="tdcolor1">机器编号 <span class="tip_star">*</span></td>
- <td class="tdcolor2">
- <input type="text" name="xtHkyxcs.jqid" id="jqid" maxlength="10"
- value="$!xtHkyxcs.jqid" size="10" valid="required" errmsg="机器ID不能为空!" readonly="readonly"
- class="noborder7" onfocus="this.className='input_on7';this.onmouseout=''"
- onblur="this.value=this.value.replace(/^\D|\D$/,'');this.className='input_off7';this.onmouseout=function(){this.className='input_out7'};"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />
- </td>
- <td class="tdcolor1">临界氨气</td>
- <td class="tdcolor2">
- <input type="text" name="$!xtHkyxcs.ljaq" id="ljaq" maxlength="10"
- value="$!xtHkyxcs.ljaq" size="10"
- class="noborder7" onfocus="this.className='input_on7';this.onmouseout=''"
- onblur="this.value=this.value.replace(/^\D|\D$/,'');this.className='input_off7';this.onmouseout=function(){this.className='input_out7'};"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' /> PPM
- </td>
- </tr>
-
- <tr class="listm">
- <td colspan="4">运行状态</td>
- </tr>
- <tr>
- <td class="tdcolor1">档位数量</td>
- <td class="tdcolor2">
- <select id="dwsl" name="xtHkyxcs.dwsl" style="width:150px;">
- <option value="5">5</option>
- </select>
- </td>
- <td class="tdcolor1">端口数量</td>
- <td class="tdcolor2">$!xtHkyxcs.dksl</td>
- </tr>
- <tr>
- <td colspan="4" id="en">
- #set($count = 0)
- #foreach($!obj in $!xtHkyxcs.dwList)
- #set($count = $!count + 1)
- <input type="button" onclick="selectDw('$count')" style="width:90px;height:30px;margin:10px;" value="档位$!count"></input>
- #end
- </td>
- </tr>
- #set($dwcount = 0)
- #foreach($!obj in $!xtHkyxcs.dwList)
- #set($dwcount = $!dwcount + 1)
- <tr style="display:none" id="dw$!dwcount" class="dw">
- <td colspan="4">
- <table width="99%" align="center" cellpadding="0" cellspacing="0" class="tabline">
- <tr class="listm">
- <td colspan="5">档位$!dwcount<input type="hidden" id="dksize" value="$!obj.dkList.size()" /></td>
- </tr>
- <tr>
- <td class="tdcolor1">温度区间 <span class="tip_star">*</span></td>
- <td class="tdcolor2" colspan="3">
- <input type="text" id="dwd$!dwcount" maxlength="6" #if("$!dwcount" == "1") value="0" #else value="$!obj.dwd" #end disabled="disabled"
- name="dwd" size="6" style="width:100px" valid="required" errmsg="档位$!dwcount低温不能为空!"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' /> ℃ -
- <input type="text" name="gwd" id="gwd$!dwcount" maxlength="6" value="$!obj.gwd"
- size="6" style="width:100px" valid="required" errmsg="档位$!dwcount高温不能为空!"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1");' onblur="gwbg(this);"/> ℃
- </td>
- </tr>
- #if($!obj.dkList.size() != 0)
- <tr>
- <td width="25%">端口设备</td>
- <!-- <td width="20%">设备状态 <span class="tip_star">*</span></td> -->
- <td width="25%">设备功能值</td>
- <td width="25%">设备开启时间 <span class="tip_star">*</span></td>
- <td width="25%">设备关闭时间 <span class="tip_star">*</span></td>
- </tr>
- #set($dkcount = 0)
- #foreach($!o in $!obj.dkList)
- #set($dkcount = $!dkcount + 1)
- <tr #if("$!o.sbid" == "0" || "$!o.sbkg" == "1") style="display:none" #end>
- <td width="25%">$!o.sbmc$!o.sbxh</td>
- <!-- <td width="20%">
- #foreach($!oo in $!bzkgList)
- <input type="radio" #if("$!oo.dmid" == "1") valid="requireChecked" errmsg="档位$!dwcount端口$!dkcount是否开启为必选" #end value="$!oo.dmid" #if("$!o.sbztid" == "$!oo.dmid") checked="checked" #end #if("$!o.sbztid" == "" && "$!oo.dmid" == "1") checked="checked" #end name="kg$!dwcount$!dkcount"/>$!oo.dmmc
- #end
- </td> -->
- <td width="25%">$!o.sbgnz</td>
- <td width="25%">
- <input type="text" name="gzsj" id="gzsj$!dwcount$!dkcount" maxlength="6" #if("$!o.jssj" == "") value="0" #else value="$!o.gzsj" #end
- size="6" style="width:100px" valid="required" errmsg="档位$!dwcount端口$!dkcount开启时间不能为空!"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' /> S
- </td>
- <td width="25%">
- <input type="text" name="jssj" id="jssj$!dwcount$!dkcount" maxlength="6" #if("$!o.jssj" == "") value="0" #else value="$!o.jssj" #end
- size="6" style="width:100px" valid="required" errmsg="档位$!dwcount端口$!dkcount结束时间不能为空!"
- onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
- onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' /> S
- </td>
- </tr>
- #end
- #end
- </table>
- </td>
- </tr>
- #end
- <tr class="listm">
- <td colspan="4">修改信息</td>
- </tr>
- <tr>
- <td class="tdcolor1">修 改 人</td>
- <td class="tdcolor2">$!xtHkyxcs.xgrxm</td>
- <td class="tdcolor1">修改时间</td>
- <td class="tdcolor2">$!dateTool.format('yyyy-MM-dd HH:mm:ss', $!xtHkyxcs.xgsj)</td>
- </tr>
- </table>
- </form>
- </body>
- </html>
|