<%@ page language="C#" autoeventwireup="true" inherits="Admin_DispatchRegion_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<!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 type="text/css" rel="Stylesheet" href="css/index.css" />

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        <asp:Label ID="LabelPageTitle" runat="server" Text="【 配送地区 】"></asp:Label></div>
    <div style="height: 508px" align="left">
        <div class="vote">
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" AutoGenerateColumns="False"
                Width="100%" PageSize="5" AllowPaging="True" DataSourceID="ObjectDataSourceData"
                AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
                BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                Style="margin-left: 2px;" TableName="">
                <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                </HeaderStyle>
                <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="GUID" Visible="False">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="地区名称">
                        <ItemTemplate>
                            <a href='<%# "DispatchRegion_Operate.aspx?Guid="+Eval("Guid") %>'>
                                <%# Eval("Name") %></a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <%--<asp:BoundField DataField="Name" HeaderText="地区名称" SortExpression="Name" >
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:BoundField>--%>
                    <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="OrderID" HeaderText="排序号" SortExpression="OrderID" />
                </Columns>
            </cc1:Num1GridView>
            <div class="vote">
                <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" Text="添加" CssClass="bt2"
                    OnClick="ButtonAdd_Click" />
                <asp:Button ID="ButtonEdit" runat="server" OnClientClick="return EditButton()" Text="编辑"
                    CausesValidation="False" CssClass="bt2" OnClick="ButtonEdit_Click" />
                <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" Text="删除" OnClientClick="return DeleteButton()"
                    CssClass="bt2" OnClick="ButtonDelete_Click" />
                <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
            </div>
        </div>
        <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
            TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_DispatchRegion_Action" OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="IsDeleted" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <table id="ablehidden">
            <tr>
                <td>
                    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
