<%@ page title="Employee Manage History" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_EmployeeHistory, App_Web_k3pxmpml" 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">
                <!-- ContentPlaceHolder Box Starts -->

                <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="167"
                                                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="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="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="Label2" Text="Filter Employee" Style="font-weight: 700; color: #38445a !important;" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="FilterDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True">
                                                <asp:ListItem Value="1" Selected="True">All Employee</asp:ListItem>
                                                <asp:ListItem Value="2">Pending Employee</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="alignCenter pTop5 col-md-12">
                                        <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" />
                                    </div>

                                    <div id="HREmployeeMasterGridDiv" runat="server" class="pTop5">

                                        <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="">
                                                        <uc1:GridViewPager ID="HREmployeeMasterGridViewPager" ParentGridView="HREmployeeMasterGridView"
                                                            runat="server" OnFirstRecordClick="HREmployeeMasterGridViewPager_FirstRecordClick"
                                                            OnLastRecordClick="HREmployeeMasterGridViewPager_LastRecordClick" OnNextRecordClick="HREmployeeMasterGridViewPager_NextRecordClick"
                                                            OnPrevRecordClick="HREmployeeMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="HREmployeeMasterGridViewPager_TextBoxValueChange" />
                                                    </div>
                                                    <br />
                                                    <div class="cBoth"></div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop10">

                                                <div id="HREmployeeMasterGridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                    visible="False">
                                                </div>
                                                <%--     <div id="DivData" class="Container" style="vertical-align: top; height: 100px; width: 99.6%;">--%>
                                                <div id="Div4" runat="server" class="table-responsive">
                                                    <asp:GridView runat="server" ID="HREmployeeMasterGridView" Width="100%" AutoGenerateColumns="False"
                                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="HREmployeeMasterGridView_RowDataBound"
                                                        DataKeyNames="EmployeeId,Code,Name,OrganizationDepartmentId,OrganizationDepartment,EmployeeTypeId,EmployeeType,StatusId,Status"
                                                        AllowPaging="True" PageSize="10" OnSelectedIndexChanged="HREmployeeMasterGridView_SelectedIndexChanged"
                                                        ShowHeader="True" meta:resourcekey="HREmployeeMasterGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="EmployeeHeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="EmployeeHeaderCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="EmployeeCheckBox" runat="server" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:CommandField ShowSelectButton="false" meta:resourcekey="CommandFieldResource1"
                                                                Visible="false">
                                                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                            </asp:CommandField>
                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                Visible="false">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="EmployeeAllLinkButton" runat="server" CommandName="EmployeeAll"
                                                                        OnClick="EmployeeAllLinkButton_Click" Visible="false" Text="All" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                Visible="false">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="ProfileLinkButton" runat="server" CommandName="Profle" OnClick="ProfileLinkButton_Click"
                                                                        Visible="false" Text="Profile" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="10%" />
                                                            <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="25%" />
                                                            <asp:BoundField DataField="EmployeeType" HeaderText="Employee Type" ItemStyle-Width="15%" />
                                                            <asp:BoundField DataField="OrganizationDepartment" HeaderText="Organization Department"
                                                                ItemStyle-Width="20%" />
                                                            <asp:BoundField DataField="Status" HeaderText="Status" ItemStyle-Width="5%" />
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
