<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Fnd_Index.aspx.cs" Inherits="HRMS.GL.Accounting_Calender.Fnd_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" style="padding-bottom:30px">
                           <span class="label label-primary">List Of Currencies</span>
                    
                        <div class="pull-right">
                            <asp:Button ID="btn_addnew" CssClass="btn btn-info" runat="server" 
                                Text="New Record" 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 ID="lbl_msg" runat="server" CssClass="msg" Text=""> </asp:Label>
                            </div>
                        </div>

                    <div class="span6">
                        <div id="diverrmessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                            <asp:Label ID="lbl_err_msg" runat="server" CssClass="msg" Text=""> </asp:Label>
                        </div>
                    </div>
                        
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" 
                             CssClass="display" CellPadding="0" Border="0" 
                             onrowcommand="GridView1_RowCommand">
                            <Columns>
                                <asp:BoundField DataField="CURRENCY_CODE" HeaderText="Currency Code" />
                                <asp:BoundField DataField="NAME" HeaderText="Name" />
                              <%--  <asp:BoundField DataField="DESCRIPTION" HeaderText="Description" />--%>
                               <%-- <asp:BoundField DataField="ISSUING_TERRITORY_CODE" HeaderText="Issuing Territory Code" />--%>
                                <asp:BoundField DataField="SYMBOL" HeaderText="Symbol" />
                                <%--<asp:BoundField DataField="PRECISION" HeaderText="Precision" />--%>
                                <%--<asp:BoundField DataField="EXTENDED_PRECISION" HeaderText="Extended Precision" />--%>
                               <%-- <asp:BoundField DataField="MINIMUM_ACCOUNTABLE_UNIT" HeaderText="Unit" />
                                <asp:BoundField DataField="DERIVE_TYPE" HeaderText="Type" />
                                <asp:BoundField DataField="DERIVE_FACTOR" HeaderText="Factor" />
                                <asp:BoundField DataField="START_DATE_ACTIVE" HeaderText="From" />
                                <asp:BoundField DataField="END_DATE_ACTIVE" HeaderText="To" />--%>
                             

                                <asp:BoundField DataField="ENABLED_FLAG" HeaderText="Enable" />
                                    <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="linkedit" CausesValidation="false" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                            <asp:LinkButton ID="linkdelete" Visible="false" CausesValidation="false" runat="server" CommandName="gDelete"><i class="fa fa-trash" style="font-size:20px !important"></i></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>
