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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style>
        #ctl00_CP_PermissionTabContainer_AddTeacherSubjectDivision_TeacherSubjectDivisionGridViewPagerDiv {
            height: 51px !important;
        }

        #ctl00_CP_PermissionTabContainer_AddTeacherSubjectDivision_Label1, #ctl00_CP_PermissionTabContainer_AddTeacherSubjectDivision_SubjectLabel {
            font-size: 14px !important;
        }
    </style>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <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="212"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container2 Box Start -->
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" SkinID="0" OnClick="AddNewButton_Click"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="col-md-12 bg-lghtgrey radiobtn">
                                            <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="SourceTypeRadioButtonList_SelectedIndexChanged" AutoPostBack="true">
                                                <asp:ListItem Text="Teacher" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Organization" Value="2"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                        <div id="TeacherWiseDiv" runat="server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchTeacherLabel" runat="server" Text="Teacher"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchTeacherDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SearchTeacherDropDownList_SelectedIndexChanged" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchOrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchOrganizationDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                        </div>
                                        <div id="OrganizationWiseDiv" runat="server" visible="false">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrgWiseOrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrgWiseOrganizationDropDownList" AutoPostBack="true" OnSelectedIndexChanged="OrgWiseOrganizationDropDownList_SelectedIndexChanged" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrgWiseTeacherLabel" runat="server" Text="Teacher"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrgWiseTeacherDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="OrgWiseTeacherDropDownList_SelectedIndexChanged" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchSubjectLabel" runat="server" Text="Subject"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchSubjectDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SearchSubjectDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchClassLabel" runat="server" Text="Class"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchClassDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="SearchDivisionDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>


                                        <div class="alignCenter pTop5 col-md-12 center">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server"
                                                SkinID="0" class="btn-search btn fas" OnClick="SearchButton_Click" />
                                            <asp:Button ID="ExportToExcelButton" Text="&#xf093; Export" runat="Server"
                                                SkinID="0" class="btn-examcommon btn fas" OnClick="ExportToExcelButton_Click" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset"
                                                SkinID="0" class="btn-reset btn fas" OnClick="ResetButton_Click" />
                                            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="SearchSubjectDivisionDetailsDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader" id="SearchNewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>

                                                <%-- <div class="gridHeaderText">
                                                            <header>
                                                            <asp:Label ID="AssignRouteLabel" runat="server" Text="ClassWork | Homework"></asp:Label>
                                                            </header>
                                                            </div>--%>
                                            </div>
                                            <div class="himsBoxContent col-md-12 pTop5 table-responsive">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="SearchDiv5" runat="server" visible="false">
                                                            <asp:GridView ID="TeacherSubjectDivisionDetailsGridView" runat="server" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered table-hover" OnRowDataBound="TeacherSubjectDivisionDetailsGridView_RowDataBound"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="EmployeeGroupId,TeacherId,DivisionId,ClassId,SubjectId,OrgId">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="6%" ItemStyle-Wrap="true">
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="LinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Organization" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="OrganizationLabel" runat="server" Text='<%#Bind("Organization")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Teacher Name" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TeacherNameLabel" runat="server" Text='<%#Bind("TeacherName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Subject Name" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SubjectNameLabel" runat="server" Text='<%#Bind("SubjectName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Class Division Name" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ClassDivisionNameLabel" runat="server" Text='<%#Bind("ClassDivisionName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <!-- Sub Container2 Box Ends -->
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server">
                        <cc1:TabContainer Width="100%" ID="PermissionTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default pTop5"
                            AutoPostBack="true" meta:resourcekey="StudentCustomSearchTabContainerResource1"
                            ActiveTabIndex="0">
                            <cc1:TabPanel Width="100%" ID="AddTeacherSubjectDivision" runat="server" HeaderText="Add Teacher Subject Division">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 232px !important">
                                        <li class="fancyTab">
                                            <a><i class="fas  fa-bars" style="margin: 0px 1px !important"></i>&nbsp;Add Teacher Subject Division </a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="contentHolder">
                                        <div class="tableContainer">
                                            <div>
                                                <%--<div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server">--%>
                                                <%-- <div class="himsBoxHeader card-head">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <header>
                                                                <i class="fas fa-list-ul"></i>
                                                                <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Teacher Subject Division"></asp:Label>
                                                            </header>
                                                        </div>
                                                    </div>
                                                </div>--%>
                                                <div class="fRight mt-27 pagination display-flex ">
                                                    <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="false">
                                                        <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                            CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                        </asp:LinkButton>
                                                        <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                            CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                        </asp:LinkButton>

                                                        <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                        &nbsp; 
                                                        <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                        &nbsp;  
                                                        <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                        &nbsp;  
                                                        <asp:Label ID="TotalRecord" runat="server" />
                                                        &nbsp;
                                                        <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                            runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                            CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                            <i class="fa fa-play"></i>
                                                        </asp:LinkButton>
                                                        <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                            CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                        </asp:LinkButton>

                                                    </div>
                                                    &nbsp; &nbsp;
                                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                        class="btn btn-back fas" Text="&#xf30a;  Back" />

                                                </div>
                                                <div class="himsBoxContent card-body">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="EmployeeTypeLabel" runat="server" Text="Employee  Group"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="EmployeeTypeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="EmployeeTypeDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TeacherLabel" runat="server" Text="Teacher" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="TeacherDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="TeacherDropDownList_SelectedIndexChanged" />
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>


                                                        <div class="alignCenter pTop5 col-md-4">
                                                            <asp:Button ID="TeacherSubjectSaveButton" runat="server" Text="Assign Subject" CssClass="btn btn-assign" SkinID="0" OnClick="TeacherSubjectSaveButton_Click" />
                                                        </div>


                                                        <div class="alignCenter pTop5 col-md-4">
                                                            <asp:Button ID="TeacherSubjectDivisionSaveButton" runat="server" Text="Assign Division" SkinID="0" CssClass="btn btn-assign" OnClick="TeacherSubjectDivisionSaveButton_Click" />
                                                        </div>



                                                        <div class="alignCenter pTop5 col-md-4">
                                                            <asp:Button ID="AssignAllButton" runat="server" Text="Assign All" SkinID="0" CssClass="btn btn-assign" OnClick="AssignAllButton_Click" />
                                                            <asp:Button ID="RemoveallButton" runat="server" Text="Delete" SkinID="0" CssClass="btn btn-assign" OnClick="RemoveallButton_Click" />
                                                        </div>


                                                        <div id="TeacherSubjectDiv" runat="server" visible="false">

                                                            <div class="himssuHeader6WireBox col-md-4">
                                                                <div class="himsBoxHeader card-head inner" id="TeacherSubjectGridViewPagerDiv" runat="server" visible="false">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <asp:Label ID="GridViewLabel1" Text="Subject List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent card-body table-responsive">
                                                                    <div id="TeacherSubjectDiv1" runat="server" visible="true">
                                                                        <asp:GridView ID="TeacherSubjectGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" AllowPaging="False" CssClass="table table-striped table-bordered table-hover"
                                                                            OnRowDataBound="TeacherSubjectGridView_RowDataBound"
                                                                            DataKeyNames="EmployeeId,SubjectId" ShowHeader="True" ShowFooter="false">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="15%"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <HeaderTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="SHeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                                Visible="true" OnCheckedChanged="SHeaderSelectCheckBox_checked" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </HeaderTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="SSelectCheckBox" runat="server" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="SubjectName" HeaderText="Subject Name" ItemStyle-Width="60%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="25%" ItemStyle-Wrap="true">
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="LinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                            CausesValidation="false" OnClick="LinkButton_Click"></asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div id="TeacherSubjectDivisionDiv" runat="server" visible="false">

                                                            <div class="himssuHeader6WireBox col-md-4">
                                                                <div class="himsBoxHeader card-head inner" id="TeacherSubjectDivisionGridViewPagerDiv" runat="server" visible="false">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <asp:Label ID="GridViewLabel2" Text="Class - Division List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                        <div class="gridHeaderText">
                                                                            <asp:Label ID="Label1" Text="For Subject: " runat="server" />
                                                                            <asp:Label ID="SubjectLabel" Text="" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent card-body table-responsive">
                                                                    <div id="TeacherDivisionDiv1" runat="server" visible="true">
                                                                        <asp:GridView ID="TeacherSubjectDivisionGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" AllowPaging="False" CssClass="table table-striped table-bordered table-hover"
                                                                            OnRowDataBound="TeacherSubjectDivisionGridView_RowDataBound"
                                                                            DataKeyNames="EmployeeId,SubjectId,DivisionId" ShowHeader="True" ShowFooter="false">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <HeaderTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="DHeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                                Visible="true" OnCheckedChanged="DHeaderSelectCheckBox_checked" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </HeaderTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="DSelectCheckBox" runat="server" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="ClassDivisionName" HeaderText="Class - Division Name" ItemStyle-Width="80%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>


                                                        <div id="AssignedSubjectClassDivisionDiv" runat="server" visible="false">

                                                            <div class="himssuHeader6WireBox col-md-4">
                                                                <div class="himsBoxHeader card-head inner" id="AssignedSubjectClassDivisionHeaderDiv" runat="server" visible="false">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <asp:Label ID="Label2" Text="Assigned Subject & Class-Division List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="himsBoxContent card-body table-responsive">
                                                                    <div id="Div3" runat="server" visible="true">
                                                                        <asp:GridView ID="TeacherAssignedSubjectClassSuGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" AllowPaging="False" CssClass="table table-striped table-bordered table-hover"
                                                                            DataKeyNames="Id,DivisionId" ShowHeader="True" ShowFooter="false">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <HeaderTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="THeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                                Visible="true" OnCheckedChanged="THeaderSelectCheckBox_CheckedChanged" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </HeaderTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="TSelectCheckBox" runat="server" />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="OrgName" HeaderText="Organization" ItemStyle-Width="40%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="SubjectName" HeaderText="Subject" ItemStyle-Width="30%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="ClassDivisionName" HeaderText="Class - Division" ItemStyle-Width="30%"
                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <%-- <asp:TemplateField ItemStyle-Width="25%" ItemStyle-Wrap="true">
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                        ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>--%>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <%--</div>--%>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel Width="100%" ID="CopyTeacherData" runat="server" HeaderText="Copy Teacher Data">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs" style="width: 170px !important">
                                        <li class="fancyTab">
                                            <a><i class="fas  fa-bars" style="margin: 0px 1px !important"></i>&nbsp;Copy Teacher Data </a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="contentHolder">
                                        <div class="tableContainer">
                                            <div>
                                                <div class="himsBoxContent card-body">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ExistingEmployeeLabel" runat="server" Text="Existing Employee" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ExistingEmployeeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ExistingEmployeeDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="NewEmployeeLabel" runat="server" Text="New Employee" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="NewEmployeeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12 pTop5 pb15 text-center">
                                                            <asp:Button ID="CopyPermissionButton" Text="&#xf0c5; Copy Permission" OnClick="CopyPermissionButton_Click" runat="Server" SkinID="0" CssClass="btn-assign btn fas" />
                                                        </div>
                                                        <div class="col-md-12">
                                                            <div class="alert   alert-info">

                                                                <div style="color: #FF7F7F">
                                                                    </b>&nbsp; 1. There should be no teacher subject division assigned to a new employee.
                                                                    <br />
                                                                    &nbsp;
                                                                       2. All existing data of employees selected in the New Employee dropdown will be removed and overwritten with existing employee permissions if there is already an existing teacher subject division assigned.
                                                                           
                                                                    <br />

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </div>
                </div>
                </td>                   
            </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
