| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/8/17 10:02:28
- //Author huang.deqi
- //Description Create
- //----------------------------------------------------------------
- namespace Muchinfo.MTPClient.Data.Model.Delivery
- {
- /// <summary>
- /// 交割商品-交易商品交割关系-参数配置
- /// </summary>
- public class DeliveryConfig
- {
- #region SQL字段
- // <select id="SearchDeliveryGoodsRelationConfig" parameterType="java.util.Map"
- // resultType="HashMap">
- // SELECT
- // dg.AgreeUnit,
- // dg.GoodsUnitId,
- // dg.DecimalPlace,
- // dg.Sponsor,
- // dg.DeliveryGoodsStatus,
- // dg.ExchangeAreaId,
- // dr.GoodsId,
- // dr.RelationMode,
- // dr.RelationGoodsId,
- // dr.Conversion,
- // dr.DeliveryPriceCalcMethod,
- // dr.DELIVERYPRICEMOVE,
- // ru.parametervalue,
- // ru.Ruleid
- //from GoodsDeliveryRelation dr
- //left join DeliveryGoods dg on dg.DeliveryGoodsId=dr.DeliveryGoodsId
- //left join DeliveryRule ru on ru.DeliveryGoodsId=dr.DeliveryGoodsId
- // <where>
- // dr.GoodsId =#{goodsId}
- // </where>
- //</select>
- #endregion
- #region 交割商品表DeliveryGoods
- /// <summary>
- /// 商品状态:0待激活、1正常、 2已注销
- /// </summary>
- [PropertyDisc("DeliveryGoodsStatus")]
- public eGoodsStatus DeliveryGoodsStatus { get; set; }
- /// <summary>
- /// 交割商品合约单位-数据库表中,此字段删除
- /// </summary>
- //[PropertyDisc("AgreeUnit")]
- //public decimal AgreeUnit { get; set; }
- /// <summary>
- /// 商品单位
- /// </summary>
- [PropertyDisc("GoodsUnitId")]
- public long GoodsUnitId { get; set; }
- /// <summary>
- /// 价格小数位
- /// </summary>
- [PropertyDisc("DecimalPlace")]
- public decimal DecimalPlace { get; set; }
- /// <summary>
- /// 发起方式'1买方限定,2卖方限定,3双方自由';
- /// </summary>
- [PropertyDisc("Sponsor")]
- public eSponsorType Sponsor { get; set; }
-
- #endregion
- #region 交易商品交割关系表GoodsDeliveryRelation
- /// <summary>
- /// 交易商品Id
- /// </summary>
- [PropertyDisc("GoodsId")]
- public long GoodsId { get; set; }
- /// <summary>
- /// 关联模式:0Self ,1P , 2P+X;
- /// </summary>
- [PropertyDisc("RelationMode")]
- public eDeliveryContractLink RelationMode { get; set; }
- /// <summary>
- /// 关联交易商品Id
- /// </summary>
- [PropertyDisc("RelationGoodsId")]
- public long RelationGoodsId { get; set; }
- /// <summary>
- /// 交割商品Id
- /// </summary>
- [PropertyDisc("DeliveryGoodsId")]
- public long DeliveryGoodsId { get; set; }
- /// <summary>
- /// 兑换系数=》例如:交割商品为白银15KG,交割商品为白银10KG,那么比对系数是2:3 ;
- /// </summary>
- [PropertyDisc("Conversion")]
- public decimal Conversion { get; set; }
- /// <summary>
- /// 交割价算法:'指定价,持仓价,结算价,协议价,昨结算价';
- /// </summary>
- [PropertyDisc("DeliveryPriceCalcMethod")]
- public eReckonPriceCalcMethodType DeliveryPriceCalcMethod { get; set; }
- /// <summary>
- /// 差价升贴水
- /// </summary>
- [PropertyDisc("DeliveryPriceMove")]
- public decimal DeliveryPriceMove { get; set; }
- #endregion
- #region 交割规则表DeliveryRule
- /// <summary>
- /// 规则id
- /// </summary>
- [PropertyDisc("Ruleid")]
- public long Ruleid { get; set; }
- /// <summary>
- /// 参数值
- /// </summary>
- [PropertyDisc("ParameterValue")]
- public decimal ParameterValue { get; set; }
- #endregion
- /// <summary>
- /// 交易商品-合约单位
- /// </summary>
- [PropertyDisc("currentAgreeunit")]
- public decimal currentAgreeunit { get; set; }
- /// <summary>
- /// 交易商品-商品单位
- /// </summary>
- [PropertyDisc("currentGoodsunit")]
- public decimal currentGoodsunit { get; set; }
- /// <summary>
- /// 交易商品-资金模式-1:保证金、2:全款划扣
- /// </summary>
- [PropertyDisc("currentMoneymode")]
- public eMoneyMode currentMoneymode { get; set; }
- /// <summary>
- /// 交易商品-价格小数位
- /// </summary>
- [PropertyDisc("currentDecimalplace")]
- public int currentDecimalplace { get; set; }
- /// <summary>
- /// 交割价算法-字符转换:'指定价,持仓价,结算价,协议价,昨结算价';
- /// </summary>
- public string DeliveryPriceCalcMethodDisplay
- {
- get
- {
- return DeliveryPriceCalcMethod.Discription();
- }
- }
- }
- }
|