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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <yee:PageTitle ID="ptTitle" runat="server">
        <ShortCuts>
            <a href="LoadCar.aspx" title="发起新的装车">发起新的装车</a>
            <a href="GetAbroadStockOutCardRecord.aspx" target="_blank" title="配送统计表"   >配送统计表</a>
        </ShortCuts>
    </yee:PageTitle>

     <div class="subheader">
        <div class="title">
            <%=GetText("配送详情") %>
        </div>
        <div class="command">
             <a href="LoadCar.aspx" title="发起新的装车">发起新的装车</a>
            <asp:Button ID="btnRecord" runat="server" Text="配送统计表" CssClass="button"  OnClick="btnRecord_Click" />
             
        </div>
        <div style="clear: both"></div>
    </div>
    <yee:MessageBox ID="msg" runat="server">
    </yee:MessageBox>
    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <%=GetText("配送流水号") %>
                </td>
                <td>
                    <asp:TextBox ID="txtOrderNo" runat="server"></asp:TextBox>
                </td>
                <td>
                    <%=GetText("日期") %>
                </td>
                <td>
                    <yee:DatePicker ID="dtFrom" runat="server" IsRequired="false" />
                    -<yee:DatePicker ID="dtTo" runat="server" IsRequired="false" />
                </td>

                <td>
                    <%=GetText("仓储中心") %>
                </td>
                <td>
                    <yee:UserWarehousesDropDownList ID="ddlWarehouse" runat="server" WarehouseType="海外仓储">
                    </yee:UserWarehousesDropDownList>
                </td>
                <td>
                    <%=GetText("状态") %>
                </td>
                <td>
                    <yee:DictionaryDropDownList1 runat="server" ID="ddlStatu" TypeId="LoadCarStatu" IsShowAllAtFirst="true"></yee:DictionaryDropDownList1>
                </td>
                <td>
                    <%=GetText("装车类型") %>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblCardType" runat="server" OnSelectedIndexChanged="rblCardType_SelectedIndexChanged" AutoPostBack="true" RepeatDirection="Horizontal">
                        <asp:ListItem Text="配送装车" Value="1" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="中转装车" Value="5"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>

                <td>
                    <yee:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
            <table cellpadding="0" class="table" cellspacing="0" border="0" id="table2" style="text-align: center;">
                <tr>
                    <td class="tbheader">
                        <%=GetText("流水号") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("仓库名称") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作人") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作时间") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("状态") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("类型") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("预计派送时间") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作") %>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%#Eval("WareHouseName") %>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedOn")%>
                </td>
                <td class="tbpost">
                    <%# Eval("StatuName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("TypeName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("ExpectSendTime")%>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnLink" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="detail" Text="装车详情"></asp:LinkButton>
                    <asp:LinkButton ID="lbnSet" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="setTime" Text="设置预计派件时间"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%#Eval("WareHouseName") %>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedOn")%>
                </td>
                <td class="tbpost">
                    <%# Eval("StatuName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("TypeName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("ExpectSendTime")%>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnLink" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="detail" Text="装车详情"></asp:LinkButton>
                    <asp:LinkButton ID="lbnSet" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="setTime" Text="设置预计派件时间"></asp:LinkButton>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <yee:Pager ID="Pager1" runat="server" PageSize="20" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed"
        PageIndex="0" />
</asp:Content>