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

<asp:Content ID="ConLeaveSanction" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <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>

    <div class="content-header">
        <h1 style="background-image: url('../dist/img/lve-san.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server">
            </asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="inr-ftr">
            <div class="row" style="height: 36px">
            </div>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-md-12" style="padding-bottom: 15px">
                        <div id="Div1" runat="server">
                            <div class="table-responsive">
                                <asp:GridView ID="gdManualEntrySanctionView" runat="server" AutoGenerateColumns="False"
                                    CellPadding="5" CssClass="table das-table1" Width="100%" PageSize="10" AllowPaging="True"
                                    OnRowDataBound="gdManualEntrySanctionView_RowDataBound" OnPageIndexChanging="gdManualEntrySanctionView_PageIndexChanging"
                                    HeaderStyle-HorizontalAlign="center">
                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmployeeName" runat="server" Text='<% # Bind("Employee_FirstName") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Manual Time Entry Date" SortExpression="ManualTimeEntry_Date"
                                            HeaderStyle-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <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-CssClass="empheader">
                                            <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" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblManualTimeEntryStatus" runat="server" Text='<%# Bind("ManualTimeEntry_Status") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblNoRecords" runat="server" OnLoad="GetEmptyText"></asp:Label>
                                    </EmptyDataTemplate>
                                    <RowStyle Height="30px" CssClass="table-bg" BorderColor="#C5DFFC" />
                                    <PagerStyle Font-Size="Medium" Font-Overline="False" HorizontalAlign="Right"/>
                                    <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                        PreviousPageText="<" />
                                    <AlternatingRowStyle BackColor="white" />
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12" style="margin-bottom: 15px">
                        <asp:Label ID="lblRemarks" runat="server"></asp:Label>
                        <asp:TextBox onpaste="return true" ID="txtRemarks" CssClass="form-control" TextMode="multiLine"
                            Style="resize: none;" MaxLength="250" onkeypress="return chkMaxLen(event,this,250,MaxLength);"
                            runat="server">
                        </asp:TextBox>
                    </div>
                    <div class="col-md-12">
                        <div class="pull-right-button">
                            <asp:LinkButton ID="btnPending" runat="server" CssClass="btn save-btn fa-ellipsis-h"
                                OnClick="btn_Pending_Click" />
                            <asp:LinkButton ID="btnApproved" runat="server" CssClass="btn save-btn fa-thumbs-o-up"
                                OnClick="btn_Approved_Click" />
                            <asp:LinkButton ID="btnForwarded" runat="server" CssClass="btn save-btn fa-angle-double-right"
                                OnClick="btn_Forwarded_Click" />
                            <asp:LinkButton ID="btnReject" runat="server" CssClass="btn save-btn fa-thumbs-o-down"
                                OnClick="btn_Reject_Click" />
                            <asp:LinkButton ID="btn_Back" runat="server" CssClass="btn save-btn fa-angle-left"
                                OnClick="btn_Back_Click" />
                        </div>
                    </div>
                    <asp:Label ID="lblApprovalStatus" runat="server"></asp:Label>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
