| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK">
- <link href="main.css" rel="stylesheet" type="text/css"></link>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="controls/print/plugPrint.js"></script>
- <link rel="stylesheet" type="text/css" href="controls/print/print.css">
- <!--media=print 这个属性可以在打印时有效-->
- <style media=print>
- .Noprint {
- display: none;
- }
- .PageNext {
- page-break-after: always;
- }
- </style>
- <style type="text/css">
- table{
- width:100%;
- }
- .print td{
- padding-top:2px;
- height:30px;
- text-align:center;
- }
- .commont{
- height:30px;
- margin-top:30px;
- text-align:left;
- font-weight:bold;
- font-size:15px;
- }
- .fncBtn {
- width: 100%;
- /* background: #e5ecf9; */
- height: 30px;
- padding-top: 3px;
- text-align:center;
- }
- .btn {
- height: 25px;
- line-height: 20px;
- }
- </style>
- <title>配货单打印</title>
- <script language="javascript" type="text/javascript">
- //****************************************************************
- //* 名 称:formPrintit
- //* 功 能:打印
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPrintit(isZong, isSelectPrinter) {
- setupHeaderAndFooter("", "");
- setupMargin("1", "23", "23", "23", "23");
- printit(isZong, isSelectPrinter);
- }
- //****************************************************************
- //* 名 称:formPageSetup
- //* 功 能:打印设置
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPageSetup() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "23", "23", "23", "23");
- popPageSetup();
- }
- //****************************************************************
- //* 名 称:formPreview
- //* 功 能:打印预览
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPreview() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "23", "23", "23", "23");
- popPreview();
- }
- function printWindow() {
- factory.printing.header = "This is MeadCo";
- factory.printing.footer = "Printing by ScriptX";
- factory.printing.portrait = false;
- factory.printing.leftMargin = 1.0;
- factory.printing.topMargin = 1.0;
- factory.printing.rightMargin = 1.0;
- factory.printing.bottomMargin = 1.0;
- // factory.printing.Print(false);
- factory.printing.Preview();
- }
- </script>
- </head>
- <body>
- <div class="fncBtn Noprint"> <object id="factory" viewastext style="display: none"
- classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
- codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
- </object> <input type=button value="选择打印" onclick="formPrintit(false, true)" class="l-button">
- <input type=button value="直接打印" onclick="formPrintit(true, false)" class="l-button">
- <!-- <input type=button value="页面设置" onclick="formPageSetup()" class="l-button"> -->
- <input type=button value="打印预览" onclick="formPreview()" class="l-button">
- </div>
- <div style="width:100%;text-align:center;margin-top:3px;">
- <div style="margin:0 auto;width:96%">
- <table class="print">
- <tr>
- <td colspan="5" style="border:none;" >
- <h6 style="font-size:18px; font-weight:bold;">冷湖滨地钾肥有限责任公司成品出库单</h6>
- </td>
- </tr>
- <tr>
- <td style="font-size:14px;border:none;" colspan="2" align="left"><span style="float:left;">单位:${packing_map.car_num }</span></td>
- <td style="font-size:14px;border:none;" colspan="1" align="left"><fmt:formatDate value="${outStockInfo.out_stock_date }" pattern="yyyy 年 MM 月 dd 日"/></td>
- <td style="font-size:14px;border:none;" colspan="2" align="center"><span style="float:right;">${outStockInfo.out_stock_num }</span></td>
- </tr>
- <tr>
- <td style="font-size:14px;" width="23%">物资名称</td>
- <td style="font-size:14px;" width="22%">规格型号</td>
- <td style="font-size:14px;" width="16%">数量</td>
- <td style="font-size:14px;" width="16%">单位</td>
- <td style="font-size:14px;" width="23%">备注</td>
- </tr>
- <tr>
- <td style="font-size:14px;" >${packing_map.product_name }</td>
- <td style="font-size:14px;" >${packing_map.product_standard}</td>
- <td style="font-size:14px;" >${outStockInfo.out_stock_total_count }</td>
- <td style="font-size:14px;" >袋</td>
- <td style="font-size:14px;" >${outStockInfo.remark }</td>
- </tr>
- <tr>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- </tr>
- <tr>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- </tr>
- <tr>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- <td style="font-size:14px;" ></td>
- </tr>
- <tr>
- <td style="font-size:14px;border-right:none;" colspan="4" ><span style="float:left;">合计(大写):${total_count}袋整</span></td>
- <td style="font-size:14px;border-left:none;" >¥:${outStockInfo.out_stock_total_count }</td>
- </tr>
- <tr>
- <td style="font-size:14px;border:none;" ><span style="float:left;">财务:</span></td>
- <td style="font-size:14px;border:none;" ><span style="float:left;">主管:</span></td>
- <td style="font-size:14px;border:none;" colspan="2"><span style="float:left;">出库人:</span></td>
- <td style="font-size:14px;border:none;" ><span style="float:left;">承运人:</span></td>
-
- </tr>
- </table>
-
- </div>
- </div>
- </body>
- </html>
|