步步为盈
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.

66 lines
1.7 KiB

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<Platform>();
}
/// <summary>
/// 品牌
/// </summary>
public string BrandName { get; set; }
private Platform selectedPurchasePlatformModel;
/// <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<Platform> PurchasePlatformList { get; set; }
/// <summary>
/// 选中的采购平台
/// </summary>
public Platform SelectedPurchasePlatformModel
{
get => selectedPurchasePlatformModel;
set { Set(ref selectedPurchasePlatformModel, value); }
}
public void CreatePlatformList()
{
PurchasePlatformList.Add(Platform.);
PurchasePlatformList.Add(Platform.);
SelectedPurchasePlatformModel = PurchasePlatformList[0];
}
}
}