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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        #request td {
            font-size:12px!important;
        }
    </style>
</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">TopUp Transaction 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 style="height: 10px; text-align: center;">
                            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 style="height: 10px; text-align: center;">
                            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>
                </table>
            </td>
        </tr>
        <tr><td colspan="2" style="height: 10px; text-align: center;">Total Records: <asp:Label ID="lblRecords" runat="server" Text="NA"></asp:Label></td>
            <td colspan="2" style="height: 10px; text-align: center;">Total Amount: <asp:Label ID="lblTotAmount" runat="server" Text="NA"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Panel ID="pnl" runat="server" Width="950px" Style="overflow: scroll">
                    <asp:GridView ID="gvAccountReport" runat="server" AutoGenerateColumns="false"
                        GridLines="None" HorizontalAlign="Center" OnRowDataBound="gvAccountReport_RowDataBound" ShowFooter="true" >
                        <PagerStyle BackColor="#dddee0" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" Font-Size="Smaller"/>
                        <HeaderStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#dddee0" Font-Bold="True" ForeColor="Black" />
                        <AlternatingRowStyle BackColor="White" Font-Size="Smaller" />
                        <Columns>
                              <asp:TemplateField HeaderText="Receipt">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hyplnkReceipt" runat="server" Target="_blank" NavigateUrl='<%#Eval("receiptUrl") %>' Text="Receipt"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Date/Time" DataField="Transaction_datetime" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Mobile No." DataField="customerMobile" ItemStyle-Width="5%" />
                             <asp:BoundField HeaderText="RefNo" DataField="Reference_number" ItemStyle-Width="20%" />

                           <asp:BoundField HeaderText="RRN" DataField="rrNumber" />
                            <asp:BoundField HeaderText="User ID" DataField="username" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Mode" DataField="PaymentMode" ItemStyle-Width="5%" />


                            <asp:BoundField HeaderText="OpeningBal" DataField="OpBal" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="TxnAmt" DataField="TxnAmount" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Txn Type" DataField="TxnType" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="ClosingBal" DataField="CloBal" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Status" DataField="status" ItemStyle-Width="10%" />



                          


                        </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>


