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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">

                <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">

                    <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-list-ul"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Classwise Deposit Balance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="DepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                class="form-control" OnSelectedIndexChanged="DepositHeadIdDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth"></div>
                                    <div id="Div1" class="himssuHeader6WireBox box-body box-solid pTop5" runat="server" visible="true">
                                        <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <%--<div class="headerText">
                                                    <asp:Label ID="GridViewLabel" Text="Classwise Deposit Balance" runat="server" />
                                                </div>--%>
                                                <div class="pull-right col-md-6 display-flex">
                                                    <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" class="form-control"></asp:DropDownList>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox" style="padding-top:8.8px" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                        onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                  
                                                    <asp:Button ID="ApplyButton" runat="server" SkinID="0" CssClass="btn btn-apply fas" style="top:0px;height:28px" Text="&#xf058; Apply All" OnClick="ApplyButton_Click"/>
                                                    &nbsp;
                                                    <asp:Button ID="PrintButton" runat="server" SkinID="0" CssClass="btn btn-print fas" style="top:0px;height:28px" Text="&#xf02f; Print" OnClick="PrintButton_Click" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent pTop5 gridviewfont table-responsive">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                            </div>
                                            <asp:GridView ID="DepositBalanceGridView" runat="server" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="DepositHeadId,ClassId" CssClass="table table-striped table-bordered table-hover">
                                                <Columns>
                                                    <asp:BoundField DataField="DepositHeadId" HeaderText="DepositHeadId" Visible="false"></asp:BoundField>
                                                    <asp:BoundField DataField="ClassId" HeaderText="ClassId" Visible="false"></asp:BoundField>
                                                    <asp:TemplateField HeaderText="Class Name" ItemStyle-Width="30%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="ClassNameLabel" runat="server" Width="130px" Text='<%# Bind("ClassName") %>'>' </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Balance Amount">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="BalanceAmountTextBox" runat="server"
                                                                MaxLength="12" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# Bind("BalanceAmount") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle Width="35%" Wrap="True" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Negative Balance">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="NegativeBalanceTextBox" runat="server"
                                                                MaxLength="12" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# Bind("NegativeBalance") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle Width="35%" Wrap="True" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>                    
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/deposit-balance-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/deposit-balance")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
