<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Attendance_MonthlyRegister, App_Web_hbbn1mxb" 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" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="MonthlyRegisterUpdatePanel" runat="server">
        <ContentTemplate>
            <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">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-registered"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Monthly Register Generate"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <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 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AttendanceTypeLabel" runat="server" Text="Attendance Type" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="AttendanceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="AttendanceTypeDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="StatusDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="StatusDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div id="SubjectDiv" runat="server" visible="false">
                                            <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"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="true" OnSelectedIndexChanged="SubjectDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="ForMonthDropDownList_OnSelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromAveragePresenceLabel" runat="server" Text="From Average Presence(%)"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="FromAveragePresenceTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                    AutoPostBack="true" MaxLength="20"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToAveragePresenceLabel" runat="server" Text="To Average Presence(%)"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ToAveragePresenceTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                    AutoPostBack="true" MaxLength="20"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop5 col-md-12">
                                            <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                            <asp:Button ID="ImportButton" runat="server" Text=" &#xf019; Import To View" OnClick="ImportButton_Click"
                                                Enabled="true" SkinID="0" CssClass="btn-assign btn fas" />
                                            <asp:Button ID="ImportAllButton" runat="server" Text=" &#xf019; Import All & Save" OnClick="ImportAllButton_Click"
                                                SkinID="0" CssClass="btn-assign btn fas" />
                                            <asp:Button ID="ImportSaveButton" runat="server" Text="&#xf019; Import & Save" OnClick="ImportSaveButton_Click"
                                                SkinID="0" CssClass="btn-assign btn fas" />
                                            <asp:Button ID="DeleteButton" runat="server" Text="&#xf2ed; Delete" OnClick="DeleteButton_Click"
                                                SkinID="0" CssClass="btn-delete btn fas" />
                                            <asp:Button ID="DeleteAllButton" runat="server" Text="&#xf2ed; Delete All" OnClick="DeleteButton_Click"
                                                SkinID="0,CustomWidthButton" CssClass="btn-delete btn fas" />
                                            <asp:Button ID="VerifyAllDataButton" runat="server" Text="&#xf093; Export" OnClick="VerifyAllDataButton_Click"
                                                SkinID="0" CssClass="btn-examcommon btn fas" />
                                        </div>

                                        <div id="Div10" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server">
                                            <div class="himsBoxHeader" id="DivApply" runat="server" visible="false">
                                                <div class="himsBoxTitle">
                                                    <div class="pull-right col-md-4 display-flex pTop15">
                                                        <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" class="form-control"
                                                            OnSelectedIndexChanged="ApplyDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                        </asp:DropDownList>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox" Width="100px"></asp:TextBox>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                         <asp:Button ID="ApplyButton" runat="server" Text="Apply All" SkinID="0" CssClass="btn-apply btn fas"
                                                             OnClick="ApplyButton_Click" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <%-- <div class="headerText fRight pTop15 " runat="server" id="DivApply" visible="false">
                                            <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ApplyDropDownList_SelectedIndexChanged"></asp:DropDownList>
                                            <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox>
                                            <asp:Button ID="ApplyButton" runat="server" SkinID="CustomWidthButton" Text="Apply All" OnClick="ApplyButton_Click" />
                                        </div>--%>
                                        <div id="Div1" class="himssuHeader7WireBox col-md-12 pTop5" runat="server"
                                            visible="false">
                                            <div id="GridViewPagerDiv" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent table-responsive">

                                                <asp:GridView ID="MonthlyRegisterGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="AcademicId,ForMonth,ForYear,RollNo"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Code" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ForMonthInWord" HeaderText="For Month" ItemStyle-Width="7.5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ForYear" HeaderText="For Year" ItemStyle-Width="7.5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Working Days" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="TotalCountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("TotalCount") %>'
                                                                    Width="75px" onkeypress="javascript:return isNumberKey(this)" SkinID="CustomWidthTextBox">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Attendance Count" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="AttendanceCountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("AttendanceCount") %>'
                                                                    Width="75px" onkeypress="javascript:return isNumberKey(this)" SkinID="CustomWidthTextBox">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Present Days" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="PresentCountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("PresentCount") %>'
                                                                    Width="75px" onkeypress="javascript:return isNumberKey(this)" SkinID="CustomWidthTextBox">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Absent Days" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="AbsentCountTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("AbsentCount") %>'
                                                                    Width="75px" onkeypress="javascript:return isNumberKey(this)" SkinID="CustomWidthTextBox">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Average Presence(%)" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="AveragePresenceTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("AveragePresence") %>'
                                                                    SkinID="CustomWidthTextBox" Width="105px" onblur="javascript:return fnValidateDecimal(this,4,2)"
                                                                    onKeypress="javascript:return MaskDecimal(event,4,2)">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Absent Date" ItemStyle-Width="14%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="AbsentDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("AbsentDays") %>'
                                                                    Width="150px" SkinID="CustomWidthTextBox">
                                                                </asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                        <div class="col-md-12  pTop5">
                                            <div class="alert  mt2 alert-info">
                                                <b>Import All & Save : </b>Import all the class<br />
                                                <b>Import & Save : </b>Import selected class and selected division<br />
                                                <b>Delete : </b>Delete selected class and selected division<br />
                                                <b>Delete All : </b>Delete all the class<br />
                                                <b>Verify All Data : </b>Verify all data of class (Export in Excel)
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <%--HEDP History Ends Here--%>
                        </div>
                    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/monthly-register-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/monthly-register")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
