<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Activity_WeekOffSetting, App_Web_xeyvvyos" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl"
    TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch"
    TagPrefix="Std" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">

                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="101"
                                    Visible="true" runat="server" />
                            </div>
                        </div>

                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <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="fab fa-phoenix-framework"></i>
                                            <asp:Label ID="Label3" runat="server" Text="WeekOffSetting"></asp:Label>
                                        </header>

                                        <%--  <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="DetailPanel1"
                                                        ExpandControlID="Image1" CollapseControlID="Image1" TextLabelID="Label3" Collapsed="true"
                                                        ImageControlID="Image1" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                                        ExpandDirection="Vertical" />--%>
                                    </div>

                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel1" runat="Server">
                                <div class="contentHolder col-md-12">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourceTypeLabel" runat="server" Text="Source Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SourceTypeDropDownList" runat="server" class="form-control" OnSelectedIndexChanged="SourceTypeDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                    </div>

                                    <div runat="server" id="EmpDiv" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="EmpGradeLabel" runat="server" Text="Grade"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="EmpGradeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="EmpDesignationLabel" runat="server" Text="Designation"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="EmpDesignationDropDownList" runat="server" class="form-control"
                                                    SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="DesignationDropDownListResource1" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="EmpTypeLabel" runat="server" Text="Employee Type"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="EmpTypeDropDownList" runat="server" class="form-control" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                            </div>
                                        </div>

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

                                    <div class="alignCenter pTop5 col-md-12">
                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                            SkinID="0" class="btn-search btn fas" />

                                    </div>

                                    <div id="Div2" class="himssuHeader7WireBox col-md-12 pb5 mt2" runat="server">
                                        <div id="ActivityListDetailDiv" runat="server">

                                            <div class="himsBoxHeader col-md-12" id="ActivityListDiv" runat="server" visible="false">
                                                <div class="leftdiv">
                                                    <asp:Label ID="Label1" runat="server" Text="FirstWeekOffDay" Style="font: bold"></asp:Label>
                                                    <asp:Label ID="Label2" runat="server" Text="FristWeekOffRule" Style="margin-left: 180px; font: bold"></asp:Label>
                                                    <asp:Label ID="Label4" runat="server" Text="SecondWeekOff" Style="margin-left: 136px; font: bold"></asp:Label>
                                                    <asp:Label ID="Label5" runat="server" Text="SecondWeekOffRule" Style="margin-left: 158px; font: bold"></asp:Label>
                                                </div>



                                                <div class="col-md-12 display-flex ptop5">
                                                    <%--<div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="Label2" Text="List" runat="server" Font-Bold="true" />
                                                                    </div>
                                                                </div>--%>
                                                    <asp:DropDownList ID="FirstWeekDayDropDownList" runat="server" class="form-control"></asp:DropDownList>&nbsp; &nbsp;
                                                                <asp:DropDownList ID="FristWeekRuleDropDownList" runat="server" class="form-control"></asp:DropDownList>&nbsp; &nbsp;
                                                               <asp:DropDownList ID="SecondWeekDropDownList" runat="server" class="form-control"></asp:DropDownList>&nbsp; &nbsp;
                                                                 <asp:DropDownList ID="SEcondWeekRuleDropDownList" runat="server" class="form-control"></asp:DropDownList>

                                                    <asp:Button ID="ApplyButton" runat="server" Text="&#xf058; Apply" OnClick="ApplyButton_Click" SkinID="0" CssClass="btn btn-apply fas" Style="top: 0px; height: 28px;" />
                                                    <%-- <div align="right" class="fRight" style="margin-top: 0px;">--%>
                                                    <%-- <uc1:GridViewPager ID="ActivityGridViewPager" runat="server" ParentGridView="ActivityGridView"
                                                                        OnFirstRecordClick="ActivityGridViewPager_FirstRecordClick" OnLastRecordClick="ActivityGridViewPager_LastRecordClick"
                                                                        OnNextRecordClick="ActivityGridViewPager_NextRecordClick" OnPrevRecordClick="ActivityGridViewPager_PrevRecordClick"
                                                                        OnTextBoxValueChange="ActivityGridViewPager_TextBoxValueChange" />--%>

                                                    <%-- </div>--%>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5 ">
                                                <div id="Div5" runat="server" visible="false">
                                                    <div class="table-responsive">
                                                        <asp:GridView ID="ActivityGridView" runat="server" AutoGenerateColumns="False"
                                                            ShowHeader="true" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                            CssClass="table table-striped table-bordered table-hover" DataKeyNames="ClassID,EmpId,Id,FirstWeekOffDayId,FristWeekOffRuleId,SEcondWeekOffRuleId,SecondWeekOff" OnRowDataBound="ActivityGridView_RowDataBound">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="5%">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderCheckboxCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderCheckboxCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="StudentEmpCheckBox" runat="server" Checked='<%#Convert.ToBoolean (Eval("Checked")) %>' />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Title" HeaderText="Class" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Name" HeaderText="Employee Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField HeaderText="First WeekOff Day" ItemStyle-Width="10%">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="FirstWeekOffDayDropDownList" runat="server" class="form-control"></asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="First WeekOff Rule" ItemStyle-Width="10%">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="FristWeekOffRuleDropDownList" runat="server" class="form-control"></asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Second WeekOff" ItemStyle-Width="10%">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="SecondWeekOffDropDownList" runat="server" class="form-control"></asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Second WeekOff Rule" ItemStyle-Width="10%">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="SEcondWeekOffRuleDropDownList" runat="server" class="form-control"></asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <%--     <div class="contentHolder" style="padding-left: 0px; padding-right: 0px">--%>

                    <%--     </div>--%>
                </div>

                <%--HEDP History Ends Here--%>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/activity")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
