feedstoragewarn.jsp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <%@ page contentType="text/html; charset=utf-8" session="false" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
  7. <head>
  8. <title>我的工作台</title>
  9. <%@ include file="../common/header.jsp" %>
  10. <body style="background-color: #E0E0E0">
  11. <div>
  12. <div class="navfrm">
  13. <span>当前位置:</span>
  14. <span><a href="${contextPath }/admin/welcome.html">首页</a></span>
  15. <span>&nbsp;>>&nbsp;</span>
  16. <span>库存预警</span>&nbsp;&nbsp;<font color="red"><b>【备注:牛头数按最后一天审核的牛头数进行计算;不通过 TMR 的饲料不经过库存预警】</b></font>
  17. </div>
  18. <div id="list">
  19. <table cellspacing="1" cellpadding="0" border="0" style="width: 99%;" class="tabsty">
  20. <tbody>
  21. <tr align="center" style="height: 25px;">
  22. <th>饲料名称</th>
  23. <th>库存量</th>
  24. <th>最近一次审核日期</th>
  25. <th>最近一次审核通过使用量</th>
  26. <th>剩余使用天数</th>
  27. </tr>
  28. <c:if test="${!empty feedStorageWarnList}">
  29. <c:forEach var="list" items="${feedStorageWarnList}">
  30. <tr align="center" style="height: 25px;">
  31. <td><c:out value="${list.FeedName}"/></td>
  32. <td><c:out value="${list.StockWeight}"/></td>
  33. <td><c:out value="${list.LastCheckDate}"/></td>
  34. <td><c:out value="${list.lastOperateWeight}"/></td>
  35. <td>
  36. <c:if test="${list.lastOperateWeight == 0}">0</c:if>
  37. <c:if test="${list.lastOperateWeight > 0}">
  38. <fmt:formatNumber type="number" value="${list.StockWeight / list.lastOperateWeight}" maxFractionDigits="0"/>
  39. </c:if>
  40. </td>
  41. </tr>
  42. </c:forEach>
  43. </c:if>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. </body>
  49. </html>