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

<%@ 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 OrangePay 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="25%">
                            From Date :
                            <asp:TextBox ID="txt_fromdate" 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="txt_fromdate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <cc1:ValidatorCalloutExtender ID="vceFromDate" runat="server" TargetControlID="rfvFrmDate">
                            </cc1:ValidatorCalloutExtender>
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txt_fromdate"
                                PopupPosition="Right" Format="yyyy-MM-dd">
                            </cc1:CalendarExtender>
                        </td>
                        
                        <td width="25%">
                            To Date :
                            <asp:TextBox ID="txt_todate" 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="txt_todate" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <cc1:ValidatorCalloutExtender ID="vceToDate" runat="server" TargetControlID="rfvToDate">
                            </cc1:ValidatorCalloutExtender>
                            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txt_todate"
                                PopupPosition="Right" Format="yyyy-MM-dd">
                            </cc1:CalendarExtender>

                        </td>
                        <td width="25%">
                            Select Mode : <asp:DropDownList ID="drop_level" runat="server" Width="90px" >
                                <asp:ListItem Value="All">All</asp:ListItem>
    <asp:ListItem Value="UPI">UPI</asp:ListItem>
    <asp:ListItem Value="Card">CARD</asp:ListItem>
    <asp:ListItem Value="Cash">CASH</asp:ListItem>
                                     </asp:DropDownList>
                        </td>
                         <td width="20%">
                             User :  <asp:DropDownList ID="dropusername" runat="server" Width="150px">
     </asp:DropDownList>
                        </td>
                    </tr>
     
                    <tr>
                        <td colspan="2"><a style="color:#1e5791"><strong>
      <asp:LinkButton ID="lnk_download_Rpt" Text="Download Report" runat="server" 
          Visible="true" onclick="lnk_download_Rpt_Click"></asp:LinkButton></strong></a></td>
                        <td colspan="2" style="height: 10px; text-align: center;">
                            <asp:Button ID="btn_search" runat="server" Text="Search" CssClass="button" 
          onclick="btn_search_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
 
  <td colspan="4" style="height:30px; text-align:right; padding-right:15px;"> <asp:Label ID="lbl_totl" runat="server"></asp:Label></td>
      </tr>
        <tr>
            <td colspan="4">
                <asp:Panel ID="pnl" runat="server" Width="950px" Style="overflow: scroll">
                     <asp:GridView ID="gridview_completed" runat="server" AutoGenerateColumns="false" 
                  EmptyDataText="No record found" RowStyle-HorizontalAlign="Center" Width="100%" 
                  RowStyle-Height="10px" >
                                    <Columns>
                                    <asp:TemplateField HeaderText="S.No." ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_sno" Text='<%#Container.DataItemIndex+1 %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Txn. Date & Time" ItemStyle-Width="12%">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lblDatetype" Text='<%#Convert.ToDateTime(Eval("CreatedOn")).ToString("dd-MM-yyyy") %>' style="text-align:center; "></asp:Label>
                                         <asp:Label runat="server" ID="lbltime" Text='<%#Convert.ToDateTime(Eval("CreatedOn")).ToShortTimeString() %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Transaction ID" ItemStyle-Width="9%">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lblFlightCarrier" Text='<%#Eval("TxnId") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                      <asp:TemplateField HeaderText="Consumer Id" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_CA" Text='<%# Eval("CANumber") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Payment Mode" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_PMode" Text='<%# Eval("PaymentMode") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Paid Amount" ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_paidamount" Text='<%# Eval("PaidAmount") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                   
                                    <asp:TemplateField HeaderText="Receipt No." ItemStyle-Width="7%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblconsumer" Text='<%#Eval("ReceiptNo") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="BillPostStatus" ItemStyle-Width="5%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_acno" Text='<%#Eval("BillPostStatus") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="TerminalID" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_name" Text='<%#Eval("TerminalID")%>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="MID" ItemStyle-Width="5%" Visible="true">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lblcategory" Text='<%#Eval("MID") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="LoginID" ItemStyle-Width="5%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_amount" Text='<%#Eval("LoginId") %>' style="text-align:center; "></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    
                                   
                                </Columns>
                                <HeaderStyle BackColor="#CADAE8" Height="41px"></HeaderStyle>
                                
                                </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>


