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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
                <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" id="SearchDiv" runat="server">
                        <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 display-flex">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-md-3" id="SuidDiv" runat="server">
                                            <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" MaxLength="50" OnTextChanged="SUIDTextBox_TextChanged" AutoPostBack="true"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrganizationLabel2" runat="server" Text="Organization"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" style="display: none;">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BathchLabel" 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">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentSearchIdNoLabel" runat="server" Text="Student ID No" CssClass="mandatory"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="StudentSearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" class="form-control" runat="server" MaxLength="150" OnTextChanged="StudentSearchIdNoTextBox_TextChanged" AutoPostBack="true">
                                                </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentSearchIdNoImageButton"
                                                    ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                                <asp:HiddenField ID="AcademicIdIdHiddenField" runat="server" />
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentSearchNameLable" runat="server" Text="Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StudentSearchNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="150" Enabled="false"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchDepositHeadLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchDepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                    class="form-control">
                                                </asp:DropDownList>
                                            </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" />
                                            <asp:Button ID="PrintListButton" runat="server" Text="&#xf02f; Print" OnClick="PrintListButton_Click" SkinID="0" CssClass="btn-print btn fas" />
                                        </div>

                                    </asp:Panel>
                                    <div class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server">
                                        <div id="StudentLedgerDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body">
                                                <%--Changes for mantis : 0039756 By Krunal K Patel  -- Added Total Row in Grid Footer.--%>
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" class="table-responsive">
                                                            <asp:GridView ID="StudentLedgerGridView" ClientIDMode="Static" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered table-hover" OnPageIndexChanging="StudentLedgerGridView_PageIndexChanging"
                                                                AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                EmptyDataText="No records Found !!!" OnRowDataBound="StudentLedgerGridView_RowDataBound" ShowFooter="true">
                                                                <Columns>
                                                                    <asp:BoundField HeaderText=" Date" DataField="TransactionDate" DataFormatString="{0:dd/MM/yyyy}" FooterText="Total" FooterStyle-Font-Bold="true" /> <%--Mantis  - 46717(DepositDate to TransactionDate)--%>
                                                                    <asp:TemplateField HeaderText="Expense Type" ItemStyle-Width="20%" SortExpression="ExpenseType" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ExpenseType" runat="server" Text='<%# Bind("ExpenseType") %>'></asp:Label>
                                                                        </ItemTemplate>                                                                         
                                                                    </asp:TemplateField>
                                                                    <%--add for mantis: 35522, start--%>
                                                                    <asp:TemplateField HeaderText="Deposit Type" ItemStyle-Width="20%" SortExpression="DepositType" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepositType" runat="server" Text='<%# Bind("DepositType") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--add for mantis: 35522, end--%>
                                                                    <asp:TemplateField HeaderText="Credit" ItemStyle-Width="20%" SortExpression="Credit" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepositCreditLable" runat="server" Text='<%# Bind("Credit") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                         <FooterTemplate>
                                                                            <asp:Label ID="DepositCreditTotalLable" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Debit" ItemStyle-Width="14%" SortExpression="Debit" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepositDebitLable" runat="server" Text='<%# Bind("Debit") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="DepositDebitTotalLable" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Balance" ItemStyle-Width="14%" SortExpression="Balance" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepositBalanceLable" runat="server" Text=""></asp:Label>
                                                                        </ItemTemplate>
                                                                         <FooterTemplate>
                                                                            <asp:Label ID="DepositBalanceTotalLable" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Batch" ItemStyle-Width="14%" SortExpression="Batch" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="BatchLable" runat="server" Text='<%# Bind("BatchName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

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