viewZtgk.htm 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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="X-UA-Compatible" content="IE=edge" />
  5. <title>总体概况查看</title>
  6. <link rel="StyleSheet" href="css/huimv.css" type="text/css" />
  7. <script type="text/javascript" src="views/sj/yzgk/ztgk/viewZtgk.js"></script>
  8. <style type="text/css">
  9. *{
  10. }
  11. .card {
  12. margin: 0;
  13. padding: 0;
  14. font-family: "微软雅黑";
  15. box-shadow: 1px 1px 3px #bbb;
  16. float: left;
  17. height: 194px;
  18. width: 250px;
  19. background: #fff;
  20. margin: 15px 5px;
  21. }
  22. .card ul{
  23. margin: 0;
  24. padding: 0;
  25. list-style: none;
  26. position: relative;
  27. float: left;
  28. }
  29. .card li{
  30. line-height: 30px;
  31. height: 30px;
  32. font-size: 14px;
  33. }
  34. .stitle{
  35. height: 40px;
  36. font-size: 16px;
  37. text-align: center;
  38. font-weight: bolder;
  39. background-color: #eeeeee;
  40. line-height: 40px;
  41. border-bottom: 1px solid #e1e1e1;
  42. }
  43. .stitle+ul li{
  44. letter-spacing: 1px;
  45. font-weight: bold;
  46. }
  47. .card span{
  48. font-size: 14px;
  49. }
  50. .cardname1 li{
  51. text-align: right;
  52. width: 120px;
  53. }
  54. .cardcont1 li{
  55. text-align: left;
  56. width: 130px;
  57. }
  58. .cardname2 li{
  59. text-align: right;
  60. width: 110px;
  61. }
  62. .cardcont2 li{
  63. text-align: right;
  64. width: 80px;
  65. }
  66. .cardname3 li{
  67. text-align: right;
  68. width: 90px;
  69. text-align:right;
  70. }
  71. .cardcont31 li{
  72. text-align: right;
  73. width: 70px;
  74. }
  75. .cardcont32 li{
  76. text-align: left;
  77. width: 80px;
  78. }
  79. .cardname4 li{
  80. text-align: right;
  81. width: 120px;
  82. text-align:right;
  83. }
  84. .cardcont41 li{
  85. text-align: right;
  86. width: 60px;
  87. }
  88. .cardcont42 li{
  89. text-align: left;
  90. width: 70px;
  91. }
  92. .cardname5 li{
  93. text-align: right;
  94. width: 120px;
  95. }
  96. .cardcont5 li{
  97. text-align: right;
  98. width: 80px;
  99. }
  100. .cardname6 li{
  101. text-align: right;
  102. width: 90px;
  103. font-size: 14px;
  104. font-weight: bolder;
  105. }
  106. .cardcont61 li{
  107. text-align: left;
  108. width: 35px;
  109. }
  110. .cardcont62 li{
  111. text-align: left;
  112. width: 125px;
  113. }
  114. #red{
  115. color: red;
  116. font-size: 14px;
  117. }
  118. #green{
  119. color: LimeGreen ;
  120. font-size: 14px;
  121. }
  122. .v_box{
  123. align:center;
  124. height:10px;
  125. margin-left:100px;
  126. }
  127. .v_box a{
  128. margin-top:10px;
  129. }
  130. .v_box a.v_btn{
  131. float:left;
  132. display:block;
  133. width: 7px;
  134. height: 7px;
  135. background: #818181;
  136. margin-left: 3px;
  137. }
  138. .v_box a.on{
  139. background: #00AD29;
  140. }
  141. #callboard { height:18px; line-height:18px; overflow:hidden; position: absolute; z-index: 99 }
  142. #callboard ul { margin-top: 0px; }
  143. #callboard li { padding:0;}
  144. </style>
  145. <script type="text/javascript">
  146. jQuery.ajaxSettings.async = false;
  147. refreshXxtz();
  148. // 获取消息通知,过滤条件:所选牧场,未处理,严重级别
  149. function refreshXxtz() {
  150. $("#callboard").empty();
  151. if ("$!mcid" > 0) {
  152. jQuery.getJSON("getXxtzList.htm", {"param" : "{name: 'mcid', value: '$!mcid'}|{name: 'clzt', value: '1'}", "fgf" : "|", "from" : "xxtzBar"}, function(data) {
  153. $("#callboard").append("<ul>");
  154. for (var o in data) {
  155. $("#callboard ul").append("<li>");
  156. var result = "<span style='color: red; cursor: pointer;'>";
  157. result += "<a onclick='setFocus(2, 2);loadMainBodyPanel(\"xxtz\",\"a2b2\");' style='font-size: 16px; font-weight: bold;'>";
  158. result += data[o].bt;
  159. //result += data[o].zw.replace("<p><font color=red>", "").replace("</font></p>", "");
  160. result += "</a></span>";
  161. $("#callboard li:last-child").append(result);
  162. }
  163. });
  164. }
  165. }
  166. $(function(win){
  167. var callboarTimer;
  168. var callboard = $('#callboard');
  169. var callboardUl = callboard.find('ul');
  170. var callboardLi = callboard.find('li');
  171. var liLen = callboard.find('li').length;
  172. var initHeight = callboardLi.first().outerHeight(true);
  173. win.autoAnimation = function (){
  174. if (liLen <= 1) {
  175. return;
  176. }
  177. var self = arguments.callee;
  178. var callboardLiFirst = callboard.find('li').first();
  179. callboardLiFirst.animate({
  180. marginTop:-initHeight
  181. }, 500, function() {
  182. clearTimeout(callboarTimer);
  183. callboardLiFirst.appendTo(callboardUl).css({marginTop:0});
  184. callboarTimer = setTimeout(self, 5000);
  185. });
  186. };
  187. callboard.mouseenter(function() {
  188. clearTimeout(callboarTimer);
  189. }).mouseleave(function() {
  190. callboarTimer = setTimeout(win.autoAnimation, 2000);
  191. });
  192. }(window));
  193. setTimeout(window.autoAnimation, 2000);
  194. </script>
  195. </head>
  196. <body>
  197. <input type="hidden" id="jttzzz" value="$!hm.jttzzz"/><!-- 体重增长 -->
  198. <input type="hidden" id="zttzzz" value="$!hm.zttzzz"/>
  199. <input type="hidden" id="qttzzz" value="$!hm.qttzzz"/>
  200. <input type="hidden" id="ztlrb" value="$!hm.ztlrb"/><!-- 料肉比 -->
  201. <input type="hidden" id="qtlrb" value="$!hm.qtlrb"/>
  202. <input type="hidden" id="dqtlrb" value="$!hm.dqtlrb"/>
  203. <input type="hidden" id="sws" value="$!hm.daLqda.sws"/><!-- 死亡数 -->
  204. <div id="callboard"></div>
  205. <div class="card">
  206. <div class="stitle">基本信息</div><!-- 第一个 -->
  207. <ul class="cardname1">
  208. <li>猪舍名称:</li>
  209. <li>栏期名称:</li>
  210. <li>当前模式:</li>
  211. <li>入栏天数:</li>
  212. <li>入&nbsp;栏&nbsp;数:</li>
  213. </ul>
  214. <ul class="cardcont1">
  215. <li>$!hm.daZsda.zsmc</li>
  216. <li>$!hm.daLqda.lqmc</li>
  217. <li>$!hm.dqms&nbsp;</li>
  218. <li>$!hm.mscxsj&nbsp;天</li>
  219. <li>$!hm.daLqda.rls&nbsp;头</li>
  220. </ul>
  221. </div>
  222. <div class="card">
  223. <div class="stitle">动物去向</div><!-- 第二个 -->
  224. <ul class="cardname2">
  225. <li>在栏:</li>
  226. <li>售出:</li>
  227. <li>隔离:</li>
  228. <li>死亡:</li>
  229. </ul>
  230. <ul class="cardcont2">
  231. <li>$!hm.daLqda.zls&nbsp;($!hm.yebzls)头</li>
  232. <li>$!hm.daLqda.scs&nbsp;头</li>
  233. <li>$!hm.daLqda.gls&nbsp;头</li>
  234. <li>
  235. <div id="swsOverZero" style="display:none">
  236. <span id="green">$!hm.daLqda.sws&nbsp;头</span>
  237. </div>
  238. <div id="swsEqualZero" style="display:none">
  239. <span>$!hm.daLqda.sws&nbsp;头</span>
  240. </div>
  241. </li>
  242. </ul>
  243. </div>
  244. <div class="card">
  245. <div class="stitle">生产状况</div><!-- 第三个 -->
  246. <ul class="cardname3">
  247. <li></li>
  248. <li>料&nbsp;肉&nbsp;比:</li>
  249. <li></li>
  250. <li>日均增重:</li>
  251. <li>饲料消耗:</li>
  252. </ul>
  253. <ul class="cardcont31">
  254. <li>前天 /</li>
  255. <li>
  256. <div style="display:none" id="qtDqtLrb">
  257. <span id="green">$!hm.qtlrb↑</span> /
  258. </div>
  259. <div style="display:none" id="dqtQtLrb">
  260. <span id="red">$!hm.qtlrb↓</span> /
  261. </div>
  262. </li>
  263. <li>昨天 /</li>
  264. <li>
  265. <div style="display:none" id="qtZtTzzz">
  266. <span id="green">$!hm.zttzzz↓</span> /
  267. </div>
  268. <div style="display:none" id="ztQtTzzz">
  269. <span id="red">$!hm.zttzzz↑</span> /
  270. </div>
  271. </li>
  272. <!-- <li><span id="oneagoslxh">$!hm.ztslxh</span> /</li> -->
  273. <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$!hm.rcssum&nbsp;Kg</li>
  274. </ul>
  275. <ul class="cardcont32">
  276. <li>&nbsp;昨天</li>
  277. <li>
  278. <div style="display:none" id="ztQtLrb">
  279. <span id="green">&nbsp;$!hm.ztlrb↑</span>
  280. </div>
  281. <div style="display:none" id="qtZtLrb">
  282. <span id="red">&nbsp;$!hm.ztlrb↓</span>
  283. </div>
  284. </li>
  285. <li>&nbsp;今天</li>
  286. <li>
  287. <div style="display:none" id="ztJtTzzz">
  288. <span id="green">&nbsp;$!hm.jttzzz↓&nbsp;g</span>
  289. </div>
  290. <div style="display:none" id="jtZtTzzz">
  291. <span id="red">&nbsp;$!hm.jttzzz↑&nbsp;g</span>
  292. </div>
  293. </li>
  294. <!-- <li><span id="todayslxh">&nbsp;$!hm.jtslxh</span>Kg</li> -->
  295. </ul>
  296. </div>
  297. <div class="card">
  298. <div class="stitle">日均访问</div><!-- 第四个 -->
  299. <ul class="cardname4">
  300. <li></li>
  301. <li>采食区一:</li>
  302. <li>采食区二:</li>
  303. <li>隔&nbsp;离&nbsp;区:</li>
  304. <li>平均访问:</li>
  305. </ul>
  306. <ul class="cardcont41">
  307. <li>昨天 /&nbsp;</li>
  308. <li>$!hm.ztcsq1fws /&nbsp;</li>
  309. <li>$!hm.ztcsq2fws /&nbsp;</li>
  310. <li>$!hm.ztglqfws /&nbsp;</li>
  311. <li>$!hm.ztpjfws /&nbsp;</li>
  312. </ul>
  313. <ul class="cardcont42">
  314. <li>今天</li>
  315. <li>$!hm.jtcsq1fws</li>
  316. <li>$!hm.jtcsq2fws</li>
  317. <li>$!hm.jtglqfws</li>
  318. <li>$!hm.jtpjfws</li>
  319. </ul>
  320. </div>
  321. <div class="card">
  322. <div class="stitle">体重概况</div><!-- 第五个 -->
  323. <ul class="cardname5">
  324. <li>平均体重:</li>
  325. <li>&gt;&nbsp;<span>$!hm.tzqj1name</span>Kg:</li>
  326. <li><span>$!hm.tzqj2name</span>Kg:</li>
  327. <li><span>$!hm.tzqj3name</span>Kg:</li>
  328. <li>&lt;&nbsp;<span>$!hm.tzqj4name</span>Kg:</li>
  329. </ul>
  330. <ul class="cardcont5">
  331. <li>$!hm.pjtz&nbsp;Kg</li>
  332. <li>$!hm.tzqj1num&nbsp;($!hm.tzqj1yebnum)头</li>
  333. <li>$!hm.tzqj2num&nbsp;($!hm.tzqj2yebnum)头</li>
  334. <li>$!hm.tzqj3num&nbsp;($!hm.tzqj3yebnum)头</li>
  335. <li>$!hm.tzqj4num&nbsp;($!hm.tzqj4yebnum)头</li>
  336. </ul>
  337. </div>
  338. <div class="card">
  339. <div class="stitle">舍内环境</div><!-- 第三个 -->
  340. <ul class="cardname6">
  341. <li>室内温度:</li>
  342. <li></li>
  343. <li>室内湿度:</li>
  344. <li></li>
  345. <li>氨气浓度:</li>
  346. </ul>
  347. <ul class="cardcont61">
  348. <li>昨天</li>
  349. <li>今天</li>
  350. <li>昨天</li>
  351. <li>今天</li>
  352. <li></li>
  353. </ul>
  354. <ul class="cardcont62">
  355. <li>$!hm.ztmintemp&nbsp;-&nbsp;$!hm.ztmaxtemp °C</li>
  356. <li>$!hm.jtmintemp&nbsp;-&nbsp;$!hm.jtmaxtemp °C</li>
  357. <li>$!hm.ztminsd&nbsp;-&nbsp;$!hm.ztmaxsd RH</li>
  358. <li>$!hm.jtminsd&nbsp;-&nbsp;$!hm.jtmaxsd RH</li>
  359. <li>$!hm.aqnd ppm</li>
  360. </ul>
  361. </div>
  362. <!-- 动态滚页暂时隐藏
  363. <div class="card">
  364. <div class="stitle">舍内环境</div>
  365. <div class="qhdiv" style="display:none">
  366. <ul class="cardname6">
  367. <li>室内温度:</li>
  368. <li></li>
  369. <li>环境能耗:</li>
  370. <li></li>
  371. </ul>
  372. <ul class="cardcont61">
  373. <li>昨天</li>
  374. <li>今天</li>
  375. <li>昨天</li>
  376. <li>今天</li>
  377. </ul>
  378. <ul class="cardcont62">
  379. <li>$!hm.ztmintemp&nbsp;-&nbsp;$!hm.ztmaxtemp°C</li>
  380. <li>$!hm.jtmintemp&nbsp;-&nbsp;$!hm.jtmaxtemp°C</li>
  381. <li> - kW·h</li>
  382. <li> - kW·h</li>
  383. </ul>
  384. </div>
  385. <div class="qhdiv" style="display:none">
  386. <ul class="cardname6">
  387. <li>气体浓度:</li>
  388. <li></li>
  389. <li></li>
  390. <li></li>
  391. </ul>
  392. <ul class="cardcont61">
  393. <li>氨气</li>
  394. <li>硫化氢</li>
  395. <li>甲烷</li>
  396. <li>氧气</li>
  397. </ul>
  398. <ul class="cardcont62">
  399. <li>$!hm.aqnd&nbsp;ppm</li>
  400. <li>$!hm.lhqnd&nbsp;ppm</li>
  401. <li>$!hm.jwnd&nbsp;ppm</li>
  402. <li>$!hm.yqnd&nbsp;%</li>
  403. </ul>
  404. </div>
  405. <div class="v_box">
  406. <a href="javascript:;" class="v_btn on"></a>
  407. <a href="javascript:;" class="v_btn"></a>
  408. </div>
  409. </div>
  410. -->
  411. <br/>
  412. </body>
  413. </html>