<%@ page language="C#" autoeventwireup="true" inherits="SB_admin_N47_DeliveryNote_N47_DeliveryNote_Print, App_Web_nvuefjsa" %>


<!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" />
        </div>
                
        <asp:Panel ID="Panel" runat="server" Width="100%" Visible="false">
        
            上传Logo（图片宽度173px 高度 46px）：<asp:FileUpload ID="FileUpload" runat="server" />&nbsp;<asp:Button ID="btnUpload" runat="server" Text="上传" OnClick="btnUpload_Click" />
            
        
        </asp:Panel>
        
        <div id="print" style="width: 780px;">
            <table width="100%" border="1"  bordercolor="#00000" style="border: none; font-size: 15px; border-collapse: collapse;">
            <thead> 
                <tr>
                    <td align="center" colspan="7" height="60px" style="border:none" >
                    <div style="float:left">
                    
                    <IMG style="WIDTH: 173px; HEIGHT: 46px" src="logo.gif?t=<%=DateTime.Now.Millisecond %>" />
                    </div>
                    <div style="float:left; width: 394px;">
                     <span style="color:#000000;font-size:28px; word-spacing:40px; border-bottom:double 1px #000000">送&nbsp;货&nbsp;单</span></div>
                      
                        <div style="float:right; margin-top:20px">
                            No.<asp:Literal ID="litdn_number" runat="server"></asp:Literal></div>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" style="border:none">
                        收货单位：<asp:Literal ID="litdn_receiving" runat="server"></asp:Literal>
                        &nbsp;&nbsp;
                        </td>
                    <td colspan="1"  style="border:none" align="right">
                        <asp:Literal ID="litdn_date" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td colspan="6" style="border-top-style: none; border-right-style: none; border-left-style: none;
                        border-bottom-style: none">
                        地址：<asp:Literal ID="litdn_address" runat="server"></asp:Literal></td>
                    <td align="right" colspan="1" style="border-top-style: none; border-right-style: none;
                        border-left-style: none; border-bottom-style: none">
                    </td>
                </tr>
             
                <tr align="center">
                    <td width="10%">货号</td>
                    <td width="20%">名称</td>
                    <td width="20%">
                        名称及规格</td>
                    <td width="10%">
                        单位</td>
                    <td width="10%">
                        数量</td>
                    <td width="10%">
                        单价</td>
                    <td width="30%">
                        金额</td>
                </tr>
                </thead>
               <tbody> 
                <asp:Repeater ID="rptItem" runat="server">
                
                <ItemTemplate> 
                <tr align="center">
                    <td width="10%">&nbsp;<%#Eval("p_index")%>
                    </td>
                    <td width="20%">&nbsp;<%#Eval("p_name")%>
                        </td>
                    <td width="20%">&nbsp;<%#Eval("dnd_spe")%>
                        </td>
                    <td width="10%">&nbsp;<%#Eval("dnd_unit")%>
                        </td>
                    <td width="10%">&nbsp;<%#Eval("dnd_quantity")%>
                        </td>
                    <td width="10%">&nbsp;<%#Eval("dnd_unitPrice")%> 
                        </td>
                    <td width="30%">&nbsp;<%#Eval("dnd_sumPrice")%>
                        </td>
                </tr>
                </ItemTemplate>
                </asp:Repeater>
                </tbody>
                <tfoot> 
                <tr>
                    <td colspan="7">
                    <div style="float:left; font-size:11px; width:8%">
                    合&nbsp;&nbsp;计<br />   
                    人民币
                    </div>
                    <div  style="float:left;     margin:3px;   width:65%; text-align:left">
                    <span style="word-spacing:30px;font-size:18px; ">
                        <asp:Literal ID="litRMB" runat="server"></asp:Literal>
                    </span>
                    </div>
                    <div  style="float:left;   margin:3px;  margin-left:20px; width:22%;border-bottom:solid 1px #000000;">
                        <span style="font-size:14px">￥<asp:Literal ID="litdn_totalPrice" runat="server"></asp:Literal></span></div>
                    </td>
                </tr>
                <tr>
                    <td colspan="7" style="border:none">
                    <div style="float:left; width: 67%;">送货单位：<asp:Literal ID="litdn_delivery" runat="server"></asp:Literal></div>
                    <div style="float:left; width: 33%;">开单人员：<asp:Literal ID="litdn_uid" runat="server"></asp:Literal></div>
                    </td>
                </tr>
                </tfoot>
            </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%","80%",$("#print").html());
//          LODOP.SET_PRINT_PAGESIZE(1, "210mm","297mm","")
            LODOP.PREVIEW();
	     };
        </script>

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