printStatusChangeRecord.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  9. <title>变更记录查询</title>
  10. <script type="text/javascript"
  11. src="${pageContext.request.contextPath }/controls/print/plugPrint.js"></script>
  12. <!--media=print 这个属性可以在打印时有效-->
  13. <style media=print>
  14. .Noprint {
  15. display: none;
  16. }
  17. .PageNext {
  18. page-break-after: always;
  19. }
  20. </style>
  21. <style type="text/css">
  22. body {
  23. font-size: 12pt;
  24. }
  25. .auditOpionin_left_td {
  26. border-left: 1px solid #000000;
  27. border-bottom: 0px solid #000000;
  28. border-right: 1px solid #000000;
  29. }
  30. .auditOpionin_right_td {
  31. border-bottom: 0px solid #000000;
  32. border-right: 1px solid #000000;
  33. }
  34. .auditOpionin_div {
  35. padding-left: 10px;
  36. padding-top: 10px;
  37. margin-bottom: 10px;
  38. }
  39. .auditOpionin_content_left_td {
  40. border-left: 1px solid #000000;
  41. border-bottom: 1px solid #000000;
  42. border-right: 1px solid #000000;
  43. padding-left: 10px;
  44. }
  45. .auditOpionin_content_right_td {
  46. border-bottom: 1px solid #000000;
  47. border-right: 1px solid #000000;
  48. padding-left: 10px;
  49. }
  50. .ctd {
  51. margin: 5px;
  52. padding: 5px;
  53. }
  54. .tdp {
  55. border-bottom: 1 2px solid #000000 #000000;
  56. border-left: 1 2px solid #000000 #000000;
  57. border-right: 0 2px solid #000000 #ffffff;
  58. border-top: 0 2px solid #000000 #ffffff;
  59. }
  60. .tabp {
  61. border-color: #000000 #000000 #000000 #000000;
  62. border: 2px solid #000000;
  63. border-top-width: 2px;
  64. border-right-width: 2px;
  65. border-bottom-width: 1px;
  66. border-left-width: 1px;
  67. }
  68. .NOPRINT {
  69. font-family: "宋体";
  70. font-size: 9pt;
  71. }
  72. ul {
  73. list-style: none;
  74. margin: 0;
  75. padding: 0;
  76. }
  77. ul li {
  78. line-height: 28px;
  79. }
  80. #mdA table,#mdA table td,#mdA table th{border:1px solid #000000;border-collapse:collapse;}
  81. </style>
  82. <script language="javascript" type="text/javascript">
  83. //****************************************************************
  84. //* 名  称:formPrintit
  85. //* 功 能:打印
  86. //* 作 者: 章家明
  87. //* 入口参数:
  88. //* 出口参数:
  89. //*****************************************************************
  90. function formPrintit(isZong, isSelectPrinter) {
  91. setupHeaderAndFooter("", "");
  92. setupMargin("1", "28", "28", "28", "28");
  93. printit(isZong, isSelectPrinter);
  94. }
  95. //****************************************************************
  96. //* 名  称:formPageSetup
  97. //* 功 能:打印设置
  98. //* 作 者: 章家明
  99. //* 入口参数:
  100. //* 出口参数:
  101. //*****************************************************************
  102. function formPageSetup() {
  103. setupHeaderAndFooter("", "");
  104. setupMargin("1", "28", "28", "28", "28");
  105. popPageSetup();
  106. }
  107. //****************************************************************
  108. //* 名  称:formPreview
  109. //* 功 能:打印预览
  110. //* 作 者: 章家明
  111. //* 入口参数:
  112. //* 出口参数:
  113. //*****************************************************************
  114. function formPreview() {
  115. setupHeaderAndFooter("", "");
  116. setupMargin("1", "28", "28", "28", "28");
  117. popPreview();
  118. }
  119. function printWindow() {
  120. factory.printing.header = "This is MeadCo";
  121. factory.printing.footer = "Printing by ScriptX";
  122. factory.printing.portrait = false;
  123. factory.printing.leftMargin = 1.0;
  124. factory.printing.topMargin = 1.0;
  125. factory.printing.rightMargin = 1.0;
  126. factory.printing.bottomMargin = 1.0;
  127. // factory.printing.Print(false);
  128. factory.printing.Preview();
  129. }
  130. </script>
  131. </head>
  132. <body>
  133. <table width="100%" cellpadding="0" cellspacing="0" class="hl hr"
  134. bordercolor="#000000" align="center">
  135. <tr class="Noprint">
  136. <td align="center">
  137. <%-- <object id="xprint" name="xprint" style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="${pageContext.request.contextPath }/controls/print/smsx.cab#version=6,5,439,72"></object> --%>
  138. <object id="factory" viewastext style="display: none"
  139. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  140. codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
  141. </object> <input type=button value="选择打印" onclick="formPrintit(false, true)">
  142. <input type=button value="直接打印" onclick="formPrintit(true, false)">
  143. <input type=button value="页面设置" onclick="formPageSetup()"> <input
  144. type=button value="打印预览" onclick="formPreview()">
  145. </td>
  146. </tr>
  147. </table>
  148. <br />
  149. <div id="mdA" style="margin-top: 4px">
  150. <table cellpadding="0" width="900" cellspacing="0" align="center" class="print">
  151. <tr>
  152. <th>资产编号</th>
  153. <th>资产名称</th>
  154. <th>变更后状态</th>
  155. <th>变更前状态</th>
  156. <th>变更日期</th>
  157. </tr>
  158. <c:forEach items="${asList }" var="assetStatus">
  159. <tr>
  160. <td>${assetStatus.asset_id }</td>
  161. <td>${assetStatus.asset_name }</td>
  162. <td>${assetStatus.new_asset_status_name }</td>
  163. <td>${assetStatus.old_asset_status_name }</td>
  164. <td><fmt:formatDate value="${assetStatus.create_date }" pattern="yyyy-MM-dd"/></td>
  165. </tr>
  166. </c:forEach>
  167. <%-- <tr>
  168. <td align="left">资产总额(元)</td>
  169. <td colspan="6" align="center">${assetAllCountTotal}</td>
  170. </tr> --%>
  171. </table>
  172. </div>
  173. </body>
  174. </html>