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