<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="ATTENDANCE_LATE_EMPLOYEE.aspx.cs" Inherits="HRMS.ATTENDANCE_LATE_EMPLOYEE" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-md-12">
            <section class="panel">
            <header class="panel-heading">
                Attendance Late Verification
                <div class="pull-right">
                    <asp:Button ID="btn_get" runat="server" CssClass="btn btn-primary" 
                        Text="Get Attendance" onclick="btn_get_Click" ValidationGroup="get"/>
                    <asp:Button ID="btn_updt" runat="server" CssClass="btn btn-primary" 
                        Text="Verify" onclick="btn_updt_Click" Visible="false" />
                </div>
            </header>

            <div class="panel-body">
                  <div class="span6">
                                <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <i class="icon-check-sign"></i>
                                    <asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
                                </div>
                                <div class="span6">
                                    <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                                         <i class="icon-check-sign"></i>
                                        <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
                                    </div>
                                </div>
                           </div>

                           <div class="row">
                            <label class="control-label col-md-2" runat="server">Date From</label>
                            <div class="col-md-2">
                                <asp:TextBox ID="txt_strt_date" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rqrd" runat="server" ErrorMessage="Date Required" ValidationGroup="get" ControlToValidate="txt_strt_date"></asp:RequiredFieldValidator>
                            </div>

                            <label id="Label1" class="control-label col-md-2" runat="server">Date To</label>
                            <div class="col-md-2">
                                <asp:TextBox ID="txt_date_to" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Date Required" ValidationGroup="get" ControlToValidate="txt_date_to"></asp:RequiredFieldValidator>
                            </div>
                           </div>
                           <hr />
                                 <asp:GridView ID="GridView1" runat="server" CellPadding="0"  CssClass="display" 
                                        AutoGenerateColumns="False">
                                        <Columns>
                                         <%--<asp:TemplateField>
                                                <ItemTemplate>
                                                <asp:HiddenField ID="hid_resource_id" runat="server" Value='<%#Bind("RESOURCE_ID") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                        
                                            <asp:BoundField DataField="RESOURCE_ID" HeaderStyle-Width="05px" ItemStyle-Width="05px"/>
                                            <asp:BoundField DataField="NAME" HeaderText="Name" />
                                            <asp:BoundField DataField="Date" HeaderText="Date" />
                                            <asp:BoundField DataField="Day" HeaderText="Day" />
                                            <asp:BoundField DataField="In_Time" HeaderText="In Time" />
                                            <asp:BoundField DataField="Late" HeaderText="Late Minute"/>
                                            
                                             <asp:TemplateField HeaderText="Verify">
                                                <ItemTemplate>
                                                <asp:CheckBox ID="chk" runat="server" CssClass="checkbox" />
                                                   <%-- <asp:DropDownList ID="ddl" runat="server" CssClass="form-control">
                                                    <asp:ListItem Text="-- Select ---" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="Yes" Value="Y"></asp:ListItem>
                                                        <asp:ListItem Text="No" Value="N"></asp:ListItem>
                                                    </asp:DropDownList>--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="Reason">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_reason" CssClass="form-control"  runat="server" Text='<%#Bind("COMMENT_TEXT") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <%--<asp:TemplateField HeaderText="Action">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lnk" CommandName="g_add" runat="server"><i class="fa fa-plus" style="font-size:20px !important"></i></asp:LinkButton>
                                                    &nbsp;
                                                    <asp:LinkButton ID="lnk_dlt" CommandName="g_dlt" runat="server" OnClientClick="return confirm('Are you sure to delete?')"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                        </Columns>
                                        <FooterStyle CssClass="footerStyle" />
                            <HeaderStyle CssClass="headerStyle" />
                            <RowStyle CssClass="rowStyle" />
                                    </asp:GridView>
                                    <%-- <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                             <script type="text/javascript">
                                 $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                             </script>--%>
            </div>
        </section>
        </div>
    </div>
</asp:Content>
