<%@ page language="C#" autoeventwireup="true" inherits="general_SystemManage_DeptRole_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" topmargin="5">
    <form id="form1" runat="server">
  <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
            <tr>
                <td>
                    该部门现有的角色—<asp:Label ID="Label1" runat="server" Height="18px" Width="259px"></asp:Label></td>
            </tr>
           <tr>
                <td align="center" style="height: 219px">
                    <c1webgrid:c1webgrid   SkinId="gridviewSkin"   ID="C1WebGrid1" 
  runat="server" AutoGenerateColumns="False" OnItemCommand="C1WebGrid1_ItemCommand" width=300px

 >
        <Columns>
       
  <C1WebGrid:C1BoundColumn   Visible=false     DataField="TreeID" HeaderText="编号"/> 
            <C1WebGrid:C1BoundColumn DataField="TreeName" HeaderText="角色名称" >
            <ItemStyle  Width=100/>
            </C1WebGrid:C1BoundColumn>  
            
  <c1webgrid:C1TemplateColumn  HeaderText="操作" >

<ItemTemplate>

<a target=_parent  href='RoleRights_Edit.aspx?id=<%#Eval("TreeID")%>'>编辑权限</a>
   <asp:LinkButton ID="LbtDel"    runat="server" CausesValidation="False" CommandName="Del" OnClientClick="return confirm('确定移除该角色吗?');"
                            Text="移除角色"></asp:LinkButton>
                    
</ItemTemplate>
</c1webgrid:C1TemplateColumn>


        </Columns> 
    
        </c1webgrid:c1webgrid>
                </td>
            </tr>
        </table>
        <br />
         <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
            <tr>
                <td>
                    允许添加的角色—<asp:Label ID="Label2" runat="server" Width="259px"></asp:Label></td>
            </tr>
         
            <tr　id="gg" runat="server">
                <td align="center">
                     <c1webgrid:c1webgrid   SkinId="gridviewSkin"   ID="C1WebGrid2" 
   runat="server" AutoGenerateColumns="False" OnItemCommand="C1WebGrid2_ItemCommand" width=300px

 >
        <Columns>
       
  <C1WebGrid:C1BoundColumn   Visible=false     DataField="RoleID" HeaderText="编号"/> 
            <C1WebGrid:C1BoundColumn  DataField="RoleName" HeaderText="角色名称" >
                <ItemStyle  Width=100/>
            </C1WebGrid:C1BoundColumn>  
            
  <c1webgrid:C1TemplateColumn  HeaderText="操作" >

<ItemTemplate>


   <asp:LinkButton ID="LbtAdd"    runat="server" CausesValidation="False" CommandName="Add" OnClientClick="return confirm('确定加入该角色吗?');"
                            Text="加入角色"></asp:LinkButton>
                    
</ItemTemplate>
</c1webgrid:C1TemplateColumn>


        </Columns> 
    
        </c1webgrid:c1webgrid>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
