You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
namespace BBWY.Client.Models
|
|
|
|
{
|
|
|
|
public class Product : NotifyObject
|
|
|
|
{
|
|
|
|
public Product()
|
|
|
|
{
|
|
|
|
PurchaserList = new ObservableCollection<Purchaser>();
|
|
|
|
PurchasePlatformList = new List<PurchasePlatformModel>();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 商品Id
|
|
|
|
/// </summary>
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 商品货号
|
|
|
|
/// </summary>
|
|
|
|
public string ProductItemNum { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 商品标题
|
|
|
|
/// </summary>
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sku列表
|
|
|
|
/// </summary>
|
|
|
|
public IList<ProductSku> SkuList { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 采购商集合
|
|
|
|
/// </summary>
|
|
|
|
public IList<Purchaser> PurchaserList { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 采购平台集合
|
|
|
|
/// </summary>
|
|
|
|
public IList<PurchasePlatformModel> PurchasePlatformList { get; set; }
|
|
|
|
|
|
|
|
public void CreatePlatformList()
|
|
|
|
{
|
|
|
|
PurchasePlatformList.Add(new PurchasePlatformModel() { ProductId = this.Id, PurchasePlatform = Platform.阿里巴巴 });
|
|
|
|
PurchasePlatformList.Add(new PurchasePlatformModel() { ProductId = this.Id, PurchasePlatform = Platform.拳探 });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|