OrderComfirmModel.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2017/2/23 18:56:25
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data.Enums;
  16. using Muchinfo.MTPClient.Data.Helper;
  17. namespace Muchinfo.MTPClient.Data.Model
  18. {
  19. public class OrderComfirmModel
  20. {
  21. /// <summary>
  22. /// 商品名称
  23. /// </summary>
  24. public string GoodsName { get; set; }
  25. /// <summary>
  26. /// 委托价格
  27. /// </summary>
  28. public decimal OrderPrice { get; set; }
  29. /// <summary>
  30. /// 数量
  31. /// </summary>
  32. public decimal Lot { get; set; }
  33. public string OrderPriceDispay
  34. {
  35. get
  36. {
  37. if (OrderPrice == 0)
  38. {
  39. return "--";
  40. }
  41. else
  42. {
  43. return OrderPrice.ToString();
  44. }
  45. }
  46. }
  47. /// <summary>
  48. /// 方向
  49. /// </summary>
  50. public Direction Direction { get; set; }
  51. public string DirectionDisplay
  52. {
  53. get
  54. {
  55. return Direction.Discription();
  56. }
  57. }
  58. }
  59. }