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

<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">Lookup Type</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="col-lg-8"> 

                                        <div class="form-group">
                                        <div class="col-lg-1"></div>
                                        <%--<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Application</label>--%>
                                        <div class="col-lg-8">
                                        <asp:DropDownList Visible="false" ID="ddl_APPLICATION_ID" runat="server" CssClass="form-control select2"></asp:DropDownList><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_APPLICATION_ID" ControlToValidate="ddl_APPLICATION_ID" ErrorMessage="Application is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                        </div>
                                        </div>

                                        <div class="form-group">
                                        <div class="col-lg-1"></div>
                                        <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Lookup Type</label>
                                        <div class="col-lg-8">
                                        <asp:TextBox ID="txt_LOOKUP_TYPE" runat="server" placeholder="Lookup Type" CssClass="form-control text-uppercase"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_LOOKUP_TYPE" ErrorMessage="Lookup Type is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                        </div>
                                        </div>

                                        <div class="form-group">
                                        <div class="col-lg-1"></div>
                                        <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Meaning</label>
                                        <div class="col-lg-8">
                                        <asp:TextBox ID="txt_MEANING" runat="server" placeholder="Meaning" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_MEANING" ControlToValidate="txt_MEANING" ErrorMessage="Meaning is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                        </div>
                                        </div>

                                        <div class="form-group">
                                        <div class="col-lg-1"></div>
                                        <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Description</label>
                                        <div class="col-lg-8">
                                        <asp:TextBox ID="txt_DESCRIPTION" runat="server" placeholder="Description" CssClass="form-control"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_DESCRIPTION" ControlToValidate="txt_DESCRIPTION" ErrorMessage="Description is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                        </div>
                                        </div>

                                        </div>
                                        <div class="col-lg-4">
                                        <div class="form-group">
                                        <label>Access Level</label>
                                        <div class="radio">
                                        <asp:RadioButtonList ID="rdo_acc_lvl" runat="server" CssClass="radio" 
                                                RepeatLayout="UnorderedList">
                                            <asp:ListItem Value="U">User</asp:ListItem>
                                            <asp:ListItem Value="E">Extensible</asp:ListItem>
                                            <asp:ListItem Value="S">System</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>

                                        </div>
                                        </div>
                                        <div class="form-group">
                                        <div class="col-lg-1"></div>
                                        <div class="col-lg-offset-2 col-lg-8">
                                        <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>
                                        </div>


                                         <div class="row" >
                          
                                                                    <div class="col-lg-12">
                                                                        <div class="panel">
                                                                            <div class="panel-heading">Lookup Value</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="Code" DataField="LOOKUP_CODE" />
                                                                                    <asp:BoundField HeaderText="Meaning" DataField="MEANING" />
                                                                                    <asp:BoundField HeaderText="Description" DataField="DESCRIPTION" />
                                                                                    <asp:BoundField HeaderText="Tag" DataField="TAG" />
                                                                                    <asp:BoundField HeaderText="Enabled" DataField="ENABLED_FLAG_DESC" />
                                                                                    <asp:BoundField HeaderText="Date From" DataField="START_DATE_ACTIVE" />
                                                                                    <asp:BoundField HeaderText="Date To" DataField="END_DATE_ACTIVE" />                
                                                                                    <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>
      <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css"
        rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <%--<script src="/ThemeScrips/select2.min.js"></script>--%>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
