<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="SelectProduct.aspx.cs" Inherits="SocoShop.Web.Admin.SelectProduct" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" type="text/javascript" src="/Admin/Pop/lhgdialog.js"></script>
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	
<script language="javascript" src="/Admin/js/calendar.js" type="text/javascript"></script>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>商品列表</div>	
<ul class="search">
    <li>
        <asp:DropDownList ID="ClassID" runat="server" /> 
        <asp:DropDownList ID="BrandID" runat="server" /> 
        名称/别名/拼音/商品编码：<SkyCES:TextBox CssClass="input" ID="Key" runat="server" Width="100px"/>		
         <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" />
    </li>
</ul>
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:55%; text-align:left;text-indent:8px;">商品</li>
	<li style="width:10%">编码</li>
	<li style="width:20%">分类</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%"><%# Eval("ProductNumber") %></li>
			<li style="width:20%"><%# ProductClassBLL.ProductClassNameList(Eval("ClassID").ToString())%></li>    
	       	<li style="width:10%"><span onclick="selectThisProduct(<%# Eval("ID") %>,'<%# Eval("Name") %>')" style="cursor:pointer">选择</span></li> 	        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
<script language="javascript" type="text/javascript">
function selectThisProduct(productID,productName){
    var tag=getQueryString("Tag");
    E.J.dialog.innwin["ProductAdd"].dealSelectProduct(productID,productName,tag);
    parent.cancel();
}
</script>
</asp:Content>
