<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FeeManagement_FeeRefund, App_Web_01ryypri" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ 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="DPC" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <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="104"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box" runat="server" id="SearchDiv">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <asp:Label ID="FeeRefundLabel" runat="server" Text="Fee Refund"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex display-flex">
                                <asp:Button ID="StudentDetailFormBackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="StudentDetailFormBackButton_Click" Visible="false" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationGroupBatchLabel" runat="server" Text="Group Batch" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrganizationGroupBatchDropDownList" SkinID="CustomWidthDropDownList"
                                                AutoPostBack="True" class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="OrganizationGroupBatchDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchOrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                class="form-control" OnSelectedIndexChanged="SearchOrganizationDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchBatchLable" Text="Batch" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                AutoPostBack="True" OnSelectedIndexChanged="SearchBatchDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="AdmissionCategoryLabel" runat="server" Text="Fees Category"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="IdNoLabel" runat="server" Text="ID No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="IdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FirstNameLabel" runat="server" Text="First Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FirstNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label3" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                AutoPostBack="true" onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                class="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"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div id="Div1" class="outerBox pTop5 col-md-3" runat="server" visible="False">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourceTypeLabel" runat="server" Text="Source Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                <asp:ListItem Text="- ALL -" Value="0" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Student" Value="2001"></asp:ListItem>
                                                <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchReceiptBookLabel" runat="server" Text="Receipt Book"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchReceiptBookDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromReceiptNoLabel" runat="server" Text="From Receipt No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="FromReceiptNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToReceiptNoLabel" runat="server" Text="To Receipt No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ToReceiptNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchPayTypeLabel" runat="server" Text="Pay Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchPayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchChequeNoLabel" runat="server" Text="Cheque No / Reference No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchChequeNoTextBox" SkinID="CustomWidthTextBox"
                                                runat="server" MaxLength="20"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" id="UserSearchPanel" runat="server">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="CreatedUserNameLabel" runat="server" Text="User"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="CreatedUserNameTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></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="To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="True" ID="ToDatePickerControl" runat="server" />
                                        </div>
                                    </div>

                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                        <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ClearButton" runat="server" OnClick="ClearSearch_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                        <asp:Button ID="SearchPrintButton" runat="server" Text="&#xf02f; Print List" OnClick="SearchPrintButton_Click" SkinID="0" CssClass="btn-print btn fas" />
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div id="Div4" class="himssuHeader7WireBox box-body box-solid gridviewfont table-responsive" runat="server">
                                        <asp:GridView ID="FeeReceiptListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                            EmptyDataText="No Records Found !!" AllowPaging="False" DataKeyNames="ReceiptId"
                                            CssClass="table table-striped table-bordered table-hover" OnRowDataBound="FeeReceiptListGridView_RowDataBound">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                            CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Organization" HeaderText="Organization">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="10%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Batch" HeaderText="Batch">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="6%" />
                                                </asp:BoundField>
                                                <asp:TemplateField ItemStyle-Width="8%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="IdNoCodeLabel" runat="server" Text='<%#Eval("Code")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="Name" HeaderText="Name">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ReceiptNumber" HeaderText="Receipt Number">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="8%" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Refund Date" SortExpression="ReceiptDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="ReceiptDateLabel" CssClass="boxEllips" ToolTip='<%# Bind("RefundDate") %>'
                                                            runat="server" Text='<%# Bind("RefundDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="7%" Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="RefundAmount" HeaderText="Refund Amount">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="8%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PayType" HeaderText="Pay Type">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="5%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ChequeNo" HeaderText="Cheque No / Reference No">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="8%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="BankName" HeaderText="Bank Name">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="10%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ReceiptBook" HeaderText="Receipt Book">
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" />
                                                </asp:BoundField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="cBoth">
                    </div>
                    <div class="himssuHeader1WireBox card card-box" runat="server" id="DetailDiv">
                        <div class="himsBoxHeader card-head">
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <asp:Label ID="FeeRefundDetailLabel" runat="server" Text="Fee Refund"></asp:Label>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex display-flex">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="false">
                                                <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"
                                                CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                            class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="BatchLable" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div id="DivAddStudent" runat="server" visible="False" class="outerBox pRight1000"
                                    style="padding-top: 10px">
                                    <asp:LinkButton ID="AddStudentImageButton" runat="server" ToolTip="Add Student" Visible="False"
                                        OnClick="AddStudentImageButton_Click"> <i class="fa fa-user-plus fa-2x" style="color:black"></i></asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:LinkButton ID="StudentwiseFeeImageButton" runat="server" ToolTip="Add Student Fee"
                                                    OnClick="StudentwiseFeeImageButton_Click"> <i class="fa fa-money fa-2x" style="color:black"></i></asp:LinkButton>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft pRight5">
                                        <asp:Label ID="IsRecieptCancelLabel" runat="server" Text="Cancelled" Font-Bold="True"
                                            Font-Size="Medium" ForeColor="Red" Visible="False"></asp:Label>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <table id="Table1" visible="False" runat="server">
                                    <tr id="Tr1" runat="server">
                                        <td id="Td1" runat="server">
                                            <asp:RadioButton ID="StudentRadioButton" runat="server" GroupName="S1" AutoPostBack="True"
                                                OnCheckedChanged="StudentRadioButton_CheckedChanged" />
                                        </td>
                                        <td id="Td2" runat="server">
                                            <asp:Label ID="StudentLabel" runat="server" Text="Student" Font-Bold="True"></asp:Label>
                                        </td>
                                        <td id="Td3" runat="server">
                                            <asp:RadioButton ID="EmployeeRadioButton" runat="server" GroupName="S1" AutoPostBack="True"
                                                OnCheckedChanged="EmployeeRadioButton_CheckedChanged" />
                                        </td>
                                        <td id="Td4" runat="server">
                                            <asp:Label ID="EmployeeLabel" runat="server" Text="Employee" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="StudentSearchPanel" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="True"
                                                OnTextChanged="StudentIdNoTextBox_TextChanged"></asp:TextBox><asp:ImageButton SkinID="FindImage"
                                                    ToolTip="Student Search" ID="StudentIdNoImageButton" runat="server" ImageUrl="../../Images/icons/icon_find.gif" /><asp:LinkButton
                                                        ID="StudentAddGetImageButton" runat="server" ToolTip="Get Student Code" Visible="False"
                                                        OnClick="AddStudentGetImageButton_Click">
                                                                <i class="fa fa-refresh" style="font-size:1.5em;padding-left:3px;color:black"></i>
                                                    </asp:LinkButton><asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="ClassIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="ReceiptIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="DeleteHiddenField" runat="server" />
                                            <asp:HiddenField ID="RedirectHiddenField" runat="server" />
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="EmployeeSearchPanel" runat="server" Visible="False">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="EmployeeIdNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                MaxLength="200" AutoPostBack="True" OnTextChanged="EmployeeIdNoTextBox_TextChanged"></asp:TextBox><asp:ImageButton
                                                    SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeIdNoImageButton" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeNameLabel" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DepartmentTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3" id="ReceiptBookDiv" runat="server" visible="False">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceiptBookLabel" runat="server" Text="Receipt Book"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="ReceiptBookDropDownList" SkinID="CustomWidthDropDownList"
                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            AutoPostBack="True" OnSelectedIndexChanged="ReceiptBookDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" id="ReceiptNoDiv" runat="server">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceiptNoLabel" runat="server" Text="Receipt No"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReceiptNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="9" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceiptDateLabel" runat="server" Text="Receipt Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ReceiptDatePickerControl" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RefundDateLabel" runat="server" Text="Refund Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="RefundDatePickerControl" runat="server" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PayTypeLabel" runat="server" Text="Pay Type" SkinID="MandatoryLabel"
                                            meta:resourcekey="PayTypeLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="PayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            OnSelectedIndexChanged="PayTypeDropDownList_SelectedIndexChanged" AutoPostBack="True">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ChequeNoLabel" runat="server" Text="Cheque No"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ChequeNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                            MaxLength="20"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="BankNameLabel" runat="server" Text="Bank Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <acc:AutoCompleteControl ID="BankNameTextBox" runat="server" MinimumPrefixLength="2"
                                            MaxLength="50" ContextKey="sFinanceCommon.Bank" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox"
                                            class="form-control" ValidateOnTextChanged="false" />
                                        <asp:HiddenField ID="BankIdHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3" id="ChequeDateDiv" runat="server" visible="False">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ChequeDateLabel" runat="server" Text="Cheque Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ChequeDateDatePickerControl"
                                            runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RemarkLabel" runat="server" Text="Remark" meta:resourcekey="CodeSearchLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="RemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="MultiLineTextBox" Width="250px" TextMode="MultiLine" Height="40px" runat="server"
                                            MaxLength="200"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AmountLabel" runat="server" Text="Refund Amount"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AmountTextBox" runat="server" MaxLength="15" SkinID="CustomWidthTextBox"
                                            AutoPostBack="True" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                            OnTextChanged="AmountTextBox_OnTextChanged"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div id="ChargeDiv" runat="server" visible="False" class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ChargeLabel" runat="server" Text="Charge"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ChargeTextBox" runat="server" MaxLength="15" SkinID="CustomWidthTextBox"
                                            onKeypress="javascript:return MaskDecimal(event,12,2)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" runat="server" id="DiscountDiv" visible="False">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Discount Amount"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="DiscountAmountTextBox" runat="server" MaxLength="15" SkinID="CustomWidthTextBox"
                                            AutoPostBack="True" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                            OnTextChanged="DiscountAmountTextBox_OnTextChanged"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" runat="server" id="CollectionGroupDiv" visible="False">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CollectionGroupLabel" runat="server" Text="Collection Group" SkinID="MandatoryLabel"
                                            meta:resourcekey="CollectionGroupLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="CollectionGroupDropDownList" SkinID="CustomWidthDropDownList"
                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            OnSelectedIndexChanged="CollectionGroup_SelectedIndexChanged" AutoPostBack="True">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <table style="width: 100%;" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="50%" valign="top">
                                            <div class="himssuHeader1WireBox">
                                                <div class="himssuHeader6WireBox box-body box-solid gridviewfont" style="padding-bottom: 0px !important">
                                                    <div id="FeeDetailDiv" runat="server" visible="False">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image14" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image14Resource1" />
                                                        </div>
                                                        <div class="himsBoxHeader pTop5" id="GridViewPagerDiv" runat="server" visible="False">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText">
                                                                    <asp:Label ID="GridViewLabel" Text="Fee List" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent card-body">
                                                            <div id="Div5" runat="server">
                                                                <asp:GridView ID="FeeListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="Id,ReceiptBookId,FeeId,FeeSetupId,OrderIndex" OnRowDataBound="FeeListGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="FeeName" HeaderText="Fee">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="45%" />
                                                                        </asp:BoundField>
                                                                        <asp:TemplateField HeaderText="Pending Amount" Visible="False">
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="PendingAmountLabel" runat="server" Visible="true"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="PendingAmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15"
                                                                                    Width="110px" onKeypress="javascript:return MaskDecimal(event,12,2)"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="25%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="PayableAmountLabel" runat="server" Visible="true" Text="Paid Amount"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="PayableAmountTextBox" Visible="true" runat="server" ClientIDMode="Static"
                                                                                    MaxLength="15" Width="110px" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                                                                    Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="25%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Refunded Amount">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="FeeRefundAmountLabel" runat="server"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <asp:Label ID="RefundAmountLabel" runat="server" Text="Refund Amount" Visible="true"></asp:Label>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RefundAmountTextBox" Visible="true" runat="server" ClientIDMode="Static"
                                                                                    MaxLength="15" Width="110px" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                                                                    AutoPostBack="true" OnTextChanged="RefundAmountTextBox_TextChanged"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="25%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource4" Visible="False">
                                                                            <HeaderTemplate>
                                                                                <asp:CheckBox ID="HeaderIsObsoleteCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="DeleteHeaderIsObsoleteCheckBox_OnCheckedChanged" />
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" CommandName="Delete" SkinID="DeleteImage"
                                                                                    ToolTip="Delete Fee" Enabled="true" meta:resourcekey="DeleteImageButtonResource1"
                                                                                    OnClick="DeleteImageButton_Click" ImageUrl="../../Images/icons/icon_delete.gif" />
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="divTotal" runat="server" visible="False" style="margin-left: 10px">
                                                <asp:Label ID="TotalAmountLabel" runat="server" Text="Total" Font-Bold="True" Width="44.4%"></asp:Label><asp:TextBox
                                                    ID="TotalPendingAmountTextBox" SkinID="CustomWidthTextBox" Width="101px" runat="server"
                                                    MaxLength="200"></asp:TextBox><span style="padding: 13px"></span><asp:TextBox ID="TotalPayableAmountTextBox"
                                                        SkinID="CustomWidthTextBox" Width="100px" EnableViewState="False" runat="server"
                                                        MaxLength="200"></asp:TextBox><div runat="server" id="NetDiscountDiv" visible="False">
                                                            <br />
                                                            <br />
                                                            <asp:Label ID="TotalDiscountAmountLabel" runat="server" Text="Discount Amount" Font-Bold="True"
                                                                Width="64.7%"></asp:Label><span style="padding: 13px"></span><asp:TextBox ID="TotalDiscountAmountTextBox"
                                                                    SkinID="CustomWidthTextBox" Width="100px" EnableViewState="False" runat="server"
                                                                    MaxLength="200"></asp:TextBox><br />
                                                            <br />
                                                            <asp:Label ID="NetAmountLabel" runat="server" Text="Net Amount" Font-Bold="True"
                                                                Width="64.7%"></asp:Label><span style="padding: 13px"></span><asp:TextBox ID="NetPayableAmountTextBox"
                                                                    SkinID="CustomWidthTextBox" Width="100px" EnableViewState="False" runat="server"
                                                                    MaxLength="200"></asp:TextBox>
                                                        </div>
                                            </div>
                                        </td>
                                        <td width="50%" valign="top" id="TD" runat="server" visible="False">
                                            <div class="himssuHeader1WireBox">
                                                <div class="himssuHeader6WireBox box-body box-solid gridviewfont">
                                                    <div id="FreeFeeDetailDiv" runat="server" visible="False">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image11" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image14Resource1" />
                                                        </div>
                                                        <div class="himsBoxHeader" id="Div2" runat="server" visible="False">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText">
                                                                    <asp:Label ID="Label1" Text="Pending Fee List" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent card-body">
                                                            <div id="Div3" runat="server">
                                                                <asp:GridView ID="FreeFeeListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" DataKeyNames="Id,ReceiptBookId,FeeId,FeeSetupId,OrderIndex"
                                                                    OnRowDataBound="FreeFeeListGridView_RowDataBound" CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="FeeName" HeaderText="Fee">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="45%" />
                                                                        </asp:BoundField>
                                                                        <asp:TemplateField HeaderText="Pending Amount">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="PendingAmountTextBox" runat="server" ClientIDMode="Static" MaxLength="15"
                                                                                    onKeypress="javascript:return MaskDecimal(event,12,2)"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="30%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Start Date">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="StartDateLabel" runat="server" Text='<%# Eval("StartDate", "{0:M-dd-yyyy}") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource4">
                                                                            <HeaderTemplate>
                                                                                <asp:CheckBox ID="HeaderIsObsoleteCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="AddHeaderIsObsoleteCheckBox_OnCheckedChanged" />
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton SkinID="AddImageButton" ToolTip="Add Fee" ID="ExpandImageButton"
                                                                                    ImageUrl="~/Images/expand.gif" runat="server" OnClick="AddImageButton_Click" />
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="divTotal2" runat="server" visible="False" style="margin-left: 40px">
                                                <asp:Label ID="TotalAmount2Label" runat="server" Text="Total" Font-Bold="True" Width="44.5%"></asp:Label><asp:TextBox
                                                    ID="TotalPendingAmount2TextBox" SkinID="CustomWidthTextBox" Width="101px" runat="server"
                                                    MaxLength="200"></asp:TextBox>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/fee-refund-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fee-refund")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
