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

<%@ 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" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="162"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Pay:PayrollControl ID="PayrollUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" 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">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <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="control LabelWidth">
                                                <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="control LabelWidth">
                                                <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="alignCenter col-md-12 pTop15 pb5">
                                            <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search"
                                                OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset"
                                                OnClick="ClearSearchControls_Click" meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                        </div>
                                <div class="cBoth">
                                </div>
                            </asp:Panel>
                            <div id="Div1" class="himssuHeader7WireBox box-body box-solid gridviewfont" runat="server" style="width: 100%; margin-right: 5px;">
                                <div id="NewsDetailDiv" visible="false" runat="server">
                                    <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="fRight mt-27 pagination display-flex">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <div id="Div5" runat="server" visible="false">
                                                    <asp:GridView runat="server" ID="EmployeePayrollGridView" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="EmployeePayrollGridView_RowDataBound"
                                                        ShowHeader="True" meta:resourcekey="EmployeePayrollGridViewResource1"
                                                        CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="20%" />
                                                            <asp:BoundField DataField="EmployeeType" HeaderText="Employee Type" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="OrganizationName" HeaderText="Organization" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="OrganizationDepartmentName" HeaderText="Department" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="PayrollGroupName" HeaderText="Payroll Group" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="WorkingDays" HeaderText="Working Days" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="PresentDays" HeaderText="Present Days" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="LWP" HeaderText="Absent Days" ItemStyle-Width="10%" />
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                </div>
                            </div>
                        </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/payroll-employee-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/payroll-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
