<%@ page language="C#" autoeventwireup="true" inherits="Pages_Academic_AssignSubjectCoordinator, App_Web_grtmhu1y" 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">
    <script type="text/javascript">

        function CheckAll(e) {
            var t = e.parentNode.parentNode.parentNode.parentNode;
            for (i = 1; i < t.rows.length; i++) t.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = e.checked
        }

    </script>
    <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>
                            </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="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" OnSelectedIndexChanged="SearchOrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                            </div>
                                        </div>
                                        <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="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="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchAssignCoordinatorLabel" runat="server" Text="Assign Coordinator"></asp:Label>
                                            </div>
                                            <asp:DropDownList ID="SearchAssignCoordinatorDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>

                                        <div id="ClassDivCheckBoxList" class="outerBox11 pTop5 col-md-3" runat="server" visible="true">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchClassDivisionLabel" runat="server" Text="Class - Division"></asp:Label>
                                            </div>
                                            <div class="select">
                                                <asp:CheckBox ID="ClassCheckBox" runat="server" AutoPostBack="True" Text="Select All" OnCheckedChanged="ClassCheckBox_CheckedChanged" />
                                            </div>
                                            <div id="DivisionIdDiv" runat="server" visible="false">
                                                <div class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0" visible="false">
                                                    <asp:CheckBoxList ID="SearchClassDivisionCheckBoxList" runat="server">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                        </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" CssClass="btn btn-examcommon 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="himsBoxTitle">
                                                    <div class=" display-flex">
                                                        <div class="outerBox pTop5 col-md-12" style="margin-bottom:8px;" >
                                                            <div class="outerBox pTop5 col-md-7"></div>
                                                            <div class="outerBox pTop5 col-md-5">
                                                                 <div class="outerBox pTop5 col-md-6">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label5" runat="server" Text="Coordinator Assign"></asp:Label>
                                                                </div>
                                                                <asp:DropDownList ID="CoordinatorAssignDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />&#160;&#160;&#160;&#160;
                                                            </div>
                                                                   <div class="outerBox pTop5 col-md-6">
                                                                <asp:Button ID="AssignButton" runat="server" Text="&#xf0ae; Assign" CssClass="btn btn-examcommon fas" SkinID="0" OnClick="AssignButton_Click" Style="height: 27px !important; top: 20px;" />&#160;
                                                                                <asp:Button ID="DeleteButton" runat="server" Text="&#xf2ed; Delete" class="fas btn btn-delete " SkinID="0" OnClick="DeleteButton_Click" Style="height: 27px !important; top: 20px;" />
                                                            </div>
                                                                </div><br /><br />
                                                         
                                                        </div>
                                                        &#160;&#160;&#160;&#160;
                                                        
                                                    </div>
                                                </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" class="table-responsive">
                                                            <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 HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBoxAll" onclick="CheckAll(this);" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </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>
                                                                    <asp:TemplateField HeaderText="Coordinator Name" ItemStyle-Width="8%" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="CoordinatorNameLabel" runat="server" Text='<%#Bind("CoordinatorName")%>'></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">
                        <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>
                        </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 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>
                                </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" />
                                                </div>
                                                <div class="gridHeaderText">
                                                    <asp:Label ID="SubjectLabel" Text="" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </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>
