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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        #tbCenter td
        {
            text-align: center;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="title" runat="server" Title="线路管理列表">
        <ShortCuts >
           <a href="RouteManageCreateAndEdite.aspx"><%=GetText("新增线路") %></a>
        </ShortCuts>
    </yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server"></yee:MessageBox>
        
    <!-- 查询条件 -->
    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="queryLeft"><%=GetText("线路") %>：</td>
                <td class="queryRigth">
                     <asp:TextBox ID="txtRoute" runat="server" style ="height:22px;width:150px" ></asp:TextBox>
                </td>   
                <td class="queryLeft"><%=GetText("站点") %>：</td>
                <td class="queryRigth">
                    <yee:UserFrontWebsitesDropDownList ID="ddlWebsiteId" runat="server" IsFirstSelected ="true">
                    </yee:UserFrontWebsitesDropDownList>
                </td> 
                 
                <td class="queryLeft"> <%=GetText("仓库") %>：</td>
                <td class="queryRigth">
                    <yee:UserWarehousesDropDownList ID="ddlOwerWare" runat="server" WarehouseType="海外仓储" IsShowAllAtFirst="true">
                    </yee:UserWarehousesDropDownList>
                </td>
                <td class="queryLeft">
                    <yee:Button ID="btnQuery" runat="server" Text ="查询" CssClass="button"  OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>

    <div>
        <asp:Repeater ID="rptClaim" runat="server" OnItemDataBound="rptClaim_ItemDataBound" >
            <HeaderTemplate>
                <table cellpadding="0" class="table" cellspacing="0" border="0" id="table1" style="margin-bottom: 0px;">
                    <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="300px">
                            <%=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" id = "tbCenter">                 
                    <td class="tbpost">
                        <%# Eval("RouteName")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("WebsiteName") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("WarehouseName")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("IsSelf")%>
                    </td>
                    <td width="20px" class="tbpost">
                        <asp:LinkButton ID="lbnEdite" runat="server" CommandArgument='<%#Eval("UniqueId") %>'
                            CommandName="Edite" OnClick="lbnEdite_Click"></asp:LinkButton>
                        <asp:LinkButton ID="lbnDelete" runat="server" CommandArgument='<%#Eval("UniqueId") %>'
                            CommandName="Delete" OnClientClick = "return confirm('确定要删除数据吗')" OnClick="lbnDelete_Click"></asp:LinkButton>
                    </td> 
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr class="tbrowalter" id ="tbCenter">
                    <td class="tbpost">
                        <%# Eval("RouteName")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("WebsiteName") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("WarehouseName")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("IsSelf")%>
                    </td>
                    <td width="20px" class="tbpost">
                        <asp:LinkButton ID="lbnEdite" runat="server" CommandArgument='<%#Eval("UniqueId") %>'
                            CommandName="Edite" OnClick="lbnEdite_Click"></asp:LinkButton>
                        <asp:LinkButton ID="lbnDelete" runat="server" CommandArgument='<%#Eval("UniqueId") %>'
                            CommandName="Delete" OnClientClick = "return confirm('确定要删除数据吗')" OnClick="lbnDelete_Click"></asp:LinkButton>
                    </td> 
                </tr>
            </AlternatingItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>

    </div>
</asp:Content>
