DeliveryCompleteModel.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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 2016/12/27 20:20:55
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data.Enums;
  16. using Muchinfo.MTPClient.Data.Helper;
  17. namespace Muchinfo.MTPClient.Data.Model.Delivery
  18. {
  19. public class DeliveryCompleteModel
  20. {
  21. //
  22. //交割单号 DeliveryId
  23. //申报单号 OrderId
  24. //对手申报单号 RelationOrderId
  25. //账号ID AccountID
  26. //对手账号ID MatchAccountID
  27. //交割商品Id DeliveryGoodsId
  28. //成交时间 TradeTime
  29. //交割均价 DeliveryPrice
  30. //交割数量 DeliveryQty
  31. //交割货款 DeliveryAmount
  32. //手续费 DeliveryCharge
  33. //创建时间 CreateTime
  34. //操作员Id OPERATORID
  35. //买卖方向 Buyorsell
  36. //交易商品 TradeGoodsid
  37. //稅款 TAX
  38. // g.goodscode,
  39. //g.goodsname,
  40. //dg.deliverygoodscode,
  41. //dg.deliverygoodsname,
  42. //u.accountcode,
  43. //u.accountname
  44. /// <summary>
  45. /// 交割单号
  46. /// </summary>
  47. [PropertyDisc("DeliveryId")]
  48. public long DeliveryId { get; set; }
  49. /// <summary>
  50. /// 申报单号
  51. /// </summary>
  52. [PropertyDisc("OrderId")]
  53. public long OrderId { get; set; }
  54. /// <summary>
  55. /// 对手 账号
  56. /// </summary>
  57. [PropertyDisc("accountcode")]
  58. public string MatchAccountCode { get; set; }
  59. /// <summary>
  60. /// 对手账号名称
  61. /// </summary>
  62. [PropertyDisc("accountname")]
  63. public string MatchAccountName { get; set; }
  64. /// <summary>
  65. /// 成交时间
  66. /// </summary>
  67. [PropertyDisc("TradeTime")]
  68. public DateTime TradeTime { get; set; }
  69. /// <summary>
  70. /// 交割均价
  71. /// </summary>
  72. [PropertyDisc("DeliveryPrice")]
  73. public decimal DeliveryPrice { get; set; }
  74. /// <summary>
  75. /// 交割数量
  76. /// </summary>
  77. [PropertyDisc("DeliveryQty")]
  78. public decimal DeliveryQty { get; set; }
  79. /// <summary>
  80. /// 交割货款
  81. /// </summary>
  82. [PropertyDisc("DeliveryAmount")]
  83. public decimal DeliveryAmount { get; set; }
  84. /// <summary>
  85. /// 手续费
  86. /// </summary>
  87. [PropertyDisc("DeliveryCharge")]
  88. public decimal DeliveryCharge { get; set; }
  89. /// <summary>
  90. /// 买卖方向
  91. /// </summary>
  92. [PropertyDisc("Buyorsell")]
  93. public Direction Buyorsell { get; set; }
  94. /// <summary>
  95. /// 交易商品代码
  96. /// </summary>
  97. [PropertyDisc("GoodsCode")]
  98. public string GoodsCode { get; set; }
  99. /// <summary>
  100. /// 交易商品名称
  101. /// </summary>
  102. [PropertyDisc("GoodsName")]
  103. public string GoodsName { get; set; }
  104. /// <summary>
  105. /// 交割商品名称
  106. /// </summary>
  107. [PropertyDisc("DeliveryGoodsName")]
  108. public string DeliveryGoodsName { get; set; }
  109. /// <summary>
  110. /// 交割商品代码
  111. /// </summary>
  112. [PropertyDisc("DeliveryGoodsCode")]
  113. public string DeliveryGoodsCode { get; set; }
  114. /// <summary>
  115. /// 交割税款
  116. /// </summary>
  117. [PropertyDisc("Tax")]
  118. public decimal Tax { get; set; }
  119. public string TaxDisplay
  120. {
  121. get
  122. {
  123. if (Tax == decimal.Zero || Tax == null || Buyorsell == Direction.Ask)
  124. {
  125. return "-";
  126. }
  127. else
  128. {
  129. return Tax.ToString("f2");
  130. }
  131. }
  132. }
  133. public string BuyorsellDisplay
  134. {
  135. get
  136. {
  137. return Buyorsell.Discription();
  138. }
  139. }
  140. }
  141. }