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

<%@ 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">Daily EzyTap 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>
                            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>
                        <td>
                            Status : <asp:DropDownList ID="ddlStatus" runat="server" Width="90px" >
                                <asp:ListItem Value="0">All</asp:ListItem>
                                <asp:ListItem Value="AUTHORIZED">Authorized</asp:ListItem>
                                <asp:ListItem Value="EXPIRED">Expired</asp:ListItem>
                                <asp:ListItem Value="PENDING">Pending</asp:ListItem>
                                <asp:ListItem Value="REJECTED">Rejected</asp:ListItem>
                                     </asp:DropDownList>
                        </td>
                        <td>
                            Mode : <asp:DropDownList ID="ddlMode" runat="server" Width="90px" >
                                <asp:ListItem Value="0">All</asp:ListItem>
                                <asp:ListItem Value="CARD">Card</asp:ListItem>
                                <asp:ListItem Value="CASH">Cash</asp:ListItem>
                                <asp:ListItem Value="UPI">UPI</asp:ListItem>
                                     </asp:DropDownList>
                        </td>
                        <td>
                            Service : <asp:DropDownList ID="ddlService" runat="server" Width="90px" >
                                <asp:ListItem Value="0">All</asp:ListItem>
                                <asp:ListItem Value="BILLPAY">Billpay</asp:ListItem>
                                <asp:ListItem Value="TOPUP">Topup</asp:ListItem>
                                <asp:ListItem Value="ORANGEPAY">OrangePay</asp:ListItem>
                                     </asp:DropDownList>
                        </td>
                         
                    </tr>
                    <tr>
                        <td colspan="5" style="height: 10px; text-align: center;">
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="button" OnClick="btnSubmit_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" 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="Date" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Mobile No." DataField="customerMobile" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Customer Name" DataField="customerName" ItemStyle-Width="20%" />

                            <%--<asp:BoundField HeaderText="AccountID" DataField="" />--%>
                            <asp:BoundField HeaderText="User ID" DataField="username" ItemStyle-Width="5%" />
                            <asp:BoundField HeaderText="Mode" DataField="paymentMode" ItemStyle-Width="5%" />


                            <asp:BoundField HeaderText="Amount" DataField="amount" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Status" DataField="status" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Service Type" DataField="accountLabel" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Consumer ID" DataField="externalRefNumber" ItemStyle-Width="10%" />
                            <asp:BoundField HeaderText="Receipt No." DataField="externalRefNumber5" ItemStyle-Width="10%" />



                            <asp:TemplateField HeaderText="Receipt">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hyplnkReceipt" runat="server" Target="_blank" NavigateUrl='<%#Eval("receiptUrl") %>' Text="Receipt"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>


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


