<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_FeeManagement_AccountMapping, App_Web_xhjfr54r" 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="104"
                                                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>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Account Mapping"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="cBoth">
                                </div>
                                <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"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" class="form-control"
                                            AutoPostBack="true" OnSelectedIndexChanged="BatchDropDownList_OnSelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AdmissionCategoryLabel" runat="server" Text="Fees Category" SkinID="MandatoryLabel"> </asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="AdmissionCategoryDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                            AutoPostBack="true" OnSelectedIndexChanged="AdmissionCategoryDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ClassLabel" runat="server" SkinID="MandatoryLabel" Text="Class"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                            AutoPostBack="true" onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                            OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceiptBookLabel" runat="server" Text="Receipt Book" meta:resourcekey="ReceiptBookLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="ReceiptBookDropDownList" SkinID="CustomWidthDropDownList"
                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            OnSelectedIndexChanged="ReceiptBookDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div runat="server" id="PayTypeDiv" visible="true">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="PayTypeLabel" runat="server" Text="Pay Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="PayTypeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="PayTypeDropDownList_SelectedIndexChanged"
                                                AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                        </div>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="FeeHeadLabel" runat="server" Text="Fee Head"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="FeeHeadDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="FeeHeadDropDownList_SelectedIndexChanged"
                                            AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="FeeMasterLabel" runat="server" Text="Fee"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="FeeMasterDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            OnSelectedIndexChanged="FeeMasterDropDownList_SelectedIndexChanged" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <br />
                                <div id="AccountMappingDetailDiv" runat="server" visible="false" class="">
                                    <div class="himssuHeader6WireBox box-body box-solid  ">
                                        <div class="himsBoxHeader " id="GridViewPagerDiv" runat="server" visible="false">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <%--   <div class="gridHeaderText">
                                                    <header>
                                                        <asp:Label ID="GridViewLabel" Text="List" runat="server" />
                                                    </header>
                                                </div>--%>
                                                <div class="pull-right mt-27 display-flex pt-1">
                                                    <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" SkinID="CustomWidthTextBox" Style="padding-bottom: 5px;"></asp:TextBox>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                        Text="Apply All" SkinID="0" CssClass="btn btn-apply fas" />
                                                </div>
                                            </div>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="col-md-12 pTop5 pb15 display-flex">
                                            <table>
                                                <tr>
                                                    <td style="padding: 2px 0px 0px 2px">Pay Type
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">Account
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">Accounting Year
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">Credit Ledger
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">Debit Ledger
                                                    </td>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:DropDownList ID="A_PayTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" />
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:DropDownList ID="A_AccountDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="A_AccountDropDownListDropDownList_SelectedIndexChanged"
                                                            AutoPostBack="true" />
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:DropDownList ID="A_AccountingYearDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="A_AccountingYearDropDownListDropDownList_SelectedIndexChanged"
                                                            AutoPostBack="true" />
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:DropDownList ID="A_CreditLedgerDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" />
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:DropDownList ID="A_DebitLedgerDropDownListDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" />
                                                    </td>
                                                    <td style="padding: 2px 0px 0px 2px">
                                                        <asp:Button ID="ApplyAllBasedOnPayTypeButton" runat="server" OnClick="ApplyAllBasedOnPayTypeButton_Click"
                                                            Text="Apply All Based On Pay Type" SkinID="0" CssClass="btn btn-apply fas" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft pTop5">
                                                <asp:CheckBox ID="ApplyToOtherClassCheckBox" runat="server" OnCheckedChanged="ApplyToOtherClassCheckBox_CheckedChanged" Text="Apply To Other Class"
                                                    AutoPostBack="true" />
                                            </div>
                                        </div>
                                        <div id="DivClassCheckBoxList" class="outerBox11 pTop5  col-md-6" runat="server" visible="false">
                                        <div class="col-md-6 ">
                                            <div class="select">
                                                <asp:CheckBox ID="ClassCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="ClassCheckBox_CheckedChanged" Text="Select All" />
                                            </div>
                                            <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                <asp:CheckBoxList ID="ClassDivisionCheckBoxList" runat="server">
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                        <div class="col-md-6 ">
                                            <asp:Button ID="ApplyForSelectClassButton" runat="server" SkinID="0" OnClick="ApplyForSelectClassButton_Click"
                                                Text="Apply For Select Class" CssClass="btn btn-apply" />
                                        </div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 "></div>
                                        <div class="col-md-6 ">
                                        
                                        </div>
                                    </div>
                                        <div class="himsBoxContent pTop15 gridviewfont">
                                            <div id="Div5" runat="server" visible="true">
                                                <asp:GridView ID="AccountMappingGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="False" OnRowDataBound="AccountMappingGridView_RowDataBound"
                                                    DataKeyNames="FeeSetupId,AMFeeSetupId,PayTypeId,AMPayTypeId,FeeTitle,PayTypeName,FeeId" ShowHeader="True"
                                                    ShowFooter="false" CssClass="table table-striped table-bordered">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                            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="FeeTitle" HeaderText="Fee" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="FeeHeadName" HeaderText="Fee Head" ItemStyle-Width="15%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ReceiptBookTitle" HeaderText="Receipt Book" ItemStyle-Width="15%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <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" CssClass="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" CssClass="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" CssClass="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" CssClass="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>
