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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="scriptManager" runat="server">
    </asp:ScriptManager>

     <asp:UpdatePanel runat="server" ID="upMain" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        List Of Structure
                        <div class="pull-right">
                            <asp:button text="New Record" CssClass="btn btn-info" ID="btn_addnew" 
                                runat="server" onclick="btn_addnew_Click" />
                        </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>

              <asp:Gridview runat="server" ID="GridView1" CssClass="display" CellPadding="0" border="0" 
                            AutoGenerateColumns="false" onrowcommand="GridView1_RowCommand">
                <Columns>
                    <asp:BoundField DataField="STRUCTURE_ID" HeaderText="ID" />
                    <asp:BoundField DataField="STRUCTURE_TITLE" HeaderText="Name" />
                    <asp:BoundField DataField="DESCRIPTION" HeaderText="Description" />

                    <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                            <asp:linkbutton text="text" ID="linkbtn" CommandName="iedit" runat="server">
                                  <span class ="fa  fa-pencil" style="font-size:20px"></span>
                            </asp:linkbutton>

                            <asp:linkbutton text="text" ID="lnkbtn" CommandName="idelete" Visible="false" OnClientClick="return confirm('Are you sure to delete?')" runat="server">
                                <span class ="fa fa-trash" style="font-size:20px"></span>
                            </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>
    </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
