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

<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">
                    Transaction Posting
                     <div class="pull-right">
                            <asp:button text="Post" CssClass="btn btn-info" ID="btn_save" runat="server"  Visible= "false"
                                onclick="btn_save_Click"/>
                            <asp:button text="Get Unposted Transaction" CssClass="btn btn-info" ID="btn_get" runat="server"  ValidationGroup="get"
                                onclick="btn_get_Click"/>
                         <%--   <asp:button text="Back" CssClass="btn btn-info" ID="btn_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" style="padding-top:10px">
                             <label class="control-label col-md-2">Date From</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control datetime" ID="txt_frm_date" runat="server"></asp:TextBox>
                                     <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="get" runat="server" id="Req_txt_frm_date" controltovalidate="txt_frm_date" errormessage="Date From is Required!" />
                                </div>


                                 <label class="control-label col-md-2">Date To</label>
                                <div class="col-md-3">
                                    <asp:TextBox CssClass="form-control datetime" ID="txt_todate" runat="server"></asp:TextBox>
                                </div>
                            </div>


                            <hr />
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CssClass="display" CellPadding="0" border="0" OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="JE_HEADER_ID" HeaderText="ID"  ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" />
                        <asp:BoundField DataField="EXTERNAL_REFERENCE" HeaderText="Voucher No."/>
                        <asp:BoundField DataField="CURRENCY_CODE" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" />
                        <asp:BoundField DataField="DEFAULT_EFFECTIVE_DATE" HeaderText="Transaction Date" />
                        <asp:BoundField DataField="DESCRIPTION" HeaderText="Description" />
                        <asp:BoundField DataField="Debit" HeaderText="Debit" />
                        <asp:BoundField DataField="Credit" HeaderText="Credit" />
                        
                        <asp:TemplateField HeaderText="Action">
                            <ItemTemplate>
                                <asp:CheckBox ID="chk_post" runat="server" />&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="lnk_Vw" runat="server" CausesValidation="false" CommandName="gVw"><i class="fa fa-eye" style="font-size:20px !important;"></i></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>

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