| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ 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=ISO-8859-1">
- <title>采购综合报表</title>
- <object id="factory" style="display: none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="/ynet/controls/print/smsx.cab#Version=6,3,435,20"> </object>
- <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>
- <script defer>
- function load() {
- if (!factory.object) {
- } else {
- // -- advanced features
- factory.printing.SetMarginMeasure(2); // measure margins in inches
- factory.printing.printer = "HP DeskJet 870C";
- factory.printing.paperSize = "A4";
- factory.printing.paperSource = "Manual feed";
- factory.printing.collate = true;
- factory.printing.copies = 2;
- factory.printing.SetPageRange(false, 1, 3); // need pages from 1 to 3
- // -- basic features
- factory.printing.header = "This is MeadCo";
- factory.printing.footer = "Printing by ScriptX";
- factory.printing.portrait = true;
- factory.printing.leftMargin = 5.0;
- factory.printing.topMargin = 5.0;
- factory.printing.rightMargin = 5.0;
- factory.printing.bottomMargin = 5.0;
- }
- }
- </script>
- <script language="javascript">
- //****************************************************************
- //* 名 称:formPrintit
- //* 功 能:打印
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPrintit(isZong, isSelectPrinter) {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- printit(isZong, isSelectPrinter);
- }
- //****************************************************************
- //* 名 称:formPageSetup
- //* 功 能:打印设置
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPageSetup() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPageSetup();
- }
- //****************************************************************
- //* 名 称:formPreview
- //* 功 能:打印预览
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPreview() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPreview();
- }
- </script>
- </head>
- <body onload="load()">
- <div class="fncBtn Noprint">
- <input type="button" class="l-button" value="选择打印" onclick="formPrintit(false, true)">
- <input type="button" class="l-button" value="直接打印" onclick="formPrintit(true, false)">
- <input type="button" class="l-button" value="页面设置" onclick="formPageSetup()">
- <input type="button" class="l-button" value="打印预览" onclick="formPreview()">
- </div>
- <table class="print" style="border-collapse: collapse; margin: 0px auto; text-align: center;" border="1">
- <tr >
- <th colspan="8">
- <span>
- <font size="6">采购综合报表报表</font>
- </span>
- </th>
- </tr>
- <tr>
- <td width="12.5%">采购单号</td>
- <td width="12.5%">采购单主题</td>
- <td width="12.5%">供应商名称 </td>
- <td width="12.5%">采购日期</td>
- <td width="12.5%">采购负责人</td>
- <td width="12.5%">采购总额 </td>
- <td width="12.5%">采购状态</td>
- <td width="12.5%">付款状态</td>
- </tr>
- <c:forEach items="${requestScope.purchaseOrderList }" var="purchaseOrder">
- <tr>
- <td width="12.5%">${purchaseOrder.purchase_number }</td>
- <td width="12.5%">${purchaseOrder.purchase_theme }</td>
- <td width="12.5%">${purchaseOrder.purchase_suppliers_name }</td>
- <td width="12.5%">${purchaseOrder.purchase_date }</td>
- <td width="12.5%">${purchaseOrder.purchase_assigned_user_name }</td>
- <td width="12.5%">${purchaseOrder.purchase_after_amount }</td>
- <td width="12.5%">
- <c:forEach items="${requestScope.purchase_status}" var="purchase_status">
- <c:if test="${purchase_status.dvalue==purchaseOrder.purchase_status}">
- ${purchase_status.dname }
- </c:if>
- </c:forEach>
- </td>
- <td width="12.5%">
- <c:forEach items="${requestScope.purchase_payment_method}" var="purchase_payment_method">
- <c:if test="${purchase_payment_method.dvalue==purchaseOrder.purchase_payment_method}">
- ${purchase_payment_method.dname }
- </c:if>
- </c:forEach>
- </td>
- </tr>
- </c:forEach>
- </table>
- </body>
- </html>
|