<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Biometric_BiometricConfiguration, App_Web_eiesolok" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">

    <asp:UpdatePanel ID="EmailConfigurationUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage">

                <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="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox card card-box">
                         
                        <div class="himssuHeader2WireBox card card-box" id="SearchDiv" runat="server">
                            <div class="himsBoxHeader card-head">
                                <asp:Panel ID="Panel2" runat="server">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">

                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-search"></i>
                                                <asp:Label ID="Label1" 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="Panel3" runat="Server">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label5" runat="server" Text="Organization :"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ddlOrganizationSearch" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                        onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </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="false" runat="server">
                                                <div id="PatientRelationDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="fRight mt-27">
                                                            <uc1:GridViewPager ID="gdvBioMatricConfig_GridViewPager" runat="server" OnFirstRecordClick="gdvBioMatricConfig_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="gdvBioMatricConfig_GridViewPager_LastRecordClick" OnNextRecordClick="gdvBioMatricConfig_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="gdvBioMatricConfig_GridViewPager_PrevRecordClick"
                                                                ParentGridView="gdvBioMatricConfig" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="gdvBioMatricConfig" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="gdvBioMatricConfig_RowDataBound" OnPageIndexChanging="gdvBioMatricConfig_PageIndexChanging"
                                                                    AllowPaging="true" PageSize="5" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                    CssClass="table table-striped table-bordered" DataKeyNames="Id" EmptyDataText="No Records Found!!!">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Alert For" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblAlertFor" runat="server" Text='<%# Bind("AlertFor") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="OrgId" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblOrgId" runat="server" Text='<%# Bind("OrgId") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Auto Attendance Time" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblAutoAttendanceTimeEmp" runat="server" Text='<%# Bind("AttendancetimeEmp") %>' DataFormatString="{0:dd/MM/yyyy}"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body" id="DetailDiv" runat="server" style="padding-top:inherit">
                            <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="Biometric Configuration"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent">
                                <asp:Panel ID="DetailPanel" runat="Server">

                                    <asp:Panel ID="Panel1" runat="Server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrganizationLabel" runat="server" Text="Organization :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="OrganizationComboBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="ForAllOrganizationCheckbox" runat="server" Text="For All Organization" />
                                            </div>
                                        </div>
                                        <div class="cBoth"></div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label2" runat="server" Text="Alert For :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="AlertForCombobox" 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="Label3" runat="server" Text="Alert To :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="AlertToComboBox" runat="server" onmouseleave="showHideTooltip()"
                                                    SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="AutoAttendanceCheckBox" runat="server" Text="Auto Attendance Student Time" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="AutoAttendanceEmpCheckBox" runat="server" Text="Auto Attendance Emp Time" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AbsentLateDaysLabel" runat="server" Text="Absent Base On Total Late days :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="AbsentLateDaysTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" onkeypress="javascript:return isNumberKey(this)" MaxLength="5"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AbsentLateDaysLeaveLabel" runat="server" Text="Absent Base On Total Late Hrs :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="AbsentLateHrsTextBox" SkinID="CustomWidthTextBox" runat="server" onkeypress="javascript:return isNumberKey(this)" MaxLength="5"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="cBoth"></div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AbsentLateHrsLabel" runat="server" Text="Leave :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="LateDayLeaveTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" onKeypress="javascript:return MaskDecimal(event,10,2)" MaxLength="5"> </asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AbsentLateHrsLeaveLabel" runat="server" Text="Leave :"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="LateHrsLeaveTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" onKeypress="javascript:return MaskDecimal(event,10,2)" MaxLength="5"> </asp:TextBox>
                                            </div>
                                        </div>

                                    </asp:Panel>

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