GoodsOfPAndX.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. using Muchinfo.MTPClient.Data.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace Muchinfo.MTPClient.Data.Model
  7. {
  8. /// <summary>
  9. /// P+X商品属性-实体
  10. /// </summary>
  11. public class GoodsOfPAndX
  12. {
  13. private long _goodsId;
  14. public long GoodsId
  15. {
  16. get { return _goodsId; }
  17. set { _goodsId = value; }
  18. }
  19. private string _relationGoodsCode ="-";
  20. /// <summary>
  21. /// 关联商品代码
  22. /// </summary>
  23. public string RelationGoodsCode
  24. {
  25. get { return _relationGoodsCode; }
  26. set { _relationGoodsCode = value; }
  27. }
  28. private string _relationGoodsName ="-";
  29. /// <summary>
  30. /// 关联商品名称
  31. /// </summary>
  32. public string RelationGoodsName
  33. {
  34. get { return _relationGoodsName; }
  35. set { _relationGoodsName = value; }
  36. }
  37. private string _deliveryGoodsName ="-";
  38. /// <summary>
  39. /// 交割商品名称
  40. /// </summary>
  41. public string DeliveryGoodsName
  42. {
  43. get
  44. {
  45. return _deliveryGoodsName;
  46. }
  47. set {
  48. _deliveryGoodsName = value;
  49. }
  50. }
  51. public string DeliveryGoodsNameDisplay
  52. {
  53. get
  54. {
  55. if (DeliveryGoodsName != null && DeliveryGoodsName != "" && DeliveryGoodsName.Length > 8)
  56. {
  57. return DeliveryGoodsName.Substring(0, 8) + "..." + " " + DeliveryGoodsCode;
  58. }
  59. else
  60. {
  61. return DeliveryGoodsName + " " + DeliveryGoodsCode;
  62. }
  63. }
  64. }
  65. /// <summary>
  66. /// 商品名称代码
  67. /// </summary>
  68. public string RelationGoodsNameCodeDisplay { get; set; }
  69. /// <summary>
  70. /// 商品配比
  71. /// </summary>
  72. public decimal GoodsScale { get; set; }
  73. private string _deliverygoodscode = "-";
  74. /// <summary>
  75. /// 交割商品代码
  76. /// </summary>
  77. public string DeliveryGoodsCode
  78. {
  79. get { return _deliverygoodscode; }
  80. set { _deliverygoodscode = value; }
  81. }
  82. public string DeliveryGoodsNameCodeToolTip
  83. {
  84. get
  85. {
  86. return DeliveryGoodsName + " " + DeliveryGoodsCode;
  87. }
  88. }
  89. private decimal _conversion;
  90. /// <summary>
  91. /// 兑换系数
  92. /// </summary>
  93. public decimal Conversion
  94. {
  95. get { return _conversion; }
  96. set { _conversion = value; }
  97. }
  98. private decimal _deliverypricemove;
  99. /// <summary>
  100. /// 差价升贴水
  101. /// </summary>
  102. public decimal Deliverypricemove
  103. {
  104. get { return _deliverypricemove; }
  105. set { _deliverypricemove = value; }
  106. }
  107. private string _WarehouseList="-";
  108. /// <summary>
  109. /// 关联仓库
  110. /// </summary>
  111. public string WarehouseList
  112. {
  113. get { return _WarehouseList; }
  114. set { _WarehouseList = value; }
  115. }
  116. private string _BrandList="-";
  117. /// <summary>
  118. /// 关联品牌
  119. /// </summary>
  120. public string BrandList
  121. {
  122. get { return _BrandList; }
  123. set { _BrandList = value; }
  124. }
  125. private string _RankList="-";
  126. /// <summary>
  127. /// 关联等级
  128. /// </summary>
  129. public string RankList
  130. {
  131. get { return _RankList; }
  132. set { _RankList = value; }
  133. }
  134. private decimal _AgreeUnit;
  135. /// <summary>
  136. /// 合约单位
  137. /// </summary>
  138. public decimal AgreeUnit
  139. {
  140. get { return _AgreeUnit; }
  141. set { _AgreeUnit = value; }
  142. }
  143. private long _GoodsUnitId;
  144. /// <summary>
  145. /// 商品单位
  146. /// </summary>
  147. public long GoodsUnitId
  148. {
  149. get { return _GoodsUnitId; }
  150. set { _GoodsUnitId = value; }
  151. }
  152. private string _goodsUnitName;
  153. /// <summary>
  154. /// 商品单位名称
  155. /// </summary>
  156. public string goodsUnitName
  157. {
  158. get { return _goodsUnitName; }
  159. set { _goodsUnitName = value; }
  160. }
  161. private eDeliveryContractLink _RelationMode;
  162. public eDeliveryContractLink RelationMode
  163. {
  164. get { return _RelationMode; }
  165. set { _RelationMode = value; }
  166. }
  167. }
  168. }