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
{
///
/// 交割商品-交易商品交割关系-参数配置
///
public class DeliveryConfig
{
#region SQL字段
//
#endregion
#region 交割商品表DeliveryGoods
///
/// 商品状态:0待激活、1正常、 2已注销
///
[PropertyDisc("DeliveryGoodsStatus")]
public eGoodsStatus DeliveryGoodsStatus { get; set; }
///
/// 交割商品合约单位-数据库表中,此字段删除
///
//[PropertyDisc("AgreeUnit")]
//public decimal AgreeUnit { get; set; }
///
/// 商品单位
///
[PropertyDisc("GoodsUnitId")]
public long GoodsUnitId { get; set; }
///
/// 价格小数位
///
[PropertyDisc("DecimalPlace")]
public decimal DecimalPlace { get; set; }
///
/// 发起方式'1买方限定,2卖方限定,3双方自由';
///
[PropertyDisc("Sponsor")]
public eSponsorType Sponsor { get; set; }
#endregion
#region 交易商品交割关系表GoodsDeliveryRelation
///
/// 交易商品Id
///
[PropertyDisc("GoodsId")]
public long GoodsId { get; set; }
///
/// 关联模式:0Self ,1P , 2P+X;
///
[PropertyDisc("RelationMode")]
public eDeliveryContractLink RelationMode { get; set; }
///
/// 关联交易商品Id
///
[PropertyDisc("RelationGoodsId")]
public long RelationGoodsId { get; set; }
///
/// 交割商品Id
///
[PropertyDisc("DeliveryGoodsId")]
public long DeliveryGoodsId { get; set; }
///
/// 兑换系数=》例如:交割商品为白银15KG,交割商品为白银10KG,那么比对系数是2:3 ;
///
[PropertyDisc("Conversion")]
public decimal Conversion { get; set; }
///
/// 交割价算法:'指定价,持仓价,结算价,协议价,昨结算价';
///
[PropertyDisc("DeliveryPriceCalcMethod")]
public eReckonPriceCalcMethodType DeliveryPriceCalcMethod { get; set; }
///
/// 差价升贴水
///
[PropertyDisc("DeliveryPriceMove")]
public decimal DeliveryPriceMove { get; set; }
#endregion
#region 交割规则表DeliveryRule
///
/// 规则id
///
[PropertyDisc("Ruleid")]
public long Ruleid { get; set; }
///
/// 参数值
///
[PropertyDisc("ParameterValue")]
public decimal ParameterValue { get; set; }
#endregion
///
/// 交易商品-合约单位
///
[PropertyDisc("currentAgreeunit")]
public decimal currentAgreeunit { get; set; }
///
/// 交易商品-商品单位
///
[PropertyDisc("currentGoodsunit")]
public decimal currentGoodsunit { get; set; }
///
/// 交易商品-资金模式-1:保证金、2:全款划扣
///
[PropertyDisc("currentMoneymode")]
public eMoneyMode currentMoneymode { get; set; }
///
/// 交易商品-价格小数位
///
[PropertyDisc("currentDecimalplace")]
public int currentDecimalplace { get; set; }
///
/// 交割价算法-字符转换:'指定价,持仓价,结算价,协议价,昨结算价';
///
public string DeliveryPriceCalcMethodDisplay
{
get
{
return DeliveryPriceCalcMethod.Discription();
}
}
}
}