<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Biometric_EmployeeConfiguration, App_Web_seu23nxx" title="Employee Configuration" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage">
                <div>
                    <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="166"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div class="whiteboxpaddingleft row">
                        <div class="himssuHeader2WireBox 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">
                                            <asp:Button ID="AddNewButtonID" runat="server" SkinID="0"
                                                CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddNewButtonID_Click" />
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <div class="himsBoxContent card-body padd-0">
                                <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="SearchConfigurationLabel" Text="Configuration" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SearchConfigurationDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control" runat="Server">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeCodeLabel" Text="Employee Code" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EmployeeCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="Server" MaxLength="50"></asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="alignCenter pTop5 col-md-12 pb5">
                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn btn-search fas" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf021; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn btn-reset fas" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </asp:Panel>

                                        <div id="Div1" class="himssuHeader1WireBox col-md-12 padd-0" runat="server">
                                            <div id="ReasonMasterDetailDiv" visible="true" runat="server">

                                                <div id="PatientRelationDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="fRight mt-27">
                                                            <uc1:GridViewPager ID="ShiftMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="ShiftMasterGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="ShiftMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="ShiftMasterGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="ShiftMasterGridView_GridViewPager_PrevRecordClick"
                                                                ParentGridView="ShiftMasterGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" visible="true" class="col-md-12">
                                                                <asp:GridView ID="EmployeeConfigurationGridView" runat="server" Width="100%" AutoGenerateColumns="False"                                                                     
                                                                    AllowPaging="false" PageSize="5" SkinID="" ShowHeader="True" PagerSettings-Visible="false" OnRowDataBound="EmployeeConfigurationGridView_RowDataBound"
                                                                    CssClass="table table-striped table-bordered" DataKeyNames="EmployeeId,EmployeeConfigurationMasterId" EmptyDataText="No Records Found!!!">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="EmployeeCode" HeaderText="Employee Code">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="23%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Employee Name">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="23%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="EmployeeConfiguration" HeaderText="Configuration">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="23%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="Value" HeaderText="Value">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="23%" />
                                                                        </asp:BoundField>
                                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click" OnClientClick="return confirm('Are you sure you want to delete this record?');"
                                                                                    ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" Visible="false" />
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" Width="8%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>

                        <div class="himssuHeader1WireBox  card card-box" id="DetailDiv" runat="server">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-cog"></i>
                                            <asp:Label ID="ShiftMasterDetailLabel" runat="server" Text="Employee Configuration"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight pagination mt-27">
                                        <table>
                                            <tr>
                                                <td class="formLabel">
                                                    <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="false">
                                                        <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                            OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                        </asp:LinkButton>
                                                        <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                            OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                        </asp:LinkButton>
                                                        &nbsp;&nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                        <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                        <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                        <asp:Label ID="TotalRecord" runat="server" />
                                                        &nbsp;&nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButtom_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                                        <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                            runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                            OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                        </asp:LinkButton>
                                                    </div>
                                                </td>
                                                <td>&nbsp;&nbsp;<asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                    class="btn btn-back fas" Text="&#xf30a; Back" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:HiddenField ID="ValidationTypeHiddenField" runat="server" />
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ConfigurationLabel" Text="Configuration" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="">
                                            <asp:DropDownList ID="ConfigurationDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthDropDownList" CssClass="form-control" runat="Server" AutoPostBack="true" OnSelectedIndexChanged="ConfigurationDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                        </div>
                                        <div class="">
                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" Text="Department" runat="server"></asp:Label>
                                        </div>
                                        <div class="">
                                            <asp:DropDownList ID="DepartmentDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="Div2" class="himssuHeader6WireBox col-md-12" runat="server"
                                        visible="true">
                                        <div class="himsBoxHeader" id="Div8" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText ">
                                                    <asp:Label ID="SourceInitGridViewLabel" Text="&nbsp;" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent table-reponsive">
                                            <div id="Div10" class="himsBoxContentMsg" runat="server" visible="False">
                                            </div>
                                            <asp:GridView ID="SourceInitGridView" runat="server" AutoGenerateColumns="False"
                                                Width="100%" CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!"
                                                DataKeyNames="SourceId,SourceTypeId,SourceType" OnRowDataBound="SourceInitGridView_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="HeaderIsSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </HeaderTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <ItemTemplate>
                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                <asp:CheckBox ID="IsSelectCheckBox" runat="server" />
                                                                <span></span>
                                                            </label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="Source">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle Width="60%" />
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderText="Value" ItemStyle-Width="30%">
                                                        <ItemTemplate>
                                                            <asp:TextBox runat="server" ID="ConfigurationValueTextBox" SkinID="CustomWidthTextBox" Width="100%"></asp:TextBox>
                                                            <asp:DropDownList ID="ConfigurationValueDropDownList" runat="server" CssClass="form-control" Visible="false">
                                                                <asp:ListItem Text="True" Value="True"></asp:ListItem>
                                                                <asp:ListItem Text="False" Value="False"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="AssigneeToId" Visible="false">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle Width="90%" />
                                                    </asp:BoundField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--  <script data-main="../../../JavaScript/rjs/encrypt/shift-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/shift-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
