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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        Opening
                        <div class="pull-right">
                            <asp:Button CssClass="btn btn-info" ID="btn_save" Text="Save" runat="server" 
                                onclick="btn_save_Click" />
                            <asp:Button CssClass="btn btn-info" ID="btn_cancel" Text="Cancel" 
                                runat="server" onclick="btn_cancel_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>

                            <div class="row">
                                <label class="control-label col-md-2" runat="server">Open Type</label>
                                <div class="col-md-3">
                                    <asp:HiddenField ID="hid_opn_bal_mst_id" runat="server" />
                                    <asp:TextBox CssClass="form-control" ID="txt_open_type" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <br /><br />

                            <div class="row">
                                    <asp:GridView ID="GridView1" runat="server" CellPadding="0"  CssClass="display" 
                                        AutoGenerateColumns="False" onrowdatabound="GridView1_RowDataBound" 
                                        onrowcommand="GridView1_RowCommand">
                                        <Columns>
                                        <asp:TemplateField>
                                                <ItemTemplate>
                                                <asp:HiddenField ID="hid_emp" runat="server" Value='<%#Bind("EMPLOYEE_ID") %>' />
                                                <asp:Label ID="lbl_id" runat="server" Text='<%#Bind("FND_OPN_BAL_DTL_ID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                        
                                            <asp:TemplateField HeaderText="Employee">
                                               <ItemTemplate>
                                                    <asp:DropDownList CssClass="form-control col-md-2" ID="dropdown" runat="server"></asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="DateFrom">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_datefrm" CssClass="form-control col-md-2" runat="server" Text='<%#Bind("DATE_FROM") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                             <asp:TemplateField HeaderText="DateTo">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_dateto" CssClass="form-control col-md-2" runat="server" Text='<%#Bind("DATE_TO") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Value">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_value" CssClass="form-control col-md-2" runat="server" Text='<%#Bind("VALUE") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lnk" CommandName="g_add" runat="server"><i class="fa fa-plus" style="font-size:20px !important"></i></asp:LinkButton>
                                                    &nbsp;
                                                    <asp:LinkButton ID="lnk_dlt" CommandName="g_dlt" runat="server" OnClientClick="return confirm('Are you sure to delete?')"><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>
                    </div>

                </section>
            </div>
        </div>
    </div>
</asp:Content>
