<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_PayInfoView, HoWaveVGO" title=" 在 线 支 付 信 息 管　理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<div class="pageTitle">在线支付信息列表</div>
<br />
    <table class="SearchTableStyle"> 
        <tr>
            <td class="tdbg5">客户名称：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtUserName" runat="server" Height="16px"/></td>
           <td class="tdbg5">银行信息：</td>
           <td class="tdbg5">
               <asp:DropDownList ID="DropeBankInfo" runat="server" AppendDataBoundItems="True" AutoPostBack="True">
                    <asp:ListItem Text="所有" Value="所有"></asp:ListItem>
                    <asp:ListItem>未知</asp:ListItem>
                    <asp:ListItem>支付完成</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td class="tdbg5">起始日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px"/> </td>
            <td class="tdbg5">结束日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtEndDate" runat="server" Height="16px"/></td>
        </tr>
        <tr>
         <td class="tdbg5">支付平台：</td>
        <td class="tdbg5">
          <asp:DropDownList ID="DropeBankID" runat="server" AppendDataBoundItems="True"   Width="118px" AutoPostBack="True"> 
                <asp:ListItem Text="所有" Value=""/>
                <asp:ListItem Text="支付宝支付" Value="支付宝支付" />
                <asp:ListItem Text="网银在线支付" Value="网银在线支付" />
                <asp:ListItem Text="快钱在线支付" Value="快钱在线支付" /> 
            </asp:DropDownList>
         </td>
         <td class="tdbg5" colspan="2"><asp:Button ID="QuickSearchBtn" Text="查询" runat="server" /></td>
     </tr>
    </table>
    <br />           
    <table class="SearchTableStyle"><tr><td>
        你现在查看的是： 
        <asp:DropDownList ID="DropStatus" runat="server" AutoPostBack="True">
                 <asp:ListItem Text="所有支付记录" Value=""></asp:ListItem>
                 <asp:ListItem>支付成功</asp:ListItem>
                 <asp:ListItem>未提交</asp:ListItem>
              </asp:DropDownList>
     
    </td></tr></table>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
        <ContentTemplate>
            
            <asp:GridView ID="GridView1" AllowSorting="True" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                DataSourceID="ObjectDataSource1" OnDataBound="GridView1_DataBound"
                ShowFooter="True" EmptyDataText="对不起没有找到符合你查询条件的数据" DataKeyNames="PaymentID" 
                OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CssClass="tableHead">
                <Columns>
                    <asp:TemplateField HeaderText="选中">
                        <ItemTemplate>
                            <asp:CheckBox ID="ChenkPayment" runat="server"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PaymentID" HeaderText="编号" />
                    <asp:BoundField DataField="PaymentNum" HeaderText="支付序号" />
                    <asp:TemplateField HeaderText="用户名">
                    <ItemTemplate> 

                      <a href='../Shop1/Shop_ShopIntro.aspx?UserID=<%#Eval("UserID")%>'> <asp:Label ID="Label1" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></a>
                      </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="eBankID" HeaderText="支付平台" />
                    <asp:BoundField DataField="PayTime" HeaderText="交易时间" />                   
                    <asp:BoundField DataField="MoneyTrue" HeaderText="交易额" />
                    <asp:BoundField DataField="Status" HeaderText="交易状态" />
                    <asp:BoundField DataField="eBankInfo" HeaderText="银行信息" />
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                    <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True" SortExpression="PayTime" HeaderText="操作" DeleteText="删除" SelectText="完成" />
                </Columns>
                <EmptyDataTemplate >                   
                      <div style="padding:10px;">没有符合查询条件的记录！</div>                                       
                    </EmptyDataTemplate> 
            </asp:GridView>
       </ContentTemplate>
       <Triggers>
           <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" />          
       </Triggers>
    </asp:UpdatePanel>
    <br />
    <asp:CheckBox ID="ChenkAll" runat="server" OnCheckedChanged="ChenkAll_CheckedChanged"
        Text="全选" AutoPostBack="True" />
    &nbsp; &nbsp;
    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="批量删除所选的数据" />
     
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        SelectMethod="GetPayInfoList" TypeName="Shop_PayInfo" DeleteMethod="DeletePayInfo" UpdateMethod="GetPayInfoList">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropeBankID" DefaultValue="" Name="eBankID" PropertyName="SelectedValue"
                Type="String" />
            <asp:ControlParameter ControlID="TxtUserName" Name="UserName" PropertyName="Text"
                Type="String" DefaultValue="" />
            <asp:SessionParameter DefaultValue="0" Name="SalerID" SessionField="Howave_UserID"
                Type="Int32" />
            <asp:ControlParameter ControlID="TxtBeginDate" DefaultValue="2007-01-01" Name="BeginTime"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TxtEndDate" DefaultValue="2008-01-01" Name="EndTime"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropStatus" Name="Status" PropertyName="SelectedValue"
                Type="String" DefaultValue="" />
            <asp:ControlParameter ControlID="DropeBankInfo" Name="eBankInfo" PropertyName="SelectedValue"
                Type="String" DefaultValue="所有" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="PaymentID" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="eBankID" Type="String" />
            <asp:Parameter Name="UserName" Type="String" />
            <asp:Parameter Name="SalerID" Type="Int32" />
            <asp:Parameter Name="BeginTime" Type="String" />
            <asp:Parameter Name="EndTime" Type="String" />
            <asp:Parameter Name="Status" Type="String" />
            <asp:Parameter Name="eBankInfo" Type="String" />
        </UpdateParameters>
    </asp:ObjectDataSource>
    
</asp:Content>


