<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Leave_ReadOnly.aspx.cs" Inherits="HRMS.ESS.Leave_ReadOnly" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="scriptManager" runat="server">
    </asp:ScriptManager>

     <asp:UpdatePanel runat="server" ID="upMain" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
<div class ="main-panel">
        <div class ="row">
            <div class ="col-md-12">
                <section class="panel">
                        <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary">   Notification For Leave Approval</span>
                     
                       <div class ="pull-right">
                            <asp:Button  CssClass="btn btn-info" ID ="Btnapprove" Text ="Approved" runat="server" OnClick="Btnapprove_onClick" />
                            <asp:Button  CssClass="btn btn-info" ID ="btn_reject" Text ="Reject" runat="server"  ValidationGroup="rjct" OnClick="Btn_Reject_onClick"  />
                           <asp:Button  CssClass="btn btn-info" ID ="btn_cancel" Text ="Back" runat="server" /> 
                       </div>
                        
                    </header>
                      <div class ="panel-body">

                                          <div class="span6">
                                <div id="divmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" ID="lbl_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                            <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" id="lbl_err_msg" CssClass="msg" runat="server"></asp:label>
                                    
                                </div>
                                </div>
                       <div class ="row" style="padding-top:10px">
                                <asp:HiddenField ID="hid_abs_id" runat ="server" />
                             <label class="control-label col-md-2">Employee Name</label>
                           <div class ="col-md-3">
                               <asp:TextBox runat ="server" ID ="txtemp_name" Enabled="false" CssClass ="form-control"></asp:TextBox>
                           </div> 
                                   
                           <label class ="control-label col-md-3">Employee No</label> 
                           <div class ="col-md-2">
                               <asp:TextBox ID="txtemp_no" runat ="server" CssClass ="form-control" Enabled="false"></asp:TextBox>
                           </div>  
                        </div>

                                 <div class ="row" style="padding-top:10px">
                             <label class="control-label col-md-2">Organization Email</label>
                            <div class ="col-md-3">
                                <asp:TextBox ID ="txtemail" runat ="server" CssClass="form-control" Enabled="false"></asp:TextBox>

                            </div>
                            <label class ="control-label col-md-3">Business Group</label>
                            <div class =" col-md-3">
                                <asp:TextBox ID ="txtbusinessgroup" Enabled="false" runat ="server" CssClass ="form-control"></asp:TextBox>
                            </div>
                                 </div>
                         <hr />
                          <div class ="row" style ="padding-top:10px">
                                <label class ="control-label col-md-2">Absence Type</label>
                              <div class ="col-md-3">
                                   <asp:DropDownList ID ="ddl_absence_type"  runat="server" Enabled="false" CssClass="form-control" ></asp:DropDownList>

                                  </div>   
                              <label class ="control-label col-md-2">Absence Category</label>
                              <div class = "col-md-2">
                                  <asp:TextBox ID="txtabs_catgory" runat ="server" Enabled="false" CssClass="form-control"></asp:TextBox>
                              </div>
                                                                                   
                        </div>
                          <div class ="row" style ="padding-top:10px">
                              <label class ="control-label col-md-2">Start Date</label>
                              <div class ="col-md-2">
                                  <asp:TextBox runat ="server" ID ="txtstartdate" CssClass="form-control" Enabled="false"></asp:TextBox>
                              </div>
                              <label class ="control-label col-md-3">End Date</label>
                              <div class="col-md-2">
                                  <asp:TextBox runat ="server" ID="txtenddate" CssClass="form-control" Enabled="false"></asp:TextBox>
                              </div>
                          </div>

                          <div class ="row" style ="padding-top:10px">
                              <label class ="control-label col-md-2">Replaced By</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control" runat ="server" ID="txtreplaceby" Enabled="false"></asp:TextBox>
                                </div>

                                  <div class="col-md-5">
                                  <asp:Label  CssClass="control-label" style="margin-left:187px" ID="lbl_total"  Text="Total Days" runat="server"></asp:Label>
                                        <asp:Label  CssClass="control-label" ID="txttotaldays" runat="server"></asp:Label>
                                  </div>

                          </div>
                         
                          <div class ="row" style ="padding-top:10px">
                              <label class ="control-label col-md-2">Comment</label>
                              <div class ="col-md-2">
                                  <asp:TextBox CssClass="form-control" runat ="server" TextMode="MultiLine" Height="80px" Width="650px" ID="txtcomment" Enabled="false"></asp:TextBox>
                              </div> 
                          </div>

                          <div class ="row" style ="padding-top:10px">
                              <label class ="control-label col-md-2">Reason</label>
                              <div class ="col-md-2">
                                  <asp:TextBox CssClass="form-control" runat ="server" TextMode="MultiLine" Height="80px" Width="650px" ID="txtreason"></asp:TextBox>
                                  <asp:requiredfieldvalidator errormessage="Reason is Required" controltovalidate="txtreason" ValidationGroup="rjct" runat="server"/>
                              </div> 
                          </div>

                          
                      
                      </div>

    </div>
     </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Btnapprove" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btn_reject" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
 