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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl" TagPrefix="Pay" %>

<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="162"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Pay:PayrollControl ID="PayrollUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <asp:Label ID="Label1" runat="server" Text="Tax Range List"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex" style="margin-top: -23px !important;">
                                <asp:Button ID="AddButton" runat="server" OnClick="AddButton_Click"
                                    Text="&#xf067; Add" SkinID="0" CssClass="btn btn-add fas"></asp:Button>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="himssuHeader7WireBox box-body box-solid gridviewfont" id="Div1" runat="server" style="width: 100%; margin-right: 0px;">
                                        <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                            </div>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                            </div>
                                            <asp:GridView ID="ProfessionalTaxRangeGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="Id,GenderId" OnRowDeleting="ProfessionalTaxRangeGridView_RowDeleting"
                                                OnRowDataBound="ProfessionalTaxRangeGridView_RowDataBound"
                                                CssClass="table table-striped table-bordered table-hover">
                                                <Columns>
                                                   <asp:TemplateField HeaderText="Gender" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:DropDownList runat="server" ID="GenderDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Salary (and/or Above Range)" ItemStyle-Width="30%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="SalaryTextBox" runat="server" Width="150px" SkinID="CustomWidthTextBox"
                                                                onblur="javascript:return fnValidateDecimal(this,16,6)" onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                Text='<%# DataBinder.Eval(Container.DataItem,"Salary").ToString()=="0"? "":Eval("Salary") %>'></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Tax(Amount)" ItemStyle-Width="30%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="TaxTextBox" runat="server" Width="150px" onblur="javascript:return fnValidateDecimal(this,16,6)" SkinID="CustomWidthTextBox"
                                                                onKeypress="javascript:return MaskDecimal(event,16,6)" Text='<%# DataBinder.Eval(Container.DataItem,"Tax").ToString()=="0"? "":Eval("Tax") %>'>
                                                            </asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ShowHeader="true" HeaderText="Delete">
                                                        <ItemTemplate>
                                                            <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif"></asp:ImageButton>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/professional-taxrange-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/professional-taxrange")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
