<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="paymentreport.aspx.cs" Inherits="NECPATEL.paymentreport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     </BR>
    <h2><asp:Label ID="lblHeading" runat="server" Text="Payment Report"></asp:Label>
    </BR></h2> 
     <table>
        <tr>
            <td>Member Name :</td>
            <td colspan="2">
                <asp:TextBox ID="txtMember" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Paid by other?</td>
            <td colspan="2">
                <asp:CheckBox ID="chkPaidByOthers" runat="server" Text="" Checked="true" /></td>
            
        </tr>
        <tr>
            <td>Is Paid?</td>
            <td colspan="2">
                <asp:CheckBox ID="chkIsPaid" runat="server" Text="" Checked="true" /></td>
            
        </tr>
        
          <tr>
            <td>Payment type </td>
            <td colspan="2">
                <asp:DropDownList ID="ddlPaymentType" runat="server">
                    <asp:ListItem Value="1">Diwali 2016</asp:ListItem>
                    <asp:ListItem Value="2">Contribution 2016</asp:ListItem>
                    <asp:ListItem Value="3">Picnic 2016</asp:ListItem>
                    <asp:ListItem Value="4">Navratri 2016</asp:ListItem>
                    <asp:ListItem Value="5">Picnic 2017</asp:ListItem>
                    <asp:ListItem Selected="True" Value="12">Diwali 2017</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
         
         <tr>
            <td></td>
            <td colspan="2">
                </td>
            
        </tr>
        <tr>
            <td></td>
            <td>
            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /></td>
            <td><asp:Button ID="btnEmail" runat="server" Text="Send result" OnClick="btnEmail_Click" /></td>

        </tr>

        <tr>
           <td></td>
            </tr>
    </table>
    <asp:GridView ID="gvResult" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvResult_RowDataBound" ShowFooter="True">
        <Columns>
            <asp:BoundField DataField="FamilyName" HeaderText="Name" HeaderStyle-Width="500px" />
            <asp:BoundField DataField="event_name" HeaderText="Event" HeaderStyle-Width="70px"   ItemStyle-HorizontalAlign="center" FooterStyle-HorizontalAlign="Center"/>
            <asp:BoundField DataField="year" HeaderText="Year" HeaderStyle-Width="70px"  ItemStyle-HorizontalAlign="center" FooterStyle-HorizontalAlign="Right"/>
            <asp:BoundField DataField="kids" HeaderText="Kids" HeaderStyle-Width="70px"   ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"/>
            <asp:BoundField DataField="Adults" HeaderText="Adults" HeaderStyle-Width="70px"  ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"/>
            <asp:BoundField DataField="Amount" HeaderText="Amount" HeaderStyle-Width="70px"    ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"/>
            <asp:BoundField DataField="Donation" HeaderText="Donation" HeaderStyle-Width="70px"    ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"/>
            <asp:BoundField DataField="tx_amount" HeaderText="Payal Collection" HeaderStyle-Width="70px"    ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:C}"/>
            <asp:BoundField DataField="tx_status" HeaderText="Status" HeaderStyle-Width="70px"  />
            <asp:BoundField DataField="PaidBy" HeaderText="Paid By" HeaderStyle-Width="100px" />
            <asp:BoundField DataField="CardNumber" HeaderText="Card Number" HeaderStyle-Width="270px" ItemStyle-HorizontalAlign="center" />
            <asp:BoundField DataField="tx_date" HeaderText="Transaction Date" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="center" />
            <asp:BoundField DataField="transaction_id" HeaderText="Transaction ID" HeaderStyle-Width="70px" ItemStyle-HorizontalAlign="left" />

        </Columns>
     </asp:GridView>
</asp:Content>
