<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_ManageFProductClass, WebApp_deploy" title="收藏分类管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div id="MainMenu">
	<div class="TabMenu">
		<!--一级导航-->				
       <ul id="M1" >
          <li class="active"><a href="Shop_MyFavourite.aspx?tag=0">商品</a></li><li><a href="Shop_MyFavourite.aspx?tag=1">店铺</a></li></ul>      
    </div>
    <div class="TabText"> 
    <br />
    <div class="tips_onclick"><div style="padding:5px 5px 5px 25px">
    您可以设置 5 个分类，分类标题不可以超过 6 个汉字哦。 分类可以帮您更好的管理收藏的商品哟! 
    </div></div>
    <br />
   <div class="SearchTableStyle" style="height:25px">
    分类名称：<asp:TextBox ID="TxtF_ProductClassName" runat="server" Height="16px"/>
    备注：<asp:TextBox ID="TxtF_ProductClassRemark" runat="server" Height="16px"/>
    <asp:Button ID="ButUpdate" runat="server" OnClick="ButUpdate_Click" Text="更新" />
    <asp:Button ID="ButADD" runat="server" OnClick="ButADD_Click" Text="增加" />
    <asp:Label ID="LabErro" runat="server" />
    </div>
    <asp:RequiredFieldValidator ID="Rq1" runat="server" ControlToValidate="TxtF_ProductClassName"
        ErrorMessage="名称不能空" />
    <asp:TextBox ID="TXTPROCLASSID" runat="server" Visible="False"/><br />
    <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" OnDataBound="GridView1_DataBound" 
       OnSelectedIndexChanged="GridView1_SelectedIndexChanged" CssClass="tableHead" RowStyle-HorizontalAlign="Center">
        <Columns>
            <asp:BoundField DataField="F_ProductClassID" HeaderText="编号" />
            <asp:BoundField DataField="F_ProductClassName" HeaderText="类别名" />
            <asp:BoundField HeaderText="收藏的数量" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="F_ProductClassID" DataNavigateUrlFormatString="?F_ProductClassID={0}"
                HeaderText="修改" Text="修改" />
            <asp:CommandField HeaderText="删除" SelectText="删除" ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
</div>
</div>    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetFProductClassByUserID"
        TypeName="HoWave.Web.Shop_FProductClass" UpdateMethod="GetFProductClassByUserID">
        <UpdateParameters>
            <asp:Parameter Name="UserID" Type="Int32" />
        </UpdateParameters>
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="UserID" SessionField="Howave_UserID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

