editYxcs.htm 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>环控运行状态</title>
  6. <script type="text/javascript" src="views/xt/hjkz/yxcs/editYxcs.js"></script>
  7. </head>
  8. <body>
  9. <table width="99%" align="center" cellpadding="0" cellspacing="0">
  10. <tr>
  11. <td width="86%" class="right_tb_line" height="30">
  12. <div class="save">
  13. <ul>
  14. <li><a href="#" onclick="javascript:saveHjkzyxcs('$!from','$!xtHkyxcs.id')">保存</a></li>
  15. </ul>
  16. </div>
  17. <div class="qx">
  18. <ul>
  19. <li><a href="#" onclick="javascript:cancelHkyxcs('$!xtHkyxcs.id')">取消</a></li>
  20. </ul>
  21. </div>
  22. <div class="sx">
  23. <ul>
  24. <li><a href="#" onclick="javascript:loadLast()">获取最新一次配置</a></li>
  25. </ul>
  26. </div>
  27. </td>
  28. </tr>
  29. </table>
  30. <div id="htmlError"></div>
  31. <form name="yxcsForm" id="yxcsForm" method="post" action="saveIfmHjkzYxcs.htm">
  32. <input type="hidden" id="id" name="xtHkyxcs.id" value="$!xtHkyxcs.id" />
  33. <input name="mcid" id="mcid" type="hidden" value="$!xtHkyxcs.mcid"/>
  34. <input name="zsid" id="zsid" type="hidden" value="$!xtHkyxcs.zsid"/>
  35. <input name="dksl" id="dksl" type="hidden" value="$!xtHkyxcs.dksl"/>
  36. <table width="99%" align="center" cellpadding="0" cellspacing="0" class="tabline">
  37. <tr class="listm">
  38. <td colspan="4">基本信息</td>
  39. </tr>
  40. <tr>
  41. <td class="tdcolor1">牧场名称&nbsp;<span class="tip_star">*</span></td>
  42. <td class="tdcolor2">
  43. <select name="xtHkyxcs.mcid" id="mcmc" style="width: 140px;" valid="required" errmsg="牧场不能为空!" #if("$!xtSbcs.mcid" != "") disabled="disabled" #end>
  44. <option selected="selected" value="">-牧场名称-</option>
  45. </select>
  46. </td>
  47. <td class="tdcolor1">猪舍名称&nbsp;<span class="tip_star">*</span></td>
  48. <td class="tdcolor2">
  49. <select name="xtHkyxcs.zsid" id="zsmc" style="width: 140px;" valid="required" errmsg="猪舍不能为空!" #if("$!xtSbcs.zsid" != "") disabled="disabled" #end>
  50. <option selected="selected" value="">-猪舍名称-</option>
  51. </select>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td class="tdcolor1">机器编号&nbsp;<span class="tip_star">*</span></td>
  56. <td class="tdcolor2">
  57. <input type="text" name="xtHkyxcs.jqid" id="jqid" maxlength="10"
  58. value="$!xtHkyxcs.jqid" size="10" valid="required" errmsg="机器ID不能为空!" readonly="readonly"
  59. class="noborder7" onfocus="this.className='input_on7';this.onmouseout=''"
  60. onblur="this.value=this.value.replace(/^\D|\D$/,'');this.className='input_off7';this.onmouseout=function(){this.className='input_out7'};"
  61. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  62. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />
  63. </td>
  64. <td class="tdcolor1">临界氨气</td>
  65. <td class="tdcolor2">
  66. <input type="text" name="$!xtHkyxcs.ljaq" id="ljaq" maxlength="10"
  67. value="$!xtHkyxcs.ljaq" size="10"
  68. class="noborder7" onfocus="this.className='input_on7';this.onmouseout=''"
  69. onblur="this.value=this.value.replace(/^\D|\D$/,'');this.className='input_off7';this.onmouseout=function(){this.className='input_out7'};"
  70. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  71. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />&nbsp;PPM
  72. </td>
  73. </tr>
  74. <tr class="listm">
  75. <td colspan="4">运行状态</td>
  76. </tr>
  77. <tr>
  78. <td class="tdcolor1">档位数量</td>
  79. <td class="tdcolor2">
  80. <select id="dwsl" name="xtHkyxcs.dwsl" style="width:150px;">
  81. <option value="5">5</option>
  82. </select>
  83. </td>
  84. <td class="tdcolor1">端口数量</td>
  85. <td class="tdcolor2">$!xtHkyxcs.dksl</td>
  86. </tr>
  87. <tr>
  88. <td colspan="4" id="en">
  89. #set($count = 0)
  90. #foreach($!obj in $!xtHkyxcs.dwList)
  91. #set($count = $!count + 1)
  92. <input type="button" onclick="selectDw('$count')" style="width:90px;height:30px;margin:10px;" value="档位$!count"></input>
  93. #end
  94. </td>
  95. </tr>
  96. #set($dwcount = 0)
  97. #foreach($!obj in $!xtHkyxcs.dwList)
  98. #set($dwcount = $!dwcount + 1)
  99. <tr style="display:none" id="dw$!dwcount" class="dw">
  100. <td colspan="4">
  101. <table width="99%" align="center" cellpadding="0" cellspacing="0" class="tabline">
  102. <tr class="listm">
  103. <td colspan="5">档位$!dwcount<input type="hidden" id="dksize" value="$!obj.dkList.size()" /></td>
  104. </tr>
  105. <tr>
  106. <td class="tdcolor1">温度区间&nbsp;<span class="tip_star">*</span></td>
  107. <td class="tdcolor2" colspan="3">
  108. <input type="text" id="dwd$!dwcount" maxlength="6" #if("$!dwcount" == "1") value="0" #else value="$!obj.dwd" #end disabled="disabled"
  109. name="dwd" size="6" style="width:100px" valid="required" errmsg="档位$!dwcount低温不能为空!"
  110. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  111. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />&nbsp;℃&nbsp;-&nbsp;
  112. <input type="text" name="gwd" id="gwd$!dwcount" maxlength="6" value="$!obj.gwd"
  113. size="6" style="width:100px" valid="required" errmsg="档位$!dwcount高温不能为空!"
  114. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  115. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1");' onblur="gwbg(this);"/>&nbsp;℃
  116. </td>
  117. </tr>
  118. #if($!obj.dkList.size() != 0)
  119. <tr>
  120. <td width="25%">端口设备</td>
  121. <!-- <td width="20%">设备状态&nbsp;<span class="tip_star">*</span></td> -->
  122. <td width="25%">设备功能值</td>
  123. <td width="25%">设备开启时间&nbsp;<span class="tip_star">*</span></td>
  124. <td width="25%">设备关闭时间&nbsp;<span class="tip_star">*</span></td>
  125. </tr>
  126. #set($dkcount = 0)
  127. #foreach($!o in $!obj.dkList)
  128. #set($dkcount = $!dkcount + 1)
  129. <tr #if("$!o.sbid" == "0" || "$!o.sbkg" == "1") style="display:none" #end>
  130. <td width="25%">$!o.sbmc$!o.sbxh</td>
  131. <!-- <td width="20%">
  132. #foreach($!oo in $!bzkgList)
  133. <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&nbsp;
  134. #end
  135. </td> -->
  136. <td width="25%">$!o.sbgnz</td>
  137. <td width="25%">
  138. <input type="text" name="gzsj" id="gzsj$!dwcount$!dkcount" maxlength="6" #if("$!o.jssj" == "") value="0" #else value="$!o.gzsj" #end
  139. size="6" style="width:100px" valid="required" errmsg="档位$!dwcount端口$!dkcount开启时间不能为空!"
  140. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  141. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />&nbsp;S
  142. </td>
  143. <td width="25%">
  144. <input type="text" name="jssj" id="jssj$!dwcount$!dkcount" maxlength="6" #if("$!o.jssj" == "") value="0" #else value="$!o.jssj" #end
  145. size="6" style="width:100px" valid="required" errmsg="档位$!dwcount端口$!dkcount结束时间不能为空!"
  146. onafterpaste='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")'
  147. onKeyUp='this.value=this.value.replace(/[^\d\.]/gi,"");this.value=this.value.replace(/^(\d+\.\d{2})\d*$/,"$1")' />&nbsp;S
  148. </td>
  149. </tr>
  150. #end
  151. #end
  152. </table>
  153. </td>
  154. </tr>
  155. #end
  156. <tr class="listm">
  157. <td colspan="4">修改信息</td>
  158. </tr>
  159. <tr>
  160. <td class="tdcolor1">修&nbsp;改&nbsp;人</td>
  161. <td class="tdcolor2">$!xtHkyxcs.xgrxm</td>
  162. <td class="tdcolor1">修改时间</td>
  163. <td class="tdcolor2">$!dateTool.format('yyyy-MM-dd HH:mm:ss', $!xtHkyxcs.xgsj)</td>
  164. </tr>
  165. </table>
  166. </form>
  167. </body>
  168. </html>