<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_AttendanceRegister, App_Web_g25tbc5i" 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" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/Hostel/HostelDetailBoxControl.ascx" TagName="HostelControl" TagPrefix="Hostel" %>
<%@ 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="SearchStudentSearch" Visible="false" runat="server" />
            <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="175"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Hostel:HostelControl ID="HostelUserControl" runat="server" Visible="true" />
                    <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="fas fa-list-ul"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Attendance Register"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="ListButtonID" runat="server" OnClick="ListButton_Click" SkinID="0" class="btn btn-add fas" Text="&#xf067; List" />
                                    </div>
                                </div>
                                <div class="fRight mt-27 pagination display-flex">
                                    <asp:Button ID="StudentBackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="StudentBackButton_Click" Visible="false" Style="top: 10px; right: 46px" />
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="BuildingLabel" runat="server" Text="Building" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="BuildingDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="BuildingDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="RoomLabel" Text="Room" runat="server" SkinID="0"></asp:Label>
                                            <asp:Label ID="RoomLabelM" Text="Room" runat="server" SkinID="MandatoryLabel" Visible="false"></asp:Label> <%--add for mantis: 35712--%>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="RoomDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="AttendanceDateLabel" runat="server" Text="Attendance Date" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="AttendanceDatePickerControl" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label5" Text="Attendance Type" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="HostelAttendanceTypeIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

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

                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server" visible="false" style="width: 100%; height: 100%">
                                        <div id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="gridHeaderText fLeft">
                                                    <asp:Label ID="TNoteLabel" Text="" runat="server" />
                                                    <asp:Label ForeColor="Red" ID="NoteLabel" Text="" runat="server" />
                                                    <asp:Label ID="TotalStudentLabel" Text="" runat="server" />
                                                    <asp:Label ID="PresentStudentLabel" Text="" runat="server" />
                                                    <asp:Label ID="AbsentStudentLabel" Text="" runat="server" />
                                                    <asp:Label ID="AbsentStudentRollNoLabel" Text="" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent pTop5 table-responsive">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                visible="False">
                                            </div>
                                            <asp:GridView ID="HostelAttendaceGridView" runat="server" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" OnRowDataBound="HostelAttendaceGridView_RowDataBound"
                                                AllowPaging="false"
                                                ShowHeader="true"
                                                DataKeyNames="StudentId,AbsentReasonId"
                                                CssClass="table table-striped table-bordered table-hover">
                                                <Columns>
                                                    <asp:BoundField DataField="SUID" HeaderText="SUID" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="50%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    <asp:TemplateField ItemStyle-Wrap="true" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="HeaderIsPresentCheckBox" runat="server" onClick="checkAllRows(this);" />
                                                                <span></span>Present
                                                            </label>
                                                        </HeaderTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <ItemTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="IsPresentCheckBox" runat="server" Checked='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.HostelBE.AttendanceRegister)Container.DataItem).IsPresent %>' onClick="checkUncheckHeaderCheckBox(this);" />
                                                                <span></span>
                                                            </label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="Absent Reason" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:DropDownList runat="server" ID="AbsentReasonDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head" id="Div6" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-list-ul"></i>
                                        <asp:Label ID="Label2" Text="AttendanceRegister List"
                                            runat="server" />
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <%--<asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" />
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" />--%>
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a;  Back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="Panel2" runat="Server">

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label1" runat="server" Text="Building"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchBuildingDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="SearchBuildingDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label4" Text="Room" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchRoomDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchPresentLabel" runat="server" Text="Status"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchPresentDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchIdNoLabel" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="SearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="20">
                                                </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="SearchIdNoImageButton"
                                                    runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" id="SUIdDiv" runat="server">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SuidLabel" runat="server" Text="SUID"></asp:Label>
                                            </div>
                                            <div class="controlLabelWidth">
                                                <asp:TextBox runat="server" ID="SuidTextBox" SkinID="CustomWidthTextBox"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="50">
                                                </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label6" Text="Attendance Type" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchFromAttendanceDateLabel" runat="server" Text="From Attendance Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromAttendanceDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchToAttendanceDateLabel" runat="server" Text="To Attendance Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToAttendanceDatePickerControl" runat="server" />
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop5 col-md-12">
                                            <asp:Button ID="SearchListButton" Text="&#xf002; Search" runat="Server"
                                                SkinID="0" class="btn-search btn fas" OnClick="SearchListButton_Click" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Clear" class="btn-reset btn fas" OnClick="ResetButton_Click" SkinID="0" />
                                            <asp:Button ID="ExportButton" Text="&#xf093; Export" runat="Server"
                                                SkinID="0" class="btn-report btn fas" OnClick="ExportButton_Click" />
                                        </div>
                                    </asp:Panel>
                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="NewsDetailDiv" visible="false" runat="server">
                                            <div class="outerBox himsBoxContent pTop5 " style="width: 97.5%; padding-left: 2px;">
                                                <div class="row">
                                                    <%--<div  style="width:100px;height:100px;border:1px solid #000; ">This is a rectangle!</div>--%>

                                                    <div class="col-lg-3 col-xs-6" style="width: 11.2%; cursor: pointer;">
                                                        <div style="width: 90%; background-color: salmon; color: white !important; text-align: center; border-radius: 4px;">
                                                            <div class="padd">
                                                                <h3 style="margin-bottom: 5px"><span id="PresentPercentageSpan" class="fnt">
                                                                    <asp:Label ID="PresentPercentage" runat="server" Text="0"></asp:Label></span></h3>
                                                                <p class="marg">Present %</p>
                                                            </div>
                                                            <div class="icon">
                                                                <i class="ion ion-stats-bars"></i>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-lg-3 col-xs-6" style="width: 11.2%; cursor: pointer;">
                                                        <div style="background-color: ButtonShadow; color: white !important; text-align: center; border-radius: 4px;">
                                                            <div class="padd">
                                                                <h3 style="margin-bottom: 5px"><span id="TotalPeriodicSpan" class="fnt">
                                                                    <asp:Label ID="TotalCountLabel" runat="server" Text="0"></asp:Label></span></h3>
                                                                <p class="marg">Total Count</p>
                                                            </div>
                                                            <div class="icon">
                                                                <i class="ion ion-stats-bars"></i>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-lg-3 col-xs-6" style="width: 11.2%; cursor: pointer;">
                                                        <div style="background-color: green; color: white !important; text-align: center; border-radius: 4px;">
                                                            <div class="padd">
                                                                <h3 style="margin-bottom: 5px"><span id="TotalInProgressSpan" class="fnt">
                                                                    <asp:Label ID="PresentLabel" runat="server" Text="0"></asp:Label></span></h3>
                                                                <p class="marg">Present Count</p>
                                                            </div>
                                                            <div class="icon">
                                                                <i class="ion ion-stats-bars"></i>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- ./col -->
                                                    <div class="col-lg-3 col-xs-6" style="width: 11.2%; cursor: pointer;">
                                                        <!-- small box -->
                                                        <div style="background-color: orange; color: white !important; text-align: center; border-radius: 4px;">
                                                            <div class="padd">
                                                                <h3 style="margin-bottom: 5px"><span id="TotalApprovedSpan" class="fnt">
                                                                    <asp:Label ID="AbsentLabel" runat="server" Text="0"></asp:Label></span></h3>
                                                                <p class="marg">Absent Count</p>
                                                            </div>
                                                            <div class="icon">
                                                                <i class="ion ion-person-add"></i>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="himsBoxHeader" id="AttendanceListDiv">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" class="table-responsive">
                                                            <asp:GridView ID="AttendanceListGridView" runat="server" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered table-hover"
                                                                SkinID="" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Record Found !!!" OnRowDataBound="AttendanceListGridView_RowDataBound">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="SUId" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SIdLabel" runat="server" Text='<%#Eval("SUId") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="ID No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdLabel" runat="server" Text='<%#Eval("StudentCode") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Room" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="RoomNameLabel" runat="server" Text='<%#Eval("RoomName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Attendance Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="AttendanceTypeLabel" runat="server" Text='<%#Eval("AttendanceDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Present" ItemStyle-Width="5%" SortExpression="IsPresent" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsPresent").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Absent Reason" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="AbsentReasonLabel" runat="server" Text='<%#Eval("AbsentReasonName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Attendance Type" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="AttendanceTypeLabel1" runat="server" Text='<%#Eval("AttendanceType") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
            </div>
          
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/attendance-Register-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/attendance-Register")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
