<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_FeeManagement_DepositAccountMapping, App_Web_vmp4dkpb" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <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="210"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <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-search"></i>
                                            <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Search"></asp:Label>                                      
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">                               
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                            class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="BatchLable" Text="Batch" runat="server" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()" Visible="false"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>                                
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ChargeCategoryLabel" runat="server" Text="Charge Category" SkinID="MandatoryLabel" Visible="false"> </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="ChargeCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="true" OnSelectedIndexChanged="ChargeCategoryDropDownList_SelectedIndexChanged" Visible="false">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="alignCenter col-md-12 pTop5 pb5">
                                    <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                </div>

                                <div id="AccountMappingDetailDiv" runat="server" visible="false" class="pTop5">
                                    <div class="himssuHeader6WireBox box-body box-solid  pTop5">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="false">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                
                                             <div class="col-md-3 fRight display-flex" style="margin:0px; padding:0px">
                                                    <asp:DropDownList ID="ApplyDropDownList" runat="server" Width="100px" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control">
                                                    </asp:DropDownList>
                                                    &nbsp; &nbsp;
                                                    <asp:TextBox ID="ApplyAllTextBox" style="padding-top:5px" runat="server" SkinID="CustomWidthTextBox" Width="80px"></asp:TextBox>
                                                    &nbsp;
                                                 <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click" CssClass="btn btn-assign fas"
                                                        Text="&#xf058; Apply All" SkinID="0" style="padding:0px;height:25px;width:35px" />
                                            </div>
                                               
                                            </div>
                                        </div>
                                        <br />
                                        <div>
                                            <div class="col-md-12 pTop5">

                                                <div class="outerBox  col-md-2">
                                                    <div class="controlLabelWidth">
                                                        <label>Pay Type</label>
                                                    </div>
                                                    <asp:DropDownList ID="A_PayTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" />
                                                </div>

                                                <div class="outerBox  col-md-2">
                                                    <div class="controlLabelWidth">
                                                        <label>
                                                            Account
                                                        </label>
                                                    </div>
                                                    <asp:DropDownList ID="A_AccountDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" OnSelectedIndexChanged="A_AccountDropDownListDropDownList_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </div>

                                                <div class="outerBox  col-md-2">
                                                    <div class="controlLabelWidth">
                                                        <label>
                                                            Accounting Year
                                                        </label>
                                                    </div>
                                                    <asp:DropDownList ID="A_AccountingYearDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" OnSelectedIndexChanged="A_AccountingYearDropDownListDropDownList_SelectedIndexChanged"
                                                        AutoPostBack="true" />
                                                </div>


                                                <div class="outerBox  col-md-2">
                                                    <div class="controlLabelWidth">
                                                        <label>
                                                            Credit Ledger
                                                        </label>
                                                    </div>
                                                    <label>
                                                        <asp:DropDownList ID="A_CreditLedgerDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" />
                                                </div>

                                                <div class="outerBox  col-md-2">
                                                    <div class="controlLabelWidth">
                                                        <label>
                                                            Debit Ledger
                                                        </label>
                                                        <asp:DropDownList ID="A_DebitLedgerDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" />
                                                    </div>
                                                </div>
                                                <div class="col-md-2 ml-35  outerBox">
                                                    <asp:Button ID="ApplyAllBasedOnPayTypeButton" runat="server" OnClick="ApplyAllBasedOnPayTypeButton_Click"
                                                        Text="&#xf058; Apply All Based On Pay Type" SkinID="0" CssClass="btn btn-apply fas" />
                                                </div>


                                            </div>
                                            <div class="himsBoxContent gridviewfont table-responsive">
                                                <div id="Div5" runat="server" visible="true">
                                                    <asp:GridView ID="AccountMappingGridView" runat="server" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!" AllowPaging="False" OnRowDataBound="AccountMappingGridView_RowDataBound"
                                                        DataKeyNames="DepositeHeadId,AMDepositeHeadId,PayTypeId,AMPayTypeId" ShowHeader="True"
                                                        ShowFooter="false" CssClass="table table-striped table-bordered">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                            Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                        <span></span>
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="SelectCheckBox" AutoPostBack="true" OnCheckedChanged="SelectCheckBox_Checked"
                                                                            runat="server" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>

                                                            <asp:BoundField DataField="PayTypeName" HeaderText="Pay Type" ItemStyle-Width="10%"
                                                                HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:TemplateField HeaderText="Account" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:DropDownList runat="server" ID="AccountDropDownList" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" Enabled="false" OnSelectedIndexChanged="AccountDropDownList_SelectedIndexChanged"
                                                                        AutoPostBack="true" class="form-control">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Accounting Year" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:DropDownList runat="server" ID="AccountingYearDropDownList" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" Enabled="false" OnSelectedIndexChanged="AccountingYearDropDownList_SelectedIndexChanged"
                                                                        AutoPostBack="true" class="form-control">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Credit Ledger" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Width="10%" ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:DropDownList runat="server" ID="CreditLedgerDropDownList" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" Enabled="false" class="form-control">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Debit Ledger" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%"
                                                                ItemStyle-Wrap="true">
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <ItemTemplate>
                                                                    <asp:DropDownList runat="server" ID="DebitLedgerDropDownList" onmouseleave="showHideTooltip()"
                                                                        onmouseenter="showHideTooltip()" Enabled="false" class="form-control">
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/account-mapping-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/account-mapping")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
