<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="End_Employeement.aspx.cs" Inherits="HRMS.End_Employeement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                <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">
                                <label class="col-md-2 control-label">Date Start</label>
                                <div class="col-md-2">
                                <asp:HiddenField ID="hid_pr_srvc" runat="server" />
                                    <asp:TextBox ID="txt_dt_strt" Enabled="false" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                </div>

                                <label class="col-md-1 control-label">Name</label>
                                <div class="col-md-2">
                                    <asp:TextBox ID="txt_emp_name" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>


                                <label class="col-md-2 control-label">Leaving Reason</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_reason" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="Reason is Required" ControlToValidate="txt_reason" SetFocusOnError="true" ValidationGroup="save" runat="server" />
                                </div>

                            </div>
                            <br />
                              <div class="row">
                                <div class="col-md-10 col-md-offset-1">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a data-toggle="tab" href="#pos_dtl">Lenght of Service</a></li>
                                    </ul> 
                                </div>
                              </div> 


                           <div class="tab-content">
                           <div id="pos_dtl" class="tab-pane fade in active">
                              <div class="row">
                               <div class="col-md-10 col-md-offset-1">
                                   <div class="row">
                                    <div class="col-md-12">
                                    <div class="row">
                                        <div class="col-md-6">
                                        <label class="control-label"> This Service </label>
                                        <asp:Panel ID="pnl_org_dept" runat="server" Width="390px" BorderStyle="Solid" BorderWidth="1px" BorderColor="#F1F2F7" Style="padding:15px 5px 15px 5px;"> 
                                         <div class="row">
                                              <div class="col-md-10">  
                                                  <div class="row">
                                                          <label class="control-label col-md-2"> Year </label>
                                                     <div class="col-md-3">
                                                         <asp:TextBox ID="txt_year" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                                                          <%--<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>--%>
                                                     </div>

                                                     <label class="control-label col-md-2"> Month </label>
                                                     <div class="col-md-3">
                                                         <asp:TextBox ID="txt_mnth" runat="server" Enabled="false" CssClass="form-control"></asp:TextBox>
                                                          <%--<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>--%>
                                                     </div>
                                                  </div>
                                              </div>
                                          </div>
                                     </asp:Panel>
                                        </div>
                                        
                                         <div class="col-md-6">
                                         <label class="control-label"> Total Service </label>
                                        <asp:Panel ID="Panel1" runat="server" Width="390px" BorderStyle="Solid" BorderWidth="1px" BorderColor="#F1F2F7" Style="padding:15px 5px 15px 5px;"> 
                                         <div class="row">
                                              <div class="col-md-10">  
                                                  <div class="row">
                                                          <label class="control-label col-md-2"> Year </label>
                                                     <div class="col-md-3">
                                                         <asp:TextBox ID="txt_totl_year" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                                                          <%--<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>--%>
                                                     </div>

                                                     <label class="control-label col-md-2"> Month </label>
                                                     <div class="col-md-3">
                                                         <asp:TextBox ID="txt_totl_mnth" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                                                          <%--<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_BUSINESS_GROUP_ID" ControlToValidate="" ErrorMessage="Business Group is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>--%>
                                                     </div>
                                                  </div>
                                              </div>
                                          </div>
                                     </asp:Panel>
                                        </div>

                                    </div>
                                       
                                     
                                 
                                   </div>
                                   </div>

                                       
                                  <hr class="divider"  /> 

                                </div>
                              </div>
                               
                           </div>
                     
                 </div>  


                   <div class="row">
                        <div class="col-md-10 col-md-offset-1">
                           <ul class="nav nav-tabs">
                             <li class="active"><a data-toggle="tab" href="#pos_dtl">Termination Date</a></li>
                          </ul> 
                      </div>
                </div>
                
                
                <div class="row" style="padding-top:10px">
                    <label class="col-md-2 control-label">Notified</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_notf_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="Notify Date is Required" ControlToValidate="txt_notf_date" SetFocusOnError="true" ValidationGroup="save" runat="server" />
                    </div>

                    <label class="col-md-1 control-label">Projected</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_projctd" runat="server" CssClass="form-control datetime"></asp:TextBox>
                    </div>

                     <label class="col-md-2 control-label">Actual</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_actual" runat="server" CssClass="form-control datetime"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ErrorMessage="Actual Date is Required" ControlToValidate="txt_actual" SetFocusOnError="true" ValidationGroup="save" runat="server" />
                    </div>

                </div> 

                 <div class="row" style="padding-top:10px">
                    <label class="col-md-2 col-md-offset-3 control-label">Last Standard Process</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_lst_stnd_prs" runat="server" CssClass="form-control datetime"></asp:TextBox>
                    </div>

                     <label class="col-md-2 control-label">Final Process</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_fnl_prs" runat="server" CssClass="form-control datetime"></asp:TextBox>
                    </div>
                </div>
                              <div class="row" style="padding-top:10px">
                                <div class="col-md-10 col-md-offset-1">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a data-toggle="tab" href="#pos_dtl">Person Type and Assignment Status for Terminated Employee</a></li>
                                    </ul> 
                                </div>
                              </div> 
                              
                              <div class="row" style="padding-top:10px">
                    <label class="col-md-2 control-label">Type</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_type" runat="server" CssClass="form-control"></asp:TextBox>
                    </div>

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


                <div class="row" style="padding-top:10px">
                                <div class="col-md-10 col-md-offset-1">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a data-toggle="tab" href="#pos_dtl">Termination Accepted By</a></li>
                                    </ul> 
                                </div>
                              </div> 

                              <div class="row" style="padding-top:10px">
                    <label class="col-md-2 control-label">Date</label>
                    <div class="col-md-2">
                        <asp:TextBox ID="txt_acc_date" runat="server" CssClass="form-control datetime"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ErrorMessage="Date is Required" ControlToValidate="txt_acc_date" SetFocusOnError="true" ValidationGroup="save" runat="server" />
                    </div>


                    <div class="col-md-6">
                                   <label class="col-md-1 control-label">Name</label>
                                      <div class="col-md-6">
                                            <asp:HiddenField ID="hid_per_id" runat="server"></asp:HiddenField>
                                                     <div class="input-group">
                                                         <asp:TextBox ID="txt_acc_name" runat="server" CssClass="form-control"></asp:TextBox>
                                                         <asp:RequiredFieldValidator ID="RequiredFieldValidator_txt_acc_name" ErrorMessage="Termination accepted by Required" ControlToValidate="txt_acc_name" SetFocusOnError="true" ValidationGroup="save" runat="server" />
                                                         <span class="input-group-btn">
                                                            <button id="btn_lov_per" type="button" runat="server" onserverclick="btn_lov_per_Click" class="btn btn-white">
                                                            <i class="fa fa-search"></i></button>
                                                          </span>
                                                      </div>
                                     </div>

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

                      
                </div> 
                
                <div class="row" style="padding-top:20px">
                        <asp:Button ID="btn_trm" Width="190px" runat="server" ValidationGroup="save" 
                            CssClass="btn btn-info col-md-offset-1" Text="Terminate" 
                            onclick="btn_trm_Click" />
                        <asp:Button ID="btn_rvs" Width="200px" runat="server" CssClass="btn btn-info" 
                            Text="Terminated Employees List" onclick="btn_rvs_Click" />
                </div>
                </div>
            </section>
            </div>
        </div>
    </div>
</asp:Content>
