<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PER_ABSENCE_ATTENDANCES.aspx.cs"
    Inherits="HRMS.PER_ABSENCE_ATTENDANCES" Title="Cloud HR - Absense Detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="main_pnl" runat="server">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
        <header class="panel-heading">Absense Detail
          <div class="pull-right">
           <asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save"  onclick="btnSave_Click" ValidationGroup="save" ></asp:Button>
            <a href="#" id="aCancel" runat="server" class="btn btn-info">Back</a>

          </div>
        </header>
            <div class="panel-body">

<div class="span6">
<div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
<i class="icon-check-sign"></i>
<asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
</div>
<div class="span6">
<div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
<i class="icon-check-sign"></i>
<asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
</div>
</div>
</div>


<div class="row">
    <div class="col-md-12">
      <div class="row">
        <label class="control-label col-md-2">Employee</label>
              <div class="col-md-5">
                   <div class="input-group">
                       <asp:HiddenField ID="hid_ELEMENT_TYPE_ID" runat="server" />
                    <asp:HiddenField ID="hid_ELEMENT_ENTRY_ID" runat="server" />
                       <asp:HiddenField ID="hid_ELEMENT_LINK_ID" runat="server" />
                       <asp:HiddenField ID="hid_assign" runat="server" />
                     <asp:TextBox ID="txt_PERSON_Name" CssClass="form-control" runat="server"></asp:TextBox>
                      
                       <span class="input-group-btn">
                               <button id="btn_lov_PERSON_ID" type="button" runat="server" class="btn btn-white">
                           <i class="fa fa-search"></i></button>
                         </span>
                         <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_PERSON_Name" controltovalidate="txt_PERSON_Name" errormessage="Employee is Required!" />

                    </div>
              </div>
               <div class="col-md-2">
                <asp:TextBox ID="txt_PERSON_ID" runat="server" CssClass="form-control"></asp:TextBox>
               </div>
      </div>
    </div>
</div>



<div class="row">
        <label class="control-label col-md-2">Type</label>
        <div class="col-md-3">
        
        <asp:HiddenField ID="hid_ABSENCE_ATTENDANCE_ID" runat="server"></asp:HiddenField>
           <asp:HiddenField ID="hid_ABSENCE_ATTENDANCE_TYPE_ID" runat="server"></asp:HiddenField>
           <div class="input-group">
             <asp:TextBox ID="txt_ABSENCE_ATTENDANCE_TYPE_ID" CssClass="form-control "  runat="server" ></asp:TextBox>
               <span class="input-group-btn">
                   <button id="btn_lov_ABSENCE_ATTENDANCE_TYPE_ID" type="button" runat="server" onserverclick="btn_lov_ABSENCE_ATTENDANCE_TYPE_ID_click" class="btn btn-white">
                   <i class="fa fa-search"></i></button>
                 </span>
                 <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_ABSENCE_ATTENDANCE_TYPE_ID" controltovalidate="txt_ABSENCE_ATTENDANCE_TYPE_ID" errormessage="Type is Required!" />
            </div>
        </div>
        <label class="control-label col-md-2">Category</label>
        <div class="col-md-3">
           <asp:TextBox ID="txt_ABSENCE_ATTENDANCE_TYPE_CATEGORY" CssClass="form-control " runat="server" ></asp:TextBox>
        </div>
 </div>
 <div class="row">
        <label class="control-label col-md-2">Reason</label>
        <div class="col-md-3">
             <asp:TextBox ID="txt_COMMENTS" runat="server"  CssClass="form-control"></asp:TextBox>
             <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_COMMENTS" controltovalidate="txt_COMMENTS" errormessage="Reason is Required!" />
         </div>
     
        <label class="control-label col-md-2">Occurrence</label>
        <div class="col-md-3">
           <asp:TextBox ID="TextBox2" CssClass="form-control " runat="server" ></asp:TextBox>
        </div>
 </div>
 <br />
<div class="row">
    <div class="col-md-12">
      
      <div class="row">
        <label class="control-label col-md-2">Notified Date</label>
        <div class="col-md-2"><asp:TextBox ID="txt_DATE_NOTIFICATION" runat="server" CssClass="form-control form_datetime"></asp:TextBox></div>

      </div>
     
      <div class="row">
        <label class="control-label col-md-2">From Date</label>
        <div class="col-md-2"><asp:TextBox ID="txt_EFFECTIVE_START_DATE" runat="server"  CssClass="form-control form_datetime">
        
        </asp:TextBox>
        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_EFFECTIVE_START_DATE" controltovalidate="txt_EFFECTIVE_START_DATE" errormessage="Date From is Required!" />
        </div>
        <label class="control-label col-md-1">Time</label>
        <div class="col-md-1"><asp:TextBox ID="txt_TIME_START" runat="server"  CssClass="form-control form_datetime"></asp:TextBox> </div>
         <label class="control-label col-md-1">To Date</label>
          <div class="col-md-2">
          <asp:TextBox ID="txt_EFFECTIVE_END_DATE" runat="server" CssClass="form-control form_datetime"></asp:TextBox>
          <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_EFFECTIVE_END_DATE" controltovalidate="txt_EFFECTIVE_END_DATE" errormessage="Date To is Required!" />
         </div>
         <label class="control-label col-md-1">Time</label>
         <div class="col-md-1"><asp:TextBox ID="txt_TIME_END" runat="server"  CssClass="form-control form_datetime"></asp:TextBox> </div>
         <%--<label class="control-label col-md-1">Duration</label>
        
         --%>
      </div>
      <br />
      <div class="row">
         <div class="col-md-4 col-md-offset-3">
            <div class="row">
              <h5>Duration</h5>
               <hr />
                <label class="control-label col-md-2">Days</label>
                  <div class="col-md-4">
                     <asp:TextBox ID="txt_ABSENCE_DAYS" runat="server" CssClass="form-control" Enabled="false"></asp:TextBox>
                  </div>
                  <label class="control-label col-md-2">Hours</label>
                  <div class="col-md-4">
                     <asp:TextBox ID="txt_ABSENCE_HOURS" runat="server" CssClass="form-control" Enabled="false"></asp:TextBox>
                  </div>
            </div>
         </div>
        
      </div>

    </div>
   


</div>
<br />
<br />
<div class="row">
    <div class="col-md-12">
      <div class="row">
        <label class="control-label col-md-2">Authorized by</label>
              <div class="col-md-6">
                   <div class="input-group">
                     <asp:TextBox ID="txt_AUTHORISING_PERSON_NAME" CssClass="form-control " runat="server" ></asp:TextBox>
                       <span class="input-group-btn">
                           <button id="btn_lov_AUTHORISING_PERSON_ID" type="button" runat="server" onserverclick="btn_lov_AUTHORISING_PERSON_ID_click" class="btn btn-white">
                           <i class="fa fa-search"></i></button>
                         </span>
                         <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_AUTHORISING_PERSON_NAME" controltovalidate="txt_AUTHORISING_PERSON_NAME" errormessage="Authorised Person is Required!" />
                    </div>
              </div>
               <div class="col-md-2">
                  <asp:TextBox ID="txt_AUTHORISING_PERSON_ID" CssClass="form-control " runat="server" ></asp:TextBox>
               </div>
      </div>
     
     
    </div>

</div>
<div class="row">
    <div class="col-md-12">
      <div class="row">
        <label class="control-label col-md-2">Replaced by</label>
              <div class="col-md-6">
                   <div class="input-group">
                     <asp:TextBox ID="txt_REPLACEMENT_PERSON_NAME" CssClass="form-control " runat="server" ></asp:TextBox>
                       <span class="input-group-btn">
                           <button id="btn_lov_REPLACEMENT_PERSON_ID" type="button" runat="server" onserverclick="btn_lov_REPLACEMENT_PERSON_ID_click" class="btn btn-white">
                           <i class="fa fa-search"></i></button>
                         </span>
                    </div>
              </div>
               <div class="col-md-2">
                  <asp:TextBox ID="txt_REPLACEMENT_PERSON_ID" CssClass="form-control " runat="server" ></asp:TextBox>
               </div>
      </div>
    </div>
</div>
<br />
<div class="row">
    <div class="col-md-8 col-md-offset-1">
      <div class="row">
        <h5>Balance Information</h5>
        <hr />
      </div>
      <div class="row">
        <label class="control-label col-md-4">Associated Element</label>
        <div class="col-md-7">
          <asp:TextBox ID="TextBox1" CssClass="form-control " runat="server" ></asp:TextBox>
        </div>
      </div>
      <div class="row">
        <label class="control-label col-md-4">Running Total</label>
        <div class="col-md-3">
          <asp:TextBox ID="TextBox3" CssClass="form-control " runat="server" ></asp:TextBox>
        </div>
      </div>
      <div class="row">
        <label class="control-label col-md-4">In Current Year</label>
        <div class="col-md-3">
          <asp:TextBox ID="TextBox4" CssClass="form-control " runat="server" ></asp:TextBox>
        </div>
        <div class="col-md-5">
        <asp:RadioButtonList ID="rdo_uom" CssClass="radio-list" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
        </div>
      </div>
      
    </div>
</div>



<div class="form-group">
<asp:Repeater ID="add_info" runat="server">
<HeaderTemplate> <header class="panel-heading">Additional Information</header><br /></HeaderTemplate>
<ItemTemplate>
<div class="form-group">
<div class="col-lg-1"></div>
<asp:Label ID="r_lbl" runat="server" class="col-lg-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
<div class="col-lg-4">
<asp:TextBox ID="txt_r_value" runat="server"  placeholder='<%# Eval("PROMPT") %>' Text='<%# Eval("value") %>' CssClass="form-control"></asp:TextBox>
<asp:HiddenField ID="hid_field_name" runat="server" Value='<%# Eval("col_name") %>' ></asp:HiddenField>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>


            </div>
        </section>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
