DeliveryDetail.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using GalaSoft.MvvmLight;
  2. using Muchinfo.MTPClient.Data.Enums;
  3. using Muchinfo.MTPClient.Data.Helper;
  4. namespace Muchinfo.MTPClient.Data.Model.Delivery
  5. {
  6. /// <summary>
  7. /// 交收单
  8. /// </summary>
  9. public class DeliveryDetail : ObservableObject
  10. {
  11. /// <summary>
  12. /// 交收申请编号
  13. /// </summary>
  14. public long DeliveryID { get; set; }
  15. /// <summary>
  16. /// 商品代码
  17. /// </summary>
  18. public string GoodsCode { get; set; }
  19. /// <summary>
  20. /// 交收数量
  21. /// </summary>
  22. public decimal DeliveryQty { get; set; }
  23. /// <summary>
  24. /// 交收价格
  25. /// </summary>
  26. public decimal DeliveryPrice { get; set; }
  27. /// <summary>
  28. /// 交收货款
  29. /// </summary>
  30. public decimal DeliveryAmount { get; set; }
  31. /// <summary>
  32. /// 交收手续费
  33. /// </summary>
  34. public decimal DeliveryCharge { get; set; }
  35. /// <summary>
  36. /// 申请时间
  37. /// </summary>
  38. public string DeliveryTime { get; set; }
  39. /// <summary>
  40. /// 持仓单编号
  41. /// </summary>
  42. public string HoldIDs { get; set; }
  43. /// <summary>
  44. /// 交收冻结
  45. /// </summary>
  46. public decimal DeliveryFreezon { get; set; }
  47. /// <summary>
  48. /// 交收方向
  49. /// </summary>
  50. public string BuyOrSell { get; set; }
  51. /// <summary>
  52. /// 申请时间
  53. /// </summary>
  54. public string ApplyTime { get; set; }
  55. /// <summary>
  56. /// 审核时间
  57. /// </summary>
  58. public string AuditTime { get; set; }
  59. private QY_DeliveryStatus _auditStatus;
  60. /// <summary>
  61. /// 交收状态
  62. /// </summary>
  63. public QY_DeliveryStatus AuditStatus
  64. { get {
  65. return _auditStatus;
  66. }
  67. set {
  68. Set(() => AuditStatus, ref _auditStatus, value);
  69. RaisePropertyChanged(() => AuditStatusString);
  70. }
  71. }
  72. public string _auditStatusString;
  73. /// <summary>
  74. /// 交收状态
  75. /// </summary>
  76. public string AuditStatusString {
  77. get
  78. {
  79. string result = string.Empty;
  80. result= AuditStatus.Discription();
  81. switch (AuditStatus)
  82. {
  83. // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_AUDIT_OK:
  84. // result = "完成交收";
  85. // break;
  86. // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_CANCLE:
  87. // result = "撤销";
  88. // break;
  89. // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_EXCEPTION:
  90. // result = "交割异常";
  91. // break;
  92. // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_NOAUDIT:
  93. // result = "待交收";
  94. // break;
  95. // case Muchinfo.MTPClient.Data.Enums.QY_DeliveryStatus.DELIVERY_QY_TAKE:
  96. // result = "确认收货";
  97. // break;
  98. // default:
  99. // break;
  100. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Noaudit:
  101. // // result = "未审核";
  102. // // break;
  103. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Audit_ok:
  104. // // result = "待发货";
  105. // // break;
  106. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Audit_refuse:
  107. // // result = "审核拒绝";
  108. // // break;
  109. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Deliver:
  110. // // result = "待收货";
  111. // // break;
  112. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Take:
  113. // // result = "已收货";
  114. // // break;
  115. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Cancle:
  116. // // result = "撤消";
  117. // // break;
  118. // //case Muchinfo.MTPClient.Data.Enums.DeliveryStatus.Settle:
  119. // // result = "交割结算";
  120. // // break;
  121. default:
  122. break;
  123. }
  124. return result;
  125. }
  126. set
  127. {
  128. }
  129. }
  130. }
  131. }