<%@ page language="C#" autoeventwireup="true" inherits="Transactions_PopUpOnDutyEntryApproval, App_Web_0cp0rnnn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>TimeCheck</title>
    <link rel="stylesheet" href="../css/stylesheet.css" />

    <script language="javascript" type="text/javascript" src="../js/Popup.js"></script>

    <script language="javascript" type="text/javascript" src="../js/maxLength.js"></script>

    <script language="javascript" type="text/javascript" src="../js/chkbox_delete.js"></script>

    <script type="text/javascript">
        
var MaxLength = "Maximum length is ";


function MaxLengthh(maxLength)
{
 
MaxLength=maxLength;  
}
    </script>

</head>
<body style="background-color: #d3dbe7">
    <form id="aspnetForm" runat="server">
        <asp:Label ID="lblApprovalStatus" runat="server"></asp:Label>
        <div id="Div1" runat="server" style="overflow: inherit; height: 350px">
            <table border="0" cellpadding="2" cellspacing="1" width="100%">
                <tr>
                    <td class="ModuleTitle" colspan="2" style="height: 26px" valign="top">
                        <asp:Label ID="lbl_Header" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
                            <tr>
                                <td class="td" colspan="4" width="90%">
                                    <asp:GridView ID="gdManualEntrySanctionView" runat="server" AutoGenerateColumns="False"
                                        CellPadding="5" CssClass="td" Width="100%" PageSize="10" AllowPaging="True" OnRowDataBound="gdManualEntrySanctionView_RowDataBound"
                                        OnPageIndexChanging="gdManualEntrySanctionView_PageIndexChanging" BorderColor="white"
                                        BorderWidth="1px">
                                        <Columns>
                                            <%--<asp:HyperLinkField DataNavigateUrlFields="ManualTimeEntry_Id" DataNavigateUrlFormatString="TA_UI_Transactions_ManualTimeEntrySanctionModify.aspx?ManualTimeEntry_Id={0}"
                                                    DataTextField="Employee_FirstName" HeaderText="Employee Name" SortExpression="Employee_FirstName"
                                                    ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />--%>
                                            <asp:TemplateField HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                ItemStyle-BorderWidth="1px">
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="checkall" runat="server" AutoPostBack="true" OnCheckedChanged="grv_CheckAll_CheckedChanged" />
                                                    <asp:Label ID="lblall" runat="server"></asp:Label>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="deletethis" runat="server" AutoPostBack="true" Checked='<%# (Eval("SelectedRecords").ToString() == "1" ? true : false) %>'
                                                        OnCheckedChanged="grv_Check_CheckedChanged"></asp:CheckBox>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="6%" />
                                                <HeaderStyle HorizontalAlign="center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="ManualTimeEntryId" Visible="false" HeaderStyle-BorderStyle="Solid"
                                                HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblManualTimeEntryId" runat="server" Text='<% # Bind("ManualTimeEntry_Id") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <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="lblEmployeeCodeId" runat="server" Text='<% # Bind("Employee_Code_Id") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Employee Name" SortExpression="Employee_FirstName"
                                                HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF"
                                                ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblEmployeeName" runat="server" Text='<% # Bind("Employee_FirstName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="OnDuty Entry Date" SortExpression="ManualTimeEntry_Date"
                                                HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF"
                                                ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                <EditItemTemplate>
                                                    <asp:TextBox onpaste="return true" ID="txtManualTimeEntryDate" runat="server" Text='<%# Bind("ManualTimeEntry_Date") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblManualTimeEntryDate" runat="server" Text='<%# Bind("ManualTimeEntry_Date") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="In Entry" SortExpression="InDateTime" HeaderStyle-BorderStyle="Solid"
                                                HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                <EditItemTemplate>
                                                    <asp:TextBox onpaste="return true" ID="txtInEntry" runat="server" Text='<%# Bind("InDateTime") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblInEntry" runat="server" Text='<%# Bind("InDateTime") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Out Entry" SortExpression="OutDateTime" HeaderStyle-BorderStyle="Solid"
                                                HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px">
                                                <EditItemTemplate>
                                                    <asp:TextBox onpaste="return true" ID="txtOutEntry" runat="server" Text='<%# Bind("OutDateTime") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblOutEntry" runat="server" Text='<%# Bind("OutDateTime") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Reason" SortExpression="ManualTimeEntry_Reason" HeaderStyle-BorderStyle="Solid"
                                                HeaderStyle-BorderWidth="1px" HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid"
                                                ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderWidth="1px" ItemStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblManualTimeEntryReason" runat="server" Text='<% # Bind("ManualTimeEntry_Reason") %>'
                                                        Style="overflow-y: auto; overflow-x: auto; word-break: break-all;
                                                        width: 125px; word-wrap: break-word; display: inline-block;"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Status" SortExpression="ManualTimeEntry_Status" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-HorizontalAlign="Left" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1px"
                                                HeaderStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#FFFFFF"
                                                ItemStyle-BorderWidth="1px">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblManualTimeEntryStatus" runat="server" Text='<%# Bind("ManualTimeEntry_Status") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <HeaderStyle CssClass="td" />
                                        <EmptyDataTemplate>
                                            <asp:Label ID="lblNoRecords" runat="server" OnLoad="GetEmptyText"></asp:Label>
                                        </EmptyDataTemplate>
                                        <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>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td class="td" align="center" colspan="2">
                                    <asp:Label ID="lblRemarks" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <%-- </td>
                                <td class="td" align="left" colspan="2">--%>
                                    <asp:TextBox onpaste="return true" ID="txtRemarks" CssClass="multitext" TextMode="multiLine"
                                    style="resize:none"    Width="200px" MaxLength="250" onkeypress="return chkMaxLen(event,this,250,MaxLength);"
                                        runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                            </tr>
                            <tr>
                                <td class="td" colspan="4" align="center">
                                    <asp:Button ID="btnPending" runat="server" CssClass="but" OnClick="btn_Pending_Click" />
                                    <asp:Button ID="btnApproved" Width="10%" runat="server" CssClass="but" OnClick="btn_Approved_Click" />
                                    <asp:Button ID="btnForwarded" Width="10%" runat="server" CssClass="but" OnClick="btn_Forwarded_Click" />
                                    <asp:Button ID="btnReject" runat="server" CssClass="but" OnClick="btn_Reject_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
