<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_N47_PrintForm_N47_PrintForm_Print, App_Web_54a0bsbe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <title>项目制作单</title>

    <script language="javascript" src="<%=ResolveUrl("~/SB/control/print/LodopFuncs.js?v=1.1")%>"></script>

    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.min.js?v=1")%>"></script>

    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/jquery.easyui.min.js?v=1")%>"></script>

    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/easy_ui/locale/easyui-lang-zh_CN.js?v=1")%>"></script>

    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/SB/control/easy_ui/themes/bootstrap/easyui.css?v=1")%>" />

    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/SB/control/js/My97DatePicker/WdatePicker.js")%>"></script>

    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"   height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="<%=ResolveUrl("~/SB/control/print/install_lodop.exe")%>"></embed>
    </object>
    <style>
        
    a {
    color: #015BA7;
    }
    a:hover {
	    color: red;
    }
    </style>
</head>
<body>
    <form runat="server" id="form1">
        <div style="border-bottom: solid 1px #c3c3c3; font-size: 14px; margin-bottom: 5px">
            <span style="font-size: 14px"></span>
            <input id="printBtn" type="button" value="打印制作单" onclick="printTest1()" style="width: 119px" />
            <input id="Button1" type="button" value="导出EXCEL制作单" onclick="OutToFileOneSheet()" style="width: 119px" />
            
        </div>
        <div id="print" style="width: 780px;">
            <table width="100%" border="1" cellpadding="10" bordercolor="#00000" style="border: none;
                font-size: 18px; border-collapse: collapse;">
                <tr>
                    <td style="border: none" colspan="2" align="center" height="55px">
                        <span style="font-size: 26px; font-weight: bold">项&nbsp;目&nbsp;完&nbsp;成&nbsp;制&nbsp;作&nbsp;单</span>
                    </td>
                </tr>
                <tr>
                    <td style="border: none" colspan="2" align="right">
                        印刷单：<asp:Literal ID="litpf_number" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td align="center" width="20%">
                        制作名称
                    </td>
                    <td align="center" width="80%">
                        <asp:Literal ID="litpf_name" runat="server"></asp:Literal>&nbsp;</td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        规格尺寸
                    </td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_size" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        数量</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_amount" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        印刷总页量</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_sumAmout" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        封面用纸</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_cover" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        内页用纸</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_insidePages" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        其他工艺</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_other" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        装订方式</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_bindingStyle" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        交货时间</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_delivery" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" width="30%">
                        交货方式</td>
                    <td align="center" width="70%">
                        <asp:Literal ID="litpf_deliveryMode" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" style="height: 74px" width="30%">
                        备注</td>
                    <td align="center" style="height: 74px" width="70%">
                        <asp:Literal ID="litpf_note" runat="server"></asp:Literal></td>
                </tr>
              
            </table>
        </div>

        <script language="javascript">
         var LODOP = null;
         function printTest1()
         {	
            LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  	
            LODOP.PRINT_INIT("印刷单");
            LODOP.ADD_PRINT_TABLE("2.5%","2.5%","95%","95%",$("#print").html());
//          LODOP.SET_PRINT_PAGESIZE(1, "210mm","297mm","")
            LODOP.PREVIEW();
	     };
	     
	     	 
	function OutToFileOneSheet(){

	    LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  

		LODOP.PRINT_INIT("");
      
		LODOP.ADD_PRINT_TABLE("5mm","5mm","287mm","150mm",$("#print").html());
    
//		LODOP.SET_SAVE_MODE("QUICK_SAVE",true);//快速生成（无表格样式,数据量较大时或许用到）

		LODOP.SAVE_TO_FILE("<%=name %>制作单.xls");
		

	}
        </script>

    </form>
</body>
</html>
