<%@ Page Language="C#" MasterPageFile="~/Manage/main.Master" AutoEventWireup="true" CodeBehind="MemberGroup.aspx.cs" Inherits="EasySion.ERP.Web.admin.MemberGroup" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" runat="server">
  <div class="leftMenuTitle">会员管理 </div>
  <ul class="leftMenu">
    <li><a href="MemberList.aspx">网站会员</a></li>
    <li><a href="MemberAdd.aspx">添加会员</a></li>
    <li><a href="MemberGroup.aspx">会员组</a></li>
    <li><a href="AdministratorsList.aspx">管理员</a></li>
    <li><a href="AdministratorsAdd.aspx">添加管理员</a></li>
    <li><a href="RegisterAgreement.aspx">注册协议</a></li>
    <li><a href="SysLog.aspx">登录日志 </a></li>
  </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="server">
  <div id="mainMenu">
    <ul>
      <li><a href="MemberGroup.aspx">会员组</a></li>
    </ul>
  </div>
  <div id="main">
    <asp:Label ID="Msg" runat="server" CssClass="msg" Text="" Visible="False"></asp:Label>
    <table id="Table1" bgcolor="#d7d7d7" border="0" cellpadding="2" cellspacing="1" width="100%">
      <tr>
        <td bgcolor="#ffffff" class="mainTitle" colspan="3" style="height: 20px">会员组操作</td>
      </tr>
      <tr>
        <td bgcolor="#ffffff" colspan="3" style="height: 27px"><asp:GridView ID="gvGroup" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" OnRowCancelingEdit="gvGroup_RowCancelingEdit" OnRowEditing="gvGroup_RowEditing" OnRowUpdating="gvGroup_RowUpdating" EmptyDataText="暂无任何会员组" Width="100%" CssClass="gv">
            <Columns>
            <asp:TemplateField HeaderText="ID">
              <EditItemTemplate>
                <asp:Label ID="Label1" runat="server"></asp:Label>
              </EditItemTemplate>
              <ItemTemplate><%#Container.DataItemIndex+1%></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="组名">
              <EditItemTemplate>
                <asp:TextBox ID="gvtbName" runat="server" Text='<%# Bind("GroupName") %>' style="text-align: center"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*必填" ControlToValidate="gvtbName" ValidationGroup="2"></asp:RequiredFieldValidator>
              </EditItemTemplate>
              <ItemTemplate>
                <asp:Label ID="gvtbName" runat="server" Text='<%# Bind("GroupName") %>'></asp:Label>
              </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
              <EditItemTemplate>
                <asp:LinkButton ID="UpdateBt" runat="server" CausesValidation="True" CommandName="Update" Text="更新" ValidationGroup="2"></asp:LinkButton>
                <asp:LinkButton ID="CacellBt" runat="server" CausesValidation="False" CommandName="Cancel" Text="取消"></asp:LinkButton>
              </EditItemTemplate>
              <ItemTemplate>
                <asp:LinkButton ID="EditBt" runat="server" CausesValidation="False" CommandName="Edit" Text="编辑"></asp:LinkButton>
              </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="删除">
              <EditItemTemplate>
                <asp:CheckBox ID="chkDelete" runat="server" />
              </EditItemTemplate>
              <ItemTemplate>
                <asp:CheckBox ID="chkDelete" runat="server" />
              </ItemTemplate>
            </asp:TemplateField>
            </Columns>
          </asp:GridView>
          <asp:HiddenField ID="HiddenField1" runat="server" />
          <br />
          <asp:Button ID="btnAll" runat="server" Text="全选" CausesValidation="false" OnClick="btnAll_Click" />
          <asp:Button ID="btnReverse" runat="server" Text="反选" CausesValidation="false" OnClick="btnReverse_Click" />
          <asp:Button ID="btnCancell" runat="server" Text="取消" CausesValidation="false" OnClick="btnCancell_Click" />
          <asp:Button ID="btnDelete" runat="server" Text="删除" CausesValidation="false" OnClick="btnDelete_Click" />
		  <br /></td>
      </tr>
    </table>
    <br />
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7" id="addtable">
      <tr>
        <td colspan="2" bgcolor="#FFFFFF" class="mainTitle" style="height: 20px">添加会员组</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" align="right" style="height: 27px">会员组名称：</td>
        <td bgcolor="#FFFFFF" style="height: 27px">&nbsp;
          <asp:TextBox ID="tbName" runat="server" style="width: 280px"></asp:TextBox>
		  <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" ValidationGroup="1" />
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* 必填" ControlToValidate="tbName" ValidationGroup="1"></asp:RequiredFieldValidator></td>
      </tr>
    </table>
  </div>
  <script language="JavaScript" type="text/javascript">
	topMenuThisPage(3);
	leftMenuThisPage(1,3);
	mainMenuThisPage(1);
  </script>
</asp:Content>