<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopPayInfoView, HoWaveVGO" title=" 在 线 支 付 信 息 管　理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<script src="Js/Function.js" type="text/javascript"></script>  
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">订单管理</th>
      <td align="right">
      <div style="width:400px">
            <a href="Admin_ShopTradeOrder.aspx" >交易记录管理</a>&nbsp;|&nbsp;
            <a href="Admin_ShopSendOrderView.aspx?add=1">发退货管理</a>&nbsp;|&nbsp;
            <a href="Admin_ShopInvoiceView.aspx">开发票记录管理</a>&nbsp;|&nbsp;
            <a  href="Admin_ShopPayInfoView.aspx">在线支付管理</a>&nbsp;<br />                
      </div>
      </td> 
      <td class="rtdw"></td>          
   </tr>                     
</table>

       <table class="nick">
        <tr>
            <td colspan="4" class="tit">在线支付信息列表</td>
        </tr>
        <tr>
            <td class="ltd">卖家名称：</td>
            <td class="rtd" style="width: 35%;"><asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" /></td>
            <td class="ltd">卖家列表：</td>
            <td class="rtd" style="width: 35%;">
               <asp:DropDownList ID="DropSalerID" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource2"
                    DataTextField="username" DataValueField="userid" AppendDataBoundItems="True" Width="67px">
                    <asp:ListItem Value="-1" Text="所有"/>
                </asp:DropDownList>          
               
            </td>
        </tr>
        <tr>
            <td class="ltd">
                客户：</td>
            <td class="rtd" style="width: 35%;">
                <asp:TextBox ID="TxtUserName" runat="server"  AutoPostBack="True"/></td>
            <td class="ltd">
                银行信息：</td>
            <td class="rtd" style="width: 35%;">
                <asp:DropDownList ID="DropeBankInfo" runat="server" AutoPostBack="True">
                    <asp:ListItem>所有</asp:ListItem>
                    <asp:ListItem>未知</asp:ListItem>
                    <asp:ListItem>支付完成</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
     <tr>
         <td class="ltd">
             支付平台：</td>
         <td class="rtd" style="width: 35%;">
             <asp:DropDownList ID="DropeBankID" runat="server" AppendDataBoundItems="True"  AutoPostBack="True">
                 <asp:ListItem Text="所有" Value=""/>
                 <asp:ListItem Text="支付宝支付" Value="支付宝支付"/>
                 <asp:ListItem Text="网银在线支付" Value="网银在线支付"/>
                 <asp:ListItem Text="快钱在线支付" Value="快钱在线支付"/> 
             </asp:DropDownList>
         </td>
         <td class="ltd">
             状态：</td>
         <td class="rtd" style="width: 35%;">
            <asp:DropDownList ID="DropStatus" runat="server" AutoPostBack="True">
             <asp:ListItem Text="所有" Value=""/>
             <asp:ListItem>支付成功</asp:ListItem>
             <asp:ListItem>未提交</asp:ListItem>
         </asp:DropDownList></td>
     </tr>
        <tr>
           <td class="ltd">
                起始日期 :</td>
           <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtBeginDate" runat="server" AutoPostBack="True"/>
            </td>
            <td class="ltd">结束日期:</td>
            <td class="rtd" style="width: 35%;"><asp:TextBox ID="TxtEndDate" runat="server"/></td>
        </tr>
    </table><br />
           
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" > 
    <ContentTemplate>
            <asp:GridView ID="GridView1"  CssClass="adminlist"  AllowSorting="True" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                DataSourceID="ObjectDataSource1" OnRowDataBound="GridView1_RowDataBound" OnDataBound="GridView1_DataBound"
                ShowFooter="True" RowStyle-HorizontalAlign="Center" DataKeyNames="PaymentID" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                <Columns>
                    <asp:TemplateField HeaderText="选中">
                        <HeaderTemplate>
                          <input id="chkAll" onclick="SelectAllCheckboxes(this);" runat="server" type="checkbox" />
                        </HeaderTemplate>
                        <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='Admin_UserDetail.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="MoneyPay" HeaderText="交易金额" />
                    <asp:BoundField DataField="MoneyTrue" HeaderText="实际交易额" />
                    <asp:BoundField DataField="Status" HeaderText="交易状态" />
                    <asp:BoundField DataField="eBankInfo" HeaderText="银行信息" />
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                    <asp:TemplateField  HeaderText="操作" >
                       <ItemTemplate>
                          <asp:LinkButton ID="cl" CommandName="Delete" runat="server" OnClientClick="if(confirm('确定删除吗？'))return true;return false;" Text="删除" />
                          <asp:LinkButton ID="ok" CommandName="Select" runat="server" OnClientClick="if(confirm('确认完成了吗？'))return true;return false;" Text="完成" />
                       </ItemTemplate>
                    </asp:TemplateField>
                    
                </Columns>
                <EmptyDataTemplate>
                        <tr>
                            <th>选中</th>
                            <th>编号</th>
                            <th>支付序号</th>
                            <th>用户名</th>
                            <th>支付平台</th>
                            <th>交易时间</th>
                            <th>交易金额</th>
                            <th>实际交易额</th>
                            <th>交易状态</th>
                            <th>银行信息</th>
                            <th>备注</th>
                        </tr>
                        <tr><td colspan="11">暂无信息！</td></tr>
                
                </EmptyDataTemplate>
            </asp:GridView>
            </ContentTemplate>
            <Triggers>
            <%-- <asp:AsyncPostBackTrigger ControlID="DropSalerID" PropertyName="SelectedValue" />
              <asp:AsyncPostBackTrigger ControlID="DropeBankInfo" PropertyName="SelectedValue" />
               <asp:AsyncPostBackTrigger ControlID="DropeBankID" PropertyName="SelectedValue" />
               <asp:AsyncPostBackTrigger ControlID="DropStatus" PropertyName="SelectedValue" />
               <asp:AsyncPostBackTrigger ControlID="TxtUserName" PropertyName="Text" /> 
            <asp:AsyncPostBackTrigger ControlID="ChenkAll" PropertyName="Checked" />--%>
            <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" /> 
        <%--    <asp:AsyncPostBackTrigger ControlID="TxtBeginDate" PropertyName="Text" />
            <asp:AsyncPostBackTrigger ControlID="TxtEndDate" PropertyName="Text" /> --%>
            </Triggers>
            </asp:UpdatePanel>
    <div class="div_btm">
    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" OnClientClick="if(confirm('确定删除吗？'))return true;return false;" Text="批量删除所选的数据" />
    </div>
 
 

  <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetUserLikeUserName"
    TypeName="UserBLL">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBox1" Name="UserName" PropertyName="Text" Type="String" />
        </SelectParameters>
  </asp:ObjectDataSource>
       
  <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" />
            <asp:ControlParameter ControlID="DropSalerID" DefaultValue="-1" Name="SalerID" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="TxtBeginDate" DefaultValue="2006-01-01" Name="BeginTime"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TxtEndDate" DefaultValue="2050-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>


