<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_DeliveryArea_Manage, V5Shop.Shop.Payment" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>配送区域管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc3:ManageHeader ID="ManageHeader1" runat="server" />
         <div id="content">
            <div id="searcharea">
                <b style="color:#4B6888">配送方式：</b>
                <asp:DropDownList ID="listDelivery" runat="server"></asp:DropDownList>
                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" CssClass="button" />
            </div>
            
            <div id="tool">
              <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" /> 全选
        　    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource2"><img src="images/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" meta:resourcekey="btnEditResource2"><img src="images/key_edit.gif" /> 编辑</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()" meta:resourcekey="btnDelResource2"><img src="images/key_delete.gif" /> 删除</asp:LinkButton>
        　  </div>
            
            <div class="listborder">
                <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" 
                 HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="DeliveryArea">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="5%">
                            <ItemTemplate>
                                <input runat="server" class="checkbox" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out">
                            </ItemTemplate>
                        <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                        <asp:BoundField ItemStyle-Width="10%" DataField="ID" SortExpression="ID" ItemStyle-ForeColor="#000" HeaderText="ID" />
                        <asp:BoundField ItemStyle-Width="10%" DataField="DeliveryKey" HeaderText="配送方式名称" />
                        <asp:BoundField ItemStyle-Width="25%" DataField="Name" HeaderText="配送区域名称" />
                        <asp:TemplateField ItemStyle-Width="50%">
                            <HeaderTemplate>
                                所辖地区
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# GetAreaList(DataBinder.Eval(Container, "DataItem(ID)", "{0}"))%>                        
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </V5Shop:V5ShopGridView>
            </div>
        </div>
        
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0"/>
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0"/>
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>
        <uc2:PageBottom ID="PageBottom1" runat="server" />
    </div>
    </form>
</body>
</html>
