<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="LedgerDetails.aspx.cs" Inherits="LedgerDetails" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td colspan="4" class="hdr">Account Statement Report 
            </td>
        </tr>
        <tr>
            <td style="height: 30px" colspan="4"></td>
        </tr>
        <tr>
            <td colspan="4">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            From Date :
                            <asp:TextBox ID="txtFrmDate" runat="server" Width="120px" onkeypress="return digitonly(this,event)"
                                CausesValidation="True" AutoCompleteoff="true"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvFrmDate" runat="server" ErrorMessage="Please Enter Date from"
                                ControlToValidate="txtFrmDate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <cc1:ValidatorCalloutExtender ID="vceFromDate" runat="server" TargetControlID="rfvFrmDate">
                            </cc1:ValidatorCalloutExtender>
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFrmDate"
                                PopupPosition="Right" Format="yyyy-MM-dd">
                            </cc1:CalendarExtender>
                        </td>
                        
                        <td>
                            To Date :
                            <asp:TextBox ID="txtToDate" runat="server" Width="120px" onkeypress="return digitonly(this,event)"
                                CausesValidation="True" AutoCompleteoff="true"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvToDate" runat="server" ErrorMessage="Please Enter To Date"
                                ControlToValidate="txtToDate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <cc1:ValidatorCalloutExtender ID="vceToDate" runat="server" TargetControlID="rfvToDate">
                            </cc1:ValidatorCalloutExtender>
                            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtToDate"
                                PopupPosition="Right" Format="yyyy-MM-dd">
                            </cc1:CalendarExtender>

                        </td>
                         
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 10px; text-align: center;">
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="button" OnClick="btnSubmit_Click" />
                        </td>
                    </tr>
                    <%--<tr>
                        <td colspan="2" style="height: 10px; text-align: left;">
                            <asp:Label ID="lblTotCount" runat="server"></asp:Label>&nbsp;&nbsp;<asp:Label ID="lblTotAmount" runat="server"></asp:Label>
                        </td>
                    </tr>--%>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Panel ID="pnl" runat="server" Width="1000px" Style="overflow: scroll">
                    <asp:GridView ID="gvAccountReport" runat="server" AutoGenerateColumns="false"
                        GridLines="None" HorizontalAlign="Center">
                        <PagerStyle BackColor="#dddee0" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField HeaderText="Date/Time" DataField="TxnDate" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="TxnId" DataField="TxnId" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Service" DataField="Service" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="TxnType" DataField="TxnType" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="OpBal" DataField="OpeningBalance" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Amount" DataField="TxnAmount" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="ClBal" DataField="ClosingBalance" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Status" DataField="TxnStatus" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="ConsumerId" DataField="ConsumerId" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Mode" DataField="Mode" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="ReceiptNo" DataField="ReceiptNo" ItemStyle-Width="15%" />
                            <asp:BoundField HeaderText="ConsumerName" DataField="ConsumerName" ItemStyle-Width="15%" />
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <AlternatingRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>


        <tr>
            <td colspan="4" style="height: 30px">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
    </table>


</asp:Content>


