<%@ Page Language="c#" CodeBehind="PurviewShow.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Admin.PurviewShow"
    Title="查看员工权限-系统" %>

<%@ Import Namespace="MTCUN" %>
<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .name {
            width: 180px;
        }
    </style>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <div class="divpanel">
            <table cellspacing="0" class="table">
                <tr>
                    <th>员工权限
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="labTrueName" runat="server" Font-Bold="False"></asp:Label>
                        &nbsp;校区：                  
                        <asp:DropDownList ID="ddlSchool" runat="server" AutoPostBack="True">
                        </asp:DropDownList>&nbsp;
                    隶属于组：<asp:Label ID="labUserGroupName" runat="server"></asp:Label>

                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Repeater ID="repGroup" runat="server">
                            <ItemTemplate>
                                <div>
                                    <div style="font-weight: bold">
                                        <%#Eval("PurviewGroupName")%>模块权限
                                    </div>
                                    <asp:Repeater ID="repRole" runat="server" DataSource='<%#pd.GetRole((int)Eval("PurviewGroupID")) %>'>
                                        <ItemTemplate>
                                            <div class="bgc5 borderc2" style="border-width: 1px; margin: 4px; padding: 4px">
                                                <div style="float: left; width: 120px; vertical-align: middle; text-align: center">
                                                    <%#Eval("RoleName")%>
                                                </div>
                                                <div style="float: left;">
                                                    <asp:DataList ID="DataList1" RepeatColumns="3" RepeatDirection="Horizontal" runat="server"
                                                        DataSource='<%#pd.GetPurview(0,(int)Eval("RoleID")) %>'>
                                                        <ItemTemplate>
                                                            <asp:Label ID="labImg" Text='<%#GetBool(Convert.ToInt16(Eval("PurviewID"))) + Eval("PurviewName")+"&nbsp;"%>'
                                                                runat="server" CssClass="name"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:DataList>
                                                </div>
                                                <div style="clear: both">
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
            </table>
        </div>
        <div class="backpanel">
            <label class="lab_button" id="__mt_labBack" runat="server">
                <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
            </label>
        </div>
    </form>
</body>
</html>
