DeliveryComplete.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/4/29 17:17:40
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data.Extensions;
  16. using Muchinfo.MTPClient.Data.Helper;
  17. namespace Muchinfo.MTPClient.Data.Model.Account
  18. {
  19. public class DeliveryComplete : OrderBase
  20. {
  21. // hcm.*,hdt.deliveryid deliveryCompleteId from(SELECT
  22. // mc.accountid accountid,
  23. // mc.tradeId tradeId,
  24. // mc.orderid orderid,
  25. // mc.relationorderid relationorderid,
  26. // hxd.deliveryid deliveryid,
  27. //to_char( mc.TradeTime, 'yyyy-MM-dd hh24:mi:ss') TradeTime,
  28. // mc.TradeTime completeTime,
  29. // mc.TradePrice TradePrice,
  30. // mc.TradeQty Qty,
  31. // mc.TradeAmount TradeAmount,
  32. // G.GoodsId GoodsId,
  33. // G.GoodsCode GoodsCode,
  34. // G.GoodsName GoodsName
  35. // mc.BuyOrSell BuyOrSell,
  36. /// <summary>
  37. /// 交割单
  38. /// </summary>
  39. [PropertyDisc("DeliveryCompleteId")]
  40. public long DeliveryCompleteId { get; set; }
  41. /// <summary>
  42. /// 交易持仓单号
  43. /// </summary>
  44. [PropertyDisc("relationorderid")]
  45. public long RelationOrderid { get; set; }
  46. /// <summary>
  47. /// 交割申报单
  48. /// </summary>
  49. [PropertyDisc("Deliveryid")]
  50. public long Deliveryid { get; set; }
  51. /// <summary>
  52. /// 成交价格
  53. /// </summary>
  54. [PropertyDisc("TradePrice")]
  55. public decimal TradePrice { get; set; }
  56. /// <summary>
  57. /// 成交数量
  58. /// </summary>
  59. [PropertyDisc("Qty")]
  60. public decimal Qty { get; set; }
  61. /// <summary>
  62. /// 成交时间
  63. /// </summary>
  64. [PropertyDisc("TradeTime")]
  65. public string TradeTime { get; set; }
  66. public string DirectionDisplay
  67. {
  68. get
  69. {
  70. return Direction.Discription();
  71. }
  72. }
  73. }
  74. }