<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_FeeManagement_ChargeAccountMapping, App_Web_tognf0lv" 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="DatePickerContouterBox"
    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="217"
                                                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">
                                    <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Charge Account Mapping"></asp:Label>
                                </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">
                                        </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"> </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">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <%--add for 27383 mantis start--%>
                                <div class="outerBox pTop5 col-md-3" id="PayTypeDiv" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PayTypeLabel" runat="server" Text="Pay Type"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="PayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                            class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            AutoPostBack="true" OnSelectedIndexChanged="PayTypeDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <%--27383 mantis end--%>

                                <div id="AccountMappingDetailDiv" runat="server" visible="false" class="pTop5">
                                    <div class="himssuHeader6WireBox col-md-12 pTop5">
                                        <div class="himsBoxHeader card-head inner" 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="fRight mt-27 pagination display-flex ">
                                                    <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control">
                                                    </asp:DropDownList>
                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" SkinID="CustomWidthTextBox" Width="120px"></asp:TextBox>
                                                    <asp:Button ID="ApplyAllButton" runat="server" Width="80px" OnClick="ApplyAllButton_Click"
                                                        Text="Apply All" SkinID="CustomWidthButton" Style="font-size: 14px" />
                                                </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="Apply All Based On Pay Type" SkinID="0" CssClass="btn btn-apply" />
                                                </div>


                                            </div>

                                            <div class="himsBoxContent gridviewfont pTop15 width-100">
                                                <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                    <asp:GridView ID="AccountMappingGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!" AllowPaging="False" OnRowDataBound="AccountMappingGridView_RowDataBound"
                                                        DataKeyNames="ChargeId,AMChargeId,PayTypeId,AMPayTypeId" ShowHeader="True"
                                                        ShowFooter="false" CssClass="table table-striped table-bordered table-hover">
                                                        <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="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:BoundField DataField="ChargeTitle" HeaderText="Charge" ItemStyle-Width="15%"
                                                                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>
