<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopProductClassSum, HoWaveVGO" title="商品分类统计" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Js/Function.js" type="text/javascript"></script>
<table class="adminheading">                       
      <tr>
        <th class="msgconfig" >
            商品分类统计列表<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager></th>
        
      </tr>                        
   </table> 

    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ClassID" CssClass="adminlist"  AllowPaging="True"  PageSize="15" EnableViewState="false" OnPageIndexChanging="OnGridView1_PageIndexChaged">
        <Columns>
         <asp:TemplateField HeaderText="选中">
               <HeaderTemplate>
                   <input id="chkAll" onclick="SelectAllCheckboxes(this);" runat="server" type="checkbox" />                                     
               </HeaderTemplate>
               <ItemTemplate>
                 <asp:CheckBox ID="Select_Class" runat="server" Width="20%"/>
               </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="商品类别"  DataField="ClassName" ControlStyle-Width="20%"/>
            <asp:BoundField HeaderText="父类别"  DataField="ParentName"  ControlStyle-Width="20%"/>
            <asp:BoundField HeaderText="商品类别ID"  DataField="ClassID"  ControlStyle-Width="20%"/>
            <asp:BoundField HeaderText="当前类别下的子类别数量"  DataField="ClassCount"  ControlStyle-Width="20%"/>
            <asp:BoundField HeaderText="当前类别上架商品数量"  DataField="productcount"  ControlStyle-Width="20%"/>
         </Columns>
         <EmptyDataTemplate>
         <tr><th scope="col">选中</th><th scope="col">商品类别</th><th scope="col">父类别</th><th scope="col">商品类别ID</th><th scope="col">当前类别下的子类别数量</th><th scope="col">当前类别上架商品数量</th></tr>
         <tr><td colspan="6"> 没有上架的商品!</td></tr>          
         </EmptyDataTemplate>
         
    </asp:GridView>
    <br />
      <asp:Button ID="Button1" runat="server" Text="更新商品上架数量" OnClick="Button1_Click" />
        <asp:Button ID="Button2" runat="server" Text="全部更新" OnClick="Button2_Click" />
</contenttemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress id="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <progresstemplate>
<BR />数据正在更新中．．．．．
</progresstemplate>
    </asp:UpdateProgress>&nbsp;
    
    <div style="text-align:center">
        &nbsp;</div>  

</asp:Content>

