<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" enableeventvalidation="false" inherits="Transactions_TA_UI_Transactions_OnDutySanctionModify, App_Web_qvjumuuq" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <script type="text/javascript">
        //ctl00_BodyContentPH_rbForwarded
        function rbApproved_Select() {
            if (document.getElementById("ctl00_BodyContentPH_rbApproved").checked == true) {
                document.getElementById("ctl00_BodyContentPH_hfstatus").value = "Approved";
            }
            if (document.getElementById("ctl00_BodyContentPH_rbForwarded").checked == true) {
                document.getElementById("ctl00_BodyContentPH_hfstatus").value = "Forwarded";
            }
            if (document.getElementById("ctl00_BodyContentPH_rbPending").checked == true) {
                document.getElementById("ctl00_BodyContentPH_hfstatus").value = "Pending";
            }
            if (document.getElementById("ctl00_BodyContentPH_rbRejected").checked == true) {
                document.getElementById("ctl00_BodyContentPH_hfstatus").value = "Rejected";
            }
        }

        function ValidationPage() {
            //if(document.getElementById('ctl00_BodyContentPH_txtRemarks').value=="")
            //{
            //    alert('Enter Remarks');
            //    return false;
            //}
        }
        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">
                <div class="col-sm-2">
                </div>
                <div class="col-sm-2 col-sm-offset-8">
                    <div class="pull-right">
                        <h6>
                            <span><span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px"><asp:Label
                                ID="lbl_Man" runat="server"></asp:Label>
                                (1 No.)</span>
                        </h6>
                    </div>
                </div>
                <div class="clearfix">
                </div>
            </div>
        </div>
        <div class="emp-filter">
            <asp:UpdatePanel ID="upLeave" runat="server">
                <ContentTemplate>
                    <asp:Panel ID="pnlProgress" runat="server" Style="display: none;">
                        <asp:Panel ID="pnlLoading" runat="server" HorizontalAlign="center">
                            <div class="InsideProgressBar">
                                <div class="row" style="margin-top: 10px">
                                    <img src="../dist/img/logo-Progress.png" />
                                </div>
                                <div class="row" style="min-width: 280px">
                                    <img src="../dist/img/default.gif" style="width: 100px" />
                                </div>
                                <div class="row" style="margin-bottom: 10px">
                                    <asp:Label ID="lblLoading" runat="server" ForeColor="black" Style="text-align: center"
                                        Font-Bold="true" Font-Size="12px" Font-Italic="true" Font-Family="Arial" Text="Please Wait..."></asp:Label>
                                </div>
                                <div class="clear clearfix">
                                </div>
                            </div>
                        </asp:Panel>
                    </asp:Panel>
                    <asp:HiddenField ID="hdnProgress" runat="server" />
                    <cc1:ModalPopupExtender ID="popupProgress" runat="server" TargetControlID="hdnProgress"
                        BackgroundCssClass="ModalPopup" PopupControlID="pnlProgress" BehaviorID="popupProgress">
                    </cc1:ModalPopupExtender>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="btn_Save" />
                </Triggers>
            </asp:UpdatePanel>
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-md-12">
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_EmployeeId" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_EmpId" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_EmployeeName" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_EmpName" runat="server" CssClass="form-control" Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_OnDutyType" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lblOnDutyTypeName" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_ManualTimeEntryDate" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_EntryDate" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                            <div style="display: none;">
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_Shiftname1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_Shiftname" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div id="divSingle" runat="server">
                            <div class="row form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_InDate1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_InDate" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_InTime1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_InTime" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                            <div class="row" style="display: none;">
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_InPunchType1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_InPunchType" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                            <div class="row form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_OutDate1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_OutDate" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_OutTime1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_OutTime" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                            <div class="row" style="display: none;">
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_OutPunchType1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_OutPunchType" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                            <div class="row" style="display: none;">
                                <div class="col-md-2">
                                    <asp:Label ID="lbl_EntranceName1" runat="server" CssClass=" "></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lbl_EntranceName" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div id="divMulti" runat="server">
                            <div class="row form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblFromDate1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lblFromDate" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblFromSession1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lblFromSession" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                            <div class="row form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblToDate1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lblToDate" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblTosession1" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:Label ID="lblTosession" runat="server" CssClass="form-control"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Reason1" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_Reason" runat="server" Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"
                                    CssClass="form-control"></asp:Label>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Status1" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_Status" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                        </div>
                        <div class="row" style="display: none;">
                            <div class="col-md-2">
                                <asp:Label ID="lblEntryType" Text="Entry Type" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_EntryType" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Remarks" runat="server" Text="Remarks"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:TextBox ID="txtRemarks" runat="server" MaxLength="250" onkeypress="return chkMaxLen(event,this,250,MaxLength);" onpaste="return true"
                                    TextMode="MultiLine" Height="50px" CssClass="form-control" Style="resize: none"></asp:TextBox>
                            </div>
                        </div>
                         <div id="divComments" runat="server">
                            <div class="form-group">
                                <div class="col-md-11 src-LeavePaddingRight">
                                    <div id="divLeaveConversation" runat="server">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="divStatus" runat="server" style="width: 100%">
                            <div class="row form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
                                    <%--<asp:RadioButtonList ID="rblStatus" runat="server" RepeatLayout="flow" RepeatDirection="Horizontal"
                                        CssClass="radio radio-primary">
                                    </asp:RadioButtonList>--%>
                                </div>
                                <div class="col-md-10 pad-left-0px">
                                    <div class="col-md-2">



                                        <asp:RadioButton ID="rbApproved" Text="Approved" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" onchange="rbApproved_Select();" />
                                    </div>
                                    <div class="col-md-2">
                                        <asp:RadioButton ID="rbForwarded" Text="Forwarded" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" onchange="rbApproved_Select();" />
                                    </div>
                                    <div class="col-md-2">
                                        <asp:RadioButton ID="rbPending" Text="Pending" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" onchange="rbApproved_Select();" />
                                    </div>
                                    <div class="col-md-2">
                                        <asp:RadioButton ID="rbRejected" Text="Rejected" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" onchange="rbApproved_Select();" />
                                    </div>
                                    <div class="col-md-1">
                                        <asp:RadioButton ID="rbResend" Text="Resend" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" Visible="false" />
                                    </div>
                                    <div class="col-md-1">
                                        <asp:RadioButton ID="rbReply" Text="Reply" runat="server" CssClass="radio radio-primary"
                                            GroupName="ValStatus1" Visible="false" />
                                    </div>
                                    <asp:HiddenField ID="hfstatus" runat="server" />
                                    <asp:Label ID="lbl_Error" runat="server" Style="color: #ff0000"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                            </div>
                            <div class="col-md-5">
                                <div class="pull-right-button">
                                    <asp:LinkButton ID="btn_Save" runat="server" CssClass="btn save-btn fa-floppy-o"
                                        OnClientClick="$find('popupProgress').show();" Text="SAVE"
                                        OnClick="btn_Save_Click" />
                                    <asp:Button ID="btn_Modify" CssClass="but" runat="server" Style="display: none;" />
                                    <asp:HiddenField ID="hdnStatusofApplication" runat="server" />
                                    <asp:HiddenField ID="hdnAutorityLevel" runat="server" />
                                    <asp:LinkButton ID="btn_Cancel" CssClass="btn save-btn fa-angle-left" runat="server"
                                        CausesValidation="False" OnClick="btn_Cancel_Click" />
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                        ShowSummary="False" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
