<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Biometric_ImportStudentMaster, App_Web_eiesolok" title="Import Student Master" 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">
    <script type="text/javascript">
        function Confirm() {

            var confirm_value = document.getElementById("Abc");
            confirm_value.value = "";
            if (confirm("Do you want to Delete data?")) {
                confirm_value.value = "Yes";
            } else {
                confirm_value.value = "No";
            }
        }
    </script>
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage">
                <div>
                    <input id="Abc" name="Abc" type="hidden" value="" />
                    <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">
                            <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="Import Student"></asp:Label>
                                            </header>

                                        </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="ShiftCodeSearchLabel" Text="Organization " runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ddlorganization" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="ddlorganization_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <asp:Button ID="btnGeneratePunchId" Text="Generate Punch Id" runat="Server" OnClick="btnGeneratePunchId_Click" SkinID="0" CssClass="btn btn-search fas" />
                                            </div>
                                            <div class="cBoth">
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ShiftNameSearchLabel" Text="Shift" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ddlShift" runat="server" onmouseleave="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                        onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <asp:Button ID="btnApplyAll" Text="Apply All" runat="Server" OnClick="btnApplyAll_Click" SkinID="0" CssClass="btn btn-search fas" />
                                                <asp:Button ID="btnDelete" Text="Delete" runat="Server" OnClick="btnDelete_Click" SkinID="0" OnClientClick="Confirm()" CssClass="btn btn-info fas" />
                                            </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" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </asp:Panel>

                                        <div id="Div1" class="himssuHeader6WireBox col-md-12 pTop15" 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 display-flex">
                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100"
                                                        SkinID="CustomWidthTextBox" Width="100px"></asp:TextBox>
                                                    &nbsp;&nbsp;&nbsp;  
                                                        <asp:Button ID="ApplyAllButton" runat="server"  Text="&#xf058; Apply All" SkinID="0" CssClass="btn btn-apply fas" />
                                                </div>
                                            </div>--%>
                                            <div class="col-md-12 pTop15">
                                                <div class="himsBoxContent table-responsive ">
                                                    <asp:GridView runat="server" ID="gdvEmployee" AutoGenerateColumns="False"
                                                        EmptyDataText="No records Found!!!" OnRowDataBound="gdvEmployee_RowDataBound" DataKeyNames="EmpName,ShiftCode" AllowPaging="False"
                                                        ShowHeader="True" CssClass="table table-striped table-bordered">
                                                        <PagerSettings Visible="False" />
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="4%"
                                                                ItemStyle-Wrap="true">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="chkCheck" runat="server" OnCheckedChanged="HeaderSelectCheckBox_checked" Enabled="true" AutoPostBack="true"
                                                                            Visible="true" />
                                                                        <span></span>
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="ID No" meta:resourcekey="TemplateFieldResource1">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblCode" runat="server" Text='<%# bind("EmpCode") %>' CssClass="boxEllips"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource2">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblEmpName" runat="server" Text='<%# bind("EmpName") %>' CssClass="boxEllips"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Mobile No" meta:resourcekey="TemplateFieldResource2">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblMobileNo" runat="server" Visible="false" Text='<%# bind("EmpMNo") %>' CssClass="boxEllips"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Punch Id" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="txtPunchId" runat="server" Text='<%# bind("EmpPunchID") %>' SkinID="CustomWidthDropDownList"
                                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="160px">
                                                                    </asp:TextBox>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Shift" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:DropDownList ID="ddlGdvShift" runat="server" SkinID="CustomWidthDropDownList"
                                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="160px">
                                                                    </asp:DropDownList>
                                                                </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>
        </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>
