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

<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">
                        List Of Receiving Option
                    <div class="pull-right">
                        <asp:Button CssClass="btn btn-info" runat="server" ID="btn_addnew"
                            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 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 ID="GridView1" CssClass="display" CellPadding="0" Border="0"
                            AutoGenerateColumns="false" runat="server" OnRowCommand="GridView1_RowCommand">
                            <Columns>
                                <asp:BoundField DataField="ReceivingOption_ID" HeaderText="ID" />

                                <asp:BoundField DataField="Organizations" HeaderText="Organizations" />
                                <asp:BoundField DataField="DAYS_EARLY_RECEIPT_ALLOWED" HeaderText="DAYS EARLY RECEIPT" />
                                <asp:BoundField DataField="DAYS_LATE_RECEIPT_ALLOWED" HeaderText="DAYS LATE RECEIPT" />
                                <asp:BoundField DataField="RceivingAccount" HeaderText="Rceiving Account" />
                                <asp:BoundField DataField="CLEARING_ACCOUNT" HeaderText="CLEARING ACCOUNT" />


                                <asp:TemplateField HeaderText="Action">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="Hid_Recoption" runat="server" Value='<%#Bind("ReceivingOption_ID")%>' />
                                        <asp:LinkButton ID="lnk_edit" CausesValidation="false" CommandName="gedit" runat="server"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_dlt" CausesValidation="false" CommandName="gdlt" OnClientClick="return confirm('Are you sure to delete?')" runat="server"><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>
</asp:Content>
