<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="PowerManage.aspx.cs" Inherits="PowerManage_PowerManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
    <tr><th colspan="2">修改权限</th></tr>
    <tr><td colspan="2">大模块</td></tr>
        <tr>
            <td width="7%">
                选择
            </td>
            <td width="93%">
                模块名
            </td>
        </tr>
        <asp:Repeater ID="rptMainModule" runat="server" >
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkMainItem" runat="server" AutoPostBack="true" OnCheckedChanged="chkMainItem_Onclick"/>
                    </td>
                    <td>
                        <%#Eval("ModuleName")%>
                        <asp:HiddenField ID="hdModuleId" runat="server" Value='<%#Eval("ModuleId") %>' />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr><td colspan="2">子模块</td></tr>
        <tr>
            <td width="7%">
                选择
            </td>
            <td width="20%">
                子模块名
            </td>
            <td width="73%">
                所属模块名
            </td>
        </tr>
        <asp:Repeater ID="rptSubModule" runat="server" >
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkSubItem" runat="server" />
                    </td>
                    <td>
                        <%#Eval("FunctionName")%>
                    </td>
                    <td>
                        <%#Eval("ModuleName")%>
                        <asp:HiddenField ID="hdFunctionId" runat="server" Value='<%#Eval("FunctionId") %>' />
                        <asp:HiddenField ID="hdModuleId" runat="server" Value='<%#Eval("ModuleId") %>' />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table>
        <tr>
            <td style="text-align: center">
                <asp:Button ID="btnPowerControl" runat="server" CssClass="button" Text="修改权限" 
                    onclick="btnPowerControl_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
