<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsRank.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Shop.GoodsRank" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>销售统计/排行</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link rel="stylesheet" type="text/css" href="../Style.css" />

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

    <script runat="server" type="text/C#">
        protected int PaiMing;
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
        <tr>
            <td style="width: auto">
                &nbsp;<img src='../../Images/arrow.gif' alt="" />
                您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
            </td>
            <td style="width: auto; text-align: right">
                快速查找：<asp:DropDownList ID="DDL_Total" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Total_SelectedIndexChanged">
                    <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:DropDownList>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" 
        CssClass="GridView" onrowdatabound="GV_List_RowDataBound" ShowFooter="True">
        <Columns>
           <asp:TemplateField HeaderText="排名">
                
                <ItemTemplate>
                     <%= (++PaiMing)%> 
                </ItemTemplate>
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="商品名称" DataField="GoodsName" />
            <asp:BoundField HeaderText="单位" DataField="Unit">
                <HeaderStyle Width="80px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="数量" DataField="Quantity">
                <HeaderStyle Width="80px" />
                <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
            <asp:BoundField HeaderText="金额" DataField="Total" DataFormatString="{0:c}">
                <HeaderStyle Width="80px" />
                <ItemStyle HorizontalAlign="Right" />
                <HeaderStyle Width="120px" />
                <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
        </Columns>
        <HeaderStyle CssClass="HeaderStyle" />
    </asp:GridView>
    </form>
</body>
</html>
