<%@ page language="C#" autoeventwireup="true" inherits="general_MyOffice_Group_Manage, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!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>
</head>
<body class ="bodycolor"  leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
       <center>
<table style="width: 600" cellspacing="0" cellpadding="0">
	<tr>
		<td align="left"><img align="absMiddle" height="18" src="../images/notify_new.gif" width="18" /><span
                        class="big3"> 新建分组</span></td>
	</tr>
	<tr>
		<td align="center"><asp:Button ID="Button2" runat="server" CssClass="BigButton" OnClick="Button2_Click"
                Text="新建分组" /></td>
	</tr>
	<tr>
		<td align="left">
            <img align="absMiddle" src="../images/notify_new.gif" width="18" height="18" /><span class="big3"> 管理分组</span>
                </td>
	</tr>
	<tr>
		<td align="center">
     <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" CallbackOptions="Selection, Sorting"
            DataKeyField="GroupID" OnItemCreated="C1WebGrid1_ItemCreated"
            OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnSortingCommand="C1WebGrid1_SortingCommand" SkinID="gridviewSkin"  width="600px"  OnItemCommand="C1WebGrid1_ItemCommand"  >
            <Columns>
                <C1WebGrid:C1BoundColumn DataField="GroupID" HeaderText="组序号" ReadOnly="True" SortExpression="GroupID">
                    <ItemStyle HorizontalAlign="Center" Width="150px" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="GroupName" HeaderText="组名称" SortExpression="GroupName">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Exp1" HeaderText="组描述" SortExpression="Exp1">
                    <ItemStyle Width="250px" />
                </C1WebGrid:C1BoundColumn>
               <C1WebGrid:C1TemplateColumn HeaderText='编辑'><ItemTemplate><a href='Group_Add.aspx?Method=edit&id=<%#Eval("GroupID") %>'>编辑</a></ItemTemplate></C1WebGrid:C1TemplateColumn>
               <C1WebGrid:C1TemplateColumn HeaderText="删除"><ItemTemplate><asp:LinkButton CommandName="Del" ID=del runat=server OnClientClick="javascript:return confirm('您确定要删除此组吗，他将会删除此组的所有成员')" Text="删除"></asp:LinkButton></ItemTemplate></C1WebGrid:C1TemplateColumn>

                    
            </Columns>
        </C1WebGrid:C1WebGrid>
		</td>
	</tr>
</table>
</center>
    </form>
</body>
</html>
