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

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

                                        <%--ShiftRequisitionID, EmployeeID, RequisitionDate, Status, DAY1, DAY2, DAY3, DAY4, DAY5, 
                                            DAY6, DAY7, DAY8, DAY9, DAY10, DAY11, DAY12, DAY13, DAY14, DAY15, DAY16, DAY17, DAY18, DAY19, 
                         DAY20, DAY21, DAY22, DAY23, DAY24, DAY25, DAY26, DAY27, DAY28, DAY29, DAY30, DAY31--%>
                                        <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("ShiftRequisitionID") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Id" ControlStyle-Width="90px" SortExpression="Employee_Code_Id" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmployeeCodeId" runat="server" Text='<% # Bind("EmployeeID") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Name" ControlStyle-Width="120px" SortExpression="Employee_FirstName"
                                            HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmployeeName" runat="server" Text='<% # Bind("EmployeeName") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Shift Requisition Date" ControlStyle-Width="100px" SortExpression="ManualTimeEntry_Date"
                                            HeaderStyle-CssClass="empheader">
                                            <EditItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtManualTimeEntryDate" runat="server" Text='<%# Bind("RequisitionDate") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblManualTimeEntryDate" runat="server" Text='<%# Bind("RequisitionDate") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Status" SortExpression="InDateTime" HeaderStyle-CssClass="empheader">
                                            <EditItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtInEntry" runat="server" Text='<%# Bind("Status") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblInEntry" runat="server" Text='<%# Bind("Status") %>'></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="DAY1" SortExpression="ManualTimeEntry_Reason" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY1" runat="server" Text='<% # Bind("DAY1") %>'
                                                    Style="overflow-y: auto; overflow-x: auto; word-break: break-all; width: 35px; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="DAY2" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY2" runat="server" Text='<%# Bind("DAY2") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY3" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY3" runat="server" Text='<%# Bind("DAY3") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY4" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY4" runat="server" Text='<%# Bind("DAY4") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY5" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY5" runat="server" Text='<%# Bind("DAY5") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY6" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY6" runat="server" Text='<%# Bind("DAY6") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY7" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY7" runat="server" Text='<%# Bind("DAY7") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY8" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY8" runat="server" Text='<%# Bind("DAY8") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY9" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY9" runat="server" Text='<%# Bind("DAY9") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY10" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY10" runat="server" Text='<%# Bind("DAY10") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY11" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY11" runat="server" Text='<%# Bind("DAY11") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY12" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY12" runat="server" Text='<%# Bind("DAY12") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY13" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY13" runat="server" Text='<%# Bind("DAY13") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY14" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY14" runat="server" Text='<%# Bind("DAY14") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY15" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY15" runat="server" Text='<%# Bind("DAY15") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY16" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY16" runat="server" Text='<%# Bind("DAY16") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY17" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY17" runat="server" Text='<%# Bind("DAY17") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                         <asp:TemplateField HeaderText="DAY18" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY18" runat="server" Text='<%# Bind("DAY18") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY19" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY19" runat="server" Text='<%# Bind("DAY19") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY20" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY20" runat="server" Text='<%# Bind("DAY20") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY21" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY21" runat="server" Text='<%# Bind("DAY21") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY22" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY22" runat="server" Text='<%# Bind("DAY22") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY23" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY23" runat="server" Text='<%# Bind("DAY23") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY24" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY24" runat="server" Text='<%# Bind("DAY24") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    

                                        <asp:TemplateField HeaderText="DAY25" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY25" runat="server" Text='<%# Bind("DAY25") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY26" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY26" runat="server" Text='<%# Bind("DAY26") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY27" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY27" runat="server" Text='<%# Bind("DAY27") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY28" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY28" runat="server" Text='<%# Bind("DAY28") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY29" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY29" runat="server" Text='<%# Bind("DAY29") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY30" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY30" runat="server" Text='<%# Bind("DAY30") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY31" SortExpression="ManualTimeEntry_Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="DAY31" runat="server" Text='<%# Bind("DAY31") %>'></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>

