<%@ page language="C#" masterpagefile="~/Shop/ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_BuyMoney, HoWaveVGO" title="预付款管理" enableEventValidation="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
 <div class="pageTitle"><asp:Label ID="LabIsChangeMoney" runat="server" Width="472px" ForeColor="Red"/></div>
 <br />
 
 <table  class="SearchTableStyle">
         <tr>  
            <td>通过充值卡存入商城货币</td>
            <td>卡&nbsp;&nbsp;号：</td><td><asp:TextBox ID="TxtCardNum" Width="100px" Height="16px" runat="server"/></td>
            <td>密&nbsp;&nbsp;码：</td><td><asp:TextBox ID="TextCardPassword" Width="100px" Height="16px" runat="server" TextMode="Password"/>
            <asp:Label ID="Lablefterro" runat="server"/></td>
            <td><asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /></td>
         </tr>
         <tr>
            <td><asp:DropDownList ID="OnlinePayType" runat="server" /></td>
            <td>充值额：</td><td><asp:TextBox ID="TxtMoney" Width="100px" Height="16px" runat="server"/></td>
            <td>备&nbsp;&nbsp;注：</td><td><asp:TextBox ID="TxtRemark" Width="100px" Height="16px" runat="server"/><asp:Label ID="Lablrighterro" runat="server" /></td>
            <td>
            <asp:Button ID="ButCom" runat="server" Text="完成" OnClick="ButCom_Click1" />
           <asp:HyperLink ID="HyperLink1" Target="_blank"  runat="server">继续订单付款</asp:HyperLink>
           </td>
         </tr>
 </table>
 <br />
 <table class="SearchTableStyle">
         <tr>
         <td style="width: 120px">状态：<asp:DropDownList ID="DropStatus" runat="server" AutoPostBack="true" >
         <asp:ListItem Value="-1" Text="所有"/> 
         <asp:ListItem  Value="1" Text="提交" />
         <asp:ListItem Value="2" Text="预交订金" />
         <asp:ListItem Value="3" Text="完成" />
         <asp:ListItem Value="4" Text="作废" />
         </asp:DropDownList>
         </td> 
         <td style="width: 170px" >
         支付方式：      
            <asp:DropDownList ID="DropPayType" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="ObjectDataSource3" DataTextField="TypeName" 
         DataValueField="TypeID">
        <asp:ListItem Text="充值卡预付" Value="-2"/>
         </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="GetPayTypeByUserID"
             TypeName="Shop_PayType">
             <SelectParameters>
                 <asp:Parameter DefaultValue="-2" Name="UserID" Type="Int32" />
             </SelectParameters>
         </asp:ObjectDataSource>
         </td>
         <td>开始日期：<asp:TextBox runat="server"  ID="begindate" Width="75px" Height="16px" AutoPostBack="True" /></td>
         <td>结束日期：
         <asp:TextBox runat="server"  ID="EndDate" Width="75px" Height="16px" AutoPostBack="True" />
             &nbsp;
         </td>
     </tr>
 </table> 
 <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView id="GridView1" runat="server" DataSourceID="ObjectDataSource1" OnDataBound="GridView1_DataBound" AutoGenerateColumns="False" DataKeyNames="ID" AllowPaging="True" PageSize="5"  CssClass="tableHead"><Columns>
                <asp:BoundField ReadOnly="True" DataField="id" HeaderText="编号"></asp:BoundField>
                <asp:BoundField DataField="orderNum" HeaderText="支付编号"></asp:BoundField>
                <asp:BoundField DataField="TypeName" HeaderText="支付方式"></asp:BoundField>
                <asp:BoundField DataField="createdate" HeaderText="创建日期"></asp:BoundField>
                <asp:BoundField DataField="UpdateDate" HeaderText="修改日期"></asp:BoundField>
                <asp:BoundField DataField="money" HeaderText="预付总额"></asp:BoundField>
                <asp:BoundField DataField="PayedMoney" HeaderText="已付额"></asp:BoundField>
                <asp:BoundField DataField="Status" HeaderText="状态"></asp:BoundField>
                <asp:BoundField ReadOnly="True" DataField="Remark" HeaderText="备注">
                <ItemStyle Width="20%"></ItemStyle>
                </asp:BoundField>
            </Columns>
                    <EmptyDataTemplate >                   
                          <div style="padding:10px;">没有符合查询条件的记录！</div>                                   
                    </EmptyDataTemplate>
        </asp:GridView> 
        </ContentTemplate> 
           <Triggers>
                <asp:AsyncPostBackTrigger ControlID="DropStatus" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="DropPayType" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="begindate" EventName="TextChanged"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="EndDate" EventName="TextChanged"></asp:AsyncPostBackTrigger>
            </Triggers>
         
   </asp:UpdatePanel>


    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetBuyMoneyList"
        TypeName="Shop_BuyMoney" UpdateMethod="GetBuyMoneyList" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="UserID" SessionField="Howave_UserID"
                Type="Int32" />
            <asp:ControlParameter ControlID="DropStatus" DefaultValue="-1" Name="Status" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="DropPayType" DefaultValue="-1" Name="PayType" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="begindate" DefaultValue="2007-01-01" Name="BeginDate"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="EndDate" DefaultValue="2100-01-01" Name="EndDate"
                PropertyName="Text" Type="String" />
        </SelectParameters>
        <UpdateParameters>
            <asp:Parameter Name="UserID" Type="Int32" />
            <asp:Parameter Name="Status" Type="Int32" />
            <asp:Parameter Name="PayType" Type="Int32" />
            <asp:Parameter Name="BeginDate" Type="String" />
            <asp:Parameter Name="EndDate" Type="String" />
        </UpdateParameters>
    </asp:ObjectDataSource>  
</asp:Content>

