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


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl"
    TagPrefix="Pay" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <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">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>

                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <cc1:TabContainer ID="PayProcessEmpTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                ActiveTabIndex="0">
                                <cc1:TabPanel ID="PayProcess" runat="server" HeaderText="Pay Process">
                                    <HeaderTemplate>
                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                            <li class="fancyTab"><a><i class="fas fa-images"></i>&nbsp;Pay Process Employee </a></li>
                                        </ul>
                                    </HeaderTemplate>
                                    <ContentTemplate>

                                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                            <div class="himsBoxContent">
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="false">
                                                            </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" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="false">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="CodeSearchLabel" runat="server" Text="Code" meta:resourcekey="CodeSearchLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="CodeSearchTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()" meta:resourcekey="CodeSearchTextBoxResource1"
                                                                MaxLength="20"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="NameSearchLabel" runat="server" Text="Name" meta:resourcekey="NameSearchLabelResource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="NameSearchTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="NameSearchTextBoxResource1"
                                                                MaxLength="100"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                                            SkinID="0" CssClass="btn-search btn fas" />
                                                        <asp:Button ID="PayProcessButton" runat="server" Text="Pay Process" OnClick="PayProcessButton_Click"
                                                            meta:resourcekey="PayProcessButtonResource1" SkinID="0" CssClass="btn-assign btn fas" />
                                                        <asp:Button ID="DeletePayProcessButton" runat="server" Text="&#xf2ed; Delete" OnClick="DeletePayProcessButton_Click"
                                                            meta:resourcekey="DeleteButtonResource1" SkinID="0" CssClass="btn-delete btn fas" />
                                                        <asp:HiddenField ID="ConfirmationHiddenField" runat="server" />
                                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" OnClick="ClearButton_Click"
                                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                    <br />
                                                    <div id="PayProcessEmployeeDiv" runat="server" visible="false">
                                                        <div class="himssuHeader7WireBox col-md-12">
                                                            <div class="himsBoxContent">
                                                                <asp:GridView runat="server" ID="PayProcessEmployeeGridView" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="EmployeeId" OnRowDataBound="PayProcessEmployeeGridView_RowDataBound"
                                                                    ShowHeader="True" meta:resourcekey="PayProcessEmployeeGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                                            ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                        Visible="true" OnCheckedChanged="HeaderSelectCheckBox_checked" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                    <asp:HiddenField ID="StatusLabelHiddenField" runat="server" Value='<%# Bind("StatusName") %>'></asp:HiddenField>
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="OrgName" HeaderText="Organization" ItemStyle-Width="30%" />
                                                                        <asp:BoundField DataField="EmployeeCode" HeaderText="Code" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Name" ItemStyle-Width="40%" />
                                                                        <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" SortExpression="RowID" HeaderStyle-HorizontalAlign="Center"
                                                                            ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Bind("StatusName") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <%--<asp:BoundField DataField="StatusName" HeaderText="Status" ItemStyle-Width="10%" />--%>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                    </ContentTemplate>
                                </cc1:TabPanel>
                                <cc1:TabPanel ID="PayProcessRemarkTabPanel" runat="server" HeaderText="Assign Optional Fee Head">
                                    <HeaderTemplate>
                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                            <li class="fancyTab"><a><i class="fas fa-images"></i>&nbsp; Pay Process Employee Remarks</a></li>
                                        </ul>
                                    </HeaderTemplate>
                                    <ContentTemplate>


                                        <asp:Panel ID="PayParocessRemarks" runat="Server">

                                            <div class="himsBoxContent">
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForRemarkYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForRemarkYearDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="true" OnSelectedIndexChanged="ForRemarkYearDropDownList_OnSelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ForRemarkmonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="ForRemarkMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                AutoPostBack="false">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <%--start: add for mantis : 0041906 --%>
                                                    <div runat="server" id="BankNameDiv" visible="true">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BankNameLabel" runat="server" Text="Bank Name"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <acc:AutoCompleteControl ID="BankNameTextBox" runat="server" MinimumPrefixLength="2"
                                                                    MaxLength="50" ContextKey="sFinanceCommon.Bank" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox"
                                                                    CssClass="form-control" ValidateOnTextChanged="false" />
                                                                <asp:HiddenField ID="BankIdHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <%--end: add for mantis : 0041906 --%>
                                                    <div class="cBoth">
                                                    </div>
                                                    <br />
                                                    <div class="alignCenter pTop5">
                                                        <asp:Button ID="RemarkSearchButton" runat="server" Text="&#xf002; Search" OnClick="RemarkSearchButton_Click"
                                                            SkinID="0" CssClass="btn-search btn fas" />
                                                        <asp:Button ID="PayProcessRemarkButton" runat="server" Text="Save" Visible="false"
                                                            meta:resourcekey="PayProcessButtonResource1" SkinID="0" CssClass="btn-assign btn fas" OnClick="PayProcessRemarkButton_Click" />
                                                        <asp:Button ID="ExportToExcelButton" Text="&#xf093; Export To Excel" CssClass="btn btn-examcommon fas" runat="Server" SkinID="0"
                                                            OnClick="ExportToExcelButton_OnClick" Visible="false" />
                                                        <asp:Button ID="ClearRemarkButton" runat="server" Text="&#xf0e2; Reset"
                                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" OnClick="ClearRemarkButton_Click" />
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                    <%--MantisId : #Start 0032042--%>
                                                    <div class="himsBoxHeader card-head inner col-md-12" id="GridViewPagerDiv" runat="server" visible="false">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText fRight display-flex">
                                                                <asp:DropDownList ID="ApplyDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList" Width="100px">
                                                                </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                <asp:TextBox ID="ApplyAllTextBox" runat="server" SkinID="CustomWidthTextBox" Width="120px" CssClass="pTop10"></asp:TextBox>
                                                                &nbsp;&nbsp;&nbsp;     
                                                                    <asp:Button ID="ApplyAllButton" runat="server" SkinID="0"
                                                                        Text="Apply All"
                                                                        CssClass="btn btn-apply" OnClick="ApplyAllButton_Click" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <%--MantisId : #End 0032042--%>
                                                    <div id="PayProcessEmployeeRemarkDiv" runat="server" visible="false">
                                                        <div class="himssuHeader7WireBox col-md-12">
                                                            <div class="himsBoxContent">
                                                                <asp:GridView runat="server" ID="PayProcessEmployeeRemarkGridView" Width="100%" AutoGenerateColumns="False"
                                                                    EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="AutoId,EmployeeId"
                                                                    ShowHeader="True" meta:resourcekey="PayProcessEmployeeRemarkGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                            ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectRemarkCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                        Visible="true" OnCheckedChanged="HeaderSelectRemarkCheckBox_checked" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckRemarkBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="OrgName" HeaderText="Organization" ItemStyle-Width="18%" />
                                                                        <asp:BoundField DataField="EmployeeCode" HeaderText="Code" ItemStyle-Width="7%" />
                                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Name" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="StatusName" HeaderText="Status" ItemStyle-Width="8%" Visible="false" />
                                                                        <asp:BoundField DataField="BankName" HeaderText="Bank Name" ItemStyle-Width="12%" />
                                                                        <asp:TemplateField HeaderText="Remark" ItemStyle-Width="15%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RemarkTextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%" Text='<%#Eval("Remark") %>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Payment Mode">
                                                                            <ItemTemplate>
                                                                                <asp:DropDownList runat="server" ID="PaymantModeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    AutoPostBack="true" OnSelectedIndexChanged="PaymantModeDropDownList_SelectedIndexChanged">
                                                                                    <asp:ListItem Text="-Select-" Value="0" />
                                                                                    <asp:ListItem Text="Cash" Value="1" />
                                                                                    <asp:ListItem Text="Cheque" Value="2" />
                                                                                    <asp:ListItem Text="Bank" Value="3" />
                                                                                </asp:DropDownList>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Reference No">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="ReferenceNoTextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                                    MaxLength="100" Text='<%# Bind("ChequeNo") %>' ClientIDMode="Static"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Pay Date">
                                                                            <ItemTemplate>
                                                                                <Date:DatePickerControl DisplayDatePicker="false" Width="100%" ID="PayDatePickerControl"
                                                                                    Text='<%# DataBinder.Eval(Container.DataItem,"PayDate").ToString()=="01/01/1800 00:00:00"? "":Eval("PayDate") %>'
                                                                                    Visible="True" runat="Server"></Date:DatePickerControl>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" Wrap="True" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </cc1:TabPanel>
                                <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Assign Optional Fee Head">
                                    <HeaderTemplate>
                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                            <li class="fancyTab"><a><i class="fas fa-images"></i>&nbsp; Pay Process Employee Detail</a></li>
                                        </ul>
                                    </HeaderTemplate>
                                    <ContentTemplate>

                                        <div class="himsBoxContent">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label1" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ForDetailYearDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="true" OnSelectedIndexChanged="ForDetailYearDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label2" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ForDetailMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        AutoPostBack="true" OnSelectedIndexChanged="ForDetailMonthDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label3" runat="server" Text="Payroll Group" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ForDetailPayRollDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Enabled="false"
                                                        AutoPostBack="true" OnSelectedIndexChanged="ForDetailPayRollDropDownList_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <asp:Panel ID="Panel1" runat="server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EmployeeLabel" runat="server" Text="Employee" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="EmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="EmployeeDropDownList_SelectedIndexChanged" Enabled="false">
                                                        </asp:DropDownList>
                                                        <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="EmployeeCodeHiddenField" runat="server" />
                                                        <asp:HiddenField ID="PayrollYearHiddenField" runat="server" />
                                                    </div>
                                                </div>

                                            </asp:Panel>
                                            <div class="cBoth">
                                            </div>
                                            <div class="col-md-12 pTop5" id="LeaveDetailDiv" runat="server" visible="true">
                                                <div class="himsBoxContent">
                                                    <asp:GridView runat="server" ID="LeaveDetailGridView" Width="100%" AutoGenerateColumns="false"
                                                        EmptyDataText="No records available for the seacrh criteria!" ShowHeader="True"
                                                        meta:resourcekey="LeaveDetailGridViewResource2" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Grade" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="EmployeeGradeLabel" runat="server" Text='<%#Eval("EmployeeGrade") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Total Days" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="TotalDaysLabel" runat="server" Text='<%#Eval("TotalDays") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Working Days" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="WorkingDaysLabel" runat="server" Text='<%#Eval("WorkingDays") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Payroll Days" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="PayrollDaysLabel" runat="server" Text='<%#Eval("PayrollDays") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Present Days" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="PresentCountLabel" runat="server" Text='<%#Eval("PresentDays") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Absent Days" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="AbsentCountLabel" runat="server" Text='<%#Eval("LWP") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Paid Leave" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="PaidLeaveLabel" runat="server" Text='<%#Eval("PaidLeave") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="UnPaid Leave (LWP)" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="UnPaidLeaveLabel" runat="server" Text='<%#Eval("UnPaidLeave") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="ApplyButton" Text="Apply" runat="Server" OnClick="ApplyButton_Click"
                                                    SkinID="0" CssClass="btn btn-apply" />
                                                <asp:Button ID="ApplyByOrderButton" Text="Apply" runat="Server" OnClick="ApplyByOrderButton_Click"
                                                    SkinID="0" CssClass="btn btn-apply" /><%--add for mantis: 40774--%>
                                                <asp:Button ID="EmployeeDetailResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="EmployeeDetailResetButton_Click"
                                                    meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                                <asp:Button ID="EmployeeDetailPayProcessButton" runat="server" Text="Pay Process" OnClick="EmployeeDetailPayProcessButton_Click"
                                                    meta:resourcekey="EmployeeDetailPayProcessButtonResource1" SkinID="0" CssClass="btn-assign btn fas" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div id="FinalProcessDiv" class="pTop5" runat="server" visible="false">
                                                <div class="himssuHeader7WireBox col-md-12">
                                                    <div class="himsBoxContent pTop5">
                                                        <asp:GridView runat="server" ID="FinalProcessGridView" Width="100%" AutoGenerateColumns="true"
                                                            EmptyDataText="No records available for the seacrh criteria!" ShowHeader="True"
                                                            meta:resourcekey="PayProcessEmployeeDetailGridViewResource2" CssClass="table table-striped table-bordered table-hover">
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>

                                            <div id="EarningPayElementDetailDiv" runat="server" visible="false">
                                                <div class="himssuHeader7WireBox col-md-12">
                                                    <div class="himsBoxContent">
                                                        <asp:GridView runat="server" ID="EarningPayElementGridView" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" ShowHeader="True" OnRowDataBound="EarningPayElementGridView_RowDataBound"
                                                            meta:resourcekey="PayProcessEmployeeDetailGridViewResource1" DataKeyNames="IsDepend,IsEmployeeSpecific,PayElementId,PaySetupId,Amount,SourceId,
                                                            SourceTypeId,ProcessOrder,PayElementDefaultId,IsLwp,PayrollId"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Earning Pay Element" ItemStyle-Width="30%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="PayElementLabel" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("PayElement") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:HiddenField ID="PayElementId" runat="server" Value='<%#Eval("PayElementId") %>' />
                                                                        <asp:HiddenField ID="PaySetupId" runat="server" Value='<%#Eval("PaySetupId") %>' />
                                                                        <asp:TextBox ID="AmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("Amount") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Percentage" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="PercentageTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("Percentage") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Formula" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="FormulaTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("Formula") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Process Order" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ProcessOrderTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("ProcessOrder") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Default Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="DefaultAmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("DefaultAmount") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Process Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ProcessAmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("ProcessAmount") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="DeductionPayElementDetailDiv" runat="server" visible="false">
                                                <div class="himssuHeader7WireBox col-md-12">
                                                    <div class="himsBoxContent">
                                                        <asp:GridView runat="server" ID="DeductionPayElementDetailGridView" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" ShowHeader="True" OnRowDataBound="DeductionPayElementDetailGridView_RowDataBound"
                                                            meta:resourcekey="PayProcessEmployeeDetailGridViewResource2" DataKeyNames="IsDepend,IsEmployeeSpecific,PayElementId,PaySetupId,ProcessOrder,SourceId,
                                                            SourceTypeId,Amount,PayElementDefaultId,IsLwp"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Deduction Pay Element" ItemStyle-Width="30%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="PayElementLabel" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("PayElement") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:HiddenField ID="PayElementId" runat="server" Value='<%#Eval("PayElementId") %>' />
                                                                        <asp:HiddenField ID="PaySetupId" runat="server" Value='<%#Eval("PaySetupId") %>' />
                                                                        <asp:TextBox ID="AmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("Amount") %>' OnChange="AmountCalculate();"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Percentage" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="PercentageTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Text='<%#Eval("Percentage") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Process Order" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ProcessOrderTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("ProcessOrder") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Default Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="DefaultAmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("DefaultAmount") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Process Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ProcessAmountTextBox" SkinID="CustomWidthTextBox" Width="190px" runat="server" Enabled="false" Text='<%#Eval("ProcessAmount") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div id="DetailDiv" runat="server" visible="false">
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="PrintPayslipButton" runat="server" Text="&#xf15b; Print Payslip" OnClick="PrintPayslipButton_Click"
                                                        meta:resourcekey="ButtonResource1" SkinID="0" CssClass="btn-print btn fas" />
                                                    <asp:Button ID="SendMailButton" runat="server" Text="Send Mail" OnClick="SendMailButton_Click"
                                                        meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-assign btn fas" />
                                                    <asp:Button ID="UploadPaySlipButton" runat="server" Text="&#xf093; Upload PaySlip" OnClick="UploadPaySlipButton_Click"
                                                        meta:resourcekey="UploadPaySlipButtonResource1" SkinID="0" CssClass="btn-upload btn fas" />
                                                    <asp:Button ID="FormulaButton" Text="Calculation Formula" runat="Server" OnClick="FormulaButton_Click" Visible="false"
                                                        SkinID="0" CssClass="btn btn-apply" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="col-md-12 pTop5" id="FormulaNoteDiv" runat="server" visible="false">
                                                <div class="alert alert-warning col-md-12">
                                                    <asp:Label ID="Note1" runat="server" Text=""></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </cc1:TabPanel>
                            </cc1:TabContainer>
                        </div>
                    </div>
                    <div class="spacer">
                        <img src="../../../Images/spacer.gif" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main='<%=ResolveUrl("~/JavaScript/rjs/payprocess-preview")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/paysetup-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

</asp:Content>
