<%@ page language="C#" autoeventwireup="true" inherits="Pages_StudentManagement_StudentLeaveListing, App_Web_wcc3110r" title="Student Leave Listing" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ 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/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="CPDiv">
        <asp:UpdatePanel ID="updPnlSearchGridView" runat="server">
            <ContentTemplate>
                <Std:StudentSearch ID="StudentSearch" 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="110"
                                                    Visible="true" runat="server" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader5WireBox card card-box" runat="server" id="SearchDiv">  
                             <div class="himsBoxHeader card-head">
                                <asp:Panel ID="TopPanel" runat="server">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-search"></i>
                                                <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                            </header>
                                        </div>
                                        <div class="fRight mt-27">
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div> 
                            <asp:Panel ID="Panel1" runat="Server">
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">                         
                                         <asp:Panel ID="PanelSearch" runat="server">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchOrganizationLabel" Text="Class" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="SearchClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                OnSelectedIndexChanged="SearchClassDropDownList_SelectedIndexChanged"
                                                                AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                     <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchDivisionLabel" Text="Division" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="SearchDivisionDropDownList" 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="SearchStudentCodeLabel" runat="server" Text="Student Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="SearchStudentCodeTextBox" SkinID="CustomWidthTextBox"
                                                                runat="server" MaxLength="100" AutoPostBack="true" OnTextChanged="SearchStudentCodeTextBox_TextChanged"> </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SearchStudentCodeImageButton"
                                                                runat="server" OnClick="SearchStudentCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                            <asp:HiddenField ID="SearchStudentIdHiddenField" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchStudentNameLabel" runat="server" Text="Student Name"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SearchStudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                                        </div>
                                                    </div>
                                        
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="StatusSearchLabel" runat="server" Text="Status"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="StatusDropDownList" 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="SearchFromDateLabel2" runat="server" Text="From Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePickerControl2"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchToDateLabel3" runat="server" Text="To Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePickerControl3"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                    <br />
                                                    <div class="alignCenter">
                                                        <asp:Button ID="SearchButton" TabIndex="3" runat="Server" OnClick="SearchButton_Click"
                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                        <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                            
                                                    </div>
                                                    <div class="cBoth">
                                            </div>
                                          <br />
                                        </asp:Panel>
                                        <div id="CsrBenefiteMasterGridDiv" runat="server" visible="false">
                                            <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv"
                                                runat="server" style="width: 100%">
                                                <div class="himsBoxHeader" id="ListDiv" runat="server" visible="true">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <div class="fLeft">
                                                            </div>
                                                        </div>
                                                        <div align="right" class="fRight" style="margin-top: 0px;">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="LeaveMasterGridView" OnRowDataBound="LeaveMasterGridView_RowDataBound"
                                                                OnPageIndexChanging="LeaveMasterGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False"
                                                                Width="100%" AllowPaging="false" DataKeyNames="StatusId,OrgId,BatchId,StudentId,AcademicId,FromDate,ToDate" PagerSettings-Visible="false"
                                                                EmptyDataText="No records available for the search criteria" ShowHeader="True"
                                                                CssClass="table table-striped table-bordered table-hover" ShowFooter="true">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField HeaderText="Organization Name" DataField="OrganizationName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Department Name" DataField="DepartmentName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Class" DataField="ClassDiv" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Student Code" DataField="StudentCode" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Student Name" DataField="StudentName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="12%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="From Date" DataField="FromDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="To Date" DataField="ToDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="No Of Leave" ItemStyle-Width="8%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NoOfLeaveLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("NoOfDays")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="TotalNoOfLeaveLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField HeaderText="No Of Leave" DataField="NoOfDays" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="8%" />
                                                                            </asp:BoundField>--%>
                                                                    <asp:BoundField HeaderText="Report Date" DataField="ReportDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                    
                                                                    
                                                                    <asp:BoundField HeaderText="Action By" DataField="ActionByEmployee" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>
                                                                     
                                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            
                            </asp:Panel>
                        </div>
                        <div class="himssuHeader5WireBox card card-box" runat="server" id="DetailDiv">                            
                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                <div class="card-head">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-bookmark"></i>
                                                    <asp:Label ID="Label1" runat="server" Text="Leave" />
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                               
                                        <table>
                                            <tr>
                                                <td class="formLabel">
                                                    <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                        <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                            runat="server" CommandName="Page" CommandArgument="First"
                                                            OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                            <i class="fa fa-fast-backward"></i>
                                                        </asp:LinkButton>
                                                        <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                            runat="server" CommandName="Page" CommandArgument="Prev"
                                                            OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                            <i class="fa fa-play fa-rotate-180"></i>

                                                        </asp:LinkButton>
                                                        &nbsp;
                                                        <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" />
                                                        &nbsp;
                                                        <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                            runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                            OnClick="NextImageButton_Click">
                                                             <i class="fa fa-play"></i>
                                                        </asp:LinkButton>

                                                        <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                            runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                            OnClick="LastRecordImageButton_Click">
                                                              <i class="fa fa-fast-forward"></i>
                                                        </asp:LinkButton>
                                                        &nbsp;  &nbsp; &nbsp;
                                                    </div>
                                                </td>
                                                <td>
                                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentCodeLabel" runat="server" Text="Student Code" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StudentCodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    MaxLength="100" AutoPostBack="true" OnTextChanged="StudentCodeTextBox_TextChanged"> </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="StudentCodeImageButton"
                                                    runat="server" OnClick="StudentCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="LeaveHiddenField1" runat="server" />
                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                                <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentNameLabel" runat="server" Text="Student Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    Enabled="false" SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ReportDateLabel" runat="server" Text="Report Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ReportDatePickerControl1" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Status_Label" runat="server" Text=""></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:Label ID="StatusLabel" runat="server" Text="Pending" Font-Bold="true" Font-Size="Medium"
                                                    ForeColor="Gray"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                
                                        <div runat="server" visible="false">
                                            <asp:DropDownList ID="AvailableLeaveDropDownList" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                        <div class="cBoth">
                                        </div> 
                                                             
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel2" runat="server" Text="Leave From Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel" runat="server" Text="Leave To Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl3" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="NoOfLeaveLabel" runat="server" Text="No Of Leave"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="NoOfLeaveTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    ReadOnly="true" SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <%--<div class="outerBox pTop5 col-md-3" id="AlertDiv" runat="server" visible="false">
                                            <div class="fLeft pRight5">
                                                <asp:Label ID="AlertLabel" runat="server" Text="Leave Limit Cross" Font-Bold="true" Font-Size="Medium"
                                                    ForeColor="Red"></asp:Label>
                                            </div>
                                        </div>--%>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LeaveResonlable" runat="server" Text="Leave Reason"> </asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="LeaveReasonTextBox" runat="server" SkinID="MultiLineTextbox"
                                                    TextMode="MultiLine"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox11 pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StatusReasonlable" runat="server" Text="Status Reason"> </asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StatusReasonTextBox" runat="server" SkinID="MultiLineTextbox"
                                                    TextMode="MultiLine"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox11 pTop15 col-md-4" runat="server">
                                             <asp:Label ID="ActionByLabel" Enabled="false" style="font-size:18px;color:brown;font-weight:800;padding-top:4px" runat="server" SkinID="MultiLineTextbox"></asp:Label>
                                        </div>

                                        <div class="cBoth">
                                        </div>
                                        <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server"
                                            style="width: 100%; margin-right: 5px;">
                                            
                                            
                                            
                                            <div class="himssuHeader7WireBox " id="StudentFullLeaveDetailDiv" runat="server" style="width: 100%" visible="false">
                                                <div class="himsBoxHeader card-head inner">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="gridHeaderText fLeft">
                                                            <header>
                                                                <asp:Label ID="LeaveDetailLabel" CssClass="profilesubheader" Text="Leave Detail" runat="server" />
                                                            </header>
                                                        </div>
                                                        <div class="fRight">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div id="Div5" runat="server" class="table-responsive">
                                                        <asp:GridView ID="StudentFullLeaveDetailGridView" OnRowDataBound="StudentFullLeaveDetailGridView_RowDataBound"
                                                            runat="server" AutoGenerateColumns="False"
                                                            Width="100%" AllowPaging="false" DataKeyNames="StatusId,OrgId,BatchId,StudentId,AcademicId,FromDate,ToDate" PagerSettings-Visible="false"
                                                            EmptyDataText="No records available for the search criteria" ShowHeader="True" ShowFooter="true"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left" HeaderText="Organization Name"  ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="EditLinkButton" runat="server" Text='<%#Eval("OrganizationName")%>'
                                                                            ></asp:Label>
                                                                    </ItemTemplate>
                                                                    <FooterTemplate>
                                                                        <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                                    </FooterTemplate>
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField HeaderText="Organization Name" DataField="OrganizationName" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="15%" />
                                                                </asp:BoundField>--%>
                                                                <asp:BoundField HeaderText="Department Name" DataField="DepartmentName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                <asp:BoundField HeaderText="Class" DataField="ClassDiv" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="5%" />
                                                                    </asp:BoundField>
                                                                <asp:BoundField HeaderText="Student Code" DataField="StudentCode" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="8%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Student Name" DataField="StudentName" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="12%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="From Date" DataField="FromDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="8%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="To Date" DataField="ToDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="8%" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="No Of Leave" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NoOfLeaveLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("NoOfDays")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <FooterTemplate>
                                                                        <asp:Label ID="TotalNoOfLeaveLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                    </FooterTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField HeaderText="Report Date" DataField="ReportDate" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="8%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Leave Reason" DataField="LeaveReson" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="12%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Status Reason" DataField="StatusReason" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemStyle Width="12%" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>                                   
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>        

     <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave-listing")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>