DeliveryMatchModel.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. using Muchinfo.MTPClient.Data.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. namespace Muchinfo.MTPClient.Data.Model.Delivery
  8. {
  9. /// <summary>
  10. /// 交割配对
  11. /// </summary>
  12. public class DeliveryMatchModel : INotifyPropertyChanged
  13. {
  14. #region 重写方法
  15. public event PropertyChangedEventHandler PropertyChanged;
  16. private void INotifyPropertyChanged(string name)
  17. {
  18. if (PropertyChanged != null)
  19. {
  20. PropertyChanged(this, new PropertyChangedEventArgs(name));
  21. }
  22. }
  23. #endregion
  24. #region SQL字段
  25. //[缺少升帖水]
  26. //select
  27. // wr.WRID,
  28. // wr.WRCode,
  29. // wr.DeliveryGoodsId,
  30. // wr.Qty,
  31. // wr.Rank,
  32. // wr.Brand,
  33. // wr.Status,
  34. // wr.WareHouseId,
  35. // wh.WareHouseName,
  36. // gs.DeliveryGoodsName,
  37. // from WarehouseReciept wr
  38. // left join WareHouse wh on wh.WareHouseId=wr.WareHouseId
  39. // left join DeliveryGoods gs on gs.DeliveryGoodsId==wr.DeliveryGoodsId
  40. // <where>
  41. // wr.DeliveryGoodsId =#{deliveryGoodsId}
  42. // </where>
  43. // order by wr.CreateTime desc
  44. #endregion
  45. #region 仓单表WarehouseReciept
  46. /// <summary>
  47. /// 仓单ID
  48. /// </summary>
  49. [PropertyDisc("WRID")]
  50. public long WRID { get; set; }
  51. /// <summary>
  52. /// 仓单号
  53. /// </summary>
  54. [PropertyDisc("WRCode")]
  55. public string WRCode { get; set; }
  56. /// <summary>
  57. /// 交割商品Id
  58. /// </summary>
  59. [PropertyDisc("DeliveryGoodsId")]
  60. public long DeliveryGoodsId { get; set; }
  61. /// <summary>
  62. /// 注册数量
  63. /// </summary>
  64. [PropertyDisc("Qty")]
  65. public decimal Qty { get; set; }
  66. /// <summary>
  67. /// 等级
  68. /// </summary>
  69. [PropertyDisc("Rank")]
  70. public string Rank { get; set; }
  71. /// <summary>
  72. /// 品牌
  73. /// </summary>
  74. [PropertyDisc("Brand")]
  75. public string Brand { get; set; }
  76. /// <summary>
  77. /// 仓库ID
  78. /// </summary>
  79. [PropertyDisc("WareHouseId")]
  80. public long WareHouseId { get; set; }
  81. #endregion
  82. #region 交割商品DeliveryGoods
  83. /// <summary>
  84. /// 交割商品名称
  85. /// </summary>
  86. [PropertyDisc("DeliveryGoodsName")]
  87. public long DeliveryGoodsName { get; set; }
  88. #endregion
  89. #region 仓库表WareHouse
  90. /// <summary>
  91. /// 仓库名称
  92. /// </summary>
  93. [PropertyDisc("WareHouseName")]
  94. public string WareHouseName { get; set; }
  95. #endregion
  96. /// <summary>
  97. /// 是否选中-自定义字段
  98. /// </summary>
  99. private bool _isSelected;
  100. /// <summary>
  101. /// 是否选中-自定义字段
  102. /// </summary>
  103. public bool IsSelected
  104. {
  105. get { return _isSelected; }
  106. set
  107. {
  108. _isSelected = value;
  109. INotifyPropertyChanged("IsSelected");
  110. }
  111. }
  112. }
  113. }