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

<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-md-12">
                <section class="panel">
                            
                        <header class="panel-heading">Business Group
                          <div class="action 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>
                                               
                                               <br />
                                                <div class="form-group">
                                                <div class="col-md-1"></div>
                                                <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Name</label>
                                                <div class="col-md-4">
                                                <asp:HiddenField ID="hid_BUSINESS_GROUP_ID" runat="server"></asp:HiddenField>
                                                <asp:TextBox ID="txt_BUSINESS_GROUP_NAME" runat="server" placeholder="Name" CssClass="form-control"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_BUSINESS_GROUP_NAME" ControlToValidate="txt_BUSINESS_GROUP_NAME" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                </div>
                                                </div>
                                                <div class="form-group">
                                                <div class="col-md-1"></div>
                                                  <label class="control-label col-md-2">Location</label>
                                                   <div class="col-md-4">
                                                     <asp:HiddenField ID="hid_location_id" runat="server"></asp:HiddenField>
                                                     <div class="input-group">
                                                         <asp:TextBox ID="txt_locationCode" ReadOnly= "true" CssClass="form-control " runat="server" ></asp:TextBox>
                                                         <span class="input-group-btn">
                                                            <button type="button" id="btn_lov_loc" runat="server" onserverclick="btn_lov_loc_Click" class="btn btn-white">
                                                            <i class="fa fa-search"></i></button>
                                                          </span>
                                                          <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_locationCode" ErrorMessage="Location is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>

                                                           <asp:DropDownList ID="ddl_loc" runat="server" Visible="false" CssClass="form-control select2"></asp:DropDownList>
                                                      </div>

                                                   </div>

                                                  
                                               
                                                </div>
                                                <div class="form-group">
                                                 <div class="col-md-1"></div>
                                                   <label class="control-label col-md-2">Address</label> 
                                                   
                                                  <div class="col-md-6">
                                                    <asp:TextBox ID="txt_locationAddress" CssClass="form-control" runat="server" TextMode="MultiLine" ></asp:TextBox>
                                                          
                                                 </div>
                                                 
                                                </div>
                                                <div class="form-group">
                                                <div class="col-md-1"></div>
                                                <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Comments</label>
                                                <div class="col-md-6">
                                                <asp:TextBox ID="txt_COMMENTS" runat="server" placeholder="Comments" CssClass="form-control"></asp:TextBox>
                                                </div>
                                                </div>
                                                <div class="form-group">
                                                   <div class="col-md-1"></div>
                                                    <label class="col-md-2 col-md-2 control-label">Date From</label>
                                                      <div class="col-md-8" style="padding-left:0px !important;">
                                                            
                                                               <div class="col-md-3">
                                                                  <asp:TextBox ID="Txtfdate" runat="server" placeholder="Date From" MaxLength="10" 
                                                                                                  CssClass="form-control datetime"></asp:TextBox>
                                                                  <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_Txtfdate" ControlToValidate="Txtfdate" ErrorMessage="Date From is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                                   
                                                              </div>
                                                              <label class="col-md-2 control-label">Date To</label>
                                                               <div class="col-md-3">
                                                               <asp:TextBox ID="Txttdate" runat="server" placeholder="Date To" MaxLength="10" CssClass="form-control datetime"></asp:TextBox>
                                                               </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-md-1"></div>
                                                                <asp:Label ID="r_lbl" runat="server" class="col-md-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
                                                                <div class="col-md-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 class="form-group">
                                                    <div class="col-md-1"></div>
                                                      <div class="col-md-offset-2 col-md-8">
                                                         
                                                      </div>
                                                    </div>
                             </div>

                </section>
            </div>
        </div>
    </asp:Panel>
    <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>
