using GalaSoft.MvvmLight; using System; using System.Collections.Generic; using System.Text; namespace BBWY.Client.Models.QualityTask { /// <summary> /// 配件sku /// </summary> public class PurchaseSku : NotifyObject { public string PurchaseProductId { get; set; } /// <summary> /// 配件图 /// </summary> private string logo; /// <summary> /// 配件商品Id /// </summary> private string purchaseSkuId; /// <summary> /// 配件名称 /// </summary> private string title; /// <summary> /// 是否需要配置合格证 /// </summary> private bool isNeedCer; /// <summary> /// 配件图 /// </summary> public string Logo { get => logo; set { Set(ref logo, value); } } /// <summary> /// 配件商品Id /// </summary> public string PurchaseSkuId { get => purchaseSkuId; set { Set(ref purchaseSkuId, value); } } /// <summary> /// 配件名称 /// </summary> public string Title { get => title; set { Set(ref title, value); } } /// <summary> /// 是否需要配置合格证 /// </summary> public bool IsNeedCer { get => isNeedCer; set { Set(ref isNeedCer, value); } } /// <summary> /// 合格证配置信息 /// </summary> public CertificateModel cerDTO; /// <summary> /// 合格证配置信息 /// </summary> public CertificateModel CerDTO { get => cerDTO; set { Set(ref cerDTO, value); } } private bool isSetCertificate; /// <summary> /// 设置显示(合格证) /// </summary> public bool IsSetCertificate { get => isSetCertificate; set { Set(ref isSetCertificate, value); //IsNeedCertificateModel = IsSetCertificate ? Need.不需要 : Need.需要; } } } }