WrPairDetailModel.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. using GalaSoft.MvvmLight;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace Muchinfo.MTPClient.Data.Model.Delivery
  7. {
  8. /// <summary>
  9. /// 查询配对明细
  10. /// </summary>
  11. public class WrPairDetailModel:ViewModelBase
  12. {
  13. private int _RetCode = int.MinValue;
  14. public int RetCode
  15. {
  16. get { return _RetCode; }
  17. set { _RetCode = value; }
  18. }
  19. private long _WrId;
  20. public long WrId
  21. {
  22. get { return _WrId; }
  23. set { _WrId = value; }
  24. }
  25. private string _WrCode;
  26. public string WrCode
  27. {
  28. get { return _WrCode; }
  29. set { _WrCode = value; }
  30. }
  31. private long _DeliveryGoodsId;
  32. public long DeliveryGoodsId
  33. {
  34. get { return _DeliveryGoodsId; }
  35. set { _DeliveryGoodsId = value; }
  36. }
  37. private string _DeliveryGoodsName;
  38. public string DeliveryGoodsName
  39. {
  40. get { return _DeliveryGoodsName; }
  41. set { _DeliveryGoodsName = value; }
  42. }
  43. private double _EnableQty;
  44. public double EnableQty
  45. {
  46. get { return _EnableQty; }
  47. set { _EnableQty = value; }
  48. }
  49. private string _Rank = "";
  50. public string Rank
  51. {
  52. get { return _Rank; }
  53. set { _Rank = value; }
  54. }
  55. private string _Brand = "";
  56. public string Brand
  57. {
  58. get { return _Brand; }
  59. set { _Brand = value; }
  60. }
  61. private string _StorePlace = "";
  62. public string StorePlace
  63. {
  64. get { return _StorePlace; }
  65. set { _StorePlace = value; }
  66. }
  67. private double _DeliveryPriceMove = int.MinValue;
  68. public double DeliveryPriceMove
  69. {
  70. get { return _DeliveryPriceMove; }
  71. set { _DeliveryPriceMove = value; }
  72. }
  73. private long _GoodsUnitId = int.MinValue;
  74. public long GoodsUnitId
  75. {
  76. get { return _GoodsUnitId; }
  77. set { _GoodsUnitId = value; }
  78. }
  79. private long _DeliverySellOrderId = int.MinValue;
  80. public long DeliverySellOrderId
  81. {
  82. get { return _DeliverySellOrderId; }
  83. set { _DeliverySellOrderId = value; }
  84. }
  85. private long _ProvinceId = int.MinValue;
  86. public long ProvinceId
  87. {
  88. get { return _ProvinceId; }
  89. set { _ProvinceId = value; }
  90. }
  91. private string _ProvinceName = "";
  92. public string ProvinceName
  93. {
  94. get { return _ProvinceName; }
  95. set { _ProvinceName = value; }
  96. }
  97. private long _CityId = int.MinValue;
  98. public long CityId
  99. {
  100. get { return _CityId; }
  101. set { _CityId = value; }
  102. }
  103. private string _CityName = "";
  104. public string CityName
  105. {
  106. get { return _CityName; }
  107. set { _CityName = value; }
  108. }
  109. #region 是否选中-自定义字段
  110. private bool _isSelected = false;
  111. /// <summary>
  112. ///是否选中-自定义字段
  113. /// </summary>
  114. public bool IsSelected
  115. {
  116. get
  117. {
  118. return _isSelected;
  119. }
  120. set
  121. {
  122. Set(() => IsSelected, ref _isSelected, value);
  123. }
  124. }
  125. #endregion
  126. /// <summary>
  127. /// 点选顺序-自定义字段
  128. /// </summary>
  129. private int _numSort=int.MaxValue;
  130. /// <summary>
  131. /// 点选顺序-自定义字段
  132. /// </summary>
  133. public int NumSort
  134. {
  135. get { return _numSort; }
  136. set { _numSort = value; }
  137. }
  138. private bool _isEnabled=true;
  139. /// <summary>
  140. /// 是否可用-自定义字段
  141. /// </summary>
  142. public bool IsEnabled
  143. {
  144. get { return _isEnabled; }
  145. set { Set(() => IsEnabled, ref _isEnabled, value); }
  146. }
  147. private string _isError = "0";
  148. /// <summary>
  149. /// 当前输入是否错误-控制Border边框
  150. /// </summary>
  151. public string IsError
  152. {
  153. get
  154. {
  155. return _isError;
  156. }
  157. set
  158. {
  159. Set(() => IsError, ref _isError, value);
  160. }
  161. }
  162. public string DeliveryPriceMoveDisplay
  163. {
  164. get
  165. {
  166. if (DeliveryPriceMove!=null && DeliveryPriceMove == int.MinValue)
  167. {
  168. return "-";
  169. }
  170. else
  171. {
  172. return DeliveryPriceMove.ToString();
  173. }
  174. }
  175. }
  176. /// <summary>
  177. /// 合约单位-自定义字段
  178. /// </summary>
  179. public string GoodsUnitIdDisplay { get; set; }
  180. #region 选择数量-自定义
  181. private string _selectQty = string.Empty;
  182. /// <summary>
  183. /// 选择数量
  184. /// </summary>
  185. public string SelectQty
  186. {
  187. get
  188. {
  189. return _selectQty;
  190. }
  191. set
  192. {
  193. Set(() => SelectQty, ref _selectQty, value);
  194. }
  195. }
  196. #endregion
  197. }
  198. }