efficiencylist.jsp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <%@ page contentType="text/html; charset=utf-8" session="false"%>
  2. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <table cellspacing="1" cellpadding="0" border="0" style="width: 99%;" class="tabsty">
  6. <tbody>
  7. <tr align="center" style="height: 25px;">
  8. <c:if test="${tjType == 0}">
  9. <th width="10%">舍栏</th>
  10. </c:if>
  11. <c:if test="${tjType == 1}">
  12. <th width="10%">日期</th>
  13. </c:if>
  14. <th width="12%">配方干物质(kg/头)</th>
  15. <th width="15%">实际采食干物质(kg/头)</th>
  16. <th width="12%">配方成本(元/头)</th>
  17. <th width="12%">实际成本(元/头)</th>
  18. <th width="10%">产量(kg)</th>
  19. <th width="10%">产奶效率</th>
  20. <th width="15%">公斤奶饲料成本(元)</th>
  21. </tr>
  22. <c:if test="${empty list}"><tr align="center" class="greb" style="height: 25px;"><td colspan="8">没有对应的结果</td></tr></c:if>
  23. <c:if test="${!empty list}">
  24. <c:forEach var="list" items="${list}">
  25. <tr align="center" class="greb" style="height: 25px;">
  26. <td><c:out value="${list.bname}" /></td>
  27. <td><c:if test="${list.ldry > 0}"><fmt:formatNumber value="${list.ldry }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  28. <td><c:if test="${list.dry > 0}"><fmt:formatNumber value="${list.dry }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  29. <td><c:if test="${list.lprice > 0}"><fmt:formatNumber value="${list.lprice }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  30. <td><c:if test="${list.price > 0}"><fmt:formatNumber value="${list.price }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  31. <td><c:if test="${list.product > 0}"><fmt:formatNumber value="${list.product }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  32. <td><c:if test="${list.milkratio > 0}"><fmt:formatNumber value="${list.milkratio }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  33. <td><c:if test="${list.FeedPriceMilk > 0}"><fmt:formatNumber value="${list.FeedPriceMilk }" pattern="#.##" minFractionDigits="2" /></c:if></td>
  34. </tr>
  35. </c:forEach>
  36. </c:if>
  37. </tbody>
  38. </table>