<%@ page title="Employee Search" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_EmployeeProfile, App_Web_lqpu5xhr" 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/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ 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>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <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="outerBox11 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()" 
                                                            onselectedindexchanged="DepartmentDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox11 pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="GroupSearchLabel" runat="server" Text="Group"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="GroupDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                            OnSelectedIndexChanged="GroupDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                              
                                                <div class="alignCenter pTop5 col-md-12 center">
                                                    <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                                        SkinID="0" class="btn-search btn fas" Visible="false" />
                                                    <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Clear" OnClick="ClearSearchControls_Click"
                                                        SkinID="0" Visible="false" class="btn-reset btn fas" />
                                                </div>
                                                
                                                <div id="EmployeeProfileGridViewDiv" runat="server">
                                                    
                                                    <div class="himssuHeader7WireBox  col-md-12">
                                                        <div class="himsBoxHeader card-head inner" id="EmployeeProfileGridViewPagerDiv" runat="server" visible="true">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <%--<div class="gridHeaderText">
                                                                    <header>
                                                                    <asp:Label ID="GridViewLabel" Text="Employee Profile" runat="server" Font-Bold="True" />
                                                                    </header>
                                                                </div>--%>
                                                                <div class="Div1 fRight">
                                                                    <uc1:GridViewPager ID="EmployeeProfileGridViewPager" ParentGridView="EmployeeProfileGridView"
                                                                        runat="server" OnFirstRecordClick="EmployeeProfileGridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="EmployeeProfileGridViewPager_LastRecordClick" OnNextRecordClick="EmployeeProfileGridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="EmployeeProfileGridViewPager_PrevRecordClick" />
                                                                </div>
                                                                
                                                                  
                                                            </div>
                                                        </div>
                                                      
                                                        <div class="himsBoxContent pTop15 table-responsive">
                                                             
                                                            <asp:GridView runat="server" ID="EmployeeProfileGridView" AutoGenerateColumns="False" CssClass="table table-striped table-bordered table-hover"
                                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="EmployeeProfileGridView_RowDataBound"
                                                                DataKeyNames="EmployeeId" AllowPaging="True" PageSize="10" ShowHeader="True">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Sr No">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SerialLabel" runat="server" Width="20px" Text='<%# Eval("SrNo") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="2%" Font-Bold="true" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource2">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="NameLinkButton" runat="server" Text='<%# Eval("Name") %>' CssClass="boxEllips"
                                                                                ToolTip='<%# Bind("Name") %>' Width="140px" OnClick="NameLinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="14%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="GroupName" HeaderStyle-HorizontalAlign="Left" HeaderText="Group" ItemStyle-Width="10%" />
                                                                    <asp:TemplateField HeaderText="Department" meta:resourcekey="TemplateFieldResource6">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepartmentLabel" runat="server" Text='<%# Eval("DepartmentName") %>'
                                                                                CssClass="boxEllips" ToolTip='<%# Bind("DepartmentName") %>' Width="150px"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="DateOfJoining" HeaderText="Join Date" ItemStyle-Width="10%"
                                                                        DataFormatString="{0:dd/MM/yyyy}" />
                                                                    <asp:BoundField DataField="EmailId" HeaderText="Email Id" ItemStyle-Width="10%" />
                                                                    <asp:TemplateField HeaderText="Photo" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Image ID="EmployeePhoto" Height="80px" Width="80px" runat="server" ImageUrl='<%# Eval("EmployeePhoto")%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                               
                            </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>