<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleScopePermissions.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.User.RoleScopePermissions" %>

<!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>
    <form id="form1" runat="server">
    <div>
        <table  class="border" cellspacing="1" cellpadding="0" border="0" id="Tab1" runat="server" visible="false" style="width: 100%;">
            <tr class="gridtitle" align="center" style="height: 25px;">
                <th scope="col" style="width: 25%;">
                    模块名称
                </th>
                <th scope="col" style="width: 75%;">
                    操作范围
                </th>
            </tr>
            <tr id="TrFunc" class="tdbg" align="center">
                <td align="left">
                    <asp:Label ID="LblFunctionName" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:RadioButtonList ID="RadlOperateScope" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Value="3">所有</asp:ListItem>
                        <asp:ListItem Value="2">所属部门及子部门</asp:ListItem>
                        <asp:ListItem Value="1">所属部门</asp:ListItem>
                        <asp:ListItem Value="0" Selected="True">仅自己的</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </table>
        <pe:ExtendedGridView ID="EgvScopePermissions" runat="server" AllowPaging="false"
            AutoGenerateColumns="False" SerialText="" OnRowDataBound="EgvScopePermissions_RowDataBound" Visible="false">
            <Columns>
                <pe:BoundField DataField="ModuleName" HeaderText="模块名称" HeaderStyle-Width="25%" ItemStyle-HorizontalAlign="Left" />
                <pe:TemplateField HeaderText="操作范围">
                    <ItemTemplate>
                        <asp:HiddenField ID="HdnScopeCode" runat="server" />
                        <asp:RadioButtonList ID="RadlOperateScope" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="3">所有</asp:ListItem>
                            <asp:ListItem Value="2">所属部门及子部门</asp:ListItem>
                            <asp:ListItem Value="1">所属部门</asp:ListItem>
                            <asp:ListItem Value="0" Selected="True">仅自己的</asp:ListItem>
                        </asp:RadioButtonList>
                    </ItemTemplate>
                    <HeaderStyle Width="75%" />
                </pe:TemplateField>
            </Columns>
        </pe:ExtendedGridView>
        <div style="text-align:center;margin-top:15px;">
            <asp:Button ID="BtnSave" runat="server" Text="保存" OnClick="BtnSave_Click" CssClass="inputbutton" />
            <input type="button" class="inputbutton" value="取消" onclick="closeit()" />
        </div>
    </div>
    <script type="text/javascript">
        function closeit() {
            jQuery("#jqDnrFloatDivBg", parent.document).hide();
            jQuery("#floatingDialogctl00CphContentFDScopeSetting", parent.document).hide();
        }
    </script>
    </form>
</body>
</html>
