<%@ page language="C#" autoeventwireup="true" inherits="Pages_TimeTable_TimeTable, App_Web_gfuvrgrk" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" maintainscrollpositiononpostback="true" 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/TimeTable/TimeTable.ascx" TagName="TimeTableControl" TagPrefix="TimeTable" %>
<%@ 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>
            <style>
                td.tblheight {
                       line-height: 4.4;
                       /*height:125px !important;*/
                      padding-top:0px;
                      padding-bottom:0px;
                     }
                .GridCellDiv{
                    width: 75px;
                }
            </style>
            <TimeTable:TimeTableControl ID="TimeTableControlBox" runat="server" Visible="false" />
            <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"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="himssuHeader1WireBox">
                                    <div id="TimeTableDetailDiv" runat="server" visible="True">

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrgLabel" runat="server" Text="Organization"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()" AutoPostBack="true" OnTextChanged="OrganizationDropDownList_TextChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent col-md-12">
                                            <asp:GridView ID="TimeTableGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="DivisionId"
                                                EmptyDataText="No Records Found !!" AllowPaging="False" OnRowDataBound="TimeTableGridView_RowDataBound"
                                                ShowHeader="true" CssClass="table table-bordered table-striped table-hover editable ">
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>

                                            <asp:HiddenField ID="hfGridView1SV" runat="server" />
                                            <asp:HiddenField ID="hfGridView1SH" runat="server" />

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
      
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script type="text/javascript" src="/../../../JavaScript/gridviewScroll.min.js"></script>--%>
    <%--<script data-main="../../JavaScript/rjs/encrypt/class-room-timeoff-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/class-room-timeoff")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function cpageLoad() {
            $('#<%=TimeTableGridView.ClientID%>').gridviewScroll({
                width: 1090,
                height: 355,
                freezesize: 1,
                headerrowcount: 1,
                startVertical: $("#<%=hfGridView1SV.ClientID%>").val(),
                startHorizontal: $("#<%=hfGridView1SH.ClientID%>").val(),
                onScrollVertical: function (delta) {
                    $("#<%=hfGridView1SV.ClientID%>").val(delta);
                },
                onScrollHorizontal: function (delta) {
                    $("#<%=hfGridView1SH.ClientID%>").val(delta);
                }
            });
            }
            function checkitem(checkBox, textBox1) {
                var e = document.getElementById(textBox1.id);
                var f = document.getElementById(checkBox.id);
                if (f.checked == true) {
                    e.disabled = true;
                }
                else {
                    e.disabled = false;
                }
            }
            function isNumberKey(evt) {
                var charCode = (evt.which) ? evt.which : event.keyCode;
                if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
                    return false;
                return true;
            }
    </script>
</asp:Content>
