<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="AssignPermissions, App_Web_abwr3ckl" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style>
        #DetailModal p {
            text-align: unset;
        }
    </style>
    <asp:UpdatePanel ID="MainUpdatePanel" runat="server">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <%-- <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="122"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-lock"></i>
                                        <asp:Label ID="Label5" Text="Permissions" runat="server" />
                                    </header>
                                </div>
                            </div>
                            <%--<div class="fRight" style="margin-top: -4px" runat="server" id="CommonUpdateDiv">
                                            <asp:CheckBox ID="IsAllOrgCheckBox" runat="server" />
                                            <asp:Label ID="IsAllOrgLabel" runat="server" Text="Applicable To All Organization"></asp:Label>
                                        </div>--%>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="PermissionTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            AutoPostBack="true" meta:resourcekey="StudentCustomSearchTabContainerResource1"
                                            ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="RoleModuleTabPanel" runat="server" HeaderText="Role Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-sign-in-alt"></i>&nbsp;Role Permission </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoleModuleLabel" runat="server" Text="Role" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="RoleLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="RoleModuleDropDownList" AutoPostBack="True" DataTextField="Title"
                                                                    TabIndex="4" DataValueField="ID" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList" CssClass="form-control"
                                                                    meta:resourcekey="RoleDropDownListResource2" OnSelectedIndexChanged="RoleModuleDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12 pTop5 text-center pb15">
                                                            <asp:Button ID="SaveRoleModuleButton" runat="server" CssClass="fas btn btn-save  mt7"
                                                                Text="&#xf0c7; Save" OnClick="SaveRoleModuleButton_Click"
                                                                SkinID="0" CommandName="Save" />
                                                            <asp:Button ID="ModuleAssignBaseOnPermissionButton" runat="server" Text="&#xf023; Module Assign Base On Permission"
                                                                OnClick="ModuleAssignBaseOnPermission_Click" SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" CommandName="Save" />
                                                            <asp:Button ID="AllRightsButton" runat="server" Text="&#xf0ae; Assign All Rights" OnClick="AllRightsButton_Click"
                                                                SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" CommandName="Save" />
                                                            <asp:Button ID="RevokeDeleteButton" runat="server" Text="&#xf00d; Revoke Delete Rights" OnClick="RevokeDeleteButton_Click"
                                                                SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" CommandName="Save" />
                                                        </div>

                                                        <div class="himsBoxContent col-md-12 pTop15">
                                                            <asp:GridView ID="RoleModuleGridView" AutoGenerateColumns="False" EmptyDataText="No Task available"
                                                                DataKeyNames="ModuleId" CssClass="table table-striped table-bordered" Width="100%"
                                                                runat="server" meta:resourcekey="TasksGridViewResource1" OnRowDataBound="RoleModuleGridView_RowDataBound">
                                                                <Columns>
                                                                    <asp:TemplateField>
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="RoleModuleCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="RoleModuleCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="RoleCheckBox" Checked='<%#Eval("IsChecked") %>' runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" Width="1%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Module Name">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ModuleNameLabel" runat="server" Text='<%# Eval("ModuleName") %>' CssClass="boxEllips"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="AssignPremission" runat="server" HeaderText="Assign Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-tasks"></i>&nbsp;Assign Permission </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox col-md-12 bg-lghtgrey radiobtn">
                                                            <div class="controlLabelWidth">
                                                                <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                    OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="True">
                                                                    <asp:ListItem Text="Role" Value="1" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="User" Value="2"></asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5  col-md-3" id="RoleDiv" runat="server">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RoleLabel" runat="server" Text="Role" SkinID="MandatoryLabel" meta:resourcekey="RoleLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="RoleDropDownList" AutoPostBack="True" DataTextField="Title"
                                                                    TabIndex="4" DataValueField="ID" runat="server" OnSelectedIndexChanged="RoleDropDownList_SelectedIndexChanged"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                                                    CssClass="form-control" meta:resourcekey="RoleDropDownListResource2">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>


                                                        <div class="outerBox pTop5  col-md-3" id="UserDiv" runat="server" visible="False">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="UserNameLabel" runat="server" Text="User Name"></asp:Label>
                                                            </div>

                                                            <div class="fLeft pRight5 display-flex">
                                                                <acc:AutoCompleteControl ID="UserNameTextBox" runat="server" MinimumPrefixLength="2"
                                                                    TabIndex="5" ValidateOnTextChanged="false" ContextKey="Security.User"
                                                                    DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                                                <asp:ImageButton ID="UserNameSearchButton" runat="server" SkinID="FindImage" ToolTip="User Name"
                                                                    ImageUrl="~/Images/icons/icon_find.gif" TabIndex="6" OnClick="UserNameSearchButton_OnClick" meta:resourcekey="UserNameSearchButtonResource1" />

                                                            </div>
                                                        </div>



                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ModuleLabel" runat="server" Text="Module" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="ModuleLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ModuleDropDownList" Enabled="False" DataTextField="Title" DataValueField="Id"
                                                                    runat="server" OnSelectedIndexChanged="ModuleDropDownList_SelectedIndexChanged"
                                                                    TabIndex="5" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ModuleDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ResourceTypeLabel" runat="server" Text="Resource Type"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ResourceTypeDropDownList" Enabled="False" DataTextField="Title"
                                                                    DataValueField="Id" runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    OnSelectedIndexChanged="ResourceTypeDropDownList_SelectedIndexChanged" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" meta:resourcekey="ResourceTypeDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-2 text-center">
                                                            <div class="controlLabelWidth">
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:CheckBox ID="ViewCheckBox" Text="View" runat="server" OnCheckedChanged="ViewCheckBox_OnCheckedChanged"
                                                                    AutoPostBack="True" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-2 text-center">
                                                            <div class="controlLabelWidth">
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:CheckBox ID="PortalCheckBox" runat="server" Text="Portal" OnCheckedChanged="PortalCheckBox_OnCheckedChanged"
                                                                    AutoPostBack="True" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-2 text-center">
                                                            <div class="controlLabelWidth">
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:CheckBox ID="MobileAppCheckBox" runat="server" Text="Mobile App" OnCheckedChanged="MobileAppCheckBox_OnCheckedChanged"
                                                                    AutoPostBack="True" />
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12 text-center pTop15" style="padding-top: 0px">
                                                            <asp:Button ID="SaveButton" runat="server" CssClass="fas btn btn-save  mt7"
                                                                Text="&#xf0c7; Save" OnClick="SaveButton_Click" SkinID="0" CommandName="Save" />
                                                            <asp:Button ID="GrantAllButton" Text="&#xf0ae; Grant All" runat="server" OnClick="GrantAllButton_Click"
                                                                SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" />
                                                            <asp:Button ID="RevokeAllButton" runat="server" Text="&#xf023; Revoke All" OnClick="RevokeAllButton_Click"
                                                                SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" />
                                                            <asp:Button ID="DeletePermissionButton" runat="server" Text="&#xf00d; Delete Role Permission"
                                                                OnClick="DeletePermissionButton_Click" SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" />
                                                            <asp:Button ID="DeleteUserPermissionButton" runat="server" Text="&#xf00d; Delete User Permission"
                                                                OnClick="DeleteUserPermissionButton_Click" SkinID="0" CssClass="fas btn btn-assign mt7 m-b-10" Visible="false" />
                                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas mt7 m-b-10" Visible="false" />
                                                            <asp:HiddenField ID="DeletePermissionHiddenField" runat="server" />
                                                        </div>

                                                        <div id="DetailModal" class="modal fadeInDown" role="dialog">
                                                            <div class="modal-dialog">
                                                                <!-- Modal content-->
                                                                <div class="modal-content padd-0">
                                                                    <div class="modal-body">
                                                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                                                        <!--Your modal content goes here-->
                                                                        <div id="DetailDescription">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="himssuHeader6WireBox pTop5 col-md-12 gridviewfont" id="PatientRelationDiv"
                                                            runat="server">
                                                            <div class="himsBoxHeader width-100 pb5">

                                                                <div class="himsBoxTitle alert alert-warning">
                                                                    <asp:Label ID="ModuleNameLabel" runat="server" Text="<b>Note : </b>Highlight in green should be check on read."></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <asp:GridView ID="TasksGridView" AutoGenerateColumns="False" EmptyDataText="No Task available"
                                                                    CssClass="table table-striped table-bordered" Width="100%" runat="server" meta:resourcekey="TasksGridViewResource1"
                                                                    OnRowDataBound="TasksGridView_RowDataBound" DataKeyNames="RPermission,CPermission,UPermission,DPermission,PPermission,SPermission,XPermission">
                                                                    <PagerSettings Visible="False" />
                                                                    <PagerTemplate>
                                                                        <div class="gridHeader">
                                                                            <div class="gridHeaderText fLeft">
                                                                            </div>
                                                                            <div class="fRight">
                                                                            </div>
                                                                        </div>
                                                                    </PagerTemplate>
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Task Id">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TaskIDLabel" runat="server" Text='<%# Eval("ID") %>' meta:resourcekey="TaskIDLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Module Name">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ModuleNameLabel" runat="server" Text='<%# Eval("ModuleName") %>' CssClass="boxEllips"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Task Name">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' CssClass="boxEllips"></asp:Label>
                                                                                <asp:LinkButton ID="TaskDetailButton" runat="server" Text='<%# Bind("Title") %>' CommandName="Select"
                                                                                    SkinID="0" OnClick="TaskDetailButton_Click" Visible="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Resource Type Name">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ResourceTypeNameLabel" runat="server" Text='<%# Eval("ResourceTypeName") %>'
                                                                                    CssClass="boxEllips"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource3">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ReadAllCheckBox" runat="server" OnCheckedChanged="ReadAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="8" meta:resourcekey="ReadAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Read
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ReadCheckBox" Enabled="False" Checked='<%# Eval("Read") %>'
                                                                                        runat="server" OnCheckedChanged="ReadCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="9" meta:resourcekey="ReadCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Create" meta:resourcekey="TemplateFieldResource2">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="CreateAllCheckBox" runat="server" OnCheckedChanged="CreateAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="6" meta:resourcekey="CreateAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Create
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="CreateCheckBox" Enabled="False" Checked='<%# Eval("Create") %>'
                                                                                        runat="server" OnCheckedChanged="CreateCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="7" meta:resourcekey="CreateCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource4">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="UpdateAllCheckBox" runat="server" OnCheckedChanged="UpdateAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="10" meta:resourcekey="UpdateAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Update
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="UpdateCheckBox" Enabled="False" Checked='<%# Eval("Update") %>'
                                                                                        runat="server" OnCheckedChanged="UpdateCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="11" meta:resourcekey="UpdateCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource5">
                                                                            <HeaderTemplate>


                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="DeleteAllCheckBox" runat="server" OnCheckedChanged="DeleteAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="12" meta:resourcekey="DeleteAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Delete
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="DeleteCheckBox" Enabled="False" Checked='<%# Eval("Delete") %>'
                                                                                        runat="server" OnCheckedChanged="DeleteCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="13" meta:resourcekey="DeleteCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource7">
                                                                            <HeaderTemplate>


                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="PrintAllCheckBox" runat="server" OnCheckedChanged="PrintAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="16" meta:resourcekey="PrintAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Print
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="PrintCheckBox" Enabled="False" Checked='<%# Eval("Print") %>'
                                                                                        runat="server" OnCheckedChanged="PrintCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="17" meta:resourcekey="PrintCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource8">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExecuteAllCheckBox" runat="server" OnCheckedChanged="ExecuteAllCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="18" meta:resourcekey="ExecuteAllCheckBoxResource1" />
                                                                                    <span></span>
                                                                                    Execute  
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExecuteCheckBox" Enabled="False" Checked='<%# Eval("Execute") %>'
                                                                                        runat="server" OnCheckedChanged="ExecuteCheckBox_CheckedChanged" AutoPostBack="false"
                                                                                        TabIndex="19" meta:resourcekey="ExecuteCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="CopyPremission" ClientIDMode="Static" runat="server"
                                                HeaderText="Copy Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-copy"></i>&nbsp;Copy Permission </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label3" runat="server" Text="Existing Role" meta:resourcekey="Label3Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="SourceRoleDropDownList" DataTextField="Title" DataValueField="ID"
                                                                    runat="server" TabIndex="1" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthDropdownList" CssClass="form-control" meta:resourcekey="SourceRoleDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label2" runat="server" Text=" New Role" meta:resourcekey="Label2Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="DestinationRoleDropDownList" DataTextField="Title" DataValueField="ID"
                                                                    runat="server" TabIndex="2" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthDropdownList" CssClass="form-control" meta:resourcekey="DestinationRoleDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox col-md-3 pTop5">
                                                            <div class="controlLabelWidth">
                                                            </div>
                                                            <div class="pRight5">
                                                                <asp:Button ID="AssignButton" SkinID="0" runat="server" CssClass="fas btn btn-assign  mt1" Text="&#xf0c5; Copy Permission"
                                                                    OnClick="AssignButton_Click" TabIndex="3" />
                                                            </div>
                                                        </div>

                                                        <div class="outerBox col-md-12 pTop5">
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="ParentPortalButton" runat="server" Text="&#xf101; Reset Student Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="EmployeePortalButton" runat="server" Text="&#xf101; Reset Employee Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="TeacherPortalButton" runat="server" Text="&#xf101; Reset Teacher Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />

                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="ClerkPortalButton" runat="server" Text="&#xf101; Reset Clerk Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="HeadClerkPortalButton" runat="server" Text="&#xf101; Reset Head Clerk Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="PrinciplePortalButton" runat="server" Text="&#xf101; Reset Principle Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                            <div class="outerBox col-md-4 pTop5">
                                                                <asp:Button ID="FrontOfficePortalButton" runat="server" Text="&#xf101; Reset Front Office Login Permission"
                                                                    OnClick="PortalPermissionButton_Click" CssClass="fas pointer" SkinID="0" />
                                                            </div>
                                                        </div>
                                                        <div class="alignCenter">
                                                            <div class="searchBoxBtn">
                                                                <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="Dashlet Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-tachometer-alt"></i>&nbsp;Dashlet Permission </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label1" runat="server" Text="Role" SkinID="MandatoryLabel" meta:resourcekey="RoleLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="DashletRoleDropDownList" AutoPostBack="True" DataTextField="Title"
                                                                    TabIndex="4" DataValueField="ID" runat="server" OnSelectedIndexChanged="DashletRoleDropDownList_SelectedIndexChanged"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                                                    CssClass="form-control" meta:resourcekey="RoleDropDownListResource2">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12">
                                                            <div id="managedashletdiv" runat="server"
                                                                visible="false">
                                                                <div class="col-md-12 center">
                                                                    <asp:Button Visible="false" ID="SaveDashletButton" CssClass="fas btn btn-save  mt7"
                                                                        Text="&#xf0c7; Save" SkinID="0" runat="server" OnClick="SaveDashletButton_Click"></asp:Button>
                                                                    <asp:Button Visible="false" ID="ApplyButton" CssClass="btn btn-apply mt7"
                                                                        Text="Apply All Dashlet" SkinID="0" runat="server" OnClick="ApplyButton_Click"></asp:Button>
                                                                </div>
                                                                <div class="cBoth pTop5"></div>
                                                                <asp:GridView ID="DashletGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                                                                    AllowPaging="false" PagerSettings-Visible="false" EmptyDataText="No records available for the search criteria"
                                                                    ShowHeader="True" CssClass=" table table-striped table-bordered table-hover" DataKeyNames="DashletId">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                        Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Eval("IsCheck") %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle Width="5%" />
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField HeaderText="Dashlet Name" DataField="DashletName" HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="40%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Task Name" DataField="TaskName" HeaderStyle-HorizontalAlign="Left">

                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="25%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="TaskId" DataField="TaskId" HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Module Name" DataField="ModuleName" HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="35%" />
                                                                        </asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="AssignPremissionTaskwise" runat="server" HeaderText="Assign Permission Taskwise">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-tasks"></i>&nbsp;Assign Permission Taskwise</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label4" runat="server" Text="Module" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="ModuleLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ModuleTaskDropDownList" DataTextField="Title" DataValueField="Id"
                                                                    runat="server" OnSelectedIndexChanged="ModuleTaskDropDownList_SelectedIndexChanged"
                                                                    TabIndex="5" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ModuleTaskDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label6" runat="server" Text="Resource Type"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ResourceTypeTaskDropDownList" runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    OnSelectedIndexChanged="ResourceTypeTaskDropDownList_SelectedIndexChanged" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" meta:resourcekey="ResourceTypeTaskDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5  col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TaskLabel" runat="server" Text="Task" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="TaskDropDownList" DataTextField="Title"
                                                                    DataValueField="Id" runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    OnSelectedIndexChanged="TaskDropDownList_SelectedIndexChanged" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" meta:resourcekey="TaskDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div style="padding-top: 10px; text-align: center">
                                                            <asp:Button ID="SaveTaskButton" runat="server" Text="&#xf0c7; Save" OnClick="SaveTaskButton_Click"
                                                                SkinID="0" CssClass=" btn-save btn fas" Font-Bold="False" CommandName="Save" />
                                                            <asp:Button ID="GrantAllTaskButton" Text="&#xf0ae; Grant All" runat="server" OnClick="GrantAllTaskButton_Click"
                                                                SkinID="0" CssClass=" btn btn-assign  fas" />
                                                            <asp:Button ID="RevokeAllTaskButton" runat="server" Text="&#xf023; Revoke All"
                                                                OnClick="RevokeAllTaskButton_Click"
                                                                SkinID="0" CssClass=" btn btn-assign fas" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="himssuHeader6WireBox pTop5 col-md-12" id="TaskPermissionDiv"
                                                            runat="server">
                                                            <div class="himsBoxContent">
                                                                <asp:GridView ID="TasksPermissionGridView" AutoGenerateColumns="False" EmptyDataText="No Task available"
                                                                    CssClass="table table-striped table-bordered" Width="100%" runat="server" meta:resourcekey="TasksPermissionGridViewResource1" DataKeyNames="Id">
                                                                    <PagerSettings Visible="False" />
                                                                    <PagerTemplate>
                                                                        <div class="gridHeader">
                                                                            <div class="gridHeaderText fLeft">
                                                                            </div>
                                                                            <div class="fRight">
                                                                            </div>
                                                                        </div>
                                                                    </PagerTemplate>
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Role">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RoleNameLabel" runat="server" Text='<%# Eval("Title") %>' CssClass="boxEllips"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource3">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ReadAllTaskCheckBox" runat="server" OnCheckedChanged="ReadAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" meta:resourcekey="ReadAllTaskCheckBoxResource1" />
                                                                                    Read
                                                                                                   <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ReadTaskCheckBox" Enabled='<%# Eval("RPermission") %>' Checked='<%# Eval("Read") %>'
                                                                                        runat="server" TabIndex="9" meta:resourcekey="ReadTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Create" meta:resourcekey="TemplateFieldResource2">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="CreateAllTaskCheckBox" runat="server" OnCheckedChanged="CreateAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="6" meta:resourcekey="CreateAllTaskCheckBoxResource1" />
                                                                                    Create
                                                                                             <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="CreateTaskCheckBox" Enabled='<%# Eval("CPermission") %>' Checked='<%# Eval("Create") %>'
                                                                                        runat="server" meta:resourcekey="CreateTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource4">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="UpdateAllTaskCheckBox" runat="server" OnCheckedChanged="UpdateAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="10" meta:resourcekey="UpdateAllTaskCheckBoxResource1" />
                                                                                    Update
                                                                                            <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="UpdateTaskCheckBox" Enabled='<%# Eval("UPermission") %>' Checked='<%# Eval("Update") %>'
                                                                                        runat="server" meta:resourcekey="UpdateTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource5">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="DeleteAllTaskCheckBox" runat="server" OnCheckedChanged="DeleteAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="12" meta:resourcekey="DeleteAllTaskCheckBoxResource1" />
                                                                                    Delete
                                                                                                        <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="DeleteTaskCheckBox" Enabled='<%# Eval("DPermission") %>' Checked='<%# Eval("Delete") %>'
                                                                                        runat="server" meta:resourcekey="DeleteTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource7">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="PrintAllTaskCheckBox" runat="server" OnCheckedChanged="PrintAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="16" meta:resourcekey="PrintAllTaskCheckBoxResource1" />
                                                                                    Print
                                                                                                  <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="PrintTaskCheckBox" Enabled='<%# Eval("PPermission") %>' Checked='<%# Eval("Print") %>'
                                                                                        runat="server" meta:resourcekey="PrintTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource8">
                                                                            <HeaderTemplate>

                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExecuteAllTaskCheckBox" runat="server" OnCheckedChanged="ExecuteAllTaskCheckBox_CheckedChanged"
                                                                                        AutoPostBack="True" TabIndex="18" meta:resourcekey="ExecuteAllTaskCheckBoxResource1" />
                                                                                    Execute
                                                                                                     <span></span>
                                                                                </label>

                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox  rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ExecuteTaskCheckBox" Enabled='<%# Eval("XPermission") %>' Checked='<%# Eval("Execute") %>'
                                                                                        runat="server" meta:resourcekey="ExecuteTaskCheckBoxResource1" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../../JavaScript/rjs/encrypt/assign-permissions-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-permissions")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function EventDetails(Obj) {
            $('#DetailModal').modal('toggle');
            $('#DetailDescription').html('');
            $('#DetailDescription').append(Obj);
        }
    </script>
</asp:Content>
