<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FinancialManagement_Accounting_Expense, App_Web_vqct5ff5" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Account/AccountDetailBoxControl.ascx" TagName="AccountControl" TagPrefix="Acnt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" 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="9"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <Acnt:AccountControl ID="AccountUserControl" runat="server" Visible="true" />
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader2WireBox card card-box">
                        <div class="himsBoxHeader card-head inner admin-tabs">
                            <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>
                                            <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="DetailPanel"
                                                ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3" Collapsed="true"
                                                ImageControlID="Image2" ExpandedImage="~/Images/icons/collapsetab.png"
                                                CollapsedImage="~/Images/icons/expandtab.png"
                                                ExpandDirection="Vertical" />
                                        </header>


                                    </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">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel1" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="TodateLabel1" runat="server" Text="To Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label4" Text="Expense group" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchExpenseGroupDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop5 pb15 col-md-12 center">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Clear" onblur="fnClearTabIndexChange()" SkinID="0" OnClick="ResetButton_Click" class="btn-reset btn fas" />
                                        </div>

                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox card card-box p-lr-10" runat="server">
                                        <div id="ExpenseGroupDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader" id="PatientRelationDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="fRight mt-27">
                                                        <uc1:GridViewPager ID="ExpenseGrideView_GridViewPager" runat="server" OnFirstRecordClick="ExpenseGrideView_GridViewPager_FirstRecordClick"
                                                            OnLastRecordClick="ExpenseGrideView_GridViewPager_LastRecordClick" OnNextRecordClick="ExpenseGrideView_GridViewPager_NextRecordClick"
                                                            OnPrevRecordClick="ExpenseGrideView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="ExpenseGrideView_GridViewPager_TextBoxValueChange"
                                                            ParentGridView="ExpenseGrideView" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <div id="Div5" runat="server" visible="false">
                                                    <asp:GridView ID="ExpenseGrideView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                        CssClass="table table-striped table-bordered table-hover" OnRowDataBound="ExpenseGrideView_RowDataBound" OnPageIndexChanging="ExpenseGrideView_PageIndexChanging"
                                                        AllowPaging="true" PageSize="5" SkinID="" ShowHeader="true" PagerSettings-Visible="false">
                                                        <Columns>
                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                        Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="false" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Name" ItemStyle-Width="15%" SortExpression="Name" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="NameLabel" CssClass="boxEllips" ToolTip='<%# Bind("ExpenseDate","{0:d}") %>'
                                                                        runat="server" Text='<%# Bind("ExpenseDate","{0:d}") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Expense Group" ItemStyle-Width="30%" SortExpression="Remark" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="ExpenseGroupLabel" CssClass="boxEllips" ToolTip='<%#  Bind("ExpenseGroupName")  %>'
                                                                        runat="server" Text='<%#  Bind("ExpenseGroupName")  %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Remark" ItemStyle-Width="25%" SortExpression="Category" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Remark" runat="server" Text='<%#  Bind("Remark")  %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" SortExpression="Category" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Amount" runat="server" Text='<%#  Bind("Amount")  %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">

                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="leftdiv">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Expense Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ExpenseDatePickerControl" runat="server" />
                                    </div>
                                </div>
                                <asp:HiddenField ID="IdHiddenField" runat="server" />

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ExpenseGroupLabel" runat="server" Text="Expense Group" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft ">
                                        <asp:DropDownList ID="ExpenseGroupDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RemarkLabel" runat="server" Text="Remark"></asp:Label>
                                    </div>
                                    <div class="fLeft ">
                                        <asp:TextBox runat="server" ID="RemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox">
                                        </asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Amount" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft ">
                                        <asp:TextBox ID="AmountTextBox" SkinID="CustomWidthTextBox" MaxLength="10"
                                            runat="server" onKeypress="javascript:return MaskDecimal(event,10,2)" onBlur="javascript:return fnValidateDecimal(this,10,2)"
                                            Style="text-align: right;" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            AutoPostBack="True" meta:resourcekey="MaintenancePeriodTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/expense-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/expense")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
