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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style type="text/css">
        .fixed_header tbody {
            overflow: unset;
        }
    </style>
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <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="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                                <div class="fRight mt-27 pagination display-flex display-flex">
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrganizationGroupBatchLabel" runat="server" Text="Group Batch" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="OrganizationGroupBatchDropDownList" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="OrganizationGroupBatchDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></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"></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="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="true" onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                        OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                        class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                        class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="AdmissionCategoryLabel" runat="server" Text="Fees Category"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ReceiptBookLabel" runat="server" Text="Receipt Book" meta:resourcekey="ReceiptBookLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ReceiptBookDropDownList" SkinID="CustomWidthDropDownList"
                                                        class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="false">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SUIdLabel" runat="server" Text="SU Id"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                        MaxLength="50"></asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="IdNoLabel" runat="server" Text="ID No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="IdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="false">
                                                    </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FirstNameLabel" runat="server" Text="First Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="FirstNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LastNameLabel" runat="server" Text="Last Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LastNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="UptoDateLabel" runat="server" Text="Upto Date" Visible="true"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="UptoDatePickerControl" Visible="true"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FromNextFollowupDateLabel" runat="server" Text="From Next Follow up Date" Visible="true"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="FromNextFollowupDateControl" Visible="true"
                                                        runat="server" />
                                                </div>
                                            </div>


                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ToNextFollowupDateLabel" runat="server" Text="To Next Follow up Date" Visible="true"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="ToNextFollowupDateControl" Visible="true"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="DetailCheckBox" runat="server" AutoPostBack="false" Text="With Detail" class="pLeft5" />
                                                </div>
                                            </div>


                                            <div class="alignCenter col-md-12 pTop15 pb5">
                                                <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                                <asp:Button ID="ResetButton" runat="server" OnClick="ClearSearch_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                                <asp:Button ID="SaveButton" runat="server" Text="&#xf0c7; Save" SkinID="0" CssClass="btn btn-save fas" OnClick="SaveButton_Click" />
                                                <%-- add for mantis: 33539 --%>
                                                <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" OnClick="ExportButton_Click" />
                                            </div>

                                        </div>
                                    </asp:Panel>

                                    <div id="Div5" class="himssuHeader6WireBox" runat="server" style="width: 100%; height: 100%">

                                        <div class="col-md-12 pTop5">
                                            <div id="ReceiptDetailDiv" visible="false" runat="server">
                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="true">

                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="col-md-12 padd-0">
                                                            <div id="ApplyAllDiv" runat="server" class="pull-right col-md-3 display-flex">
                                                                <asp:Label ID="RemarkLabel" Text="Remark:" runat="Server"></asp:Label>
                                                                <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="15"
                                                                    SkinID="CustomWidthTextBox" CssClass="pTop5"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:Button ID="ApplyAllButton" Text="Apply All" SkinID="0" CssClass="btn btn-apply mt-10" OnClick="ApplyAllButton_Click" runat="server" />
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">

                                                    <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                    </div>
                                                    <div class="table-responsive">
                                                        <asp:GridView ID="FeePendingListGridView" runat="server" AutoGenerateColumns="False" OnRowDataBound="FeePendingListGridView_RowDataBound"
                                                            EmptyDataText="No Records Found !!" ShowHeader="true" DataKeyNames="ReceiptBookId,OrgId,BatchId,AcademicId,Code"
                                                            CssClass="table table-striped table-bordered fixed_header">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="FollowupLinkButton" runat="server" OnClick="FollowupLinkButton_Click"
                                                                            Text="Followup" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Organization" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrgNameLabel" runat="server" Text='<%#Eval("OrgName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="OrgName" HeaderText="Organization" ItemStyle-Width="100px" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Batch" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BatchNameLabel" runat="server" Text='<%#Eval("BatchName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="BatchName" HeaderText="Batch" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="SU Id" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SUIdLabel" runat="server" Text='<%#Eval("SUId") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="SUId" HeaderText="SU Id" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="ID No" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="IDNoCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Class - Division" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassDivisionLabel" runat="server" Text='<%#Eval("ClassDivision") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="ClassDivision" HeaderText="Class - Division" ItemStyle-Width="100px" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="100px" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Receipt Book" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ReceiptBookTitleLabel" runat="server" Text='<%#Eval("ReceiptBookTitle") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="ReceiptBookTitle" HeaderText="Receipt Book" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Pending Amount" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="PendingAmountLabel" runat="server" Text='<%#Eval("PendingAmount") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="PendingAmount" HeaderText="Pending Amount" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Pending Fee Name" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="PendingFeeNameLabel" runat="server" Text='<%#Eval("PendingFeeName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="PendingFeeName" HeaderText="Pending Fee Name" ItemStyle-Width="100px" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Next Followup Date" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NextFollowupDateLabel" runat="server" Text='<%#Eval("NextFollowupDate") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="NextFollowupDate" HeaderText="Next Followup Date" ItemStyle-Width="100px" HeaderStyle-Width="100px" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Contact No" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ParentContactNoLabel" runat="server" Text='<%#Eval("ParentContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="ParentContactNo" HeaderText="Contact No" ItemStyle-Width="100px" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Student Contact No" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentContactNoLabel" runat="server" Text='<%#Eval("StudentContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="StudentContactNo" HeaderText="Student Contact No" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Whatsapp Contact No" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WhatsAppContactNoLabel" runat="server" Text='<%#Eval("WhatsAppContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <%--<asp:BoundField DataField="WhatsAppContactNo" HeaderText="Whatsapp Contact No" ItemStyle-Width="80px" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                                <asp:TemplateField HeaderText="Remark" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="100px" HeaderStyle-Width="100px"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="RemarkTextBox" runat="server" Text='<%#Eval("StudentCustomAlert") %>' TextMode="MultiLine" Enabled="false"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="40px" HeaderStyle-Width="40px"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="SelectAll(this);" Enabled="true"
                                                                                Visible="true" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" Visible="true" Enabled="true" runat="server" Checked='<%#Eval("IsStopApplicationAccess") %>' onclick="SelectCheckBoxChange(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                            </Columns>
                                                            <HeaderStyle CssClass="HeaderFreez" />
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>

                            </asp:Panel>

                        </div>
                        <div class="spacer">
                            <asp:Image ID="Image8" runat="server" ImageUrl="~/Images/spacer.gif" />
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function SelectAll(e) {
            var t = e.closest('Table');
            for (i = 1; i < t.rows.length; i++) t.rows[i].cells[12].getElementsByTagName("INPUT")[0].checked = e.checked;

            if (e.checked == true) {
                for (var i = 1; i < t.rows.length ; i++) {
                    if (i < 10) {
                        $('#ctl00_CP_FeePendingListGridView_ctl0' + (i + 1) + '_RemarkTextBox').removeAttr('disabled');
                    }
                    else if (i > 9) {
                        $('#ctl00_CP_FeePendingListGridView_ctl' + (i + 1) + '_RemarkTextBox').removeAttr('disabled');
                    }
                }
            }
            else {
                for (var i = 1; i < t.rows.length ; i++) {
                    if (i < 10) {
                        $('#ctl00_CP_FeePendingListGridView_ctl0' + (i + 1) + '_RemarkTextBox').val("");
                        $('#ctl00_CP_FeePendingListGridView_ctl0' + (i + 1) + '_RemarkTextBox').attr('disabled', 'disabled');
                    }
                    else if (i > 9) {
                        $('#ctl00_CP_FeePendingListGridView_ctl' + (i + 1) + '_RemarkTextBox').val("");
                        $('#ctl00_CP_FeePendingListGridView_ctl' + (i + 1) + '_RemarkTextBox').attr('disabled', 'disabled');
                    }
                }
            }

        }

        function SelectCheckBoxChange(obj) {
            row = obj.parentNode.parentNode.parentNode.rowIndex + 1;
            if (obj.checked == true) {
                if (row < 10) {
                    $('#ctl00_CP_FeePendingListGridView_ctl0' + row + '_RemarkTextBox').removeAttr('disabled');
                }
                else if (row > 9) {
                    $('#ctl00_CP_FeePendingListGridView_ctl' + row + '_RemarkTextBox').removeAttr('disabled');
                }
            }
            else {
                if (row < 10) {
                    $('#ctl00_CP_FeePendingListGridView_ctl0' + row + '_RemarkTextBox').val("");
                    $('#ctl00_CP_FeePendingListGridView_ctl0' + row + '_RemarkTextBox').attr('disabled', 'disabled');
                }
                else if (row > 9) {
                    $('#ctl00_CP_FeePendingListGridView_ctl' + row + '_RemarkTextBox').val("");
                    $('#ctl00_CP_FeePendingListGridView_ctl' + row + '_RemarkTextBox').attr('disabled', 'disabled');
                }
            }
            //var RemarkTextBox = obj.closest('TextBox');
        }

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