<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Biometric_PunchData, App_Web_0zido2wz" title="Manual Punch" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <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">
                            <%-- <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:RadioButton ID="chkpunchdata" Text="Get Punch Data" AutoPostBack="true" GroupName="Type" onclick="pre1()" runat="server" />
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:RadioButton ID="chkupdatestatus" Text="Update Student Status" AutoPostBack="true" GroupName="Type" runat="server" />
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:RadioButton ID="chkAddupdatestudent" Text="Add / Update Student" AutoPostBack="true" GroupName="Type" runat="server" />
                                </div>
                            </div>--%>

                            <div class="himsBoxContent card-body padd-0">
                                <div class="contentHolder">
                                    <div id="Fromdiv" runat="server">

                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblOrganization" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlOrganization" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblDate" runat="server" Text="Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <DPC:DatePickerControl ID="txtDate" runat="server" DisplayDatePicker="true" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <asp:Button ID="btnGetPunchdata" Text="Get Punch Data" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnGetPunchdata_Click" />
                                        </div>
                                    </div>
                                </div>
                                <%--<div class="alignCenter pTop5 col-md-12 pb5">
                                    <asp:Button ID="btnGetPunchdata" Text="Get Punch Data" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnGetPunchdata_Click" />
                                </div>--%>
                            </div>
                        </div>
                        <div class="himssuHeader2WireBox card card-box">
                            <div class="himsBoxContent card-body padd-0">
                                <div class="contentHolder">
                                    <div id="Div1" runat="server">
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblOrganization_AI" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlOrganization_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlOrganization_AI_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblBatch_AI" runat="server" Text="Batch" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlBatch_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlBatch_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblClass_AI" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlClass_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlClass_AI_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblDiv_AI" runat="server" Text="Division" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlDiv_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlDiv_AI_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblStudent_AI" runat="server" Text="Student" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlStudent_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlStudent_AI_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblActiveStatus_AI" runat="server" Text="Active Status" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlActivestatus_AI" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <asp:Button ID="btnActiveStatus" Text="Update Status" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnActiveStatus_Click" />
                                        </div>
                                    </div>
                                </div>
                                <%--<div class="alignCenter pTop5 col-md-12 pb5">
                                    <asp:Button ID="btnActiveStatus" Text="Update Status" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnActiveStatus_Click" />
                                </div>--%>
                            </div>
                        </div>
                        <div class="himssuHeader2WireBox card card-box">
                            <div class="himsBoxContent card-body padd-0">
                                <div class="contentHolder">
                                    <div id="Div2" runat="server">
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblOrganization_AU" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlOrganization_AU" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlOrganization_AU_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblBatch_AU" runat="server" Text="Batch" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlBatch_AU" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlBatch_AU_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblClass_AU" runat="server" Text="Class" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlClass_AU" AutoPostBack="true" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlClass_AU_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="lblDivision_AU" runat="server" Text="Division" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ddlDivision_AU" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3 ">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label1" runat="server" Text="Expiry Date" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <DPC:DatePickerControl ID="DPApplyexpdate" runat="server" DisplayDatePicker="true" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <asp:Button ID="btnApplyall" Text="Apply all" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnApplyall_Click" />
                                        </div>
                                    </div>
                                </div>
                                <div class="alignCenter pTop5 col-md-12 pb5">
                                    <asp:Button ID="btnSearch" Text="Search" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnSearch_Click" />
                                    <asp:Button ID="btnSave" Text="Save" runat="Server" SkinID="0" CssClass="btn btn-search fas" OnClick="btnSave_Click" />
                                </div>
                                <div class="col-md-12 pTop15">
                                    <div class="himsBoxContent table-responsive ">
                                        <asp:GridView runat="server" ID="gdvPunchdata" AutoGenerateColumns="False"
                                            EmptyDataText="No records Found!!!" OnRowDataBound="gdvPunchdata_RowDataBound" DataKeyNames="" 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="Student ID" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblstudentid" runat="server" Text='<%# bind("StudentId") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="ORG ID" meta:resourcekey="TemplateFieldResource1" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblorgid" runat="server" Text='<%# bind("OrgId") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Batch ID" meta:resourcekey="TemplateFieldResource1" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblBatchid" runat="server" Text='<%# bind("Batchid") %>' 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="lblstudentName" runat="server" Text='<%# bind("Name") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="RFID" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtRFIDno" runat="server" Text='<%# bind("RFID") %>' SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="160px">
                                                        </asp:TextBox>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="RFID Expiry Date" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <DPC:DatePickerControl ID="txtDate" runat="server" DisplayDatePicker="true" />
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>

                                        <asp:GridView runat="server" ID="gdv_Syncdata" AutoGenerateColumns="False"
                                            EmptyDataText="No records Found!!!" OnRowDataBound="gdv_Syncdata_RowDataBound" DataKeyNames="" AllowPaging="False"
                                            ShowHeader="True" CssClass="table table-striped table-bordered">
                                            <PagerSettings Visible="False" />
                                            <Columns>
                                                
                                                 <asp:TemplateField HeaderText="Student" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStudentname" runat="server" Text='<%# bind("Studentname") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Punch Date Time" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPunchTime" runat="server" Text='<%# bind("PunchDateTime") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Punch Mode" meta:resourcekey="TemplateFieldResource1" >
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPunchMode" runat="server" Text='<%# bind("Punchmode") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="8%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Punch Type" meta:resourcekey="TemplateFieldResource1" >
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPunchType" runat="server" Text='<%# bind("Punchtype") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="RFID Tag No." meta:resourcekey="TemplateFieldResource2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRFIDtagno" runat="server" Text='<%# bind("RFIDTagNo") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Reason" ItemStyle-Width="40%" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Wrap="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReason" runat="server" Text='<%# bind("Reason") %>' CssClass="boxEllips"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>

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

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