<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopBankrollItemView, HoWaveVGO" title="资金明细" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">销售管理</th>
      <td align="right">
      <div style="width:400px">
            <a href="Admin_ShopSaleView.aspx" >销售明细</a>&nbsp;|&nbsp;
            <a href="Admin_ShopSaleOrderView.aspx">销售统计</a>&nbsp;|&nbsp;
            <a href="Admin_ShopBankrollItemView.aspx">资金明细</a>&nbsp;<br />                
      </div></td>
      <td class="rtdw"></td>          
   </tr>                     
</table>

    <table class="nick">
        <tr>
            <td colspan="4" class="tit"><b>资金明细列表</b></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="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource2"
                            DataTextField="username" DataValueField="userid" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AppendDataBoundItems="True">
                  <asp:ListItem Selected="True" Value="-1">所有</asp:ListItem>
             </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="DropBank" runat="server" AutoPostBack="True" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">所有</asp:ListItem>
                </asp:DropDownList>&nbsp;
            </td>
        </tr>
        <tr>
            <td class="ltd">支出类型：</td>
            <td class="rtd" style="width: 35%;">
                <asp:DropDownList ID="Dropincome_output" runat="server" AutoPostBack="True">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">收入</asp:ListItem>
                    <asp:ListItem Value="1">支出</asp:ListItem>
                </asp:DropDownList></td>
            <td class="ltd">资金类型：</td>
            <td class="rtd" style="width: 35%;">
                <asp:DropDownList ID="DropMoneyType" runat="server" AutoPostBack="True">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">现金</asp:ListItem>
                    <asp:ListItem Value="1">汇款</asp:ListItem>
                    <asp:ListItem Value="2">在线支付</asp:ListItem>
                    <asp:ListItem Value="3">虚拟货币</asp:ListItem>
                    <asp:ListItem Value="4">其它</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" AutoPostBack="True" />
            </td>
        </tr>
    </table>
    <br />
    
    <asp:GridView ID="GridView1"  CssClass="adminlist" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"
        OnDataBound="GridView1_DataBound" OnRowDataBound="GridView1_RowDataBound" ShowFooter="True"  AllowPaging="True" AllowSorting="True" DataKeyNames="ItemID">
        <Columns>          
            <asp:HyperLinkField HeaderText="买家" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName"   />
            <asp:BoundField DataField="DateAndTime" HeaderText="交易时间" SortExpression="DateAndTime"　 >
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyType" HeaderText="交易方式"　 >
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:BoundField DataField="CurrencyType" HeaderText="币种"　>
                <HeaderStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="money" HeaderText="金额"　 >
                <HeaderStyle Width="12%" />
            </asp:BoundField>　
            <asp:BoundField DataField="Income_PayOut" HeaderText="摘要"　 >
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:BoundField DataField="Remark" HeaderText="备注"　 >
                <ItemStyle Width="15%" />
                <HeaderStyle Width="15%" />
            </asp:BoundField>
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>买家</th>
                    <th>交易时间</th>
                    <th>交易方式</th>
                    <th>币种</th>
                    <th>金额</th>
                    <th>摘要</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                <tr><td colspan="8">暂无信息！</td></tr>
        
        </EmptyDataTemplate>
    </asp:GridView>
    <br />
   
   


<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="GetBankrollItemByDateIDBankUserIDSalerID"
        TypeName="Shop_BankrollItem" OldValuesParameterFormatString="{0}" DeleteMethod="DeleteBankrollItem">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownList1" DefaultValue="-1" Name="SalerID"
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="TxtUserName" DefaultValue="" Name="UserName" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="DropBank" DefaultValue="-1" Name="Bank" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="TxtBeginDate" DefaultValue="2006-01-01" Name="BeginDate"
                PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="TxtEndDate" DefaultValue="2500-01-01" Name="EndDate"
                PropertyName="Text" Type="String" />
            
            <asp:ControlParameter ControlID="DropMoneyType" DefaultValue="-1" Name="MoneyType"
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="Dropincome_output" DefaultValue="-1" Name="Income_PayOut"
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter Name="ItemID" Type="String" />
        </DeleteParameters>
    </asp:ObjectDataSource>
</asp:Content>

