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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ 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="Date" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="FeeHeadMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="210"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </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 class="fRight mt-27 pagination display-flex ">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="FeeAllocationTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="FeeAllocationTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="DepositAddTabPanel" runat="server" HeaderText="Deposit Add">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Deposit Adjustment Bulk</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="Panel2" runat="Server">
                                                        <div class="contentHolder">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SearchOrganizationLabel" Text="Organization" runat="server" CssClass="mandatory"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                                        class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label2" Text="Batch" runat="server" CssClass="mandatory"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_SelectedIndexChanged"
                                                                        class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged"
                                                                        AutoPostBack="true" class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label4" Text="Division" runat="server"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                                        class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SearchIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="SearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server"> </asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SuidLabel" runat="server" Text="SUID"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="SuidTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server">
                                                                    </asp:TextBox>
                                                                </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="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" CssClass="mandatory"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="DepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                                        class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="ExpenseLabel" runat="server" Text="Expense Type" CssClass="mandatory"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:DropDownList ID="ExpenseTypeDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthDropDownList" runat="server" class="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="Label1" Text="Adjustment Date" runat="server" CssClass="mandatory">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <Date:DatePickerControl ID="AdjustmentDatePickerControl" runat="server" DisplayDatePicker="true"
                                                                        class="form-control"></Date:DatePickerControl>
                                                                </div>
                                                            </div>
                                                            <div id="Div1" class="himssuHeader7WireBox" runat="server" visible="false">
                                                                <div id="DepositAdjustmentListDetailDiv" runat="server">
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                    </div>
                                                                    <div class="himsBoxHeader">
                                                                        <div class="pull-right col-md-3 display-flex">
                                                                            <asp:DropDownList ID="ApplyAmountDropDownlist" runat="server" HeaderStyle-HorizontalAlign="right" OnSelectedIndexChanged="ApplyAmountDropDownlist_SelectedIndexChanged" AutoPostBack="true" class="form-control">
                                                                                <asp:ListItem Text="-Select-" Value="-1"></asp:ListItem>
                                                                                <asp:ListItem Text="Amount" Value="0"></asp:ListItem>
                                                                                <asp:ListItem Text="Remark" Value="1"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyAmountTextBox" runat="server" Style="padding-top: 15px" HeaderStyle-HorizontalAlign="right" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)"> </asp:TextBox>
                                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyRemarkTextBox" runat="server" Style="padding-top: 15px" HeaderStyle-HorizontalAlign="right" Visible="false"> </asp:TextBox>
                                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:Button ID="ApplyButton" runat="server" Text="&#xf058; Apply All" OnClick="ApplyButton_Click" SkinID="0" CssClass="btn btn-apply fas" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="himsBoxContent box-body box-solid gridviewfont">
                                                                        <div id="Div5" runat="server" class="table-responsive">
                                                                            <asp:GridView ID="DepositAdjustmentGridView" runat="server" AutoGenerateColumns="False"
                                                                                AllowPaging="false" PageSize="5" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                                DataKeyNames="AcademicId" OnRowDataBound="DepositAdjustmentGridView_RowDataBound"
                                                                                OnPageIndexChanging="DepositAdjustmentGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover">
                                                                                <Columns>
                                                                                    <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                        HeaderText="">
                                                                                        <HeaderTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);"></asp:CheckBox>
                                                                                                <span></span>
                                                                                            </label>
                                                                                        </HeaderTemplate>
                                                                                        <ItemTemplate>
                                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" onClick="checkUncheckHeaderCheckBox(this);"></asp:CheckBox>
                                                                                                <span></span>
                                                                                            </label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Id No" ItemStyle-Width="15%">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="IdNoCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>

                                                                                    <asp:BoundField DataField="SUId" HeaderText="SUId" ItemStyle-Width="10%"
                                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                                    <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="25%"
                                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                                    <asp:BoundField DataField="StudentName" HeaderText="Name" ItemStyle-Width="25%"
                                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                                    <asp:BoundField DataField="ClassDivisionName" HeaderText="Class" ItemStyle-Width="10%"
                                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                                    <asp:BoundField DataField="AdjustmentAmount" HeaderText="Previous Total" ItemStyle-Width="10%"
                                                                                        HeaderStyle-HorizontalAlign="Left" />
                                                                                    <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                        HeaderText="Amount">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="AmountTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" onkeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                                onblur="javascript:return fnValidateDecimal(this,10,2)"> </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField ItemStyle-Width="25%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                        HeaderText="Remark">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="RemarkTextBox" runat="server" HeaderStyle-HorizontalAlign="Left" MaxLength="200"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="DepositAdjustmentImportTabPanel" runat="server" HeaderText="Deposit Adjustment Import">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Deposit Adjustment Import</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <asp:Panel ID="DetailPanel2" runat="server">
                                                        <div class="contentHolder">
                                                             <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="AdjustmentOrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                            class="form-control" OnSelectedIndexChanged="AdjustmentOrganizationDropDownList_SelectedIndexChanged">
                                        </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="AdjustmentBatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DepositLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="AdjustmentDepositDropDownList3" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                            class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                
                                <div class="cBoth">
                                </div>
                                
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:HyperLink ID="DownloadFeeNameTemplateHyperLink" runat="server" Text="&#xf101; Download Template"
                                            NavigateUrl="~/ContentTemplates/Import/DepositAdjustmentImport_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                            <i class="fa fa-arrow-down"></i>Browse</a>
                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                    </div>
                                    <br />
                                    <asp:Label ID="Label5" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Button ID="ValidateButton" runat="server" Text="&#xf00c; Validate" OnClick="ValidateButton_Click" SkinID="0" CssClass="btn btn-validate fas" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                    </div>
                                </div>

                                <div class="alignCenter col-md-12 pTop15 pb5">
                                    <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel" meta:resourcekey="ImportButtonResource1"
                                        SkinID="0" CssClass="btn btn-examcommon fas" OnClick="ImportFromExcelButton_Click" />
                                    <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Clear" OnClick="ClearButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                </div>
                            </div>
                            <div class="cBoth">
                            </div>
                            <div id="HtmlDiv" runat="server" visible="false" class="himssuHeader7WireBox table-responsive" style="width: 99%; height: 400px; overflow: scroll;">
                                <div class="himsBoxContent box-body box-solid table-hover" style="font-size: smaller !important;">
                                    <asp:Label ID="HtmlStringLabel" runat="server" Text=""></asp:Label>
                                </div>
                            </div>
                            <div class="cBoth">
                            </div>

                           
                            <div class="himsBoxContent card card-box col-md-12">
                            <div id="Div2" runat="server" class="table-responsive">
                                 <div class="himsBoxHeader" runat="server" visible="true">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="gridHeaderText fLeft">
                                            <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                        </div>
                                    </div>
                                </div>
                            <asp:GridView runat="server" class="col-md-12" ID="DepositAdjustmentImportGridView" AutoGenerateColumns="False"
                                EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="Code,Amount,AdjustmentDate,ExpenseType,Remark"
                                AllowPaging="false" ShowHeader="true" CssClass="table table-striped table-bordered table-hover">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Code">
                                        <ItemTemplate>
                                            <asp:Label ID="CodeLabel" runat="server" Text='<%# Eval("Code") %>' CssClass="boxEllips"
                                                Width="100px"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Amount">
                                        <ItemTemplate>
                                            <asp:Label ID="AmountLabel" runat="server" Text='<%# Eval("Amount") %>'
                                                CssClass="boxEllips" Width="100px"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="AdjustmentDate">
                                        <ItemTemplate>
                                            <asp:Label ID="AdjustmentDateLabel" runat="server" Text='<%# Eval("AdjustmentDate") %>' CssClass="boxEllips"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="ExpenseType">
                                        <ItemTemplate>
                                            <asp:Label ID="ExpenseTypeLabel" runat="server" Text='<%# Eval("ExpenseType") %>' CssClass="boxEllips"
                                                Width="300px"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Remark">
                                        <ItemTemplate>
                                            <asp:Label ID="RemarkLabel" runat="server" Text='<%# Eval("Remark") %>' CssClass="boxEllips"
                                                Width="100px"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>
                                   <%-- <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="ValidationMessage">
                                        <ItemTemplate>
                                            <asp:Label ID="ValidationMessageLabel" runat="server" Text='<%# Eval("ValidationMessage") %>' CssClass="boxEllips"
                                                Width="100px"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                    </asp:TemplateField>--%>
                                </Columns>
                                <PagerSettings Visible="true" />
                            </asp:GridView>
                            </div>
                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/room-list-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
     <script data-main='<%=ResolveUrl("~/JavaScript/rjs/fee-invoice-import")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function fnValidateDepositAdjustment() {
            var himsValidator = [
                                new hims_ctl_val('ctl00_CP_SearchDepositHeadIdDropDownList', "Deposit Head", "T", "", "", "", 20),
                                new hims_ctl_val('ctl00_CP_SearchExpenseTypeDropDownList', "Expense Type", "T", "", "", "", 20),
                                new hims_ctl_val('<%= AdjustmentDatePickerControl.ClientID %>' + '_DateTextbox', "Adjustment Date", "T", "", "", "", 10)

            ];
                                if (fnDoValidate(himsValidator))
                                    return true;
                                else
                                    return false;
                            }
    </script>
</asp:Content>
