<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_BalanceSheet, App_Web_51xr3gob" 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" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteTextBoxForGridView.ascx" TagName="AutoCompleteTextBoxForGridView" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/Account/AccountDetailBoxControl.ascx" TagName="AccountControl" TagPrefix="Acnt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <uc1:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <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="148"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <Acnt:AccountControl ID="AccountUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader5WireBox card  card-box">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="Panel1" runat="server">

                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-search"></i>
                                                        <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="SearchPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="VoucherDateSearchFromLabel" runat="server" Text="From Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="VoucherDateSearchFromDatePickerControl" Text='' Visible="True" runat="Server"></Date:DatePickerControl>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="VoucherDateSearchToLabel" runat="server" Text="To Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="VoucherDateSearchToDatePickerControl" Text='' Visible="True" runat="Server"></Date:DatePickerControl>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                     <div class="controlLabelWidth">
                                                         <asp:Label ID="ViewModeLabel" runat="server" Text="View Mode"></asp:Label>
                                                     </div>
                                                     <div class="fLeft pRight5">
                                                         <asp:DropDownList ID="ViewModeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                         onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ViewModeDropDownListResource" />
                                                    </div>
                                                </div>   

                                                <div class="alignCenter col-md-12  pTop5">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn btn-search fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn btn-reset fas" />
                                                    <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print" OnClick="PrintButton_Click" SkinID="0" CssClass="btn btn-report fas" />
                                                    <asp:Button ID="ExportButton" runat="server" OnClick="ExportButton_Click" Text="&#xf093; Export" SkinID="0" class="btn-examcommon btn fas" />
                                                </div>

                                                <div class="col-md-12 pTop15 ">
                                                    <div id="Div2" class="himssuHeader1WireBox col-md-6" runat="server">
                                                        <div id="BalanceSheetListDetailDiv" runat="server" visible="false">
                                                            <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                                <div class="gridHeaderText">
                                                                    <header>
                                                                        <asp:Label ID="AssignRouteLabel" runat="server" Text="Balance Sheet"></asp:Label>
                                                                    </header>
                                                                </div>
                                                            </div>

                                                            <div class="himsBoxContent">
                                                                <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                    <asp:GridView ID="VoucherSearchGridView" runat="server" AutoGenerateColumns="False"
                                                                        AllowPaging="false" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                        DataKeyNames="IncomeGroupId" OnRowDataBound="BalanceSheetSearchGridView_RowDataBound" CssClass="table table-striped table-hover table-bordered">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Liabilities" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LedgerGroupNameLabel" runat="server" Text='<%# Bind("LedgerGroup") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Ledger" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LedgerNameLabel" runat="server" Text='<%# Bind("Ledger") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CrBalanceLabel" runat="server" Text='<%# Bind("Credit") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Total" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CrTotal" runat="server" Text=""></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                             <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                <ItemTemplate> 
                                                                                    <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" OnClick="SelectLinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div id="Div1" class="himssuHeader1WireBox col-md-6 " runat="server">
                                                        <div id="LossGridviewDiv3" runat="server" visible="false">
                                                               <div class="himsBoxHeader card-head inner" id="Div3" runat="server">
                                                                <div class="gridHeaderText">
                                                                    <header>
                                                                        <asp:Label ID="Label1" runat="server" Text="Balance Sheet"></asp:Label>
                                                                    </header>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div4" runat="server" visible="false" class="table-responsive">
                                                                    <asp:GridView ID="LoassGridView" runat="server" AutoGenerateColumns="False"
                                                                        AllowPaging="false" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                        CssClass="table table-striped table-bordered table-hover" DataKeyNames="ExpenseGroupId" OnRowDataBound="LoassGridView_RowDataBound">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Assets" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LedgerGroupNameLabel" runat="server" Text='<%# Bind("LedgerGroupExpense") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Ledger" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LedgerNameLabel" runat="server" Text='<%# Bind("LedgerExpense") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DrBalanceLabel" runat="server" Text='<%# Bind("Debit") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Total" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="DrTotal" runat="server" Text=""></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="SelectLinkButton1" runat="server" CommandName="Select" OnClick="SelectLinkButton1_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-12">

                                                    <div class="col-md-2">
                                                        <asp:Label ID="ClosingBalanceLabel" runat="server" Text="Diff in Closing Balance :" Visible="false"
                                                            Style="font-weight: 700"></asp:Label>
                                                        <asp:Label ID="ClosingBalanceLabelT" runat="server" Text="" Style="font-weight: 700"></asp:Label>
                                                    </div>

                                                    <div class="col-md-4 text-right">
                                                        <asp:Label ID="CreditTotallbl" runat="server" Text="Total :" Visible="false"
                                                            Style="font-weight: 700"></asp:Label>
                                                        <asp:Label ID="CreditLabelT" runat="server" Text="" Style="font-weight: 700"></asp:Label>
                                                    </div>
                                                    <div class="col-md-4 offset-md-2 text-right">
                                                        <asp:Label ID="DebitLabel1" runat="server" Text="Total :" Visible="false"
                                                            Style="font-weight: 700"></asp:Label>
                                                        <asp:Label ID="DebitLabelT" runat="server" Text="" Style="font-weight: 700"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </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>
