<%@ page language="C#" autoeventwireup="true" inherits="Pages_TimeTable_TimeTableAdmin, App_Web_gfuvrgrk" 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/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/TimeTable/TimeTableSchemaDetailBoxControl.ascx" TagName="TimeTableSchemaControl" TagPrefix="TimeTableSchema" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="222"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <TimeTableSchema:TimeTableSchemaControl ID="TimeTableSchemaUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">

                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="far fa-calendar-alt"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Time Table Admin"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">

                                <div class="outerBox pTop5">
                                    <div class="pLeft10">
                                        <div class="col-md-3">
                                            <asp:Label ID="CopyTimeTableLabel" runat="server" Text="Copy From"></asp:Label>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrganizationGroupBatchLabel" runat="server" Text="Group Batch"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="OrganizationGroupBatchDropDownList" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="true" class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="OrganizationGroupBatchDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="fLeft col-md-3 ">
                                            <asp:DropDownList runat="server" ID="CopyFromDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>

                                        </div>
                                        <div class="outerBox pTop15 col-md-12 center">
                                            <asp:Button ID="CopyTimeTableButton" runat="server" Text="Import Time Table Setup" ToolTip="Assign Organization, Assign Teacher, Assign Class Room, Assign Division" SkinID="0" OnClick="CopyTimeTableButton_Click" class="btn btn-assign" />
                                            <asp:Button ID="ImportTimeTableSetupButton" runat="server" Text="Import Time Table" ToolTip="Division Work Load, Teacher Work Load, Time Setup, Time Table, Time Table Detail" SkinID="0" OnClick="ImportTimeTableSetupButton_Click" class="btn btn-assign" />
                                            <asp:Button ID="ImportToAcademicButton" runat="server" Text="Export Employee to Academic" SkinID="0" OnClick="ImportToAcademicButton_Click" class="btn btn-assign" />
                                        </div>


                                    </div>
                                </div>

                                <br />
                                <div class="alert alert-info col-md-12 pTop15" style="margin-top: 30px">
                                    <asp:Label ID="Label3" runat="server" Text=" |Import Employee first delete employee then import new employees in timetable" SkinID="MandatoryLabel"></asp:Label><br />
                                </div>
                                <asp:Panel ID="UpdateDataHeader" runat="server">
                                    <div class="himsBoxHeader card-head inner">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="UpdateDataLabel" runat="server" Text="Left Employee To Active Employee Update Data"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Importfeesetupcontent" runat="server">
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LeftEmployeeLabel" runat="server" Text="Left Employee" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="LeftEmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SubjectLabel" runat="server" Text="Subject"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ActiveEmployeeLabel" runat="server" Text="Active Employee" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ActiveEmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop15 col-md-12 center">
                                                <asp:Button ID="UpdateDataButton" runat="server" Text="Update Data" SkinID="0" class="btn btn-assign" OnClick="UpdateDataButton_Click" />
                                            </div>

                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="ImportTimeTableData" runat="server">
                                    <div class="himsBoxHeader card-head inner">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="Label" runat="server" Text="Import Time Table Data"></asp:Label>
                                                </header>
                                            </div>
                                        </div>

                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Panel1" runat="server">
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop15 col-md-12 center">
                                                <asp:Button ID="ImportTimeTableDataButton" runat="server" Text="Update Data" SkinID="0" class="btn btn-assign" OnClick="ImportTimeTableDataButton_Click" />
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="ImportExcelTimeTableData" runat="server">
                                    <div class="himsBoxHeader card-head inner">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="Label4" runat="server" Text="From Excel Import"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label6" runat="server" Text="Class Division"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <%--<asp:HyperLink ID="DownloadFeeNameTemplateHyperLink" runat="server" Text="&#xf101; Download Template"
                                                NavigateUrl="~/ContentTemplates/Import/TimeTableNewImport_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>--%>
                                            <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template"
                                                NavigateUrl="~/ContentTemplates/Import/TimeTableImport_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Button ID="ExportTimeTableButton" runat="server" Text="&#xf093; Export TimeTable" OnClick="ExportTimeTableButton_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                            <asp:Button ID="ExportTimeTableButton1" runat="server" Visible="true" OnClick="ExportTimeTableButton1_Click" SkinID="0" CssClass="display-none btn btn-validate fas" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                            <asp:Label ID="Label2" runat="server"></asp:Label>
                                        </div>
                                        <br />
                                        <asp:Label ID="Label5" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Button ID="ValidateButton" runat="server" Text="&#xf00c; Validate" OnClick="ValidateButton_Click" SkinID="0" CssClass="btn btn-validate fas" />
                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-12">
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop15 col-md-12 center">
                                                    <asp:Button ID="FromExcelImportButton" runat="server" Text="Import Time Table" SkinID="0" class="btn btn-assign" OnClick="FromExcelImportButton_Click" />
                                                    <asp:Button ID="ClearImportButton" runat="server" Text="&#xf0e2; Clear" OnClick="ClearImportButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>

                                            <div class="cBoth">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="alert alert-info col-md-12 pTop15" style="margin-top: 30px">
                                        <%--/////--%>
                                        <asp:Label ID="ImportTimeTableNote1" runat="server" Text=" |If the same Division name exists in 'Assign Division' for different organizations, we give priority to the Division of the selected organization during timetable import." SkinID="MandatoryLabel"></asp:Label><br />
                                        <asp:Label ID="ImportTimeTableNote2" runat="server" Text=" |If the same Employee code exists in 'Assign Teacher' for different organizations, we give priority to the Employee of the selected organization during timetable import." SkinID="MandatoryLabel"></asp:Label><br />
                                        <asp:Label ID="ImportTimeTableNote3" runat="server" Text=" |If the same Subject name exists in 'Subject Master' for different organizations, we give priority to the Subject of the selected organization during timetable import." SkinID="MandatoryLabel"></asp:Label><br />
                                    </div>
                                    <div id="HtmlDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: auto; overflow: scroll;">
                                        <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                            <asp:Label ID="HtmlStringLabel" runat="server" Text=""></asp:Label>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <%-- add for 28285 mantis end --%>
                                <asp:Panel ID="DeletePanel" runat="server">
                                    <div class="himsBoxHeader card-head inner pTop5">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <asp:Label ID="Label7" runat="server" Text="Delete Whole Data"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrgLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassDivisionLabel_Delete" runat="server" Text="Class Division"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDivisionDropDown_Delete" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeleteDataLabel" runat="server" Text="Delete Data"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DeleteDataDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Button ID="DeleteDataButton" runat="server" OnClick="DeleteDataButton_Click" Text="&#xf2ed; Delete" SkinID="0" class="fas btn btn-delete" />
                                        </div>
                                    </div>
                                    <div class="alert alert-info col-md-12 pTop15" style="margin-top: 30px">
                                        <asp:Label ID="DeleteDataAlert" runat="server" Text="|To delete data you want to go with the below flow." SkinID="MandatoryLabel"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert1" runat="server" Text=" 1. Proxy Setting"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert2" runat="server" Text="2. Assign Time Table Time"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert3" runat="server" Text="3. Time Table"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert4" runat="server" Text="4. Teacher Work Load"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert5" runat="server" Text="5. Division Work Load"></asp:Label><br />
                                        <asp:Label ID="DeleteDataAlert6" runat="server" Text="6. Time Setup"></asp:Label>
                                    </div>
                                </asp:Panel>
                                <%-- add for 28285 mantis end --%>
                            </div>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/timetable-admin-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/timetable-admin")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
