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.
63 lines
1.7 KiB
63 lines
1.7 KiB
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace BBWYB.Client.Models
|
|
{
|
|
public class Product : ObservableObject
|
|
{
|
|
public Product()
|
|
{
|
|
PurchaserList = new ObservableCollection<Purchaser>();
|
|
PurchasePlatformList = new List<Platform>();
|
|
}
|
|
|
|
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 { SetProperty(ref selectedPurchasePlatformModel, value); }
|
|
}
|
|
|
|
public void CreatePlatformList()
|
|
{
|
|
PurchasePlatformList.Add(Platform.阿里巴巴);
|
|
//PurchasePlatformList.Add(Platform.拳探);
|
|
SelectedPurchasePlatformModel = PurchasePlatformList[0];
|
|
}
|
|
}
|
|
}
|
|
|