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

<%@ 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/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" class="divcontentpagemargin">
                
                            <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="himssuHeader1WireBox  card card-box">
                                    <div class="himsBoxHeader card-head">
                                       
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                <i class="fas fa-list-ol"></i>
                                                <asp:Label ID="Label3" runat="server" Text="Voucher List"></asp:Label>
                                                    </header>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27">
                                            <asp:Button ID="AddButton" runat="server" Text="&#xf067; Add" OnClick="AddButton_Click" SkinID="0"
                                                class="btn btn-add fas" />
                                        </div>
                                    </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="VoucherTypeSearchLabel" runat="server" Text="Voucher Type"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="VoucherTypeSearchDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="false">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLableWidth">
                                                        <asp:Label ID="LedgerSearchLabel" runat="server" Text="Ledger"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="LedgerSearchDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            DataValueField="LedgerId" AutoPostBack="false">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                             
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="VoucherNoFromLabel" Text="Voucher No From" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="VoucherNoFromTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="VoucherNoToLabel" Text="Voucher No To" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="VoucherNoToTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            ></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AmountSerachLabel" Text="Amount" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="AmountSerachTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="100"
                                                            ></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <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" Width="100px" ID="VoucherDateSearchToDatePickerControl"
                                                            Text='' Visible="True" runat="Server"></Date:DatePickerControl>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="NarrationSearchLabel" Text="Narration" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="NarrationSearchTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="1000"
                                                            ></asp:TextBox><%--Added by dhananjay from mantis - 0035082--%>
                                                    </div>
                                                </div>
                                              
                                                <div class="alignCenter pTop5 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; Reset" SkinID="0" OnClick="ResetButton_Click" class="btn-reset btn fas" />
                                                    <asp:Button ID="ApproveButton" runat="server" Text="&#xf164; Approve" SkinID="0" OnClick="ApproveButton_Click" class="fas btn btn-save"/>
                                                </div>
                                                <br /><div class="cBoth"></div>
                                                
                                                <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                                    <div id="VoucherEntryListDetailDiv" 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="Voucher Approve List"></asp:Label>
                                                        </header>
                                                        </div>
                                                        </div>

                                                        <div class="himsBoxContent">
                                                            <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                <asp:GridView ID="VoucherSearchGridView" runat="server" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                                                    AllowPaging="False" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                    DataKeyNames="Id" OnRowDataBound="VoucherEntrySearchGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="2%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectChechBox" runat="server" AutoPostBack="true" OnCheckedChanged="SelectChechBox_CheckedChanged"></asp:CheckBox>
                                                                                    <span></span>
                                                                                </label>                                                                                    
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectChechBox" runat="server"></asp:CheckBox>
                                                                                        <span></span>
                                                                                 </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>
                                                                        <asp:TemplateField HeaderText="Voucher Type" ItemStyle-Width="8%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="VoucherTypeLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).VoucherType %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Voucher No" ItemStyle-Width="8%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="VoucherNoLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).VoucherNumber %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Voucher Date" ItemStyle-Width="10%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="VoucherDateLabel" runat="server" Text='<%# Bind("TransactionDate","{0:d}") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Ledger" ItemStyle-Width="29%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LedgerLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).Ledger %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Debit" ItemStyle-Width="10%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="DebitLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).Debit %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Credit" ItemStyle-Width="10%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CreditLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).Credit %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Narration" ItemStyle-Width="15%" SortExpression="Title"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NarrationLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.FinancialManagementBE.VoucherEntryApprove)Container.DataItem).Narration %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </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>
