<%@ 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" style="padding-bottom:30px">
                           <span class="label label-primary"> Lookup Type</span>


                      </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">
                                <%--<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="row">
                                <label for="inputPassword1" class="col-xs-4 col-sm-3 col-md-4 col-lg-3 control-label">Lookup Type</label>
                                <div class="col-xs-6 col-sm-7 col-md-3 col-lg-3">
                                    <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>


                                <label for="inputPassword1" class="col-xs-4 col-sm-3 col-md-2 col-lg-2 control-label">Meaning</label>
                                <div class="col-xs-6 col-sm-7 col-md-3 col-lg-3">
                                    <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="row">
                                <label for="inputPassword1" class="col-xs-4 col-sm-3 col-md-4 col-lg-3 control-label">Description</label>
                                <div class="col-xs-6 col-sm-7 col-md-5 col-lg-5">
                                    <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 class="row">
                                <label class="control-label col-xs-4 col-sm-3 col-md-4 col-lg-3">Access Level</label>
                                <div class="radio col-xs-3 col-sm-4 col-md-4 col-lg-3">
                                    <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 class="row">
                            <div class="col-xs-offset-4 col-sm-offset-3 col-md-offset-4 col-lg-offset-3 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="panel">
                                    <div class="panel-heading">Lookup Value</div>
                                    <div class="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 table-responsive">
                                        <asp:GridView ID="grd_dtl" runat="server" AutoGenerateColumns="False" Width="100%"
                                            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>
                </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>
