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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="row">
        <div class="col-lg-12">
            <!--breadcrumbs start -->
            <ul class="breadcrumb">
                <li><a href="#" id="home" runat="server"><i class="fa fa-home"></i>Home</a></li>
                <li><a href="#" id="ppl" runat="server">People</a></li>
                <li><a href="#" id="ppl_index" runat="server">Employee List</a></li>
            </ul>
            <!--breadcrumbs end -->
        </div>
    </div>
    <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">List Of Previous Employers</span>
                        
                            <div class="pull-right">
                                <asp:Button ID="btn_save" CssClass="btn btn-info" Text="Save" runat="server" 
                                    onclick="btn_save_Click" />
                                   <a href="#" id="btn_cancel" 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">
                                    <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">
                                    <div class="col-md-3">
                                      <asp:HiddenField ID="hid_Previous_employer_id" runat="server"></asp:HiddenField>
                                    </div>
                            </div>


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

                                    <label class="control-label col-md-1">Address</label>
                                    <div class="col-md-3">
                                        <asp:TextBox ID="txt_address" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>
                            </div>


                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Country</label>
                                    <div class="col-md-3">
                                        <%--<asp:TextBox ID="txt_country" Visible="false" CssClass="form-control" runat="server"></asp:TextBox>--%>
                                            <asp:DropDownList ID="ddl_cntry" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                    </div>

                                    <label class="control-label col-md-1">Description</label>
                                    <div class="col-md-3">
                                        <asp:TextBox ID="txt_description" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>
                            </div>


                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Type</label>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_type" CssClass="form-control" runat="server"></asp:DropDownList>
                                    </div>

                                    <label class="control-label col-md-1">Sub Type</label>
                                    <div class="col-md-3">
                                        <asp:DropDownList ID="ddl_subtype" CssClass="form-control" runat="server"></asp:DropDownList>
                                    </div>
                            </div>

                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Start Date</label>
                                    <div class="col-md-3">
                                        <asp:TextBox ID="txt_strt_date" CssClass="form-control form_datetime" runat="server"></asp:TextBox>
                                       
                                    </div>

                                    <label class="control-label col-md-1">End Date</label>
                                    <div class="col-md-3">
                                       <asp:TextBox ID="txt_end_date" CssClass="form-control form_datetime" runat="server"></asp:TextBox>
                                    </div>
                            </div>


                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Year</label>
                                    <div class="col-md-3">
                                       <asp:TextBox ID="txt_year" ReadOnly="true" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>

                                    <label class="control-label col-md-1">Month</label>
                                    <div class="col-md-3">
                                       <asp:TextBox ID="txt_month" ReadOnly="true" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>
                            </div>


                            <div class="row" style="padding-top:10px">
                                <label class="control-label col-md-2">Days</label>
                                    <div class="col-md-3">
                                       <asp:TextBox ID="txt_days" ReadOnly="true" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>

                                    <label class="control-label col-md-1">Information</label>
                                    <div class="col-md-3">
                                       <asp:TextBox ID="txt_further_info" CssClass="form-control" runat="server"></asp:TextBox>
                                    </div>
                            </div>


                              <div class="row" style="padding-top:10px">
                               
                                    <div class="col-md-4 col-md-offset-2">
                                        <asp:CheckBox ID="chkbox_assignment" Text="" runat="server"/>
                                             <asp:Label CssClass="control-label" Text="All Assignments" runat="server"></asp:Label>
                                    </div> 
                            </div>

                            <div class="pull-right">
                                <asp:Button id="btn_addnew_dtl" CssClass="btn btn-info" Text="Add New" 
                                    runat="server" onclick="btn_addnew_dtl_Click" />
                            </div>

                            <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" runat="server" 
                                 AutoGenerateColumns="false" onrowcommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="PREVIOUS_JOB_ID" HeaderText="ID" />
                                    <asp:BoundField DataField="JOB_NAME" HeaderText="Job Name" />
                                    <asp:BoundField DataField="EMPLOYMENT_CATEGORY" HeaderText="Category" />
                                    <asp:BoundField DataField="START_DATE" HeaderText="Start Date" />
                                    <asp:BoundField DataField="END_DATE" HeaderText="End Date" />
                                    <%--<asp:BoundField DataField="PERIOD_YEARS" HeaderText="Period Year" />
                                    <asp:BoundField DataField="PERIOD_MONTHS" HeaderText="Period Month" />
                                    <asp:BoundField DataField="PERIOD_DAYS" HeaderText="Period Day" />--%>
                                        <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="link_edit" CausesValidation="false" CommandName="gEdit" runat="server"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                                 <asp:LinkButton ID="link_delete" CausesValidation="false" CommandName="gDelete" runat="server"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                </Columns>
                                        <FooterStyle CssClass="footerStyle" />
                                        <HeaderStyle CssClass="headerStyle" />
                                        <RowStyle CssClass="rowStyle" />
                            </asp:GridView>
                                     <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                                     <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js" type="text/javascript"></script>
                                     <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js" type="text/javascript"></script>
                                     <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                                     <script type="text/javascript">
                                         $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                                    </script>
                        </div>
                </section>
            </div>
        </div>
    </div>

     <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css"
        rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
