<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_member_Shop_ViewVIPCard, 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>你现在查看的是：</td>
        <td>
           <asp:DropDownList ID="DropShopLevel" runat="server" Height="22px" Width="92px"  CausesValidation="True">
              <asp:ListItem Selected="True" Value="所有" Text="所有"/>
              <asp:ListItem  Text="高级会员" Value="高级会员"/>
              <asp:ListItem  Text="VIP会员" Value="VIP会员"/>
              <asp:ListItem  Text="普通会员" Value="普通会员"/>
           </asp:DropDownList>
        </td>
        <td colspan="2">
            卖家名称</td>
        <td><asp:TextBox ID="SearchKey" runat="server" Height="16px" /></td>       
        <td><asp:Button ID="QuickSearchBtn" Text="查询" runat="server"  /></td>
    </tr> 
 </table> 
        
     <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
         <ContentTemplate>
<asp:GridView id="GridView1" runat="server" DataKeyNames="VIPID" AllowPaging="True" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" CssClass="tableHead"><Columns>
<asp:TemplateField HeaderText="选择"><ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="选择" />
                        
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="VIPID" HeaderText="编号"></asp:BoundField>
<asp:BoundField DataField="VIPLevel" HeaderText="级别"></asp:BoundField>
<asp:HyperLinkField Target="_blank" HeaderText="店铺" DataTextField="ShopName" DataNavigateUrlFormatString="../../Shop/Shop1/MyShop.aspx?ShopID={0}" DataNavigateUrlFields="ShopID"></asp:HyperLinkField>
<asp:BoundField DataField="PresentPoint" HeaderText="点数"></asp:BoundField>
<asp:BoundField DataField="TransCount" HeaderText="交易次数"></asp:BoundField>
<asp:BoundField DataField="TransMoney" HeaderText="交易额"></asp:BoundField>
<asp:BoundField DataField="PresentExp" HeaderText="积分"></asp:BoundField>
<asp:CommandField ShowDeleteButton="True" HeaderText="删除"></asp:CommandField>
</Columns>
<EmptyDataTemplate>
<div align="center" style="font:13px red;">没有会员卡！</div>
</EmptyDataTemplate>
</asp:GridView> 
</ContentTemplate>
          <Triggers>
<asp:AsyncPostBackTrigger ControlID="DropShopLevel"></asp:AsyncPostBackTrigger>
</Triggers>
          
     </asp:UpdatePanel>
     <br />
   <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetVIPByUserIDShopNameLevel"
         TypeName="Shop_VIP" DeleteMethod="DeleteVIPS" UpdateMethod="GetVIPByUserIDShopNameLevel" OldValuesParameterFormatString="{0}">
         <SelectParameters>
             <asp:SessionParameter Name="UserID" SessionField="Howave_UserID" Type="Int32" />
             <asp:Parameter Name="ShopName" Type="String" DefaultValue="" />
             <asp:ControlParameter ControlID="SearchKey" DefaultValue="" Name="NickName" PropertyName="Text"
                 Type="String" />
             <asp:ControlParameter ControlID="DropShopLevel" DefaultValue="" Name="Level" PropertyName="SelectedValue"
                 Type="String" />
         </SelectParameters>
         <DeleteParameters>
             <asp:Parameter Name="VIPID" Type="String" />
         </DeleteParameters>
         <UpdateParameters>
             <asp:Parameter Name="UserID" Type="Int32" />
             <asp:Parameter Name="ShopName" Type="String" />
             <asp:Parameter Name="NickName" Type="String" />
             <asp:Parameter Name="Level" Type="String" />
         </UpdateParameters>
     </asp:ObjectDataSource>

  
  <div style="width:98%; text-align:center;">    
          <asp:Button ID="Button2" runat="server" Text="删除" OnClick="Button2_Click" />
  </div>
 
  <div class="tips_onclick"  style="width:94% ; height:auto">
 您只要成功购买过卖家的商品，就有可能获得该卖家的会员卡，会员卡可以打折的哦！ 
卖家可以通过设定会员卡标准将您设定为高级会员或VIP会员。 
      
 </div> 
</asp:Content>

