ValveHistory.jsp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="com.runzhixing.bean.Valve" %>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. List<Valve> list = (List)session.getAttribute("valveList");
  7. String valveCarNo = (String)session.getAttribute("valveCarNo");
  8. %>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <title></title>
  13. <meta http-equiv="pragma" content="no-cache">
  14. <meta http-equiv="cache-control" content="no-cache">
  15. <meta http-equiv="expires" content="0">
  16. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  17. <meta http-equiv="description" content="This is my page">
  18. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  19. <meta http-equiv="X-UA-Compatible" content="IE=10"/>
  20. <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
  21. <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
  22. <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
  23. <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
  24. <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
  25. <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
  26. <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
  27. </head>
  28. <body>
  29. <center>
  30. <table class="hzbspan" width="auto" border="1" cellpadding="2" cellspacing="0">
  31. <tr>
  32. <td align="center" colspan="7"><%=valveCarNo %>的阀门追溯</td>
  33. </tr>
  34. <tr>
  35. <td>
  36. 其它来源(个人用户)
  37. </td>
  38. <td>
  39. 阀门厂家
  40. </td>
  41. <td>
  42. 阀门型号
  43. </td>
  44. <td>
  45. 阀门批次
  46. </td>
  47. <td>
  48. 操作时间
  49. </td>
  50. <td>
  51. 操作类型
  52. </td>
  53. <td>
  54. 备注
  55. </td>
  56. </tr>
  57. <%for(int i=0;i<list.size();i++){
  58. Valve valve = list.get(i);
  59. %>
  60. <tr>
  61. <td>
  62. <%
  63. String fromStr="";
  64. String froms=valve.getOTHERSTATION();
  65. if(froms!=null&&!froms.trim().equals("")&&!froms.equals("null")){
  66. fromStr=froms;
  67. }
  68. %>
  69. <%=fromStr %>
  70. </td>
  71. <td>
  72. <%=valve.getVALVEPRODUCT() %>
  73. </td>
  74. <td>
  75. <%=valve.getVALVETYPE() %>
  76. </td>
  77. <td>
  78. <%=valve.getVALVEBATCH() %>
  79. </td>
  80. <td>
  81. <%
  82. String subDate="";
  83. String date=valve.getOPERDATE();
  84. if(date!=null&&!date.trim().equals("")){
  85. if(date.length()>=10){
  86. subDate = date.substring(0, 10);
  87. }else{
  88. subDate = date;
  89. }
  90. }
  91. %>
  92. <%=subDate %>
  93. </td>
  94. <td>
  95. <%
  96. String s=valve.getOPERTYPE();
  97. if(s!=null&&!s.trim().equals("")){
  98. if(s.equals("0")){
  99. %>
  100. 安装
  101. <% }else if(s.equals("1")){ %>
  102. 复装
  103. <% }else if(s.equals("2")){ %>
  104. 整车出厂
  105. <% }else if(s.equals("3")){ %>
  106. 检验更换
  107. <%}else{ %>
  108. 其他
  109. <%} %>
  110. <%}else{ %>
  111. <%} %>
  112. </td>
  113. <td>
  114. <%
  115. String remarkStr="";
  116. String res=valve.getREMARK();
  117. if(res!=null&&!res.trim().equals("")&&!res.equals("null")){
  118. remarkStr=res;
  119. }
  120. %>
  121. <%=remarkStr %>
  122. </td>
  123. </tr>
  124. <%} %>
  125. </table>
  126. </center>
  127. </body>
  128. </html>