<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InternationalPackageBoxCollection.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.Package.InternationalPackageBoxCollection" MasterPageFile="~/Package/package.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="../lodop/LodopFuncs.js"></script>
    <script language="javascript" src="../lodop/CLodopfuncs.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/PrintTemplate.js"></script>
    <style>
        @font-face {
            font-family: 'KhmerOSFont';
            src: url('../Scripts/KhmerOS.ttf') format('truetype');
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <yee:PageTitle ID="pgTitle" runat="server" Title="直发包裹集包">
            <ShortCuts>
                <a href="InternationalPackageBoxList.aspx"><%=GetText("返回") %></a>
            </ShortCuts>
        </yee:PageTitle>
        <yee:MessageBox ID="msg" runat="server">
        </yee:MessageBox>
        <table cellpadding="0" cellspacing="0" border="1" class="table">
            <tr>
                <td class="tbpostheader"><%=GetText("海外箱子号") %></td>
                <td class="tbpost" style="width:300px;">
                    <asp:TextBox ID="txtBoxSerialNo" runat="server" Width="300px" Height="80px" Font-Size="75px" ForeColor="red"></asp:TextBox>
                </td>
                <td class="tbpost" rowspan="3">
                  <asp:Label ID="litSureCount" runat="server" ClientIDMode="Static" Font-Size="95px" ForeColor="Red"></asp:Label>
                </td> 
            </tr>
             <tr>
                 <td class="tbpostheader"><%=GetText("合计重量") %></td>
                  <td class="tbpost"  >
                    <asp:Label ID="litTotalWeight" runat="server" ClientIDMode="Static" ForeColor="Red"></asp:Label>
                  </td>
             </tr>
            <tr>
                <td  class="tbpost"></td>
                <td class="tbpost">
                    <yee:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>

        <div class="subheader">
            <div class="title">
                <%=GetText("集包信息") %>   ------ <%=GetText("目标仓") %>：<asp:Literal ID="litTarehouseName" runat="server"></asp:Literal>
                <%=GetText("运输方式") %>  ：<asp:Literal ID="litFreightType" runat="server"></asp:Literal>
            </div>
            <div style="clear: both">
            </div>
        </div>

        <asp:Repeater ID="rptBoxList" runat="server" OnItemDataBound="rptBoxList_ItemDataBound">
            <HeaderTemplate>
                <table cellpadding="0" class="table" cellspacing="0" border="0" id="table2">
                    <tr>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("序号") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("箱子流水号") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("目标仓") %>
                        </td>
                        <td class="tbheader" align="center" width="200px">
                            <%=GetText("品名") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("客户代号") %>
                        </td>
                        <td class="tbheader" align="center" width="200px">
                            <%=GetText("重量") %>
                        </td>
                        <td class="tbheader" align="center" width="200px">
                            <%=GetText("体积") %>
                        </td>
                        <td class="tbheader" align="center">
                            <%=GetText("移除") %>
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="tbrow">
                    <td class="tbpost">
                        <%# Eval("RowNum")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("SerailNo")%>
                        <asp:HiddenField ID="hfBoxId" runat="server" Value='<%#Eval("BoxId") %>' />
                        <asp:Literal ID="litModifiedOn" runat="server" Text='<%#Yee.Utilities.Helpers.DisplayHelper.RetainMiliseconds(Eval("ModifiedOn"))%>' Visible="false"></asp:Literal>
                    </td>
                    <td class="tbpost">
                        <%# Eval("TargetWarehouseName")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("E3SubCataName")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("CustomerCode") %> &nbsp;&nbsp; <%#Eval("VipCode") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("Weight")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("Size")%>
                    </td>
                    <td class="tbpost">
                        <asp:LinkButton ID="lbnRemove" runat="server" OnClick="lbnRemove_click" CommandArgument='<%#Eval("BoxId") %>'><%=GetText("移除") %></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr class="tbrowalter">
                    <td class="tbpost">
                        <%# Eval("RowNum")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("SerailNo")%>
                        <asp:HiddenField ID="hfBoxId" runat="server" Value='<%#Eval("BoxId") %>' />
                        <asp:Literal ID="litModifiedOn" runat="server" Text='<%#Yee.Utilities.Helpers.DisplayHelper.RetainMiliseconds(Eval("ModifiedOn"))%>' Visible="false"></asp:Literal>
                    </td>
                    <td class="tbpost">
                        <%# Eval("TargetWarehouseName")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("E3SubCataName")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("CustomerCode") %> &nbsp;&nbsp; <%#Eval("VipCode") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("Weight")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("Size")%>
                    </td>
                    <td class="tbpost">
                        <asp:LinkButton ID="lbnRemove" runat="server" OnClick="lbnRemove_click" CommandArgument='<%#Eval("BoxId") %>'><%=GetText("移除") %></asp:LinkButton>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>

        <asp:HiddenField ID="hfTargetwarehouseId" runat="server" />
        <asp:HiddenField ID="hfCalFreightTypeId" runat="server" />
        <asp:HiddenField ID="hfWebsiteId" runat="server" />
        <asp:Hiddenfield ID="hfIsAgent" runat="server" />
        <asp:HiddenField ID="hfCaluType" runat="server" />
        <div>
            <table cellpadding="0" cellspacing="0" border="0" class="table">
                <tr id="tr_size" runat="server">
                    <td class="tbpostheader">
                        <%=GetText("尺寸") %>：
                        <asp:HiddenField ID="hfWarehouseId" runat="server" />
                    </td>
                    <td class="tbpost">
                        <%=GetText("长") %><asp:TextBox ID="txtLong" runat="server" CssClass="input-small"></asp:TextBox>CM
                        <%=GetText("宽") %><asp:TextBox ID="txtWidth" runat="server" CssClass="input-small"></asp:TextBox>CM
                        <%=GetText("高") %><asp:TextBox ID="txtHeight" runat="server" CssClass="input-small"></asp:TextBox>CM
                    </td>
                </tr>
                <tr id="tr_volume" runat="server">
                    <td class="tbpostheader">
                        <%=GetText("体积") %>：
                    </td>
                    <td class="tbpost">
                        <asp:TextBox ID="txtVolume" runat="server" CssClass="input-small"></asp:TextBox>m3
                    </td>
                </tr>
                <tr>
                    <td class="tbpostheader">
                        <%=GetText("重量") %>：
                    </td>
                    <td class="tbpost">
                        <asp:TextBox ID="txtWeight" runat="server" CssClass="input-small"></asp:TextBox>KG
                    </td>
                </tr>
                <tr>
                    <td class="tbpostheader"> <%=GetText("运输方式") %>
                    </td>
                    <td class="tbpost">
                        <asp:RadioButtonList ID="rblFreightType" runat="server" RepeatDirection="Horizontal" Enabled="false"></asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tbpostheader"><%=GetText("包装类型") %>
                    </td>
                    <td class="tbpost">
                        <asp:RadioButtonList ID="rblCollectBoxType" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tbpostheader"><%=GetText("货物类型") %>
                    </td>
                    <td class="tbpost">
                        <asp:RadioButtonList ID="rblCollectGoodType" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tbpostheader"></td>
                    <td class="tbpost">
                        <asp:Button ID="btnSave" runat="server" OnClientClick='return confirm("确认末端包裹集包操作吗？")'
                            CssClass="button" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>