DeliveryConfig.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. using Muchinfo.MTPClient.Data.Enums;
  2. using Muchinfo.MTPClient.Data.Helper;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. //----------------------------------------------------------------
  8. //Module Name: $safeprojectname$
  9. //Purpose:
  10. //CopyRight: Muchinfo
  11. //History:
  12. //----------------------------------------------------------------
  13. //DateTime 2016/8/17 10:02:28
  14. //Author huang.deqi
  15. //Description Create
  16. //----------------------------------------------------------------
  17. namespace Muchinfo.MTPClient.Data.Model.Delivery
  18. {
  19. /// <summary>
  20. /// 交割商品-交易商品交割关系-参数配置
  21. /// </summary>
  22. public class DeliveryConfig
  23. {
  24. #region SQL字段
  25. // <select id="SearchDeliveryGoodsRelationConfig" parameterType="java.util.Map"
  26. // resultType="HashMap">
  27. // SELECT
  28. // dg.AgreeUnit,
  29. // dg.GoodsUnitId,
  30. // dg.DecimalPlace,
  31. // dg.Sponsor,
  32. // dg.DeliveryGoodsStatus,
  33. // dg.ExchangeAreaId,
  34. // dr.GoodsId,
  35. // dr.RelationMode,
  36. // dr.RelationGoodsId,
  37. // dr.Conversion,
  38. // dr.DeliveryPriceCalcMethod,
  39. // dr.DELIVERYPRICEMOVE,
  40. // ru.parametervalue,
  41. // ru.Ruleid
  42. //from GoodsDeliveryRelation dr
  43. //left join DeliveryGoods dg on dg.DeliveryGoodsId=dr.DeliveryGoodsId
  44. //left join DeliveryRule ru on ru.DeliveryGoodsId=dr.DeliveryGoodsId
  45. // <where>
  46. // dr.GoodsId =#{goodsId}
  47. // </where>
  48. //</select>
  49. #endregion
  50. #region 交割商品表DeliveryGoods
  51. /// <summary>
  52. /// 商品状态:0待激活、1正常、 2已注销
  53. /// </summary>
  54. [PropertyDisc("DeliveryGoodsStatus")]
  55. public eGoodsStatus DeliveryGoodsStatus { get; set; }
  56. /// <summary>
  57. /// 交割商品合约单位-数据库表中,此字段删除
  58. /// </summary>
  59. //[PropertyDisc("AgreeUnit")]
  60. //public decimal AgreeUnit { get; set; }
  61. /// <summary>
  62. /// 商品单位
  63. /// </summary>
  64. [PropertyDisc("GoodsUnitId")]
  65. public long GoodsUnitId { get; set; }
  66. /// <summary>
  67. /// 价格小数位
  68. /// </summary>
  69. [PropertyDisc("DecimalPlace")]
  70. public decimal DecimalPlace { get; set; }
  71. /// <summary>
  72. /// 发起方式'1买方限定,2卖方限定,3双方自由';
  73. /// </summary>
  74. [PropertyDisc("Sponsor")]
  75. public eSponsorType Sponsor { get; set; }
  76. #endregion
  77. #region 交易商品交割关系表GoodsDeliveryRelation
  78. /// <summary>
  79. /// 交易商品Id
  80. /// </summary>
  81. [PropertyDisc("GoodsId")]
  82. public long GoodsId { get; set; }
  83. /// <summary>
  84. /// 关联模式:0Self ,1P , 2P+X;
  85. /// </summary>
  86. [PropertyDisc("RelationMode")]
  87. public eDeliveryContractLink RelationMode { get; set; }
  88. /// <summary>
  89. /// 关联交易商品Id
  90. /// </summary>
  91. [PropertyDisc("RelationGoodsId")]
  92. public long RelationGoodsId { get; set; }
  93. /// <summary>
  94. /// 交割商品Id
  95. /// </summary>
  96. [PropertyDisc("DeliveryGoodsId")]
  97. public long DeliveryGoodsId { get; set; }
  98. /// <summary>
  99. /// 兑换系数=》例如:交割商品为白银15KG,交割商品为白银10KG,那么比对系数是2:3 ;
  100. /// </summary>
  101. [PropertyDisc("Conversion")]
  102. public decimal Conversion { get; set; }
  103. /// <summary>
  104. /// 交割价算法:'指定价,持仓价,结算价,协议价,昨结算价';
  105. /// </summary>
  106. [PropertyDisc("DeliveryPriceCalcMethod")]
  107. public eReckonPriceCalcMethodType DeliveryPriceCalcMethod { get; set; }
  108. /// <summary>
  109. /// 差价升贴水
  110. /// </summary>
  111. [PropertyDisc("DeliveryPriceMove")]
  112. public decimal DeliveryPriceMove { get; set; }
  113. #endregion
  114. #region 交割规则表DeliveryRule
  115. /// <summary>
  116. /// 规则id
  117. /// </summary>
  118. [PropertyDisc("Ruleid")]
  119. public long Ruleid { get; set; }
  120. /// <summary>
  121. /// 参数值
  122. /// </summary>
  123. [PropertyDisc("ParameterValue")]
  124. public decimal ParameterValue { get; set; }
  125. #endregion
  126. /// <summary>
  127. /// 交易商品-合约单位
  128. /// </summary>
  129. [PropertyDisc("currentAgreeunit")]
  130. public decimal currentAgreeunit { get; set; }
  131. /// <summary>
  132. /// 交易商品-商品单位
  133. /// </summary>
  134. [PropertyDisc("currentGoodsunit")]
  135. public decimal currentGoodsunit { get; set; }
  136. /// <summary>
  137. /// 交易商品-资金模式-1:保证金、2:全款划扣
  138. /// </summary>
  139. [PropertyDisc("currentMoneymode")]
  140. public eMoneyMode currentMoneymode { get; set; }
  141. /// <summary>
  142. /// 交易商品-价格小数位
  143. /// </summary>
  144. [PropertyDisc("currentDecimalplace")]
  145. public int currentDecimalplace { get; set; }
  146. /// <summary>
  147. /// 交割价算法-字符转换:'指定价,持仓价,结算价,协议价,昨结算价';
  148. /// </summary>
  149. public string DeliveryPriceCalcMethodDisplay
  150. {
  151. get
  152. {
  153. return DeliveryPriceCalcMethod.Discription();
  154. }
  155. }
  156. }
  157. }