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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="pgTitle" runat="server" Title="扫描集包流水确认收货">
        <ShortCuts>
            <a href="AbroadReceiveList.aspx">返回</a>
        </ShortCuts>
    </yee:PageTitle>
    <yee:MessageBox runat="server" ID="msg">
    </yee:MessageBox>
    <table cellpadding="0" cellspacing="0" border="1" class="table">
        <tr>
            <td class="tbpostheader"  style="width:400px;" ><%=GetText("集包流水") %>/<%=GetText("外箱号") %>：</td>
            <td class="tbpost" style="width:300px;">
                <asp:TextBox ID="txtCollectSerialNo" runat="server"   Width="300px" Height="80px" Font-Size="65px" ForeColor="red" ></asp:TextBox>
            </td>
            <td class="tbpost" rowspan="2">
              <asp:Label ID="labCount" runat="server" ClientIDMode="Static" Font-Size="95px" ForeColor="Red"></asp:Label>
            </td> 
        </tr>
        <tr>
          <td  class="tbpost"></td>
          <td class="tbpost">
              <asp:Button ID="btnSerach" runat="server" Text="扫描" CssClass="button" OnClick="btnSerach_Click" />
          </td>
        </tr>
    </table>

    <asp:Repeater ID="rptBoxList" runat="server">
        <HeaderTemplate>
            <table cellpadding="0" class="table" cellspacing="0" border="0" id="table2">
                <tr>
                    <td class="tbheader" align="center" width="200px">
                        <%=GetText("国际单号") %>
                    </td>
                    <td class="tbheader" align="center" width="300px">
                        <%=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="100px">
                        <%=GetText("重量") %>
                    </td>
                    <td class="tbheader" align="center" width="100px">
                        <%=GetText("体积") %>
                    </td>

                    <td class="tbheader" align="center" width="100px">
                        <%=GetText("移除") %>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">

                <td class="tbpost">
                    <%# Eval("CTWOrderNo")%>
                    <asp:HiddenField ID="hfId" runat="server" Value='<%#Eval("CollectUniqueId") %>' />
                </td>
                <td class="tbpost">
                    <%#Eval("CreatedOn") %>
                </td>
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%# Eval("WarehouseName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Weight")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Volume")%>
                </td>

                <td class="tbpost">
                    <asp:LinkButton ID="lbnRemove" runat="server" OnClick="lbnRemove_Click"
                        CommandArgument='<%#Eval("CollectUniqueId") %>'><%=GetText("移除") %></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
                <td class="tbpost">
                    <%# Eval("CTWOrderNo")%>
                    <asp:HiddenField ID="hfId" runat="server" Value='<%#Eval("CollectUniqueId") %>' />
                </td>
                <td class="tbpost">
                    <%#Eval("CreatedOn") %>
                </td>
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%# Eval("WarehouseName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Weight")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Volume")%>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnRemove" runat="server" OnClick="lbnRemove_Click"
                        CommandArgument='<%#Eval("CollectUniqueId") %>'><%=GetText("移除") %></asp:LinkButton>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
        </FooterTemplate>
    </asp:Repeater>
    <asp:HiddenField ID="hfFreightType" runat="server" />
    <asp:HiddenField ID="hfWarehouse" runat="server" />
    <!-- 物流信息 -->
    <table cellpadding="0" cellspacing="0" class="table">

        <tr>
            <td class="tbpostheader"  >
                <%=GetText("选中集包数") %>
            </td>

            <td class="tbpost">
                <asp:Literal ID="litCount" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("重量") %>
            </td>
            <td class="tbpost">
                <asp:Literal ID="litWeight" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("体积") %>
            </td>
            <td class="tbpost">
                <asp:Literal ID="litVolume" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("库区") %>
            </td>
            <td class="tbpost">
                <asp:DropDownList runat="server" ID="ddlStorageId" ></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("收货日期") %>
            </td>
            <td class="tbpost">
                <yee:DatePicker ID="dpReceiveOn" runat="server" IsRequired="false" />
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("国际物流公司") %>
            </td>
            <td class="tbpost">
                <yee:DictionaryRadioList ID="rblCompany" runat="server" RepeatDirection="Horizontal" TypeId="AbroadFreightCompany" IsShowAllAtFirst="false"></yee:DictionaryRadioList>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("单据上重量") %>
            </td>
            <td class="tbpost">
                <asp:TextBox ID="txtWeight" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("单据上体积") %>
            </td>
            <td class="tbpost">
                <asp:TextBox ID="txtVolume" runat="server"></asp:TextBox>
            </td>
        </tr>

        <tr>
            <td class="tbpostheader">
                <%=GetText("备注") %>
            </td>
            <td class="tbpost">
                <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tbfooter"></td>
            <td class="tbfooter">
                <asp:Button ID="btSave" runat="server" CssClass="button" OnClick="btSave_Click" Text="确认" />
            </td>
        </tr>
    </table>
</asp:Content>