<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="ProductStorage.aspx.cs" Inherits="SocoShop.Web.Admin.ProductStorage" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">	
<script language="javascript" src="/Admin/js/calendar.js" type="text/javascript"></script>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>商品分析</div>	
<div class="listBlock">
    <ul>
        <li class="listOn"><a href="ProductStorage.aspx">库存分析</a></li>
        <li><a href="ProductActive.aspx">关注度分析</a></li>
        <li><a href="ProductSale.aspx">销量分析</a></li>  
    </ul>	
</div>
<div class="pageMark">	
    <div class="statisticsSearch">
		    分类：<asp:DropDownList ID="ClassID" runat="server" /> 
            品牌：<asp:DropDownList ID="BrandID" runat="server" />  
            名称：<SkyCES:TextBox CssClass="input" ID="Name" runat="server" Width="100px"/> 
            库存分析：<asp:DropDownList ID="StorageAnalyse" runat="server"> 
            <asp:ListItem Value="0">请选择</asp:ListItem><asp:ListItem Value="1" style=" color:#0000FF">短缺商品</asp:ListItem> 
            <asp:ListItem Value="2" style="color:#349802">安全商品</asp:ListItem><asp:ListItem Value="3" style="color:#FF0000">超储商品</asp:ListItem></asp:DropDownList> 
	        <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" />
    </div>   
    <ul class="listHead">
	    <li style="width:5%">ID</li>
	    <li style="width:50%; text-align:left;text-indent:8px;">商品名称</li>
	    <li style="width:15%">分类</li>
	    <li style="width:10%">库存数量</li>
	    <li style="width:10%">库存下限</li>
	    <li style="width:10%">库存上限</li>          
    </ul>
    <asp:Repeater ID="RecordList" runat="server">
	    <ItemTemplate>	     
        	    <ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			    <li style="width:5%"><%# Eval("ID") %></li>
			    <li style="width:50%; text-align:left;text-indent:8px;"><%# Eval("Name") %></li>
	            <li style="width:15%"><%# ProductClassBLL.ProductClassNameList(Eval("ClassID").ToString())%></li>
			    <li style="width:10%; color:<%# ShowColor(Convert.ToInt32(Eval("LowerCount")),Convert.ToInt32(Eval("TotalStorageCount"))-Convert.ToInt32(Eval("SendCount")),Convert.ToInt32(Eval("ImportActualStorageCount")),Convert.ToInt32(Eval("UpperCount")))%>"><%#ShowStorageCount(Convert.ToInt32(Eval("TotalStorageCount"))-Convert.ToInt32(Eval("SendCount")),Convert.ToInt32(Eval("ImportActualStorageCount")))%></li>
			    <li style="width:10%"><%#Eval("LowerCount")%></li> 	 
			    <li style="width:10%"><%#Eval("UpperCount")%></li> 	        
		    </ul>
            </ItemTemplate>
    </asp:Repeater>
    <div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
</div>
</asp:Content>