DeliveryOrder.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. namespace Muchinfo.MTPClient.Data.Model.Account
  2. {
  3. using GalaSoft.MvvmLight;
  4. /// <summary>
  5. /// 交收单
  6. /// </summary>
  7. public class DeliveryOrder : ObservableObject
  8. {
  9. #region Fields
  10. /// <summary>
  11. /// 买卖
  12. /// </summary>
  13. private string _buyOrSell;
  14. /// <summary>
  15. /// 交收价
  16. /// </summary>
  17. private decimal _deliveryPrice;
  18. /// <summary>
  19. /// 商品
  20. /// </summary>
  21. private string _goods;
  22. /// <summary>
  23. /// 数量
  24. /// </summary>
  25. private double _lot;
  26. /// <summary>
  27. /// 订单号
  28. /// </summary>
  29. private string _orderNumber;
  30. #endregion Fields
  31. #region Properties
  32. /// <summary>
  33. /// Sets and gets 买卖
  34. /// Changes to that property's value raise the PropertyChanged event.
  35. /// </summary>
  36. public string BuyOrSell
  37. {
  38. get{return _buyOrSell;}
  39. set{Set(() => BuyOrSell, ref _buyOrSell, value);}
  40. }
  41. /// <summary>
  42. /// Sets and gets 交收价
  43. /// Changes to that property's value raise the PropertyChanged event.
  44. /// </summary>
  45. public decimal DeliveryPrice
  46. {
  47. get{return _deliveryPrice;}
  48. set{Set(() => DeliveryPrice, ref _deliveryPrice, value);}
  49. }
  50. /// <summary>
  51. /// Sets and gets 商品
  52. /// Changes to that property's value raise the PropertyChanged event.
  53. /// </summary>
  54. public string Goods
  55. {
  56. get{return _goods;}
  57. set{Set(() => Goods, ref _goods, value);}
  58. }
  59. /// <summary>
  60. /// Sets and gets 数量
  61. /// Changes to that property's value raise the PropertyChanged event.
  62. /// </summary>
  63. public double Lot
  64. {
  65. get{return _lot;}
  66. set{Set(() => Lot, ref _lot, value);}
  67. }
  68. /// <summary>
  69. /// Sets and gets 订单号
  70. /// Changes to that property's value raise the PropertyChanged event.
  71. /// </summary>
  72. public string OrderNumber
  73. {
  74. get{return _orderNumber;}
  75. set{Set(() => OrderNumber, ref _orderNumber, value);}
  76. }
  77. #endregion Properties
  78. }
  79. }