<%@ page language="C#" autoeventwireup="true" inherits="Admin_MemberGroup_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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">
<script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

<head runat="server">
    <title>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <style type="text/css">
        #checkboxItem
        {
            margin-left: 0px;
        }
    </style>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    <div class="navigator">【 会员组管理 】</div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td align="left" colspan="2" >
    
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 
                AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" 
                DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                Font-Size="Small" GridViewSortDirection="Ascending" PagingStyle="None" 
                style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="White"></HeaderStyle>

<PagerStyle HorizontalAlign="center" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                       <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
<%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                        <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
               </ItemTemplate>
                    <FooterStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" />
                    <asp:BoundField DataField="Name" HeaderText="分组名称" 
                        SortExpression="Name" />
                    <asp:BoundField HeaderText="分组描述" DataField="Description" 
                        SortExpression="Description"></asp:BoundField>
                </Columns>
            </cc1:Num1GridView>
                </td>
            </tr>
            <tr>
                <td align="left"style="width:40%;" >
    <div class="vote">
           <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
            onclientclick="GetCheckedBoxValues()"  CssClass="bt2" />
        <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
            onclientclick="return EditButton()" Text="编辑"  CssClass="bt2" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click" CssClass="bt2" />
    
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
    </div>
                </td>
                <td align="left" style="width:60%;">
                    &nbsp;</td>
            </tr>
            </table>
    
      <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="SearchMemberGroup" TypeName="ShopNum1.BusinessLogic.ShopNum1_Member_Action" 
        >
          <SelectParameters>
              <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
          </SelectParameters>
    </asp:ObjectDataSource>
        
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
