<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master"
    AutoEventWireup="true" CodeBehind="eosPermissionList.aspx.cs" Inherits="WebKart.eosWinkartWeb.eosPermissionList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" border="0">
        <tr>
            <td class="CenterTD">
                <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="CenterTD">
                <hr style="color: Yellow; size: 1px; width: 500px" />
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <asp:Label ID="lblChangeMsg" runat="server" Text="" style="color:red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel runat="server" ID="pnlSections">
                    <table width="100%">
                        <tr>
                            <td class="RightTD">
                                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="400px"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlSections_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="LeftTD" style="width: 250px">
                                قسمت:
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <asp:CheckBoxList ID="chkPermission" runat="server" DataTextField="permissionName"
                    DataValueField="permissionID" RepeatColumns="3" RepeatDirection="Vertical" Width="100%">
                </asp:CheckBoxList>
            </td>
        </tr>
<%--        <asp:Panel runat="server" ID="pnlReports" Visible="False">
            <tr>
                <td class="RightTD">
                    دسترسی به گزارشات سفارشی
                </td>
            </tr>
            <tr>
                <td class="RightTD">
                    <asp:CheckBoxList ID="chlReports" runat="server" DataTextField="Name" DataValueField="Id"
                        RepeatColumns="1" RepeatDirection="Horizontal" AppendDataBoundItems="True">
                    </asp:CheckBoxList>
                </td>
            </tr>
        </asp:Panel>--%>
        <tr>
            <td class="RightTD">
                <asp:CheckBox ID="chkResetAll" runat="server" Text="بازسازی دسترسی پرسنلی که دارای دسترسی خاص هستند" />
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <telerik:RadGrid ID="grdPersonel" runat="server" AutoGenerateColumns="false" AllowMultiRowSelection="true"
                    AllowSorting="False" dir="rtl" 
                    onneeddatasource="grdPersonel_NeedDataSource" Visible="False">
                    <ClientSettings>
                        <Selecting AllowRowSelect="true" />
                    </ClientSettings>
                    <MasterTableView DataKeyNames="PerNo" GroupLoadMode="Client" GroupsDefaultExpanded="true"
                        AllowSorting="False">
                        <Columns>
                            <telerik:GridClientSelectColumn DataTextField="PersonName" HeaderText="نام پرسنل">
                            </telerik:GridClientSelectColumn>
                            <telerik:GridBoundColumn DataField="PerNo" HeaderText="کد پرسنل">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PersonName" HeaderText="نام پرسنل">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td class="LeftTD">
                <asp:Button ID="btnSetpermission" runat="server" Text="اعمال تغییرات" OnClick="btnSetpermission_Click"
                    SkinID="btnOrange" />
            </td>
        </tr>
    </table>
</asp:Content>
