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

<%@ 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">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 width="1%"></td>
                        
                        <td width="25%">
                            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 width="25%">
                            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 width="20%">
                            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 width="20%">
                            UserName : <asp:TextBox ID="txtuserid" runat="server" Width="60px" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Mode : <asp:DropDownList ID="ddlMode" runat="server" Width="100px" >
                                <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 colspan="2">
                            Service : <asp:DropDownList ID="ddlService" runat="server" Width="100px" >
                                <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>
                        <td></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>
                </table>
            </td>
        </tr>
        <tr><td colspan="2">Total Records: <asp:Label ID="lblRecords" runat="server" Text="NA"></asp:Label></td>
            <td colspan="2">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="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%" />



                          


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


