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

<asp:Content ID="ConCompressedWorkHoursSanction" 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="gdCompressedWorkHoursSanctionView" runat="server" AutoGenerateColumns="False"
                                    CellPadding="5" CssClass="table das-table1" Width="100%" PageSize="10" AllowPaging="True"
                                    OnRowDataBound="gdCompressedWorkHoursSanctionView_RowDataBound" OnPageIndexChanging="gdCompressedWorkHoursSanctionView_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>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="CompressedWorkHoursId" Visible="false" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCompressedWorkHoursId" runat="server" Text='<% # Bind("CWH_App_Id") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Id" SortExpression="EmployeeID" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmployeeCodeId" runat="server" Text='<% # Bind("EmployeeID") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Name" SortExpression="Employee_Name"
                                            HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmployeeName" runat="server" Text='<% # Bind("Employee_Name") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Application Date" SortExpression="ApplicationDate"
                                            HeaderStyle-CssClass="empheader">
                                        <%--    <EditItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtCompressedWorkHoursDate" runat="server" Text='<%# Bind("ApplicationDate") %>'></asp:TextBox>
                                            </EditItemTemplate>--%>
                                            <ItemTemplate>
                                                <asp:Label ID="lblCompressedWorkHoursDate" runat="server" Text='<%# Bind("ApplicationDate") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="FromDate" SortExpression="FromDate" HeaderStyle-CssClass="empheader">
                                            <%--<EditItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtScheduleIn" runat="server" Text='<%# Bind("FromDate") %>'></asp:TextBox>
                                            </EditItemTemplate>--%>
                                            <ItemTemplate>
                                                <asp:Label ID="lblScheduleIn" runat="server" Text='<%# Bind("FromDate") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ToDate" SortExpression="ToDate" HeaderStyle-CssClass="empheader">
                                           <%-- <EditItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtScheduleOut" runat="server" Text='<%# Bind("ToDate") %>'></asp:TextBox>
                                            </EditItemTemplate>--%>
                                            <ItemTemplate>
                                                <asp:Label ID="lblScheduleOut" runat="server" Text='<%# Bind("ToDate") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Compressed Work Hour" SortExpression="CompressedWorkHour" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:TextBox onpaste="return true" ID="txtRequiredWorkHours" runat="server"
                                                    Text='<%# Bind("CompressedWorkHour") %>'
                                                    CssClass="form-control"
                                                    Style="width: 100px;"
                                                    MaxLength="10"
                                                    onkeypress="return chkMaxLen(event,this,10,MaxLength);">
                                                </asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Reason" SortExpression="Reason" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCompressedWorkHoursReason" runat="server" Text='<% # Bind("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="Status" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCompressedWorkHoursStatus" runat="server" Text='<%# Bind("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>
