<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="True" CodeBehind="FND_SIT_MASTER.aspx.cs"
    Inherits="HRMS.FND_SIT_MASTER" Title="Cloud HR - Sit Setup" %>

<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" style="padding-bottom:30px">
                           <span class="label label-primary">Sit Setup</span>
            
             <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">Cancel</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" style="padding-top:10px;">
                                <div class="col-md-5 col-md-offset-1">
                                  <label class="col-md-4 control-label">Sit Name</label>
                                  <div class="col-md-8">
                                        <asp:HiddenField ID="hid_SIT_ID" runat="server"></asp:HiddenField>
                                        <asp:TextBox ID="txt_SIT_NAME" runat="server" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_SIT_NAME" ControlToValidate="txt_SIT_NAME" ErrorMessage="Sit Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>

                                  </div>
                                </div>
                                 <div class="col-md-5">
                                  <label class="col-md-4 control-label">Work Flow</label>
                                   <div class="col-md-8">
                                        <asp:DropDownList ID="ddl_WORKFLOW_ID" runat="server" CssClass="form-control"></asp:DropDownList></div>
                                     
                                   </div>
                                </div>
                              
                               <hr />

                                 <div class="row" style="padding-top:10px;">
                                     <div class="col-md-8  col-md-offset-1">
                                        <label class="col-md-3 control-label">Comments</label>
                                        <div class="col-md-8">
                                            <asp:TextBox ID="txt_COMMENTS" runat="server" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
                                         </div>
                                    </div>
                                  </div>

                                  <div class="row" style="padding-top:10px;">
                                   <div class="col-md-8  col-md-offset-1">
                                     <label class="col-md-3 control-label">Date From</label>
                                     <div class="col-md-9" style="padding-left : 0px !important;">
                                          <div class="col-md-4">
                                                <asp:TextBox ID="txt_DATE_FROM" runat="server" CssClass="form-control"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_DATE_FROM" ControlToValidate="txt_DATE_FROM" ErrorMessage="Date From is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>

                                          </div>
                                          <label class="col-md-3 control-label">Date To</label>
                                          <div class="col-md-4">
                                          <asp:TextBox ID="txt_DATE_TO" runat="server"  CssClass="form-control"></asp:TextBox>

                                          </div>

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

     <div class="row" >
                          
                                                                    <div class="col-lg-12">
                                                                        <div class="panel">
                                                                            <div class="panel-heading">Sit Segments</div>
                                                                              <div class="actions pull-right">
                                                                              <div class="btn-group">

                                                                                    <a href="#" id="aNew" runat="server" class="btn btn-info">Add Detail</a>
                                                                                    </div>
                                                                                </div>
                                                                                 <div id="dtl_div" runat="server" class="panel-body">
                                                                             <asp:GridView ID="grd_dtl" runat="server"  AutoGenerateColumns="False"   
                                                                                         cellpadding="0" border="0" class="display" onrowcommand="grd_dtl_RowCommand" >
                                                                                <Columns>
                                                                                    <asp:BoundField HeaderText="id" DataField="SIT_SEQ_ID" />
                                                                                    <asp:BoundField HeaderText="Sequence " DataField="SEQ_NO" />
                                                                                    <asp:BoundField HeaderText="Segment" DataField="SEGMENT_NAME" />
                                                                                    <asp:BoundField HeaderText="Prompt" DataField="PROMPT" />
                                                                                    <asp:BoundField HeaderText="Lookup" DataField="LOOKUP_TYPE" />
                                                                                    <asp:BoundField HeaderText="Date From" DataField="DATE_FROM" />
                                                                                    <asp:BoundField HeaderText="Date To" DataField="DATE_TO" />                
                                                                                    <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action" ItemStyle-HorizontalAlign="Center">
                                                                                  <ItemTemplate>
                        
                                                                                    <asp:LinkButton ID="lnkEdit" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                                                                    
                                                  
                                                    
                                                                                    </ItemTemplate>

                                                                                    <ItemStyle Width="6%"></ItemStyle>
                                                                                 </asp:TemplateField>
                                                                                </Columns>
                                                                                <%-- Mandatory--%>
                                                                                <RowStyle CssClass="rowStyle"/>
                                                                               <%-- Mandatory--%>
                                                                                <HeaderStyle CssClass="headerStyle" />
                                                                               <%-- optional--%>
                                                                               <FooterStyle  CssClass="footerStyle"  />
                                                                    </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">
                                                                             //without passing class names.
                                                                             $("#ContentPlaceHolder1_grd_dtl").GridviewFix().dataTable();
                                                                             //Passing class names
                                                                         </script>
                                                                         <br />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                  </div>
                </div>
                </section>
            </div>
        </div>
        
    </asp:Panel>
</asp:Content>
