printOutStock.jsp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
  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 uri="http://java.sun.com/jsp/jstl/fmt" prefix="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. <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", "23", "23", "23", "23");
  62. printit(isZong, isSelectPrinter);
  63. }
  64. //****************************************************************
  65. //* 名  称:formPageSetup
  66. //* 功 能:打印设置
  67. //* 作 者: 章家明
  68. //* 入口参数:
  69. //* 出口参数:
  70. //*****************************************************************
  71. function formPageSetup() {
  72. setupHeaderAndFooter("", "");
  73. setupMargin("1", "23", "23", "23", "23");
  74. popPageSetup();
  75. }
  76. //****************************************************************
  77. //* 名  称:formPreview
  78. //* 功 能:打印预览
  79. //* 作 者: 章家明
  80. //* 入口参数:
  81. //* 出口参数:
  82. //*****************************************************************
  83. function formPreview() {
  84. setupHeaderAndFooter("", "");
  85. setupMargin("1", "23", "23", "23", "23");
  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="l-button">
  106. <input type=button value="直接打印" onclick="formPrintit(true, false)" class="l-button">
  107. <!-- <input type=button value="页面设置" onclick="formPageSetup()" class="l-button"> -->
  108. <input type=button value="打印预览" onclick="formPreview()" class="l-button">
  109. </div>
  110. <div style="width:100%;text-align:center;margin-top:3px;">
  111. <div style="margin:0 auto;width:96%">
  112. <table class="print">
  113. <tr>
  114. <td colspan="5" style="border:none;" >
  115. <h6 style="font-size:18px; font-weight:bold;">冷湖滨地钾肥有限责任公司成品出库单</h6>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td style="font-size:14px;border:none;" colspan="2" align="left"><span style="float:left;">单位:${packing_map.car_num }</span></td>
  120. <td style="font-size:14px;border:none;" colspan="1" align="left"><fmt:formatDate value="${outStockInfo.out_stock_date }" pattern="yyyy 年 MM 月 dd 日"/></td>
  121. <td style="font-size:14px;border:none;" colspan="2" align="center"><span style="float:right;">${outStockInfo.out_stock_num }</span></td>
  122. </tr>
  123. <tr>
  124. <td style="font-size:14px;" width="23%">物资名称</td>
  125. <td style="font-size:14px;" width="22%">规格型号</td>
  126. <td style="font-size:14px;" width="16%">数量</td>
  127. <td style="font-size:14px;" width="16%">单位</td>
  128. <td style="font-size:14px;" width="23%">备注</td>
  129. </tr>
  130. <tr>
  131. <td style="font-size:14px;" >${packing_map.product_name }</td>
  132. <td style="font-size:14px;" >${packing_map.product_standard}</td>
  133. <td style="font-size:14px;" >${outStockInfo.out_stock_total_count }</td>
  134. <td style="font-size:14px;" >袋</td>
  135. <td style="font-size:14px;" >${outStockInfo.remark }</td>
  136. </tr>
  137. <tr>
  138. <td style="font-size:14px;" ></td>
  139. <td style="font-size:14px;" ></td>
  140. <td style="font-size:14px;" ></td>
  141. <td style="font-size:14px;" ></td>
  142. <td style="font-size:14px;" ></td>
  143. </tr>
  144. <tr>
  145. <td style="font-size:14px;" ></td>
  146. <td style="font-size:14px;" ></td>
  147. <td style="font-size:14px;" ></td>
  148. <td style="font-size:14px;" ></td>
  149. <td style="font-size:14px;" ></td>
  150. </tr>
  151. <tr>
  152. <td style="font-size:14px;" ></td>
  153. <td style="font-size:14px;" ></td>
  154. <td style="font-size:14px;" ></td>
  155. <td style="font-size:14px;" ></td>
  156. <td style="font-size:14px;" ></td>
  157. </tr>
  158. <tr>
  159. <td style="font-size:14px;border-right:none;" colspan="4" ><span style="float:left;">合计(大写):${total_count}袋整</span></td>
  160. <td style="font-size:14px;border-left:none;" >¥:${outStockInfo.out_stock_total_count }</td>
  161. </tr>
  162. <tr>
  163. <td style="font-size:14px;border:none;" ><span style="float:left;">财务:</span></td>
  164. <td style="font-size:14px;border:none;" ><span style="float:left;">主管:</span></td>
  165. <td style="font-size:14px;border:none;" colspan="2"><span style="float:left;">出库人:</span></td>
  166. <td style="font-size:14px;border:none;" ><span style="float:left;">承运人:</span></td>
  167. </tr>
  168. </table>
  169. </div>
  170. </div>
  171. </body>
  172. </html>