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

<%@ 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/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl" TagPrefix="ACS" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%--<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="AllElementEmployeeSearchControl" TagPrefix="Allhims" %>--%>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl" TagPrefix="Pay" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%-- add for 33519 mantis --%>
    <style type="text/css">
        input:disabled + input[type=image], input:read-only + a {
            pointer-events: visible;
            cursor: pointer !important;
        }
    </style>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="AllElementEmployeeSearch" Visible="false" runat="server" />
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <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" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex pTop10">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="DetailPanel" runat="server">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchOrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchOrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="SearchEmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px"
                                                    runat="server" MaxLength="100" AutoPostBack="true" OnTextChanged="SearchEmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SearchEmployeeCodeImageButton"
                                                    runat="server" OnClick="SearchEmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="SearchEmployeeIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchEmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchPayElementLabel" Text="Pay Element" runat="server" meta:resourcekey="HeaderAgeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchPayElementDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                    class="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" TabIndex="3" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                        </div>


                                    </asp:Panel>
                                    <div id="CsrBenefiteMasterGridDiv" runat="server" visible="true">

                                        <div id="Div2" class="himssuHeader1WireBox col-md-12" runat="server" visible="false" style="width: 100%">
                                            <div class="himsBoxContent table-responsive">
                                                <asp:GridView ID="PaySetupGridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" OnRowDataBound="PaySetupGridview_RowDataBound"
                                                    ShowHeader="true" DataKeyNames="Id,PayElementId,PayElementDefaultId"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="OrgName" HeaderText="Organization" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="EmployeeCode" HeaderText="Employee Code" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Employee Name" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="PayElement" HeaderText="Pay Element" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Amount" HeaderText="Amount" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Percentage" HeaderText="Percentage" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="ProcessOrder" HeaderText="Process Order" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="PaySetupTitleLabel" runat="server" Text="Maintainance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>
                                                </asp:LinkButton>
                                                &nbsp;
                                                <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" />
                                                &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click">
                                                      <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <div class="contentHolder">
                                <div class="tableContainer">
                                    <cc1:TabContainer Width="100%" ID="EventScheduleTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                        meta:resourcekey="EventScheduleTabContainerResource1">
                                        <cc1:TabPanel Width="100%" ID="EventScheduleDetails" runat="server" HeaderText="Pay Setup Employee" ActiveTabIndex="1">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a>Pay Setup Employee </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder pTop5">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="OrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                                MaxLength="100" AutoPostBack="True"
                                                                OnTextChanged="EmployeeCodeTextBox_TextChanged"></asp:TextBox><asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="EmployeeCodeImageButton"
                                                                    runat="server" OnClick="EmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" /><asp:HiddenField ID="PaySetupIdHiddenField" runat="server" Value="0" />
                                                            <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="EmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                Enabled="False" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                                MaxLength="100"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="PayElementLabel2" Text="Pay Element" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="PayElementDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                AutoPostBack="True" OnSelectedIndexChanged="PayElementDropDownList_SelectedIndexChanged"
                                                                class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AmountLabel" Text="Amount" runat="server" SkinID="MandatoryLabel"
                                                                meta:resourcekey="HeaderAgeLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="AmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                AutoCompleteType="Disabled" Style="text-align: right;" onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="PercentageLabel" Text="Percentage" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="PercentageTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                Style="text-align: right;" onKeypress="javascript:return MaskDecimal(event,3,2)"
                                                                onBlur="javascript:return fnValidateDecimal(this,3,2)" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3" id="FormulaTextBoxDiv" runat="server" visible="false">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label6" Text="Formula" runat="server" SkinID="MandatoryLabel"
                                                                meta:resourcekey="FormulaLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="FormulaTextBox1" runat="server" SkinID="CustomWidthTextbox"
                                                                AutoCompleteType="Disabled"
                                                                onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" Width="200px"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ProcessOrderLabel" Text="Process Order" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="ProcessOrderTextBox" runat="server" onkeypress="return isNumberKey(event);" Enabled="false"
                                                                Width="150px" SkinID="CustomwidthTextBox"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DefaultAmountLabel" Text="Default Amount" runat="server" SkinID="MandatoryLabel"
                                                                meta:resourcekey="DefaultAmountLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="DefaultAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                AutoCompleteType="Disabled" Style="text-align: right;" onKeypress="javascript:return MaskDecimal(event,22,2)"
                                                                onBlur="javascript:return fnValidateDecimal(this,22,2)" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                </div>
                                                <div class="cBoth"></div>
                                                <div runat="server" id="DependentPayElementDiv" visible="False">
                                                    <div class="himssuHeader5WireBox">
                                                        <div class="himsBoxHeader note note1">
                                                            <div class="leftdiv"></div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText">
                                                                    <asp:Label ID="Label1" runat="server" Text="Depend Pay Element"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent card-body">
                                                            <asp:Panel ID="Panel1" runat="server">
                                                                <div class="contentHolder">
                                                                    <div class="cBoth"></div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="DependPayElementLabel" Text="Depend Pay Element" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="DependPayElementDropDownList1" runat="server" SkinID="CustomWidthDropDownList"
                                                                                AutoPostBack="True" OnSelectedIndexChanged="PayElementDropDownList_SelectedIndexChanged"
                                                                                class="form-control">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="pTop5 pTop5">
                                                                        <asp:Button ID="AddDependpayElement" runat="server" Text="Add" OnClick="AddButton_Click" />
                                                                    </div>
                                                                    <div class="cBoth"></div>
                                                                    <div id="DependGridVIewDiv" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server" visible="False"
                                                                        style="width: 100%; height: 100%">
                                                                        <div class="himsBoxHeader"></div>
                                                                        <div class="himsBoxContent card-body">
                                                                            <asp:GridView ID="DependPaySetupGridview1" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                EmptyDataText="No Records Found !!"
                                                                                OnRowDataBound="DependPaySetupGridview_RowDataBound"
                                                                                DataKeyNames="DependPayElementId"
                                                                                CssClass="table table-striped table-bordered">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="DependPayElement" HeaderText="Depend Pay Element">
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="70%" />
                                                                                    </asp:BoundField>
                                                                                    <asp:TemplateField>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                                        <ItemTemplate>
                                                                                            <asp:ImageButton ID="DeleteImageButton" runat="server" ImageUrl="~/Images/icons/icon_delete.gif"
                                                                                                OnClick="DeleteImageButton_Click" />
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="EventAssign" ClientIDMode="Static" runat="server"
                                            HeaderText="Pay Setup Element">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a>Pay Setup Element</a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="PayElementLabel" Text="Pay Element" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="EmployeeElementDropDownList1" runat="server" SkinID="CustomWidthDropDownList"
                                                                AutoPostBack="True" OnSelectedIndexChanged="EmployeeElementDropDownList1_SelectedIndexChanged"
                                                                class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="PayrollGroupLabel" runat="server" Text="Payroll Group"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="PayrollGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="PayrollGroupDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="ImportBasicButton" runat="server" Text=" Import Basic" OnClick="ImportBasic_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                        <asp:Button ID="SetDefaultAmountButton" runat="server" Text=" Set Default Amount" OnClick="SetDefaultAmountButton_Click" SkinID="0" CssClass="btn-assign btn fas" />
                                                        <asp:Button ID="ClearAmountButton" runat="server" Text=" Clear Amount" OnClick="ClearAmountButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                                    </div>
                                                    <div class="cBoth"></div>
                                                    <div class="spacer">
                                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                    </div>

                                                    <div id="ElementWiseAmountCalculationDiv" runat="server" visible="false">

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label4" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="ForBulkEntryYearDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="ForBulkEntryYearDropDownList_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label3" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList runat="server" ID="ForBulkEntryMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <%--    <div class="cBoth">
                                            </div>
                                        
                                            <div class="cBoth">
                                            </div>--%>
                                                        <div class="pTop5">
                                                            <asp:Button ID="CalculateButton" runat="server" Text="Calculate" OnClick="Calculate_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>

                                                        <div class="cBoth">
                                                        </div>

                                                        <div id="Div4" runat="server" visible="false">
                                                            <div class="himssuHeader7WireBox col-md-12">
                                                                <asp:GridView ID="PayElementEmployeeAmountCalculationGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" DataKeyNames="PaySetupId,PayElementId,EmployeeId"
                                                                    CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="IsSelectCheckBoxAll" onclick="checkAllRows(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Code" HeaderText="Employee Code">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Employee">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="50%" />
                                                                        </asp:BoundField>
                                                                        <%-- <asp:BoundField DataField="WorkingDays" HeaderText="WorkingDays">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="50%" />
                                                                    </asp:BoundField>--%>
                                                                        <asp:TemplateField HeaderText="WorkingDays">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="WorkingDaysTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                    AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                    Text='<%# Bind("WorkingDays")%>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="IsEmployeeOnLeave">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="IsEmployeeOnLeaveTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                    AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                    Text='<%# Bind("IsEmployeeOnLeave")%>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <%--  <asp:TemplateField HeaderText="FinalAmount">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="TotalAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                AutoCompleteType="Disabled" Style="text-align: right;"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>--%>
                                                                        <asp:TemplateField HeaderText="Default Amount">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="DefaultAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                    AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                    Text='<%# Bind("DefaultAmount")%>' onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Amount">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="AmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                    AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                    Text='<%# Bind("Amount")%>' onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Process Order">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="ProcessOrderTextBoxG" runat="server" onkeypress="return isNumberKey(event);"
                                                                                    Width="150px" SkinID="CustomwidthTextBox" Text='<%# Bind("ProcessOrder")%>' Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <%-- add for 33519 mantis --%>
                                                    <div class="pTop5 col-md-12 center">
                                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" SkinID="0" CssClass="btn-examcommon btn fas" OnClick="ExportButton_Click" />
                                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                            <i class="fas fa-arrow-down"></i>Browse</a>
                                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                        <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_Click" Text=" Import" CssClass="btn btn-examcommon fas"
                                                            SkinID="0" />
                                                    </div>
                                                    <asp:Label ID="Label7" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>

                                                    <div id="Div1" class="himssuHeader1WireBox box-body box-solid gridviewfont" runat="server" visible="False" style="width: 100%; height: 100%">
                                                        <div class="pull-right col-md-5 display-flex himsBoxHeader card-head">
                                                            <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control mt-10">
                                                                <asp:ListItem Text="- Select -" Value="-1" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="Default Amount" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Amount" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;
                                                            <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" onBlur="javascript:return fnValidateDecimal(this,16,6)" MaxLength="10"
                                                                SkinID="CustomWidthTextBox" onKeypress="javascript:return MaskDecimal(event,16,6)"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <asp:Button ID="ApplyAllButton" Text="Apply All" runat="Server" SkinID="0" CssClass="btn btn-apply mt-10" OnClick="ApplyAllButton_Click" />
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <asp:GridView ID="PayElementEmployeeGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" OnRowDataBound="PayElementEmployeeGridView_RowDataBound" DataKeyNames="Id,PayElementId,SourceId"
                                                                CssClass="table table-striped table-bordered">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBoxAll" onclick="checkAllRows(this);" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Employee Code">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="EmployeeCodeLabel" runat="server" Text='<%#Eval("EmployeeCode") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="EmployeeCode" HeaderText="Employee Code">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:BoundField>--%>
                                                                    <asp:TemplateField HeaderText="Employee">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="EmployeeNameLabel" runat="server" Text='<%#Eval("EmployeeName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="EmployeeName" HeaderText="Employee">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="30%" />
                                                                    </asp:BoundField>--%>

                                                                    <asp:TemplateField HeaderText="Default Amount">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="DefaultAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                Text='<%# Bind("DefaultAmount")%>' onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Amount">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="AmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                AutoCompleteType="Disabled" Style="text-align: right;"
                                                                                Text='<%# Bind("Amount")%>' onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Process Order">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ProcessOrderTextBoxG" runat="server" onkeypress="return isNumberKey(event);"
                                                                                Width="150px" SkinID="CustomwidthTextBox" Text='<%# Bind("ProcessOrder")%>' Enabled="false"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="EventAllElement" runat="server" HeaderText="All Element">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a>All Element </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder pTop5">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label2" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="AllOrganizationDropDownList" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                                class="form-control" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="AllOrganizationDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AllElementPayrollGroupLabel" runat="server" Text="Payroll Group"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="AllElementPayrollGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="AllElementPayrollGroupDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label5" runat="server" Text="Employee" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="EmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="EmployeeDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <asp:HiddenField ID="AllElementEmployeeIdHiddenField" runat="server" />
                                                    <%--<div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label3" runat="server" Text="Employee Code" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="EmployeeCodeAllElementTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                                MaxLength="100" AutoPostBack="True"
                                                                OnTextChanged="EmployeeCodeAllElementTextBox_TextChanged"></asp:TextBox><asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="EmployeeCodeAllElementImageButton"
                                                                    runat="server" OnClick="EmployeeCodeAllElementImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" /><asp:HiddenField ID="HiddenField1" runat="server" Value="0" />
                                                            
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label4" runat="server" Text="Employee Name"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="EmployeeNameAllElementTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                Enabled="False" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                                MaxLength="100"></asp:TextBox>
                                                        </div>
                                                    </div>--%>


                                                    <div class="cBoth"></div>
                                                    <div runat="server" id="Div3" visible="False">
                                                        <div class="himssuHeader5WireBox">
                                                            <div class="himsBoxHeader note note1">
                                                                <div class="leftdiv"></div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText">
                                                                        <%-- <asp:Label ID="Label10" runat="server" Text="Depend Pay Element"></asp:Label>--%>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <asp:Panel ID="Panel3" runat="server">
                                                                    <div class="contentHolder">
                                                                        <div class="cBoth"></div>
                                                                        <%--  <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="Label11" Text="Depend Pay Element" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="DropDownList3" runat="server" SkinID="CustomWidthDropDownList"
                                                                                    AutoPostBack="True" OnSelectedIndexChanged="PayElementDropDownList_SelectedIndexChanged"
                                                                                    class="form-control">
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>--%>
                                                                        <%-- <div class="pTop5 pTop5">
                                                                            <asp:Button ID="Button1" runat="server" Text="Add" OnClick="AddButton_Click" />
                                                                        </div>--%>
                                                                        <div class="cBoth"></div>
                                                                        <div id="AllPayElementDiv" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server" visible="False"
                                                                            style="width: 100%; height: 100%">
                                                                            <div class="himsBoxHeader"></div>
                                                                            <div class="himsBoxContent">
                                                                                <asp:GridView ID="AllPayElementGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!"
                                                                                    DataKeyNames="PayElementId,IsEmployeeSpecific,SourceId,IsDepend,PaySetupId"
                                                                                    CssClass="table table-striped table-bordered">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
                                                                                            <HeaderTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="IsSelectCheckBoxAll" onclick="checkAllRows(this);" runat="server" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </HeaderTemplate>
                                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                                            <ItemTemplate>
                                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                                    <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                                                    <span></span>
                                                                                                </label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:BoundField DataField="PayElementName" HeaderText="Pay Element">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="40%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:BoundField DataField="PayElementType" HeaderText="Pay Element Type">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle Width="10%" />
                                                                                        </asp:BoundField>
                                                                                        <asp:TemplateField HeaderText="Amount">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="AllElementAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                                    AutoCompleteType="Disabled" Style="text-align: right;" Text='<%# Bind("Amount")%>'
                                                                                                    onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Percentage">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="AllElementPercentageTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                                    AutoCompleteType="Disabled" Style="text-align: right;" Text='<%# Bind("Percentage")%>'
                                                                                                    onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Formula">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="AllElementFormulaTextBox" runat="server" Width="40%" SkinID="CustomWidthTextbox"
                                                                                                    AutoCompleteType="Disabled" Style="text-align: right;" Text='<%# Bind("Formula")%>'
                                                                                                    onmouseleave="showHideTooltip()"
                                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Process Order">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="AllElementProcessOrderTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                                    AutoCompleteType="Disabled" Style="text-align: right;" Text='<%# Bind("ProcessOrder")%>'
                                                                                                    onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Default Amount">
                                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="AllElementDefaultAmountTextBox" runat="server" Width="150px" SkinID="CustomWidthTextbox"
                                                                                                    AutoCompleteType="Disabled" Style="text-align: right;" Text='<%# Bind("DefaultAmount")%>'
                                                                                                    onKeypress="javascript:return MaskDecimal(event,16,6)"
                                                                                                    onBlur="javascript:return fnValidateDecimal(this,16,6)" onmouseleave="showHideTooltip()"
                                                                                                    onmouseenter="showHideTooltip()"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </asp:Panel>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                    </cc1:TabContainer>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/paysetup-employee-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/paysetup-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

    <script type="text/javascript">

        function checkAllRows(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i] && list[i].disabled == false) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }

    </script>
</asp:Content>
