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.
70 lines
2.2 KiB
70 lines
2.2 KiB
using System.Xml.Linq;
|
|
|
|
namespace BBWYB.Server.Model.Dto
|
|
{
|
|
public class PurchaseSchemeProductResponse : Model.Db.PurchaseSchemeProduct
|
|
{
|
|
#region 采购商信息
|
|
public string PurchaserName { get; set; }
|
|
|
|
public string PurchaserId2 { get; set; }
|
|
|
|
public string PurchaserLocation { get; set; }
|
|
|
|
public Enums.Platform? PurchasePlatform { get; set; }
|
|
|
|
public string PurchaserMemberId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购商的采购次数
|
|
/// </summary>
|
|
public int? PurchaserPurchasedCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购商的采购SKU数
|
|
/// </summary>
|
|
public int? PurchaserPurchasedSkuCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购商标签
|
|
/// </summary>
|
|
public string PurchaserTag
|
|
{
|
|
get
|
|
{
|
|
if (string.IsNullOrEmpty(PurchaserName))
|
|
return string.Empty;
|
|
if (PurchaserName.EndsWith("超级工厂"))
|
|
return "超级工厂";
|
|
if (PurchaserName.EndsWith("实力工厂"))
|
|
return "实力工厂";
|
|
if (PurchaserName.EndsWith("实力供应商"))
|
|
return "实力供应商";
|
|
return string.Empty;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// 采购商品标题 仅在查询条件IncludePurchaseSkuBasicInfo=1时具备该值
|
|
/// </summary>
|
|
public string PurchaseProductName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购商品Logo 仅在查询条件IncludePurchaseSkuBasicInfo=1时具备该值
|
|
/// </summary>
|
|
public string PurchaseProductLogo { get; set; }
|
|
|
|
public new List<PurchaseSchemeProductSkuResponse> PurchaseSchemeProductSkuList { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否失效 失效=1 下架或无权都视为失效 其余情况默认为有效 仅在查询条件IncludePurchaseSkuBasicInfo=1时具备该值
|
|
/// </summary>
|
|
public int? IsInvalid { get; set; }
|
|
|
|
public PurchaseSchemeProductResponse()
|
|
{
|
|
PurchaseSchemeProductSkuList = new List<PurchaseSchemeProductSkuResponse>();
|
|
}
|
|
}
|
|
}
|
|
|