<%@ Control Language="C#" AutoEventWireup="true" Inherits="weixin_Control_Shop_CountSalePMControl" Codebehind="CountSalePMControl.ascx.cs" %>
<%@ Import Namespace="Kesion.Cache"%>
<%@ Import Namespace="Kesion.Publics"%>
<%@ Import Namespace="Kesion.APPCode"%>
 <asp:GridView ID="SalePMList" AllowSorting="true" style="border-bottom:none" runat="server" AutoGenerateColumns="False" EmptyDataText="没有销售数据!"  Width="99%" CellPadding="1" CellSpacing="1" GridLines="None" HorizontalAlign="Center" OnRowDataBound="SalePMList_RowDataBound" OnRowCreated="SalePMList_RowCreated" OnSorting="SalePMList_Sorting">
         <Columns>
              <asp:TemplateField HeaderText="序号">
                <itemstyle horizontalalign="Center" />
                <itemtemplate>
                   <%# this.SalePMList.PageIndex * this.SalePMList.PageSize + Container.DataItemIndex + 1%> 
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="商品名称">
                <itemstyle horizontalalign="Left" CssClass="tleft"  />
                <itemtemplate>
                   <a href='<%#Kesion.weixin.M.GetItemUrl(Utils.StrToInt(Eval("ChannelID")),Utils.StrToInt(Eval("InfoID")))%>' target='_blank' style="float:left"><%# Eval("Title")%></a> 
                </itemtemplate>
              </asp:TemplateField>
              <asp:BoundField DataField="SaleNum" DataFormatString="{0} 件" HeaderText="总销售量" SortExpression="SaleNum">
                <itemstyle width="140px" horizontalalign="Center" ForeColor="green" />
              </asp:BoundField>

               <asp:TemplateField HeaderText="总销售额">
                <itemstyle width="150px" horizontalalign="Center" ForeColor="red" />
                <itemtemplate>
               ￥<%# Public.ReturnShopPrice(Utils.StrToDecimal(Eval("SaleMoney")))%>元
                </itemtemplate>
              </asp:TemplateField> 

              
         </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
 </asp:GridView>
 <br />
<script type="text/javascript">
    showtips('<img src="../../admin/images/dot.gif"> <span><strong>说明：</strong><br /></span>点击表头的“总销售量”或“总销售额”可分别实现排序功能!');
</script>
       