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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%--<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>--%>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--<link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <Std:StudentSearch ID="HistoryStudentSearch" Visible="false" runat="server" />
            <uc1:CommonSearchUserControl ID="CommonSearchControl" 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">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-search"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="FeeAllocationTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="FeeAllocationTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="DivisionwiseFeeTabPanel" runat="server" HeaderText="Divisionwise Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Divisionwise Fee </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="cBoth"></div>
                                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                                <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"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="AdmissionCategoryLabel" runat="server" SkinID="MandatoryLabel" 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()"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="AdmissionCategoryDropDownList_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="DepartmentLabel" runat="server" SkinID="MandatoryLabel" 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="ClassLabel" runat="server" Text="Class" SkinID="MandatoryLabel"></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" SkinID="MandatoryLabel"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="FeeLabel" runat="server" Text="Fee" SkinID="MandatoryLabel"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="FeeDropDownList" SkinID="CustomWidthDropDownList"
                                                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="FeeDropDownList_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Class_ExmptionLabel" runat="server" Text="Exemption Type"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="Class_ExemptionDropDownList" SkinID="CustomWidthDropDownList"
                                                                            OnSelectedIndexChanged="Class_ExemptionDropDownList_OnSelectedIndexChanged" AutoPostBack="true"
                                                                            class="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                            <div class="himssuHeader6WireBox col-md-12 pTop15">
                                                                <div id="FeeAllocationDetailDiv" runat="server" visible="false">
                                                                    <div class="himsBoxHeader card-head inner pTop5" id="GridViewPagerDiv" runat="server" visible="false">
                                                                        <div class="leftdiv"></div>
                                                                        <div class="himsBoxTitle">
                                                                            <%--<div class="gridHeaderText">
                                                                                <header>
                                                                                    <asp:Label ID="GridViewLabel" Text="Available Student List" runat="server" /></header>
                                                                            </div>--%>
                                                                            <div class="fRight display-flex">
                                                                                <asp:Button ID="SaveButton" runat="server" Style="top: 0px; height: 28px" OnClick="SaveButton_Click" Text="&#xf0c7; Save" SkinID="0" CssClass="btn-save btn fas" />
                                                                                <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control">
                                                                                    <asp:ListItem Text="Amount" Value="0" Selected="True"></asp:ListItem>
                                                                                    <asp:ListItem Text="Additional Amt" Value="1"></asp:ListItem>
                                                                                    <asp:ListItem Text="Exemption Amt" Value="2"></asp:ListItem>
                                                                                    <asp:ListItem Text="NotApplicable Amt" Value="3"></asp:ListItem>
                                                                                </asp:DropDownList>&#160;&#160;&#160;&#160;
                                                                                <asp:TextBox ID="ApplyAllTextBox" runat="server" Style="padding-top: 5px" ClientIDMode="Static" SkinID="0"
                                                                                    MaxLength="9" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>&#160;&#160;&#160;&#160;
                                                                                <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                                                    Text="&#xf058; Apply All" SkinID="0" CssClass="btn-apply btn fas" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent col-md-12">
                                                                        <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                            <asp:GridView ID="FeeAllocationGridView" runat="server" AutoGenerateColumns="False"
                                                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="SourceId"
                                                                                OnRowDataBound="FeeAllocationGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                                                <Columns>
                                                                                    <asp:TemplateField HeaderText="Roll No" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="RollNoLabel" runat="server" Text='<%# Eval("RollNo") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField ItemStyle-Width="8%" Visible="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="IdnoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="13%"></asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="Optional" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="IsOptionalCheckBox" Checked='<%#Eval("IsOptional")%>' Enabled="false"
                                                                                                    runat="server" /><span></span></label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Variable" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="IsVariableCheckBox" Checked='<%#Eval("IsVariable")%>' Enabled="false"
                                                                                                    runat="server" /><span></span></label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="AmountTextBox" runat="server" SkinID="CustomWidthTextBox" Width="70px"
                                                                                                MaxLength="9" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="AmountTextBox_TextChanged"
                                                                                                AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Additional Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="AdditionalAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                Width="70px" MaxLength="9" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="AdditionalAmountTextBox_TextChanged"
                                                                                                AutoPostBack="true">
                                                                                            </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Exemption Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="DiscountAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                Width="70px" MaxLength="9" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="DiscountAmountTextBox_TextChanged"
                                                                                                AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Not Applicable Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="NotApplicableAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                Width="70px" MaxLength="9" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="NotApplicableAmountTextBox_TextChanged"
                                                                                                AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Paid Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="PaidAmountLabel" runat="server" Text='<%# Eval("PaidAmount") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Pending Amount" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="PendingAmountLabel" runat="server" Text='<%# Eval("PendingAmount") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="StartDateLabel" runat="server" Text='<%# Eval("StartDate", "{0:M-dd-yyyy}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="End Date" ItemStyle-Width="6%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="EndDateLabel" runat="server" Text='<%# Eval("EndDate", "{0:M-dd-yyyy}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Exemption Type" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="ExemptionTypeLabel" runat="server" Text='<%#Eval("ExemptionFeeType") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Remark" ItemStyle-Width="15%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="RemarkTextBox" runat="server" ClientIDMode="Static" MaxLength="200"
                                                                                                Width="200px" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="AllocatedTabPanel" runat="server" HeaderText="Allocated Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Allocated Fee </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel1" runat="server">
                                                        <div class="contentHolder">
                                                            <div class="cBoth"></div>
                                                            <asp:Panel ID="SearchCriteriaPanel1" runat="server">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="OrganizationLabel1" Text="Organization" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="OrganizationDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                            onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                            class="form-control" OnSelectedIndexChanged="OrganizationDropDownList1_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="BatchLable1" Text="Batch" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="BatchDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                            AutoPostBack="True" OnSelectedIndexChanged="BatchDropDownList1_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="AdmissionCategoryLabel1" runat="server" Text="Fees Category"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList1" 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="DepartmentLabel1" runat="server" Text="Department"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="DepartmentDropDownList1" SkinID="CustomWidthDropDownList"
                                                                            AutoPostBack="true" onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                            OnSelectedIndexChanged="DepartmentDropDownList1_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ClassLabel1" runat="server" Text="Class"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="ClassDropDownList1" SkinID="CustomWidthDropDownList"
                                                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="True" OnSelectedIndexChanged="ClassDropDownList1_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="DivisionLabel1" runat="server" Text="Division"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="DivisionDropDownList1" 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="FeeHeadLabel1" runat="server" Text="Fee Head"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="FeeHeadDropDownList1" SkinID="CustomWidthDropDownList"
                                                                            onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                            AutoPostBack="True" OnSelectedIndexChanged="FeeHeadDropDownList1_OnSelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="FeeLabel1" runat="server" Text="Fee"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="FeeDropDownList1" SkinID="CustomWidthDropDownList"
                                                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <asp:HiddenField ID="HiddenField1" runat="server" />
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ExemptionTypeMasterLabel" runat="server" Text="Exemption Type"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList runat="server" ID="ExemptionTypeMasterDropDownList" SkinID="CustomWidthDropDownList"
                                                                            class="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="cBoth"></div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <asp:CheckBox ID="ExemptionCheckBox" runat="server" OnCheckedChanged="ExemptionCheckBox_CheckedChanged"
                                                                        Text="Apply Variable Amt." AutoPostBack="true" />
                                                                </div>

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <asp:CheckBox ID="ExportToAllCheckBox" runat="server" OnCheckedChanged="ExportToAllCheckBox_CheckedChanged"
                                                                        Text="Export To All" AutoPostBack="true" />
                                                                </div>

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <asp:CheckBox ID="OptionalCheckBox" runat="server" Text="Optional" Enabled="false" />
                                                                </div>

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <asp:CheckBox ID="VariableCheckBox" runat="server" Text="Variable" Enabled="false" />
                                                                </div>

                                                                <div id="ExemptionIdDiv" runat="server" visible="false" class="row col-md-12">
                                                                    <div class="col-md-6 pb5 pTop5">
                                                                        <div class="controlLabelWidth display-flex">
                                                                            <asp:TextBox ID="AdditionalAmountTextBox" runat="server" Width="200px" SkinID="CustomWidthTextBox"
                                                                                MaxLength="15">  </asp:TextBox>&nbsp;&nbsp;&nbsp;
                                                                            <asp:Button ID="ApllyExemtionAmountButton" Text="Apply Variable Amount" runat="server"
                                                                                OnClick="ApllyExemtionAmountButton_Click" SkinID="0" CssClass="btn btn-apply fas" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-12">
                                                                        <div class="alert alert-info width-100">
                                                                            <asp:Label ID="Label4" runat="server" Text="Fee must be marked as variable in fee setup"
                                                                                SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="alert alert-info width-100">
                                                                            <asp:Label ID="Label3" runat="server" Text="To update variable amount delete the allocated record and apply again"
                                                                                SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                    </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="ExportButton" runat="server" OnClick="ExportButton_Click" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" />
                                                                    <asp:Button ID="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Clear" SkinID="0" CssClass="btn-clear btn fas" />
                                                                </div>
                                                            </asp:Panel>

                                                            <div class="himssuHeader6WireBox pTop15">
                                                                <div id="FeeAllocationDetailDiv1" runat="server" visible="False">

                                                                    <div class="himsBoxHeader" id="GridViewPagerDiv1" runat="server" visible="False">
                                                                        <div class="leftdiv"></div>
                                                                        <div class="himsBoxTitle">
                                                                            <%--   <div class="gridHeaderText">
                                                                                <asp:Label ID="GridViewLabel1" Text="Available Student List" runat="server" /></div>--%>
                                                                            <div class="col-md-6 display-flex pTop10 fRight">

                                                                                <asp:DropDownList ID="ApplyDropDownList1" runat="server" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control">
                                                                                    <asp:ListItem Text="Amount" Value="0" Selected="True"></asp:ListItem>
                                                                                    <asp:ListItem Text="Additional Amt" Value="1"></asp:ListItem>
                                                                                    <asp:ListItem Text="Exemption Amt" Value="2"></asp:ListItem>
                                                                                    <asp:ListItem Text="NotApplicable Amt" Value="3"></asp:ListItem>
                                                                                </asp:DropDownList>&nbsp;&nbsp;
                                                                                <asp:TextBox ID="ApplyAllTextBox1" Style="padding-top: 8.8px" runat="server" ClientIDMode="Static" MaxLength="15"
                                                                                    SkinID="0">                                                                                   
                                                                                </asp:TextBox>
                                                                                &nbsp;&nbsp;
                                                                                <asp:Button ID="ApplyAllButton1" runat="server" OnClick="ApplyAllButton1_Click"
                                                                                    Text="Apply All" SkinID="0" CssClass="btn-apply btn fas" Style="top: 0px; height: 28px" />&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                <asp:Button ID="SaveButton1" runat="server" OnClick="SaveButton1_Click"
                                                                                    Text="&#xf0c7; Save" SkinID="0" CssClass="btn-save btn fas" Style="top: 0px; height: 28px" />&nbsp;&nbsp;
                                                                                <asp:Button ID="DeleteButton1" runat="server" OnClick="DeleteButton1_Click"
                                                                                    Text="&#xf2ed; Delete" SkinID="0" CssClass="btn-delete btn fas" Style="top: 0px; height: 28px" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent col-md-12">
                                                                        <div id="Div10" runat="server" class="table-responsive" visible="False">
                                                                            <asp:GridView ID="FeeAllocationGridView1" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                EmptyDataText="No Records Found !!" DataKeyNames="SourceId,ClassId,DivisionId,FeeSetupId,OrgId,RollNo"
                                                                                OnRowDataBound="FeeAllocationGridView1_RowDataBound" CssClass="table table-striped table-bordered table-hover">
                                                                                <Columns>
                                                                                    <asp:TemplateField HeaderText="Select">
                                                                                        <HeaderTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                                    Visible="true" OnCheckedChanged="HeaderSelectCheckBox1_checked" /><span></span></label>
                                                                                        </HeaderTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                                        <ItemStyle HorizontalAlign="Center" Width="2%" Wrap="True" />
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" /><span></span></label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="FeeName" HeaderText="Fee Name">
                                                                                        <ItemStyle Width="10%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="ClassName" HeaderText="Class">
                                                                                        <ItemStyle Width="5%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                        <ItemStyle Width="5%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Code">
                                                                                        <ItemStyle Width="5%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                        <ItemStyle Width="10%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="Optional">
                                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="IsOptionalCheckBox" Checked='<%#Eval("IsOptional")%>' Enabled="false"
                                                                                                    runat="server" /><span></span></label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Variable">
                                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="IsVariableCheckBox" Checked='<%#Eval("IsVariable")%>' Enabled="false"
                                                                                                    runat="server" /><span></span></label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="AmountTextBox" runat="server" MaxLength="15" SkinID="CustomWidthTextBox"
                                                                                                Width="100%" onKeypress="javascript:return MaskDecimal(event,12,2)" OnTextChanged="AmountTextBox1_TextChanged"
                                                                                                AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Additional Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="AdditionalAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                MaxLength="15" Width="100%" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                                                                                OnTextChanged="AdditionalAmountTextBox1_TextChanged" AutoPostBack="true">
                                                                                            </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Exemption Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="DiscountAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                MaxLength="15" Width="100%" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                                                                                OnTextChanged="DiscountAmountTextBox1_TextChanged" AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Not Applicable Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="NotApplicableAmountTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                                MaxLength="15" Width="100%" onKeypress="javascript:return MaskDecimal(event,12,2)"
                                                                                                OnTextChanged="NotApplicableAmountTextBox1_TextChanged" AutoPostBack="true"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Paid Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="PaidAmountLabel" runat="server" Text='<%# Eval("PaidAmount") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Pending Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="PendingAmountLabel" runat="server" Text='<%# Eval("PendingAmount") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" 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="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="End Date">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="EndDateLabel" runat="server" Text='<%# Eval("EndDate", "{0:M-dd-yyyy}") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="5%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Exemption Type" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="ExemptionTypeLabel" runat="server" Text='<%#Eval("ExemptionFeeType") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Remark">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="RemarkTextBox" runat="server" ClientIDMode="Static" MaxLength="200"
                                                                                                Width="100%" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="15%" Wrap="True" />
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ImportFeeAllocationTabPanel" runat="server" HeaderText="Import Fee Allocation">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Fee Allocation</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel2" runat="server">
                                                        <div class="contentHolder">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="OrganizationLabel2" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="OrganizationDropDownList2" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                        class="form-control" OnSelectedIndexChanged="OrganizationDropDownList2_OnSelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="BatchLable2" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="BatchDropDownList2" runat="server" onmouseleave="showHideTooltip()" OnSelectedIndexChanged="BatchDropDownList2_SelectedIndexChanged"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="cBoth"></div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" Text="Download Template" NavigateUrl="~/ContentTemplates/Import/ImportFeeAllocation.xls" CssClass="pointer fas"></asp:HyperLink>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth"><a class="btn btn-browser" href="javascript:;" onclick="OpenFileUpload();"><i class="fa fa-arrow-down"></i>Browse</a><asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" /></div>
                                                                <br />
                                                            </div>
                                                            <div class="alignCenter col-md-12 pTop15 pb5">
                                                                <asp:Button ID="ValidateButton" runat="server" Text="&#xf00c; Validate" OnClick="ValidateButton_Click" SkinID="0" CssClass="btn btn-validate fas" />
                                                                <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_Click" Text="&#xf019; Import" SkinID="0" CssClass="btn-examcommon btn fas" />
                                                            </div>
                                                            <div id="HtmlDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: 400px; overflow: scroll;">
                                                                <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                                                    <asp:Label ID="HtmlStringLabel" runat="server" Text=""></asp:Label>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent box-body box-solid gridviewfont">
                                                                <div id="ImportFeeAllocationDiv" runat="server" visible="False" class="table-responsive">
                                                                    <asp:GridView ID="ImportFeeAllocationGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="FeeName" HeaderText="Fee Name">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="Amount" HeaderText="Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="AdditionalAmount" HeaderText="Additional Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="ExemptionAmount" HeaderText="Exemption Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="NotApplicableAmount" HeaderText="Not Applicable Amount">
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>


                                            <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="Exam Master">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab">
                                                            <a href="#"><i class="fas fa-tasks"></i>&nbsp;View History
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder col-md-12 col-xs-12">
                                                        <div class="outerBox pTop5 col-md-12">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label13" runat="server" Text=""></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:RadioButtonList ID="HistoryTypeRadioButtonList" runat="server" RepeatDirection="Horizontal" Width="250px" Visible="true">
                                                                    <asp:ListItem Text="Fee Allocation" Value="1" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="Fee Optional" Value="2"></asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label5" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="HistoryOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                                    class="form-control" OnSelectedIndexChanged="HistoryOrganizationDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label6" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="HistoryBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="HistoryBatchDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <asp:Panel ID="Panel2" runat="server">

                                                            <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label7" runat="server" Text="Id No"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5  display-flex">
                                                                    <asp:TextBox ID="HistoryIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="" runat="server" MaxLength="200" AutoPostBack="true"
                                                                        OnTextChanged="HistoryIdNoTextBox_TextChanged">
                                                                    </asp:TextBox>
                                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="HistoryStudentImageButton"
                                                                        ImageUrl="~/Images/icons/icon_find.gif" runat="server" />

                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label8" runat="server" Text="Name"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="HistoryStudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label9" runat="server" Text="Class"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="HistoryClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop5  col-md-3" id="UserDiv" runat="server">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="UserNameLabel" runat="server" Text="User Name"></asp:Label>
                                                                </div>

                                                                <div class="fLeft pRight5 display-flex">
                                                                    <acc:AutoCompleteControl ID="UserNameTextBox" runat="server" MinimumPrefixLength="2"
                                                                        TabIndex="5" ValidateOnTextChanged="false" ContextKey="Security.User"
                                                                        DisplayLoadingStatus="true" FirstRowSelected="false" AutoPostBack="true" />
                                                                    <asp:ImageButton ID="UserNameSearchButton" runat="server" SkinID="FindImage" ToolTip="User Name"
                                                                        ImageUrl="~/Images/icons/icon_find.gif" TabIndex="6" OnClick="UserNameSearchButton_OnClick" meta:resourcekey="UserNameSearchButtonResource1" />

                                                                </div>

                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label11" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePicker" runat="server" />
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label12" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePicker" runat="server" />
                                                                </div>
                                                            </div>

                                                            <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                        </asp:Panel>


                                                        <div class="alignCenter pTop5 col-md-12">
                                                            <%-- <asp:Button ID="Button1" runat="server" Text="&#xf15b; View Report" OnClick="PrintButton_Click" SkinID="0" CssClass="btn-print btn fas" />--%>
                                                            <asp:Button ID="Button1" runat="server" Text="&#xf002; Search" OnClick="HistorySearchButton_Click"
                                                                SkinID="0" CssClass="btn-search btn fas" />
                                                        </div>

                                                    </div>

                                                    <div id="Div8" runat="server"
                                                        style="padding-top: 0px !important">
                                                        <div class="himssuHeader6WireBox col-md-12 pTop5">

                                                            <div class="himsBoxHeader card-head inner" id="Div14" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText">
                                                                        <header>
                                                                            <asp:Label ID="Label10" Text="View Detail" runat="server" />
                                                                        </header>
                                                                    </div>

                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div15" runat="server">
                                                                    <div id="Div16" runat="server" class="table-responsive">
                                                                        <asp:GridView ID="HistoryGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            CssClass="table table-striped table-bordered table-hover"
                                                                            SkinID="" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No records found">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="StudentCode" HeaderText="Code" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="StudentName" HeaderText="Student Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="FeeName" HeaderText="Fee Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="VariableAmount" HeaderText="Variable Amount" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="DiscountAmount" HeaderText="Exemption Amount" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="AdditionalAmount" HeaderText="Additional Amount" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="NotApplicableAmount" HeaderText="Not Applicable Amount" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="Remark" HeaderText="Remark" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="UserName" HeaderText="User Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="LogDateTime" HeaderText="Log DateTime" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="DiscountRemark" HeaderText="Exemption Remark" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="AdditionalRemark" HeaderText="Additional Remark" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="NotApplicableRemark" HeaderText="Not Applicable Remark" ItemStyle-Width="10%"></asp:BoundField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                                <div id="FeeOptionalDiv" runat="server">
                                                                    <div id="FeeOptionalDiv2" runat="server" class="table-responsive">
                                                                        <asp:GridView ID="FeeOptionalGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            CssClass="table table-striped table-bordered table-hover"
                                                                            SkinID="" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No records found">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="StudentCode" HeaderText="Code" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="StudentName" HeaderText="Student Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="FeeName" HeaderText="Fee Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="UserName" HeaderText="User Name" ItemStyle-Width="10%"></asp:BoundField>
                                                                                <asp:BoundField DataField="LogDateTime" HeaderText="Log DateTime" ItemStyle-Width="10%"></asp:BoundField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>


                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                        <asp:Label ID="Label2" runat="server" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                    </div>
                                </div>

                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../JavaScript/rjs/fee-invoice-import" src="../../JavaScript/rjs/require.js"></script>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/fee-allocation-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fee-allocation")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
