<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="Transactions_TA_UI_Transactions_AttendanceEntry, App_Web_pqycbfjj" %>

<%@ Register Src="~/UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="TA_uc_OrgLevel_Filter"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
<script language="javascript" type="text/javascript" src="../js/lockkeys.js"></script>
    <table width="650px" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top" style="width: 16px">
                            <img src="../Images/corner1<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
                        <td valign="top" background="../Images/sideline.gif" bgcolor="#EAEAEA">
                            <img src="../Images/spacer.gif" width="1" height="1" /></td>
                        <td valign="top" style="width: 16px">
                            <img src="../Images/corner2<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
                    </tr>
                    <tr>
                        <td background="../Images/line<%=Session["Direction"] %>.gif" style="width: 16px">
                            &nbsp;</td>
                        <td valign="top" bgcolor="#EAEAEA">
                            <table border="0" align="center" cellpadding="2" cellspacing="1" width="650">
                                <tr>
                                    <td valign="top" colspan="2" class="ModuleTitle" align="left" style="height: 23px">
                                        <asp:Label ID="lblLateEntry" runat="server" Text="Attendance-Entry"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="padding-left: 0px; padding-bottom: 0px; padding-top: 0px;
                                        padding-right: 0px">
                                        <input id="Hidden2" type="hidden" value='<% Response.Write(Convert.ToString(Session["IDateFormat"])); %>'
                                            visible="false" />
                                        <div id="div1" runat="server">
                                            <table border="0" cellpadding="0" cellspacing="1" width="650px" style="margin-right: -2;
                                                margin-left: -1;">
                                                <tr>
                                                    <td class="td" colspan="2">
                                                        <asp:Label ID="lblEmpSwipeCard" runat="server"></asp:Label>
                                                    </td>
                                                    <td class="td">
                                                        <asp:TextBox onpaste="return true"     ID="txtSwipeCard" MaxLength="20" runat="server" CssClass="textbox_4"
                                                            onkeypress="return acceptCharsNum_MaxLength(event,this,20,MaxLength);"></asp:TextBox>
                                                    </td>
                                                    <td class="td">
                                                    </td>
                                                    <td class="td">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="td" colspan="2">
                                                        <asp:Label ID="lbl_EmployeeName" runat="server"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:TextBox onpaste="return true"     ID="txtEmployeeName" runat="server" CssClass="textbox_4" MaxLength="50"
                                                            onkeypress="return employeename_singlequotes_maxlength(event,this,50,MaxLength);"></asp:TextBox></td>
                                                    <td class="td">
                                                        <asp:Label ID="lblEmployeeId" runat="server"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:TextBox onpaste="return true"     ID="txtEmployeeId" runat="server" CssClass="textbox_4" MaxLength="15"
                                                            onkeypress="return acceptCharsNum_MaxLength(event,this,15,MaxLength);"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td class="td" colspan="2">
                                                        <asp:Label ID="lblEmpCategory" runat="server"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:DropDownList ID="ddlEmpCatagory" runat="server" CssClass="dlist" AppendDataBoundItems="true">
                                                            <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td class="td">
                                                        <asp:Label ID="lblEmpType" runat="server"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:DropDownList ID="ddlEmpType" runat="server" CssClass="dlist" AppendDataBoundItems="true">
                                                            <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                                        </asp:DropDownList></td>
                                                </tr>
                                                <tr>
                                                    <td class="td" colspan="2">
                                                        <asp:Label ID="lblDesignation" runat="server" Text="Designation"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:DropDownList ID="ddlDesignation" runat="server" CssClass="dlist" AppendDataBoundItems="true">
                                                            <asp:ListItem Value="0" Selected="True" Text="All"></asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td class="td">
                                                        <asp:Label ID="lblGender" runat="server" Text="Gender"></asp:Label></td>
                                                    <td class="td">
                                                        <asp:DropDownList ID="ddlGender" runat="server" CssClass="dlist">
                                                            <asp:ListItem Value="Both" Text="Both"></asp:ListItem>
                                                            <asp:ListItem Value="Male" Text="Male"></asp:ListItem>
                                                            <asp:ListItem Value="Female" Text="Female"></asp:ListItem>
                                                        </asp:DropDownList></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td" colspan="4">
                                        <asp:PlaceHolder ID="PlaceHolderDetailedAttendance" runat="server">
                                            <uc1:TA_uc_OrgLevel_Filter ID="TA_uc_OrgLevel_Filter1" runat="server" />
                                        </asp:PlaceHolder>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <div id="div2" runat="server">
                                            <table border="0" cellpadding="0" cellspacing="1" width="650px" style="margin-right: -2;
                                                margin-left: -1;">
                                                <tr>
                                                    <td align="left" class="td">
                                                    </td>
                                                    <td class="td">
                                                        <asp:Label ID="lblMonth" Text="Month" runat="server"></asp:Label>
                                                        <strong><span style="color: red">*</span></strong></td>
                                                    <td class="td" style="text-align: left">
                                                        <asp:DropDownList ID="ddlMonth" runat="server" CssClass="dlist">
                                                            <asp:ListItem Value="Select" Text="Select"></asp:ListItem>
                                                            <asp:ListItem Value="1" Text="January"></asp:ListItem>
                                                            <asp:ListItem Value="2" Text="February"></asp:ListItem>
                                                            <asp:ListItem Value="3" Text="March"></asp:ListItem>
                                                            <asp:ListItem Value="4" Text="April"></asp:ListItem>
                                                            <asp:ListItem Value="5" Text="May"></asp:ListItem>
                                                            <asp:ListItem Value="6" Text="June"></asp:ListItem>
                                                            <asp:ListItem Value="7" Text="July"></asp:ListItem>
                                                            <asp:ListItem Value="8" Text="August"></asp:ListItem>
                                                            <asp:ListItem Value="9" Text="September"></asp:ListItem>
                                                            <asp:ListItem Value="10" Text="October"></asp:ListItem>
                                                            <asp:ListItem Value="11" Text="November"></asp:ListItem>
                                                            <asp:ListItem Value="12" Text="December"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlMonth"
                                                            InitialValue="Select" Display="None"></asp:RequiredFieldValidator></td>
                                                    <td align="left" class="td">
                                                        <asp:Label ID="lblYear" Text="Year" runat="server"></asp:Label>
                                                        <strong><span style="color: red">*</span></strong></td>
                                                    <td class="td" style="text-align: left">
                                                        <asp:DropDownList ID="ddlYear" runat="server" CssClass="dlist">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlYear"
                                                            Display="None" InitialValue="Select"></asp:RequiredFieldValidator></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="bottom" colspan="4" style="height: 30px">
                                        <asp:Button ID="btn_View" CssClass="but" runat="server" OnClick="btn_View_Click" />
                                    </td>
                                    <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false"
                                        runat="server" />
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <%--<input id="Hidden1" type="hidden" value='<% Response.Write(Convert.ToString(Session["IDateFormat"])); %>'/>--%>
                                        <asp:HiddenField ID="Hidden1" runat="server" Visible="false" />
                                        <div id="divEmployeeDetails" runat="server">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="ModuleHeadtd" colspan="2" align="center">
                                        <asp:GridView ID="grv_AttendenceEntry" OnRowDataBound="grv_AttendenceEntry_RowDataBound"
                                            runat="server" AutoGenerateColumns="False" AllowPaging="True" CssClass="td" Width="100%"
                                            AllowSorting="True" AutoGenerateEditButton="True" DataKeyNames="EmpId" PageSize="5"
                                            BorderColor="white" BorderWidth="1px" OnRowEditing="grv_AttendenceEntry_RowEditing"
                                            OnPageIndexChanging="grv_AttendenceEntry_PageIndexChanging" OnRowUpdating="grv_AttendenceEntry_RowUpdating"
                                            OnRowCancelingEdit="grv_AttendenceEntry_RowCancelingEdit" OnSorting="grv_AttendenceEntry_Sorting">
                                            <RowStyle Height="30px" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Emp Id" SortExpression="EmpId" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px" ItemStyle-Width="13%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblEmpId" Text='<%# Eval("EmpId") %>' runat="server"></asp:Label>
                                                        <asp:HiddenField ID="lblProcess_Rec_ID" Value='<%# Eval("EmpId") %>' runat="server" />
                                                        <edititemtemplate>
                                                    <asp:Label ID="Label2" Text='<%# Bind("EmpId") %>' runat="server" Visible="false" ></asp:Label>
                                                    </edititemtemplate>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Present" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="12%">
                                                    <EditItemTemplate>
                                                        <asp:HiddenField ID="htnPresentday" runat="server" Value='<%# Bind("PresentDays") %>' />
                                                        <asp:TextBox onpaste="return true"     ID="txtPresentDays" runat="server" Text='<%# Bind("PresentDays") %>'
                                                            CssClass="textbox_4" MaxLength="5" Width="40px" onkeypress="return number_only(event,this)"></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPresentDays" Text='<%# Eval("PresentDays") %>' runat="server">
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="OD" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="10%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOD" Text='<%# Eval("OD") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="EL" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="10%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblEL" Text='<%# Eval("EL") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="CL" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="10%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCL" Text='<%# Eval("CL") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="SL" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="10%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSL" Text='<%# Eval("SL") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Absent" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="15%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblLOP" Text='<%# Eval("LOP_Absent") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Difference" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                    HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                    ItemStyle-BorderWidth="1px" ItemStyle-Width="15%">
                                                    <EditItemTemplate>
                                                        <asp:TextBox onpaste="return true"     ID="txtDifferentdays" runat="server" Text='<%# Bind("Difference_Days") %>'
                                                            CssClass="textbox_4" MaxLength="5" Width="40px" onkeypress="return number_only(event,this)"></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDifferentdays" Text='<%# Eval("Difference_Days") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--<asp:TemplateField HeaderText="Total" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                            HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                            ItemStyle-BorderWidth="1px">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTotal" Text='<%# Eval("Total") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                            </Columns>
                                            <RowStyle Height="30px" />
                                            <PagerStyle BorderColor="#FFFFFF" BorderStyle="solid" BorderWidth="1px" VerticalAlign="Bottom"
                                                HorizontalAlign="Right" Font-Overline="False" Font-Size="Smaller" />
                                            <PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last"
                                                NextPageText="Next" PreviousPageText="&lt;" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td background="../Images/line1<%=Session["Direction"] %>.gif" style="width: 16px">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td valign="bottom" style="width: 16px; height: 16px">
                            <img src="../Images/corner3<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
                        <td valign="bottom" background="../Images/sideline1.gif" bgcolor="#EAEAEA" style="height: 16px">
                            <img src="../Images/spacer.gif" width="1" height="1" /></td>
                        <td valign="bottom" style="width: 16px; height: 16px">
                            <img src="../Images/corner4<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
