<%@ page language="C#" masterpagefile="~/Transactions/Transaction.master" autoeventwireup="true" inherits="Transactions_TA_UI_Transactions_LeavePermissionView, App_Web_4culqbxz" %>
<asp:Content ContentPlaceHolderID="CP_Transaction" ID="conLeavePermissionView" runat="server">
<script type="text/javascript">
    function openPopupMailCc()
   {
        var MailType="CC";
        window.open('GetEmailIdsPopup.aspx?MailType=' + MailType + '','Test','height=610,top=200,left=250,width=600');
        return false;
   }
   </script>
       <table align="center" border="0" cellpadding="0" cellspacing="0" width="500px">
        <tr>
            <td valign="top">
                <img height="15" src="../Images/corner1<%=Session["Direction"] %>.gif" width="15" /></td>
            <td background="../Images/sideline.gif" bgcolor="#EAEAEA" valign="top">
                <img height="1" src="../Images/spacer.gif" width="1" /></td>
            <td valign="top">
                <img height="15" src="../Images/corner2<%=Session["Direction"] %>.gif" width="15" /></td>
        </tr>
        <tr>
            <td background="../Images/line<%=Session["Direction"] %>.gif">
                &nbsp;</td>
            <td valign="top" bgcolor="#EAEAEA">
                <table align="center" border="0" cellpadding="0" cellspacing="1" width="500px">                                      
                    <tr>
                        <td>
                            <table align="center" border="0" cellpadding="0" cellspacing="1" width="500px" style="text-align:left;">
                                <tr>
                        <td class="ModuleTitle" colspan="2" style="width:500px" valign="top">
                            <asp:Label ID="lbl_Header" Text="Permission View" runat="server"></asp:Label></td>
                    </tr> 
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lblEmployeeId" Text="Employee Id" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblEmployeeIdData" runat="server" BorderStyle="None" Width="250px"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_EmpName" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lbl_EmployeeName" runat="server" BorderStyle="None" Width="250px"></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_PermissionApplicationDate1" Text="Application Date" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lbl_PermissionApplicationDate" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_Permissiondate" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblPermissionDate" runat="server" Text="PermissionDate"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_PermissionFromTime" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblPermissionFromTime" runat="server" Text="From Time"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_PermissionToTime" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblPermissionToTime" runat="server" Text="To Time"></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_AppliedHours" runat="server" Text="Applied Hours"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblAppliedHours" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">
                                        <asp:Label ID="lbl_Reason" runat="server"></asp:Label></td>
                                    <td class="td">
                                        <asp:Label ID="lblReason" runat="server" Text="lblReason"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td class="td" colspan="2">
                                        <div id="divLeaveConversation" runat="server">
                                        </div>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr style="display:none" >
                                    <td class="td">
                                        <asp:Label ID="lbl_Remarks" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    <td class="td">
                                    <asp:Label runat="server" ID="lblRemarks"></asp:Label>
                                        <%--<asp:TextBox ID="txtRemarks" runat="server" BorderStyle="None" CssClass="multitext"
                                            MaxLength="250" onkeypress="return CheckMaximumLength(this,250);" TextMode="MultiLine"
                                            Width="250px"></asp:TextBox>--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="td">                                   
                                    <asp:Label runat="server" ID="lbl_Status"></asp:Label>
                                    </td>
                                       <%-- <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" CssClass="td">
                                        </asp:RadioButtonList>--%>
                                        <td class="td">
                                        <asp:Label ID="lblStatus" runat="server"></asp:Label>
                                        <asp:Label ID="lbl_Error" Visible="false" runat="server" Style="color: #ff0000"></asp:Label></td>
                                </tr>
                                                                 <tr>
                                    <td class="td">
                                    <asp:Label ID="lblReasonForCancel" runat="server" Text="Reason For Cancellation"></asp:Label>
                                    </td>
                                    <td class="td">
                                    <asp:TextBox ID="txtReasonForCancel" Width="300px" runat="server" TextMode="MultiLine" Height="40px" MaxLength="1000" onkeypress="return chkMaxLen(event,this,1000);"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvReasonForCancel" runat="server" ControlToValidate="txtReasonForCancel" ErrorMessage="Reason for cancellation is required" SetFocusOnError="True" ValidationGroup="ReasonCancel">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                 <tr style="display:none" >
                                        <td class="td">
                                            <asp:Label ID="lblApprovalCC" runat="server" Text="Cc Mail Ids"></asp:Label></td>
                                        <td class="td">
                                            <asp:TextBox ID="txtApprovalCC" runat="server" CssClass="textbox_4" OnKeyPress="return false"
                                                Width="300px" Height="40px" TextMode="MultiLine"></asp:TextBox>
                                            <asp:Button ID="btnApprovalCC" runat="server" CssClass="but" Text="Cc..." Width="28px"
                                                OnClientClick="javascript:return openPopupMailCc();" /></td>
                                    </tr>
                                <tr>
                                    <td align="center" colspan="2" valign="middle" class="td">
                                        <asp:Button ID="btnModify" runat="server" CausesValidation="False" CssClass="but" OnClick="btnModify_Click" />
                                   <%-- </td>
                                     <td>--%>
                                        <asp:Button ID="btn_Delete" CssClass="but" Text="CANCEL PERMISSION" Width="150px" runat="server" CausesValidation="true"
                                            OnClientClick="if(Page_ClientValidate()) return confirm('Are you sure, to Cancel the Permission?');return false;" TabIndex="11" OnClick="btn_Delete_Click" />
                                    <%--</td>
                                    <td align="left" valign="middle" class="td">--%>
                                        <asp:Button ID="btnBack" runat="server" CausesValidation="False" CssClass="but"
                                            OnClick="btnBack_Click" />
                                    </td>
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph"
                                ShowMessageBox="True" ValidationGroup="ReasonCancel" ShowSummary="False" />
                                </tr>
                            </table>
                        </td>
                    </tr>                   
                </table>
            </td>
            <td background="../Images/line1<%=Session["Direction"] %>.gif">
                &nbsp;</td>
        </tr>
        <tr>
            <td valign="bottom">
                <img height="16" src="../Images/corner3<%=Session["Direction"] %>.gif" width="15" /></td>
            <td background="../Images/sideline1.gif" bgcolor="#EAEAEA" valign="bottom">
                <img height="1" src="../Images/spacer.gif" width="1" /></td>
            <td valign="bottom">
                <img height="16" src="../Images/corner4<%=Session["Direction"] %>.gif" width="15" /></td>
        </tr>
    </table>
</asp:Content>
