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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AssignOptionalFeeUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="104"
                                Visible="true" runat="server" />
                        </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>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <asp:Panel ID="Panel3" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer ID="AssignOptionalFeeTabContainer" runat="server" OnActiveTabChanged="AssignOptionalFeeTabContainer_ActiveTabChanged"
                                            CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default" AutoPostBack="true" meta:resourcekey="AssignOptionalFeeTabContainerResource1"
                                            ActiveTabIndex="0">
                                            <cc1:TabPanel ID="AssignOptionalFee" runat="server" HeaderText="Assign Optional Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab" ><a><i class="fas fa-money-bill-alt"></i>&nbsp;Assign Optional Fee </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="DetailPanel" runat="server">
                                                                <div class="contentHolder">

                                                                    <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="OptionalFeeSetupLabel" runat="server" SkinID="MandatoryLabel" Text="Optional Fee"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="OptionalFeeSetupDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="OptionalFeeSetupDropDownList_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="outerBoxpTop5 col-md-3">
                                                                            <div class="fLeft pTop15">

                                                                                <asp:CheckBox ID="ApplyToDivisionCheckBox" runat="server" OnCheckedChanged="ApplyToDivisionCheckBox_CheckedChanged"
                                                                                    AutoPostBack="True" />
                                                                                <asp:Label ID="ApplyToDivisionLabel" AssociatedControlID="ApplyToDivisionCheckBox" runat="server" Text="Apply To Division" class="pLeft5"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                        <div id="DivDivisionCheckBoxList" class="outerBox11 pTop5 pb5 col-md-6" runat="server" visible="False">
                                                                            <div class="col-md-6">
                                                                                <div class="select">

                                                                                    <asp:CheckBox ID="DivisionCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="DivisionCheckBox_CheckedChanged" />
                                                                                    <asp:Label ID="ApplyForAllDivisionLabel" AssociatedControlID="DivisionCheckBox" runat="server" Text="Select All" class="pLeft5"></asp:Label>

                                                                                </div>
                                                                                <div id="DivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                                                    <asp:CheckBoxList ID="DivisionCheckBoxList" runat="server">
                                                                                    </asp:CheckBoxList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-6">
                                                                                <div class="pTop15">
                                                                                    <asp:Button ID="ApplyForSelectDivisionButton" runat="server" OnClick="ApplyForSelectDivisionButton_Click"
                                                                                        Text="Apply For Select Division" SkinID="0" CssClass="btn btn-apply fas" />
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                    </asp:Panel>

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

                                                                            <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="False">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <%--<div class="gridHeaderText pb5">
                                                                                        <header>
                                                                                            <asp:Label ID="GridViewLabel" Text="Available Student List" runat="server" />
                                                                                        </header>

                                                                                    </div>--%>
                                                                                </div>
                                                                                <div class="col-md-12">
                                                                                    <div class="col-md-3 fRight">
                                                                                        <div class="fRight">
                                                                                            <asp:Button ID="SaveFeeButton" runat="server" OnClick="SaveFeeButton_Click"
                                                                                                Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" />
                                                                                            <asp:Button ID="ClearFeeButton" Text="&#xf0e2; Clear" runat="server" OnClick="ClearFeeButton_Click" SkinID="0" CssClass="btn btn-clear fas" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>

                                                                        </div>
                                                                        <div class="himsBoxContent col-md-6">
                                                                            <div id="Div5" runat="server" visible="False" class="table-responsive pTop5">
                                                                                <asp:GridView CssClass="table table-striped table-bordered table-hover" ID="AssignOptionalFeeGridView"
                                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="SourceId,FeeSetupId">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Eval("Check") %>' OnCheckedChanged="SelectCheckBox_checked"
                                                                                                        AutoPostBack="true" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Code">
                                                                                            <ItemStyle Width="15%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                            <ItemStyle Width="70%" />
                                                                                        </asp:BoundField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent col-md-6">
                                                                            <div id="Div1" runat="server" visible="False" class="table-responsive pTop5">
                                                                                <asp:GridView CssClass="table table-striped table-bordered table-hover" ID="AssignNotAllocatedOptionalFeeGridView"
                                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="SourceId,FeeSetupId">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="NotAllocatedHeaderSelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="NotAllocatedHeaderSelectCheckBox_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="NotAllocatedSelectCheckBox" runat="server" Checked='<%# Eval("Check") %>'
                                                                                                        AutoPostBack="true" OnCheckedChanged="NotAllocatedSelectCheckBox_CheckedChanged" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Code">
                                                                                            <ItemStyle Width="15%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                            <ItemStyle Width="70%" />
                                                                                        </asp:BoundField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel ID="AssignOptionalFeeHeadTabPanel" runat="server" HeaderText="Assign Optional Fee Head">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Assign Optional Fee Head </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="DetailPanel1" runat="server">
                                                                <div class="contentHolder">

                                                                    <asp:Panel ID="SearchCriteriaPanel1" runat="server">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="OrganizationLabel1" Text="Organization" runat="server" SkinID="MandatoryLabel"></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" SkinID="MandatoryLabel"></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" SkinID="MandatoryLabel" 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()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="AdmissionCategoryDropDownList1_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="DepartmentLabel1" runat="server" SkinID="MandatoryLabel" 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" SkinID="MandatoryLabel"></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()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="DivisionDropDownList1_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="OptionalFeeHeadSetupLabel" runat="server" SkinID="MandatoryLabel"
                                                                                    Text="Optional Fee Head"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="OptionalFeeHeadSetupDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="OptionalFeeHeadSetupDropDownList_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="fLeft pTop15">
                                                                                <asp:CheckBox ID="ApplyToDivisionCheckBox1" runat="server" OnCheckedChanged="ApplyToDivisionCheckBox1_CheckedChanged"
                                                                                    AutoPostBack="True" />
                                                                                <asp:Label ID="ApplyToDivisionLabel1" runat="server" AssociatedControlID="ApplyToDivisionCheckBox1" Text="Apply To Division" class="pLeft5"></asp:Label>
                                                                            </div>
                                                                        </div>

                                                                        <div id="DivDivisionCheckBoxList1" class="outerBox11 pTop5 col-md-6" runat="server" visible="False">
                                                                            <div class="col-md-6">
                                                                                <div class="select">
                                                                                    <asp:CheckBox ID="DivisionCheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="DivisionCheckBox1_CheckedChanged" />
                                                                                    <asp:Label ID="ApplyForAllDivisionLabel1" AssociatedControlID="DivisionCheckBox1" runat="server" Text="Select All" class="pLeft5"></asp:Label>
                                                                                </div>
                                                                                <div id="DivisionDiv1" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                                                    <asp:CheckBoxList ID="DivisionCheckBoxList1" runat="server">
                                                                                    </asp:CheckBoxList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-md-6 pTop15">
                                                                                <asp:Button ID="ApplyForSelectDivisionButton1" runat="server" OnClick="ApplyForSelectDivisionButton1_Click"
                                                                                    Text="Apply For Select Division" SkinID="0" CssClass="btn btn-apply fas" />
                                                                            </div>
                                                                        </div>

                                                                    </asp:Panel>

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

                                                                            <div class="himsBoxHeader" id="GridViewPagerDiv1" runat="server" visible="False">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <%--   <div class="gridHeaderText">
                                                                                        <header>
                                                                                            <asp:Label ID="Label2" Text="Available Student List" runat="server" />
                                                                                        </header>--%>
                                                                                </div>
                                                                                <div class="col-md-12">
                                                                                    <div class="col-md-3 fRight">
                                                                                        <div class="fRight">
                                                                                            <asp:Button ID="SaveFeeHeadButton" runat="server"
                                                                                                OnClick="SaveFeeHeadButton_Click" Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" />
                                                                                            <asp:Button ID="ClearFeeHeadButton" Text="&#xf0e2; Clear" SkinID="0" CssClass="btn btn-clear fas" runat="server" OnClick="ClearFeeHeadButton_Click" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent pTop5 col-md-12">
                                                                            <div id="Div6" runat="server" visible="False" class="table-responsive">
                                                                                <asp:GridView CssClass="table table-striped table-bordered table-hover" ID="AssignOptionalFeeGridView1"
                                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="SourceId">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox1" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox1_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="SelectCheckBox1" runat="server" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Code">
                                                                                            <ItemStyle Width="15%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                            <ItemStyle Width="70%" />
                                                                                        </asp:BoundField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>


                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel ID="AssignOtherFeeTabPanel" runat="server" HeaderText="Assign Other Fee">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Assign Other Fee</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="DetailPanel2" runat="server">
                                                                <div class="contentHolder">

                                                                    <asp:Panel ID="SearchCriteriaPanel2" runat="server">
                                                                        <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()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="BatchDropDownList2_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="AdmissionCategoryLabel2" runat="server" Text="Fees Category" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList2" 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="DepartmentLabel2" runat="server" Text="Department"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="DepartmentDropDownList2" SkinID="CustomWidthDropDownList"
                                                                                    AutoPostBack="True" onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                                                    OnSelectedIndexChanged="DepartmentDropDownList2_SelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="ClassLabel2" runat="server" Text="Class"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="ClassDropDownList2" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="ClassDropDownList2_OnSelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="DivisionLabel2" runat="server" Text="Division"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="DivisionDropDownList2" 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="FilterLabel" runat="server" Text="Filter"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="FilterDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                                                    <asp:ListItem Text="- ALL -" Value="0" Selected="True"></asp:ListItem>
                                                                                    <asp:ListItem Text="School" Value="1"></asp:ListItem>
                                                                                    <asp:ListItem Text="Hostel" Value="2"></asp:ListItem>
                                                                                    <asp:ListItem Text="Transport" Value="3"></asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="outerBox pTop5 col-md-6">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="SearchCodeLabel" runat="server" Text="ID No <b>[Add ID No with . Dot seperation (Eg. 2. 5. 10)]</b>"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="SearchCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                                    SkinID="CustomWidthTextBox" Width="440px" onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                            </div>
                                                                        </div>


                                                                    </asp:Panel>

                                                                    <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="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                                                    </div>


                                                                    <div class="himssuHeader6WireBox ptop15">
                                                                        <div id="AssignOptionalFeeDetailDiv2" runat="server" visible="False">

                                                                            <div class="himsBoxHeader" id="GridViewPagerDiv2" runat="server" visible="False">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <%--   <div class="gridHeaderText">
                                                                                        <header>
                                                                                            <asp:Label ID="Label3" Text="Available Student List" runat="server" />
                                                                                        </header>
                                                                                    </div>--%>
                                                                                </div>
                                                                                <div class="col-md-12">
                                                                                    <div class="col-md-3 fRight width-100 display-flex" style="width: 45%">

                                                                                        <asp:Label ID="FeeHeadDropDownListLabel" runat="server" Text="Fee Head" Style="font-weight: bolder"></asp:Label>
                                                                                        &nbsp;&nbsp
                                                                                        <div>
                                                                                            <asp:DropDownList runat="server" ID="FeeHeadDropDownList" SkinID="0"
                                                                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="FeeHeadDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                                            </asp:DropDownList>
                                                                                        </div>

                                                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Label ID="FeeDropDownListLabel" runat="server" Text="Fee" Style="font-weight: bolder"></asp:Label>
                                                                                        &nbsp;&nbsp;
                                                                                        <div style="float: right; width: 136px">
                                                                                            <asp:DropDownList runat="server" ID="FeeDropDownList" SkinID="0"
                                                                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                                                            </asp:DropDownList>
                                                                                        </div>

                                                                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                                                                                <asp:Button ID="SaveButton" runat="server" OnClick="SaveButton_Click" Style="height: 28px !important; position: static"
                                                                                                    Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" />

                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent col-md-12">
                                                                            <div id="Div7" runat="server" visible="False" class="table-responsive pTop5">
                                                                                <asp:GridView CssClass="table table-striped table-bordered table-hover" ID="AssignOptionalFeeGridView2"
                                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="SourceId">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox2" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderSelectCheckBox2_checked" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                            <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="SelectCheckBox2" runat="server" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Id No" ItemStyle-Width="15%">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="IdnoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>

                                                                                        <asp:BoundField DataField="Class" HeaderText="Class">
                                                                                            <ItemStyle Width="15%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="RollNo" HeaderText="Roll No.">
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                            <ItemStyle Width="50%" />
                                                                                        </asp:BoundField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>

                                                                    </div>

                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel ID="AssignOptionalFeeStudentWiseTabPanel" runat="server" HeaderText="Assign Optional Fee and Fee Head Student wise">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Student Wise Assign Optional</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="AssignOptionalFeeStudentWisePanel" runat="server">
                                                                <div class="contentHolder">
                                                                    <asp:Panel ID="StudentWiseSearchPanel" runat="server">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="StudentWiseOrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="StudentWiseOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                                    class="form-control" OnSelectedIndexChanged="StudentWiseOrganizationDropDownList_SelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="StudentWiseBatchLabel" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="StudentWiseBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="StudentWiseBatchDropDownList_SelectedIndexChanged">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5  display-flex">
                                                                                <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    SkinID="" runat="server" MaxLength="200" AutoPostBack="true"
                                                                                    OnTextChanged="StudentIdNoTextBox_TextChanged">
                                                                                </asp:TextBox>
                                                                                <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                                                                    ImageUrl="~/Images/icons/icon_find.gif" runat="server" />

                                                                                <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                                                <asp:HiddenField ID="ClassIdHiddenField" runat="server" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3 col-sm-4 col-xs-12">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="StudentNameLabel" runat="server" Text="Name"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="StudentNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Enabled="false"
                                                                                    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="Label2" runat="server" Text="Class"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="ClassTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Enabled="false"
                                                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="TypeLabel" Text="Type" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="TypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="TypeDropDownList_SelectedIndexChanged">
                                                                                    <asp:ListItem Value="1" Text="Fee"></asp:ListItem>
                                                                                    <asp:ListItem Value="2" Text="Fee Head"></asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>
                                                                    </asp:Panel>
                                                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                                                        <asp:Button ID="StudentwiseSearchButton" runat="Server" OnClick="StudentwiseSearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                                                        <asp:Button ID="StudentwiseResetButton" runat="server" OnClick="StudentwiseResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                                                        <asp:Button ID="StudentwiseSaveButton" runat="server" OnClick="StudentwiseSaveButton_Click" Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" />
                                                                    </div>
                                                                    <asp:Panel ID="StudentWiseDetailPanel" runat="server">
                                                                        <div class="himsBoxContent col-md-12">
                                                                            <div id="StudentwiseGridViewDiv" runat="server" visible="True" class="table-responsive pTop5">
                                                                                <asp:GridView CssClass="table table-striped table-bordered table-hover" ID="StudentwiseGridView"
                                                                                    runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="Id,IsCheck">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Select">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="StudentWiseHeaderSelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="StudentWiseHeaderSelectCheckBox_CheckedChanged" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                            <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="StudentWiseSelectCheckBox" runat="server" AutoPostBack="true" Checked='<%# Convert.ToBoolean(Eval("IsCheck")) %>' OnCheckedChanged="StudentWiseSelectCheckBox_CheckedChanged" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Fee" ItemStyle-Width="15%">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="TitleLabel" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Amount" ItemStyle-Width="15%">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="AmountLabel" runat="server" Text='<%#Eval("Amount") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </asp:Panel>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel ID="StudentWiseAssignOptionalHistoryTabPanel" runat="server" HeaderText="Student Wise Assign Optional History" OnClientClick="">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;View History</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader1WireBox">
                                                            <asp:Panel ID="Panel1" runat="server">
                                                                <div class="contentHolder">
                                                                    <asp:Panel ID="Panel4" runat="server">
                                                                        <div class="himsBoxContent col-md-12">
                                                                            <div id="StudentWiseAssignOptionalHistoryDiv" runat="server" visible="True" class="table-responsive pTop5">
                                                                                <asp:GridView ID="StudentWiseAssignOptionalHistoryGridView" runat="server" 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"></asp:BoundField>
                                                                                        <asp:BoundField DataField="StudentName" HeaderText="Student Name" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="FeeName" HeaderText="Fee Name" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="VariableAmount" HeaderText="Variable Amount" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="DiscountAmount" HeaderText="Exemption Amount" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="AdditionalAmount" HeaderText="Additional Amount" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="NotApplicableAmount" HeaderText="Not Applicable Amount" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="Remark" HeaderText="Remark" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="UserName" HeaderText="User Name" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="LogDateTime" HeaderText="Log DateTime" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="DiscountRemark" HeaderText="Exemption Remark" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="AdditionalRemark" HeaderText="Additional Remark" ></asp:BoundField>
                                                                                        <asp:BoundField DataField="NotApplicableRemark" HeaderText="Not Applicable Remark" ></asp:BoundField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </asp:Panel>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/assign-optional-fee-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-optional-fee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function checkAllRows(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i]) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }
        function checkUncheckHeaderCheckBox(obj) {
            var objGridView = obj.closest('table');
            var list = objGridView.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objHeaderChkBox = list[0];
                var checked = true;
                if (list[i].type == "checkbox" && list[i] != objHeaderChkBox) {
                    if (!list[i].checked) {
                        checked = false;
                        break;
                    }
                }
            }
            objHeaderChkBox.checked = checked;
        }
    </script>
</asp:Content>
