<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Attendance_SetWorkingDays, App_Web_jl4esjai" 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/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="SetWorkingDaysUpdatePanel" runat="server">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <div class="himssuHeader3WireBox">
                            <table>
                                <tr>
                                    <td>
                                        <div class="himsBoxContent">
                                            <div class="leftUlMenu">
                                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="110"
                                                    Visible="true" runat="server" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="row whiteboxpaddingleft">
                            <div class="himssuHeader5WireBox card card-box">
                                <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                                    <div class="leftdiv">
                                    </div>

                                    <div class="himsBoxTitle">
                                        <div class="headerText fLeft">
                                            <header>
                                                <i class="fas fa-briefcase"></i>
                                                <asp:Label ID="Label4" Text="Set Working Days"
                                                    runat="server" />
                                            </header>
                                        </div>
                                    </div>
                                </div>

                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="tableContainer">
                                                <cc1:TabContainer Width="100%" ID="SetWorkingDaysTabContainer" runat="server"
                                                    CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default" AutoPostBack="true"
                                                    meta:resourcekey="SetWorkingDaysTabContainerResource1" ActiveTabIndex="0" OnActiveTabChanged="SetWorkingDaysTabContainer_OnActiveTabChanged">
                                                    <cc1:TabPanel Width="100%" ID="MonthlySetupTabPanel" runat="server" HeaderText="Monthly Setup">
                                                        <HeaderTemplate>
                                                            <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                <li class="fancyTab">
                                                                    <a><i class="fas fa-wrench"></i>&nbsp; Monthly Setup
                                                                    </a>
                                                                </li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ContentTemplate>
                                                            <div class="contentHolder">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                                            onmouseenter="showHideTooltip()" AutoPostBack="True" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>

                                                                <div class="outerBox pTop15 col-md-4">
                                                                    <div class="fLeft pRight5">
                                                                        <asp:CheckBox ID="IsAllClassCheckBox" runat="server" Text="Apply Same Settings For All Class" />
                                                                    </div>
                                                                </div>

                                                                <div id="Div1" class="himssuHeader6WireBox col-md-12 ptop5" runat="server" visible="False">
                                                                    <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent table-responsive">
                                                                        <asp:GridView ID="MonthlySetupGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" OnRowDataBound="MonthlySetupGridView_OnRowDataBound" ShowFooter="True" DataKeyNames="ForMonth,ForYear"
                                                                            CssClass="table table-striped table-bordered table-hover">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="ForMonthInWord" HeaderText="For Month">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="20%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="ForYear" HeaderText="For Year">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="20%" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField HeaderText="Total Days">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="TotalDaysLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="20%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Week Off">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="WeekOffLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                       <asp:TemplateField HeaderText="Holiday">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="HolidayLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Working Days">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="WorkingDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("WorkingDays") %>'
                                                                                            Width="20%" onkeypress="javascript:return isNumberKey(this)">
                                                                                        </asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <asp:Label ID="FWorkingDaysLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </FooterTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="20%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </cc1:TabPanel>
                                                    <cc1:TabPanel ID="StudentSetupTabPanel" ClientIDMode="Static" runat="server" HeaderText="Student Setup">
                                                        <HeaderTemplate>
                                                            <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                <li class="fancyTab">
                                                                    <a><i class="fas fa-wrench"></i>Student Setup
                                                                    </a>
                                                                </li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ContentTemplate>
                                                            <div class="contentHolder">

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="IdNoLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5 display-flex">
                                                                        <asp:TextBox ID="IdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                            AutoPostBack="true" OnTextChanged="IdNoTextBox_TextChanged">
                                                                        </asp:TextBox>
                                                                        <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="IdNoImageButton"
                                                                            runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                                        <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                                                        <asp:HiddenField ID="ClassIdHiddenField" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="NameLabel" runat="server" Text="Name"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="NameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                    </div>
                                                                </div>

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ClassLabel1" runat="server" Text="Class"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                    </div>
                                                                </div>

                                                                <div id="Div2" class="himssuHeader6WireBox pTop5 col-md-12" runat="server" visible="false">
                                                                    <div class="himsBoxHeader card-head inner" id="Div3" runat="server" visible="True">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle">
                                                                            <div class="gridHeaderText">
                                                                                <header>
                                                                                    <asp:Label ID="Label1" Text="List"
                                                                                        runat="server" />
                                                                                </header>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent table-responsive">
                                                                        <asp:GridView ID="StudentSetupGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" OnRowDataBound="StudentSetupGridView_OnRowDataBound"
                                                                            AllowPaging="false"
                                                                            ShowHeader="true" ShowFooter="true" DataKeyNames="ForMonth,ForYear"
                                                                            CssClass="table table-striped table-bordered table-hover">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="ForMonthInWord" HeaderText="For Month" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:BoundField DataField="ForYear" HeaderText="For Year" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                <asp:TemplateField HeaderText="Total Days" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="TotalDaysLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Week Off" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="WeekOffLabel" runat="server">
                                                                                        </asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Working Days" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="WorkingDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("WorkingDays") %>' AutoPostBack="true"
                                                                                            Width="50px" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="StudentWorkingDaysTextBox_OnTextChanged">
                                                                                        </asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        <asp:Label ID="FWorkingDaysLabel" runat="server" Font-Bold="true">
                                                                                        </asp:Label>
                                                                                    </FooterTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </cc1:TabPanel>
                                                </cc1:TabContainer>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                            <%--HEDP History Ends Here--%>
                        </div>
                    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/setworking-days-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/setworking-days")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
