TradeWRPositionModel.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. namespace Muchinfo.MTPClient.Data.Model.Delivery
  7. {
  8. public class TradeWRPositionModel:INotifyPropertyChanged
  9. {
  10. public event PropertyChangedEventHandler PropertyChanged;
  11. private void INotifyPropertyChanged(string name)
  12. {
  13. if (PropertyChanged != null)
  14. {
  15. PropertyChanged(this, new PropertyChangedEventArgs(name));
  16. }
  17. }
  18. public ulong WRPositionID { get; set; }
  19. public ulong WRUserID { get; set; }
  20. public string WRUserName { get; set; }
  21. public ulong AccountID { get; set; }
  22. public uint DeliveryGoodsID { get; set; }
  23. public uint BrandID { get; set; }
  24. public string BrandName { get; set; }
  25. public string BrandType { get; set; }
  26. public uint QualityID { get; set; }
  27. public string QualityName { get; set; }
  28. public string QualityType { get; set; }
  29. public uint SpecID { get; set; }
  30. public string SpecName { get; set; }
  31. public string SpecType { get; set; }
  32. public uint WarehouseID { get; set; }
  33. public string WarehouseName { get; set; }
  34. public string WarehouseType { get; set; }
  35. public uint DeliveryMonthID { get; set; }
  36. private uint _restQty;
  37. public uint RestQty
  38. {
  39. get { return _restQty; }
  40. set
  41. {
  42. _restQty = value;
  43. INotifyPropertyChanged("RestQty");
  44. }
  45. }
  46. private uint _maximunQty;
  47. public uint MaximunQty
  48. {
  49. get { return _maximunQty; }
  50. set
  51. {
  52. _maximunQty = value;
  53. INotifyPropertyChanged("MaximunQty");
  54. }
  55. }
  56. public decimal PriceMove { get; set; }
  57. /// <summary>
  58. /// 是否选中-自定义字段
  59. /// </summary>
  60. private bool _isSelected=false;
  61. /// <summary>
  62. /// 是否选中-自定义字段
  63. /// </summary>
  64. public bool IsSelected
  65. {
  66. get { return _isSelected; }
  67. set
  68. {
  69. _isSelected = value;
  70. INotifyPropertyChanged("IsSelected");
  71. }
  72. }
  73. private bool _isEnable = false;
  74. public bool IsEnable
  75. {
  76. get { return _isEnable; }
  77. set
  78. {
  79. _isEnable = value;
  80. INotifyPropertyChanged("IsEnable");
  81. }
  82. }
  83. #region 选择数量-自定义
  84. private uint _selectQty = 0;
  85. public uint SelectQty
  86. {
  87. get { return _selectQty; }
  88. set
  89. {
  90. _selectQty = value;
  91. INotifyPropertyChanged("SelectQty");
  92. INotifyPropertyChanged("SelectedQty");
  93. }
  94. }
  95. private string _selectedQty = "0";
  96. public string SelectedQty
  97. {
  98. get { return _selectedQty; }
  99. set
  100. {
  101. _selectedQty = value;
  102. INotifyPropertyChanged("SelectedQty");
  103. }
  104. }
  105. #endregion
  106. }
  107. }