printFilialeDetail.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  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. <link href="main.css" rel="stylesheet" type="text/css"></link>
  10. <script type="text/javascript" src="/shares/js/constant.js"></script>
  11. <script type="text/javascript" src="controls/print/plugPrint.js"></script>
  12. <link rel="stylesheet" type="text/css" href="controls/print/print.css">
  13. <!--media=print 这个属性可以在打印时有效-->
  14. <style media=print>
  15. .Noprint {
  16. display: none;
  17. }
  18. .PageNext {
  19. page-break-after: always;
  20. }
  21. </style>
  22. <style type="text/css">
  23. table{
  24. width:100%;
  25. }
  26. .print td{
  27. padding-top:2px;
  28. height:30px;
  29. text-align:center;
  30. }
  31. .commont{
  32. height:30px;
  33. margin-top:30px;
  34. text-align:left;
  35. font-weight:bold;
  36. font-size:15px;
  37. }
  38. .fncBtn {
  39. width: 100%;
  40. background: #e5ecf9;
  41. height: 30px;
  42. padding-top: 3px;
  43. text-align:center;
  44. }
  45. .btn {
  46. height: 25px;
  47. line-height: 20px;
  48. }
  49. </style>
  50. <title>工程内业资料清单打印</title>
  51. <script language="javascript" type="text/javascript">
  52. //****************************************************************
  53. //* 名  称:formPrintit
  54. //* 功 能:打印
  55. //* 作 者: 章家明
  56. //* 入口参数:
  57. //* 出口参数:
  58. //*****************************************************************
  59. function formPrintit(isZong, isSelectPrinter) {
  60. setupHeaderAndFooter("", "");
  61. setupMargin("1", "28", "28", "28", "28");
  62. printit(isZong, isSelectPrinter);
  63. }
  64. //****************************************************************
  65. //* 名  称:formPageSetup
  66. //* 功 能:打印设置
  67. //* 作 者: 章家明
  68. //* 入口参数:
  69. //* 出口参数:
  70. //*****************************************************************
  71. function formPageSetup() {
  72. setupHeaderAndFooter("", "");
  73. setupMargin("1", "28", "28", "28", "28");
  74. popPageSetup();
  75. }
  76. //****************************************************************
  77. //* 名  称:formPreview
  78. //* 功 能:打印预览
  79. //* 作 者: 章家明
  80. //* 入口参数:
  81. //* 出口参数:
  82. //*****************************************************************
  83. function formPreview() {
  84. setupHeaderAndFooter("", "");
  85. setupMargin("1", "28", "28", "28", "28");
  86. popPreview();
  87. }
  88. function printWindow() {
  89. factory.printing.header = "This is MeadCo";
  90. factory.printing.footer = "Printing by ScriptX";
  91. factory.printing.portrait = false;
  92. factory.printing.leftMargin = 1.0;
  93. factory.printing.topMargin = 1.0;
  94. factory.printing.rightMargin = 1.0;
  95. factory.printing.bottomMargin = 1.0;
  96. // factory.printing.Print(false);
  97. factory.printing.Preview();
  98. }
  99. </script>
  100. </head>
  101. <body>
  102. <div class="fncBtn Noprint"> <object id="factory" viewastext style="display: none"
  103. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  104. codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
  105. </object> <input type=button value="选择打印" onclick="formPrintit(false, true)" class="btn">
  106. <input type=button value="直接打印" onclick="formPrintit(true, false)" class="btn">
  107. <input type=button value="页面设置" onclick="formPageSetup()" class="btn">
  108. <input type=button value="打印预览" onclick="formPreview()" class="btn">
  109. </div>
  110. <div style="width:100%;text-align:center">
  111. <div style="margin:0 auto;width:90%">
  112. <table class="print">
  113. <tr>
  114. <td colspan="6" >
  115. <h6 style="font-size:30px;">
  116. 分公司基本资料存档清单
  117. </h6>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td style="font-size:15px;">分公司全称</td>
  122. <td style="font-size:15px;text-align: left;" colspan="5" >${requestScope.filialeInfo.filiale_name }</td>
  123. </tr>
  124. <tr>
  125. <td style="font-size:15px;" >分公司负责人</td>
  126. <td style="font-size:15px;" colspan="2" >${requestScope.filialeInfo.filiale_principal }</td>
  127. <td style="font-size:15px;" >联系电话</td>
  128. <td style="font-size:15px;" colspan="2">${requestScope.filialeInfo.filiale_principal_phone }</td>
  129. </tr>
  130. <tr>
  131. <td style="font-size:15px;" >办公地址</td>
  132. <td style="font-size:15px;text-align: left;" colspan="5" >${requestScope.filialeInfo.filiale_address }</td>
  133. </tr>
  134. <tr>
  135. <td style="font-size:15px;" >联系人</td>
  136. <td style="font-size:15px;" >${requestScope.filialeInfo.filiale_linkman }</td>
  137. <td style="font-size:15px;" >联系电话</td>
  138. <td style="font-size:15px;">${requestScope.filialeInfo.filiale_linkman_phone }</td>
  139. <td style="font-size:15px;">传真</td>
  140. <td style="font-size:15px;">${requestScope.filialeInfo.filiale_linkman_fax }</td>
  141. </tr>
  142. <tr>
  143. <td style="font-size:15px;" >序号</td>
  144. <td style="font-size:15px;" colspan="4">资料名称</td>
  145. <td style="font-size:15px;" >备注</td>
  146. </tr>
  147. <c:forEach var="list" items="${listFilialeDetail}" varStatus="status">
  148. <tr>
  149. <td style="font-size:15px;" >${status.index + 1}</td>
  150. <td style="font-size:15px;text-align: left;" colspan="4">${list.filiale_data_name }</td>
  151. <td style="font-size:15px;" >${list.filiale_data_remark }</td>
  152. </tr>
  153. </c:forEach>
  154. </table>
  155. </div>
  156. </div>
  157. </body>
  158. </html>