<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_BulkEmployeeDataUpdate, App_Web_jam230py" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteTextBoxForGridView.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--<link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <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">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader1WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-database"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Bulk Data Update"></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>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchCategoryLabel" Text="Category" SkinID="MandatoryLabel" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchCategoryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="SearchCategoryDropDownList_SelectedIndexChanged"
                                                        onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchSubCategoryLabel" Text="Sub Category" SkinID="MandatoryLabel"
                                                        runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchSubCategoryDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchDeaprtmentLabel" Text="Department"
                                                        runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchDepartmentDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchGroupLabel" Text="Group" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchGroupDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchtypeLabel" Text="Type" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchGradeLabel" Text="Grade" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchGradeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StatusLabel" Text="Status" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="StatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop15 col-md-3">
                                                <asp:CheckBox ID="IsBlankCheckBox" runat="server" class="pLeft5" Text="Empty Data" />
                                                <%-- <asp:Label ID="IsEmptyLabel" runat="server" Text="Empty Data"></asp:Label>--%>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                                    <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                    <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                    SkinID="0" CssClass="btn-search btn fas" />
                                                <asp:Button ID="ResetButton" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" runat="Server" OnClick="ResetButton_Click" />
                                                <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" CssClass="btn btn-examcommon fas" OnClick="ExportButton_Click" SkinID="0" />
                                                <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel" CssClass="btn btn-examcommon fas"
                                                    meta:resourcekey="ImportButtonResource1" SkinID="0" OnClick="ImportFromExcelButton_Click" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="pTop5 col-md-12" id="CustomTagDiv" runat="server" visible="false">
                                                <div class="alert alert-info">
                                                    <i class="material-icons">info</i>
                                                    <asp:Label ID="CustomTagLabel" runat="server" Style="font-size: initial"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <br />
                                            <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server">
                                                <div id="GridViewPagerDiv" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText fLeft">
                                                            <asp:Label ID="GridViewLabel" Text="" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="fRight mt-27 display-flex">
                                                        <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100"
                                                            SkinID="CustomWidthTextBox"></asp:TextBox>
                                                        <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                            Text="Apply All" CssClass="btn btn-apply" SkinID="0" />
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div id="Div2" runat="server" class="table-responsive">
                                                        <asp:GridView runat="server" ID="EmployeeDataUpdateGridView" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No records Found!!!" DataKeyNames="Id,EmployeeId,SubCategory,Code" AllowPaging="False"
                                                            ShowHeader="True" OnRowDataBound="EmployeeDataUpdateGridView_RowDataBound"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <PagerSettings Visible="False" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="ID No" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).Code %>' CssClass="boxEllips"
                                                                            ToolTip='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).Code %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).EmployeeName %> ' CssClass="boxEllips"
                                                                            ToolTip='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).EmployeeName %>' Width="140px"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Group" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="GroupLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).EmployeeGroup %>' CssClass="boxEllips"
                                                                            ToolTip='<%#((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).EmployeeGroup%>' Width="140px"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Employee Department " ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DeptNameLabel" runat="server" Text='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).DepartmentName %>' CssClass="boxEllips"
                                                                            ToolTip='<%# ((Sapphire.Ohu.BusinessEntity.Business.Hrm.EmployeeBE.EmployeeData)Container.DataItem).DepartmentName %>' Width="140px"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Employee Data" ItemStyle-Width="45%" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="SubCategoryDropDownList" runat="server" Visible="false" SkinID="CustomWidthDropDownList"
                                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                        <asp:TextBox ID="SubCategoryTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="false"
                                                                            Width="160px">
                                                                        </asp:TextBox>
                                                                        <asp:Panel ID="CheckBoxPanel" runat="server" Visible="false">
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SubCategoryCheckBox" runat="server" Visible="false" />
                                                                                <span></span>
                                                                            </label>
                                                                        </asp:Panel>
                                                                        <DPC:DatePickerControl ID="SubCategoryDatePicker" runat="server" DisplayDatePicker="true"
                                                                            Visible="false" />
                                                                        <acc:AutoCompleteControl ID="SubCategoryAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                                            MaxLength="200" AutoPostBack="true" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox"
                                                                            Width="154px" ValidateOnTextChanged="false" Visible="false" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>

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