using Muchinfo.MTPClient.Data.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Muchinfo.MTPClient.Data.Model { /// /// P+X商品属性-实体 /// public class GoodsOfPAndX { private long _goodsId; public long GoodsId { get { return _goodsId; } set { _goodsId = value; } } private string _relationGoodsCode ="-"; /// /// 关联商品代码 /// public string RelationGoodsCode { get { return _relationGoodsCode; } set { _relationGoodsCode = value; } } private string _relationGoodsName ="-"; /// /// 关联商品名称 /// public string RelationGoodsName { get { return _relationGoodsName; } set { _relationGoodsName = value; } } private string _deliveryGoodsName ="-"; /// /// 交割商品名称 /// public string DeliveryGoodsName { get { return _deliveryGoodsName; } set { _deliveryGoodsName = value; } } public string DeliveryGoodsNameDisplay { get { if (DeliveryGoodsName != null && DeliveryGoodsName != "" && DeliveryGoodsName.Length > 8) { return DeliveryGoodsName.Substring(0, 8) + "..." + " " + DeliveryGoodsCode; } else { return DeliveryGoodsName + " " + DeliveryGoodsCode; } } } /// /// 商品名称代码 /// public string RelationGoodsNameCodeDisplay { get; set; } /// /// 商品配比 /// public decimal GoodsScale { get; set; } private string _deliverygoodscode = "-"; /// /// 交割商品代码 /// public string DeliveryGoodsCode { get { return _deliverygoodscode; } set { _deliverygoodscode = value; } } public string DeliveryGoodsNameCodeToolTip { get { return DeliveryGoodsName + " " + DeliveryGoodsCode; } } private decimal _conversion; /// /// 兑换系数 /// public decimal Conversion { get { return _conversion; } set { _conversion = value; } } private decimal _deliverypricemove; /// /// 差价升贴水 /// public decimal Deliverypricemove { get { return _deliverypricemove; } set { _deliverypricemove = value; } } private string _WarehouseList="-"; /// /// 关联仓库 /// public string WarehouseList { get { return _WarehouseList; } set { _WarehouseList = value; } } private string _BrandList="-"; /// /// 关联品牌 /// public string BrandList { get { return _BrandList; } set { _BrandList = value; } } private string _RankList="-"; /// /// 关联等级 /// public string RankList { get { return _RankList; } set { _RankList = value; } } private decimal _AgreeUnit; /// /// 合约单位 /// public decimal AgreeUnit { get { return _AgreeUnit; } set { _AgreeUnit = value; } } private long _GoodsUnitId; /// /// 商品单位 /// public long GoodsUnitId { get { return _GoodsUnitId; } set { _GoodsUnitId = value; } } private string _goodsUnitName; /// /// 商品单位名称 /// public string goodsUnitName { get { return _goodsUnitName; } set { _goodsUnitName = value; } } private eDeliveryContractLink _RelationMode; public eDeliveryContractLink RelationMode { get { return _RelationMode; } set { _RelationMode = value; } } } }