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

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <table width="800px" 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="800">
                                <tr>
                                    <td valign="top" colspan="2" class="ModuleTitle" align="left" style="height: 23px">
                                        <asp:Label ID="lblEmployeeInOut" Text="Employee In Out" runat="server"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td class="ModuleHeadtd" colspan="2" align="center">
                                        <asp:GridView ID="grvEmployeeInOut" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                            CssClass="td" Width="800px" AllowSorting="True" BorderColor="white" BorderWidth="1px"
                                            OnSorting="grvEmployeeInOut_Sorting" OnPageIndexChanging="grvEmployeeInOut_PageIndexChanging"
                                            OnRowDataBound="grvEmployeeInOut_RowDataBound">
                                            <RowStyle Height="30px" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Employee Id" SortExpression="employee_code_id" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblemployee_code_id" Text='<%# Eval("employee_code_id") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Employee Name" SortExpression="Employee Name" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblEmployeename" Text='<%# Eval("Employee Name") %>' runat="server">
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Designation" SortExpression="Designation" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDesignation" Text='<%# Eval("Designation") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Level Name" SortExpression="Level Name" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblLevelName" Text='<%# Eval("Level Name") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Date" SortExpression="ClockDate" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDate" Text='<%# Eval("ClockDate") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="In Time" SortExpression="InTime" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblInTime" Text='<%# Eval("InTime") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="OutTime" SortExpression="OutTime" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOutTime" Text='<%# Eval("OutTime") %>' runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Gender" SortExpression="Gender" HeaderStyle-BorderStyle="Solid"
                                                    HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                    ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblGender" Text='<%# Eval("Gender") %>' 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;" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="lblNoRecords" runat="server" OnLoad="GetEmptyText"></asp:Label>
                                            </EmptyDataTemplate>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" valign="bottom" colspan="5" style="height: 65px">
                                        <table width="43%" border="0" align="center" cellpadding="5" cellspacing="0">
                                            <tr>
                                                <td align="center" valign="middle" style="height: 32px">
                                                    <asp:Button ID="btn_View" CssClass="but" runat="server" OnClick="btn_View_Click" />
                                                    &nbsp;
                                                    <asp:Button ID="btnBack" CssClass="but" runat="server" OnClientClick="location.href='TA_UI_Report_InOut.aspx';return false;" />
                                                </td>
                                            </tr>
                                        </table>
                                        <%-- <asp:ObjectDataSource ID="odsEmployeeInOutDetails" runat="server" SelectMethod="EmployeeInOutDetails"
                                            TypeName="GetReports">
                                            <SelectParameters>
                                                <asp:QueryStringParameter Name="EmployeeID" QueryStringField="empid" Type="String" />
                                                <asp:QueryStringParameter Name="FromDate" QueryStringField="dtFrom" Type="String" />
                                                <asp:QueryStringParameter Name="ToDate" QueryStringField="dtTo" Type="String" />
                                                <asp:QueryStringParameter Name="EmployeeName" QueryStringField="EmpName" Type="String" />
                                                <asp:QueryStringParameter Name="shift" QueryStringField="shft" Type="Int32" />
                                                <asp:QueryStringParameter Name="employeeCategory" QueryStringField="EmpCategory" Type="Int32" />
                                                <asp:QueryStringParameter Name="employeeType" QueryStringField="EmpType" Type="Int32" />
                                                <asp:QueryStringParameter Name="UserGroupName" QueryStringField="UserGroupName" Type="String" />
                                                <asp:QueryStringParameter Name="GradeLevel" QueryStringField="GradeLevel" Type="String" />
                                                <asp:QueryStringParameter Name="EmpSwipeCard" QueryStringField="SwipeCard" Type="String" />
                                                <asp:QueryStringParameter Name="ParentId" QueryStringField="ParentLevelId" Type="Int16" />
                                                <asp:QueryStringParameter Name="Gender" QueryStringField="Gender" Type="Int16" />
                                            </SelectParameters>
                                        </asp:ObjectDataSource>--%>
                                        <asp:HiddenField ID="hidLevels" runat="server" />
                                    </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>
