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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl" TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="TaxGroupMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="160"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top;" width="100%">
                                <div class="whitebox">
                                    <div class="himssuHeader2WireBox" id="SearchDiv" runat="server">
                                        <div class="himsBoxHeader note note1 box box-danger">
                                            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <asp:Image ID="Image2" runat="server" class="fLeft" meta:resourcekey="Image2Resource1" />
                                                    <div class="headerText">
                                                        <asp:Label ID="Label3" runat="server" Text="Search" meta:resourcekey="Label3Resource1"></asp:Label>
                                                        <div class="fRight">
                                                            <asp:Button ID="AddNewButtonID" OnClick="AddNewButton_Click" runat="server" SkinID="0" CssClass="AddButton" Text="Add" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="himsBoxContent">
                                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                                <div class="contentHolder">
                                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                        <div class="outerBox pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label1" Text="Code" runat="server" meta:resourcekey="Label1Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SearchTaxGroupCodeTextbox" SkinID="CustomWidthTextBox" Width="150px"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" runat="server"
                                                                    onkeypress="return fnKeyPressForNameField(event)" onblur="return fnonTextChangeNameField(this)"
                                                                    meta:resourcekey="SearchTaxGroupCodeTextboxResource1" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBoxPreBtn pTop5">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label2" Text="Name" runat="server" meta:resourcekey="Label2Resource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SearchTaxGroupDescriptionTextbox" SkinID="CustomWidthTextBox" Width="150px"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" runat="server"
                                                                    onkeypress="return fnKeyPressForDescriptionField(event)" onblur="return fnonTextChangeDescriptionField(this)"
                                                                    meta:resourcekey="SearchTaxGroupDescriptionTextboxResource1" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox">
                                                            <div class="searchBoxBtn">
                                                                <asp:Button ID="SearchButton" Text="Search" runat="server" OnClick="SearchButton_Click"
                                                                    SkinID="0" CssClass="btn-primary-search" />
                                                                <asp:Button ID="ResetButton" runat="server" Text="Reset" onblur="fnClearTabIndexChange()"
                                                                    OnClick="ResetButton_Click" meta:resourcekey="ResetButtonResource1" />
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                    </asp:Panel>
                                                    <div id="Div1" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server" style="width: 100%; margin-right: 5px;">
                                                        <div id="TaxGroupCodeMasterDetailDiv" runat="server" visible="false">
                                                            <div class="himsBoxHeader" id="PatientRelationDiv" visible="False" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle" style="width: 99%">
                                                                    <div class="headerText">
                                                                        <div class="fLeft">
                                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True" />
                                                                        </div>
                                                                    </div>
                                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                                        <uc1:GridViewPager ID="TaxGroupMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="TaxGroupMasterGridView_GridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="TaxGroupMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="TaxGroupMasterGridView_GridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="TaxGroupMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="TaxGroupMasterGridView_GridViewPager_TextBoxValueChange"
                                                                            ParentGridView="TaxGroupMasterGridView" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server">
                                                                    <ContentTemplate>
                                                                        <div id="Div5" runat="server" visible="False">

                                                                            <asp:GridView ID="TaxGroupMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                OnRowDataBound="TaxGroupMasterGridView_RowDataBound" OnPageIndexChanging="TaxGroupMasterGridView_PageIndexChanging"
                                                                                AllowPaging="True" PageSize="5" OnDataBinding="TaxGroupMasterGridView_DataBinding"
                                                                                DataKeyNames="Id" ShowHeader="True" EmptyDataText="No records available for the search criteria."
                                                                                meta:resourcekey="TaxGroupMasterGridViewResource1"
                                                                                CssClass="table table-striped table-bordered">
                                                                                <Columns>
                                                                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                                                        <ItemTemplate>
                                                                                            <asp:LinkButton CommandName="Select" ID="EditLinkButton" runat="server" OnClick="LinkButton_Click"
                                                                                                Text="Select" CausesValidation="False" meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="Id" HeaderText="Id" Visible="False" meta:resourcekey="BoundFieldResource1" />
                                                                                    <asp:TemplateField HeaderText="Code" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("Code") %>' ID="CodeLabel" runat="server"
                                                                                                Text='<%# Bind("Code") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle Width="25%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource3" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("Title") %>' ID="NameLabel" runat="server"
                                                                                                Text='<%# Bind("Title") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle Width="20%" />
                                                                                    </asp:TemplateField>
                                                                                    <asp:BoundField DataField="TaxTypeTitle" HeaderText="Tax Type" meta:resourcekey="BoundFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemStyle Width="20%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Obsolete" HeaderText="InActive" meta:resourcekey="BoundFieldResource6">
                                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                                        <ItemStyle HorizontalAlign="Center" Width="20%" />
                                                                                    </asp:BoundField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                    <div class="himssuHeader1WireBox" id="DetailDiv" runat="server">
                                        <div class="himsBoxHeader note note1 box box-danger">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="TaxGroupCodeMasterDetailLabel" runat="server" Text="Maintenance" meta:resourcekey="TaxGroupCodeMasterDetailLabelResource1"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="fRight" style="margin-top: -20px">
                                                <table>
                                                    <tr>
                                                        <td class="formLabel">
                                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="false">
                                                                <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                    OnClick="FirstRecordImageButton_Click" />
                                                                <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                    runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                    OnClick="PreviousImageButton_Click" />
                                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                                <asp:Label ID="TotalRecord" runat="server" />
                                                                <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                    runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                    OnClick="NextImageButton_Click" />
                                                                <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                    OnClick="LastRecordImageButton_Click" />
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="BackButton" Text="Back" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TaxGroupCodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                                            meta:resourcekey="TaxGroupCodeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="TaxGroupCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                            MaxLength="100" onkeypress="javascript:uppercase();" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" onblur="return fnonTextChangeCodeField(this)"
                                                            meta:resourcekey="TaxGroupCodeTextBoxResource1"></asp:TextBox>
                                                        <asp:HiddenField ID="TaxGroupIdHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TaxGroupDescriptionLabel" runat="server" Text="Name" SkinID="MandatoryLabel"
                                                            meta:resourcekey="TaxGroupDescriptionLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft ">
                                                        <asp:TextBox runat="server" ID="TaxGroupDescriptionTextbox" SkinID="CustomWidthTextBox"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="150px"
                                                            MaxLength="100" onkeypress="return fnKeyPressForDescriptionField(event)" onblur="return fnonTextChangeDescriptionField(this)"
                                                            AutoPostBack="True" meta:resourcekey="TaxGroupDescriptionTextboxResource2"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TaxTypeLabel" runat="server" Text="Tax Type" SkinID="MandatoryLabel"
                                                            meta:resourcekey="TaxTypeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:DropDownList ID="TaxTypeDropDownList" runat="server" Width="155px" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="TaxTypeDropDownListResource1">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="fLeft">
                                                        <asp:Label ID="ObsoleteLabel" runat="server" Text="InActive" meta:resourcekey="ObsoleteLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pLeft5 pTop5">
                                                        <asp:CheckBox ID="ObsoleteCheckBox" runat="server" meta:resourcekey="ObsoleteCheckBoxResource1" />
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
     <%--<script data-main="../../../JavaScript/rjs/encrypt/taxgroup-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/taxgroup-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>