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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="MainUpdatePanel" 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="155"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                            
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-search"></i>
                                                    <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                                        </header>
                                                </div>
                                                <div class="fRight mt-27">
                                                    <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" class="btn btn-add fas" Text="&#xf067; Add" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <asp:Panel ID="DetailPanel" runat="server"
                                        meta:resourcekey="DetailPanelResource1">
                                        <div class="himsBoxContent card-body">
                                            <div class="contentHolder">
                                                <asp:Panel ID="PanelSearch" runat="server"
                                                    meta:resourcekey="PanelSearchResource1">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="CodeLabel" Text="Code" runat="server"
                                                                meta:resourcekey="CodeLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="CodeSearchTextbox"
                                                                runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" MaxLength="100"
                                                                meta:resourcekey="CityNameSearchTextboxResource1"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBoxPreBtn pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TitleLabel" Text="Title" runat="server"
                                                                meta:resourcekey="TitleLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">

                                                            <asp:TextBox ID="TitleSearchTextBox"
                                                                runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" MaxLength="100"
                                                                meta:resourcekey="TitleSearchTextBoxTextboxResource1"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                
                                                    <div class="alignCenter pTop5 col-md-12 center">
                                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="server"
                                                            OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0"
                                                            OnClick="ResetButton_Click" class="btn-reset btn fas" meta:resourcekey="ResetButtonResource1" />
                                                    </div>
                                                    <br />
                                                </asp:Panel>
                                                <div id="AllergyGridDiv" runat="server" visible="False">
                                                   
                                                    <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv" runat="server" style="width: 100%">
                                                        
                                                        <div class="himsBoxContent card-body table-responsive" style="padding-top:0px">
                                                            <asp:GridView ID="TimeTableSchemaGridView" runat="server" AutoGenerateColumns="False"
                                                                DataKeyNames="Id" CssClass="table table-striped table-bordered table-hover"
                                                                OnPageIndexChanging="TimeTableSchemaGridView_PageIndexChanging" ShowHeader="True" EmptyDataText="No Data Available"
                                                                meta:resourcekey="CityMasterGridViewResource1" OnRowDataBound="TimeTableSchemaGridView_RowDataBound">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                        HeaderText="">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="LinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                CausesValidation="false" OnClick="LinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Number" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NameLabel" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("Number") %>'
                                                                                Width="100px" Text='<%# Bind("Number") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Code" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="CodeTitleLabel" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("Code") %>'
                                                                                Width="100px" Text='<%# Bind("Code") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Title" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TitleLabel" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("Title") %>'
                                                                                Width="200px" Text='<%# Bind("Title") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="35%" />
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="OrderIndex" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="OrderIndexLabel" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("OrderIndex") %>'
                                                                                Width="100px" Text='<%# Bind("OrderIndex") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField HeaderText="InActive" DataField="IsObsolete"
                                                                        meta:resourcekey="BoundFieldResource1" HeaderStyle-HorizontalAlign="Center">
                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                    </asp:BoundField>
                                                                     <asp:BoundField HeaderText="IsPublish" DataField="IsPublish"
                                                                        meta:resourcekey="BoundFieldResource1" HeaderStyle-HorizontalAlign="Center">
                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="IsDisplayPeriodTime" DataField="IsDisplayPeriodTime"
                                                                        meta:resourcekey="BoundFieldResource1" HeaderStyle-HorizontalAlign="Center">
                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                    </asp:BoundField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                        <div class="himsBoxHeader card-head inner" id="ListDiv" runat="server" style="display:none;">
                                                           
                                                            <div class="himsBoxTitle" style="width: 99%;" >
                                                                <div align="right" class="fRight" style="margin-top: 0px;">
                                                                    <uc1:GridViewPager ID="TimeTableSchemaGridView_GridViewPager" runat="server" OnFirstRecordClick="TimeTableSchemaGridView_GridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="TimeTableSchemaGridView_GridViewPager_LastRecordClick" OnNextRecordClick="TimeTableSchemaGridView_GridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="TimeTableSchemaGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="TimeTableSchemaGridView_GridViewPager_TextBoxValueChange"
                                                                        ParentGridView="TimeTableSchemaGridView" />
                                                                </div>
                                                            </div>
                                                           <%-- <div class="gridHeaderText">                                                                   
                                                                         <header>
                                                                        <asp:Label ID="GridViewLabel" Text="Time table Schema" runat="server" Font-Bold="true" />
                                                                             </header>
                                                                   
                                                            </div>--%>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                                    <div class="himsBoxHeader card-head">
                                        
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-list-ul"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Time Table Schema"
                                                    meta:resourcekey="Label1Resource1" />
                                                </header>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27 pagination display-flex">
                                       
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" 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"
                                                                OnClick="PreviousImageButton_Click" 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"
                                                                OnClick="NextImageButton_Click" 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"
                                                                OnClick="LastRecordImageButton_Click" 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>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="CodeAddLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                                        meta:resourcekey="CityLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="CodeAddTextbox"
                                                        runat="server" MaxLength="100"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="CityNameTextboxResource1"></asp:TextBox>
                                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="TitleAddLabel" runat="server" Text="Title"
                                                        SkinID="MandatoryLabel" meta:resourcekey="CountryLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="TitleAddTextBox"
                                                        runat="server" MaxLength="100"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="TitleAddTextBoxResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                           
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="NumberAddLabel" runat="server" Text="Number" SkinID="MandatoryLabel"
                                                        meta:resourcekey="NumberAddLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="NumberAddTextBox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                        onblur="return fnonTextChangeDescriptionField(this)" runat="server" MaxLength="100"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="CityNameTextboxResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                         
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrderIndexAddLabel" runat="server" Text="OrderIndex"
                                                        meta:resourcekey="ZipCodeLabelResource" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="OrderIndexAddTextBox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                        onblur="return fnonTextChangeDescriptionField(this)" runat="server" MaxLength="100"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                </div>
                                            </div>
                                            
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LabelNoOfPeriod" runat="server" Text="Max Daily No Of Period"
                                                        meta:resourcekey="NoOfPeriodLabelResource" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="NoOFPeriodTextBox" onKeypress="javascript:return isNumber()"
                                                        runat="server"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                </div>
                                            </div>  
                                            
                                            <div class="outerBox pTop15 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="IsPublishCheckBox" runat="server" Text="IsPublish"/>
                                                </div>
                                            </div>
                                          
                                            <div class="outerBox pTop15 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="IsDisplayPeriodTimeCheckBox" runat="server" Text="IsDisplayPeriodTime"/>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop15 col-md-3">
                                                <div class="fLeft">

                                                    <asp:CheckBox ID="ObsoleteCheckBox" runat="server"
                                                        meta:resourcekey="ObsoleteCheckBoxResource1" Text="InActive" />
                                                </div>
                                                <div class="fLeft pLeft5 pTop5">
                                                    <asp:Label ID="InActiveLabel" runat="server" 
                                                        meta:resourcekey="InActiveLabelResource1"></asp:Label>
                                                </div>
                                            </div>                                        
                                           
                                            <div class="outerBox11 pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="WeekOffsLabel" Text="Week Offs" runat="server"></asp:Label>
                                                </div>
                                                <asp:TextBox ID="WeekOffsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    runat="server" MaxLength="200" SkinID="CustomWidthTextbox" Visible="false"></asp:TextBox>
                                                <asp:CheckBoxList ID="WeekOffsCheckBoxList" runat="server" RepeatColumns="7"
                                                    RepeatDirection="Horizontal"
                                                    class="pTop10">
                                                    <asp:ListItem Text="Sunday" Value="0"></asp:ListItem>
                                                    <asp:ListItem Text="Monday" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="Tuesday" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="Wednesday" Value="3"></asp:ListItem>
                                                    <asp:ListItem Text="Thursday" Value="4"></asp:ListItem>
                                                    <asp:ListItem Text="Friday" Value="5"></asp:ListItem>
                                                    <asp:ListItem Text="Saturday" Value="6"></asp:ListItem>
                                                </asp:CheckBoxList>
                                            </div>
                                           
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
       
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/timetable-schema-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/timetable-schema")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
