<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EmployeesRightConfig.aspx.cs" Inherits="Pages_System_Employees_EmployeesRightConfig" %>
<!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 id="Head1" runat="server">
    <title>左侧导航栏</title>
</head>
<body>
    <form id="form1" runat="server">
<script type="text/javascript">
        function postBackCheckBox()
          {   
             var o = window.event.srcElement;
             
             if (o.tagName == "INPUT" && o.type == "checkbox") 
               {
                 __doPostBack("","");
               }
           }
    </script>
    <div id=Left style="width:40%; margin:12px; float:left;">
        <div>
            <asp:GridView ID=GridView1 runat=server Caption=员工权限组 
                     OnSelectedIndexChanging=GridView1_SelectedIndexChanging
                     OnRowDeleting=GridView1_RowDeleting
                     OnPageIndexChanging=GridView1_PageIndexChanging >
                <Columns>
                    <asp:BoundField DataField="权限组名称" HeaderText="权限组名称" />
                    <asp:BoundField DataField="序号" HeaderText="序号" />
                    <asp:CommandField ShowSelectButton=True HeaderText="选择" ButtonType=image SelectImageUrl="../../../images/icon/edit.gif" ItemStyle-HorizontalAlign=center />            
                    <asp:CommandField ShowDeleteButton=True HeaderText="删除" ButtonType=image DeleteImageUrl="../../../images/icon/del.gif" ItemStyle-HorizontalAlign=center/>
                </Columns>
            </asp:GridView>
        </div>
        <div style="margin-top:24px;">
            <table border=1 width=100%>
                <tr>
                    <td width=24%>权限组名称</td><td width=30%><asp:TextBox ID=txtEmployeesRightName runat=server />
                        </td>
                    <td width=14%>序号</td><td width=30%><asp:TextBox ID=txtEmployeesRightNo runat=server /></td>
                </tr>
                <tr>
                    <td colspan=4 style="text-align:center;"><asp:Button ID=Button1 runat=server Text="添加" OnClick="Button1_Click" />
                        <asp:Button ID=Button2 runat=server Text=修改 OnClick=Button2_Click /></td>
                </tr>
            </table>
        </div>
    </div>
    <div id=Right style="width:50%; margin:12px; padding:12px; float:Right; border:1px solid #ccc;">
        <div style="margin-left:24px;margin-top:18px;">
            <h6>菜单及操作权限设置</h6>
                    <asp:TreeView ID=TreeView1 runat=server   
                        ShowCheckBoxes=All               
                        ShowExpandCollapse=true
                        ExpandDepth=0
                        OnTreeNodeCheckChanged=TreeView1_TreeNodeCheckChanged  />                        
        </div>
        <div style="margin-left:24px;margin-top:18px;">
            <h6>数据查阅权限设置</h6>
            <table border=1 width=100%>
                <tr>
                    <td>部门及人员权限</td><td>
                        <asp:RadioButtonList ID="rblDepartmentRight"  runat="server" RepeatDirection=horizontal OnTextChanged=RadioButtonList_TextChanged AutoPostBack=true>
                            <asp:ListItem Text=无 Value=-1 Selected=true />
                            <asp:ListItem Text=本部门 Value=0 />
                            <asp:ListItem Text=指定部门及人员 Value=1 />
                        </asp:RadioButtonList></td>
                </tr>
                <asp:Panel ID=Panel1 runat=server Visible=false>
                    <tr>
                        <td>&nbsp;</td>
                        <td Width=70% style="padding:12px;"><asp:TreeView ID=TreeView2 runat=server ShowCheckBoxes=all ExpandDepth=0 OnTreeNodeCheckChanged=TreeView2_TreeNodeCheckChanged /></td>
                    </tr>
                </asp:Panel>
            </table>
        </div>  
    </div>
    
    </form>
</body>
</html>
