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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="164"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <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>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <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" 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="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SurnameLabel2" runat="server" Text="Surname"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SurnameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="NameSearchTextBoxResource1"
                                                MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeTypeSearchLabel" runat="server" Text="Employee Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="EmployeeTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusSearchLabel" runat="server" Text="Status"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentSearchLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="alignCenter col-md-12 pTop5">
                                        <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click"
                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                        <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ClearSearchControls_Click"
                                            meta:resourcekey="ClearButtonResource1" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" SkinID="0" OnClick="ExportButton_Click"
                                            meta:resourcekey="ExportButtonResource1" />
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div id="HREmployeeMasterGridDiv" runat="server">
                                        <div class="spacer">
                                            <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                        </div>
                                        <div class="himssuHeader7WireBox col-md-12">
                                            <div class="himsBoxHeader" id="HREmployeeMasterGridViewPagerDiv" runat="server" visible="False">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="gridHeaderText">
                                                        <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1"
                                                            ForeColor="White" />
                                                    </div>
                                                    <div class="width-100">
                                                        <div>
                                                            <div class="col-md-12 padd-0">
                                                                <div class="col-md-2">
                                                                    <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server"
                                                                        AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                        <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                        <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                        <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-md-10 pTop15">
                                                                        <uc1:GridViewPager ID="HREmployeeMasterGridViewPager" ParentGridView="HREmployeeMasterGridView"
                                                                            runat="server" OnFirstRecordClick="HREmployeeMasterGridViewPager_FirstRecordClick"
                                                                            OnLastRecordClick="HREmployeeMasterGridViewPager_LastRecordClick" OnNextRecordClick="HREmployeeMasterGridViewPager_NextRecordClick"
                                                                            OnPrevRecordClick="HREmployeeMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="HREmployeeMasterGridViewPager_TextBoxValueChange" />

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <div id="HREmployeeMasterGridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                </div>
                                                <div id="Div2" runat="server" class="table-responsive pTop10">
                                                    <asp:GridView ID="HREmployeeMasterGridView" runat="server" AutoGenerateColumns="true" EmptyDataText="No records found"
                                                        AllowPaging="true" PageSize="10" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                        CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
