<%@ Page Title="" Language="C#" MasterPageFile="~/SignBox/Site1.Master" AutoEventWireup="true" CodeBehind="CustomerPickUpGoods.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.SignBox.CustomerPickUpGoods" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title><%=GetText("提货单") %></title>
    <style type="text/css">
        .blue {
            font-size: 20px;
            font-weight: bold;
            color: #0094ff;
        }
    </style>

    <script language="javascript" src="../lodop/LodopFuncs.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="ptTitle" runat="server">
    </yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server">
    </yee:MessageBox>
    <div class="print" id="print">

        <div class="query" id="div_1">
            <table cellpadding="0" cellspacing="0" width="100%" border="0">
                <tbody>
                    <tr>
                        <td colspan="4">
                            <div style="text-align: center; font-size: 25px;">
                                <%=GetText("提货单") %>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="50%" class="blue">
                            <%=GetText("www.kh-mall.com网站柬埔寨代理") %>：
                        </td>
                        <td colspan="2" width="50%" class="blue">
                            <%=GetText("客户") %>：
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <%=GetText("易运商贸") %>
                        </td>
                        <td colspan="2">
                            <%=GetText("客户代号") %>：
                            <asp:Label ID="lblCuCode" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <%=GetText("柬埔寨金边市，金满城，翡翠路，E0号门") %>
                        </td>
                        <td colspan="2">
                            <%=GetText("客户电邮") %>：
                            <asp:Label ID="lblCuEmail" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <%=GetText("电话") %>：023 213 997&nbsp;&nbsp;&nbsp;&nbsp;
                            <%=GetText("电邮") %>：service@kh-mall.com
                        </td>
                        <td colspan="2">
                            <%=GetText("客户电话") %>：
                            <asp:Label ID="lblCuTel" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="blue"><%=GetText("装运地点") %>：</span>
                            <%=GetText("中国广州") %>
                        </td>
                        <td>
                            <span class="blue"><%=GetText("装运码头") %>：</span>
                            <%=GetText("中国广州") %>
                        </td>
                        <td colspan="2">
                            <span class="blue"><%=GetText("货送地址") %>：</span>
                            <%=GetText("金边") %>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <span class="blue"><%=GetText("出运日期") %>：</span>
                            <asp:Label ID="lblstockout" runat="server" Text=""></asp:Label>
                        </td>
                        <td>
                            <span class="blue"><%=GetText("到达日期") %>：</span>
                            <asp:Label ID="lblreceived" runat="server" Text=""></asp:Label>
                        </td>
                        <td colspan="2"></td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div id="div_2">
            <asp:Repeater ID="RepPickUp" runat="server">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="table" id="table">
                        <thead>
                            <tr>

                                <td class="tbheader">
                                    <%=GetText("序号") %>
                                </td>
                                <td class="tbheader" width="150px">
                                    <%=GetText("外箱号码") %>
                                </td>
                                <td class="tbheader">
                                    <%=GetText("提货码") %>
                                </td>
                                <td class="tbheader">
                                    <%=GetText("毛重") %>（KG）
                                </td>
                                <td class="tbheader">
                                    <%=GetText("体积") %>（m³）
                                </td>
                                <td class="tbheader">
                                    <%=GetText("运价") %>（$ / m³）
                                </td>
                                <td class="tbheader">
                                    <%=GetText("金额") %>
                                </td>
                                <td style="display: none"></td>
                            </tr>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tbrow">

                        <td class="tbpost">

                            <asp:Literal ID="litBoxId" runat="server" Text='<%# this.RepPickUp.Items.Count + 1%> '></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litBoxSerialNo" runat="server" Text='<%#Eval("BoxSerialNo") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litVerificationCode" runat="server" Text='<%#Eval("VerificationCode") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAbroadBoxWeight" runat="server" Text='<%#Eval("AbroadBoxWeight") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAbroadBoxVolume" runat="server" Text='<%#Eval("AbroadBoxVolume") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:TextBox AutoPostBack="true" ID="txtyunjia" OnTextChanged="text_TextChanged" runat="server" Text="170"></asp:TextBox>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAmount" runat="server" Text=''></asp:Literal>

                            <asp:HiddenField ID="hfBoxId" runat="server" Value='<%#Eval("BoxId") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="tbrow">

                        <td class="tbpost">

                            <asp:Literal ID="litxulie" runat="server" Text='<%# this.RepPickUp.Items.Count + 1%> '></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litBoxSerialNo" runat="server" Text='<%#Eval("BoxSerialNo") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litVerificationCode" runat="server" Text='<%#Eval("VerificationCode") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAbroadBoxWeight" runat="server" Text='<%#Eval("AbroadBoxWeight") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAbroadBoxVolume" runat="server" Text='<%#Eval("AbroadBoxVolume") %>'></asp:Literal>
                        </td>
                        <td class="tbpost">

                            <asp:TextBox AutoPostBack="true" ID="txtyunjia" runat="server" OnTextChanged="text_TextChanged" Text="170"></asp:TextBox>
                        </td>
                        <td class="tbpost">

                            <asp:Literal ID="litAmount" runat="server" Text=""></asp:Literal>

                            <asp:HiddenField ID="hfBoxId" runat="server" Value='<%#Eval("BoxId") %>' />
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                </FooterTemplate>
            </asp:Repeater>

            <tr>
                <td>
                    <%=GetText("总箱数") %>：<asp:Label ID="lblCount" runat="server" Text=""></asp:Label>
                </td>
                <td></td>
                <td></td>
                <td>

                    <%=GetText("总毛重") %>：<asp:Label ID="lblWeightTotal" runat="server" Text=""></asp:Label>
                </td>
                <td>

                    <%=GetText("总体积") %>：<asp:Label ID="lblVolumeTotal" runat="server" Text=""></asp:Label>
                </td>
                <td></td>
                <td>
                    <%=GetText("总金额") %>：<asp:Label ID="lblTotal" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            </tbody>
            </table>
        </div>

        <div>
            <div style="clear: both; float: right">
                <div id="display" runat="server">
                    <a href="javascript:prn1_preview()"><%=GetText("打印预览") %></a> <a href="javascript:prn1_print()"><%=GetText("直接打印") %></a>
                    <a href="javascript:prn1_printA()"><%=GetText("选择打印机") %></a>
                </div>
            </div>
        </div>
        <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="../lodop/install_lodop.exe"></embed>
        </object>
        <script language="javascript" type="text/javascript">
            var LODOP; //声明为全局变量
            function prn1_preview() {

                CreateOneFormPage();
                LODOP.PREVIEW();
            };
            function prn1_print() {
                CreateOneFormPage();
                LODOP.PRINT();
            };
            function prn1_printA() {
                CreateOneFormPage();
                LODOP.PRINTA();
            };
            function CreateOneFormPage() {
                LODOP = getLodop(document.getElementById('LODOP'), document.getElementById('LODOP_EM'));
                LODOP.PRINT_INIT("打印控件");
                LODOP.SET_PRINT_PAGESIZE(2, null, null, null);
                LODOP.SET_SHOW_MODE("LANDSCAPE_DEFROTATED", 1);
                var strStyle = "<style> table,td,th {border:solid 1px black;border-collapse: collapse} table{width:100%}</style>";
                var strStyle2 = "<style> .blue {font-size: 20px;font-weight: bold;color: #0094ff;}</style>";
                LODOP.ADD_PRINT_TABLE(240, "5%", "92%", "50%", strStyle + document.getElementById("div_2").innerHTML);
                LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", 1);
                LODOP.SET_PRINT_STYLEA(0, "Vorient", 3);
                LODOP.ADD_PRINT_TABLE(20, "5%", "92%", "92%", strStyle2 + document.getElementById("div_1").innerHTML);
                LODOP.SET_PRINT_STYLEA(0, "ItemType", 1);
                LODOP.SET_PRINT_STYLEA(0, "LinkedItem", 1);
                var footHtml = "<%=GetText("制单日期") %>：<%=createdno%>                       <%=GetText("放货人签名") %>： <%=nativename%>                       <%=GetText("客户确认签收") %>： <%=customercode%> ";
                LODOP.ADD_PRINT_TEXT("95%", "5%", "100%", 20, footHtml + "                                            <%=GetText("第")%>#<%=GetText("页")%>/<%=GetText("共")%>&<%=GetText("页")%>");
                LODOP.SET_PRINT_STYLEA(0, "ItemType", 2);
                LODOP.SET_PRINT_STYLEA(0, "Horient", 1);
                LODOP.SET_PRINTER_INDEXA("outPrinterAB58GK");
            };
        </script>
    </div>
</asp:Content>