73 lines
2.1 KiB
C#
73 lines
2.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace YLErp.DBModels
|
|
{
|
|
/// <summary>
|
|
/// 客户品种预付金率配置
|
|
/// </summary>
|
|
[Table("client_marginrate")]
|
|
public class client_marginrate : DBModelWithOperator, IDataTrace
|
|
{
|
|
[DisplayName("客户")]
|
|
public int ClientId { get; set; }
|
|
|
|
[DisplayName("客户名称")]
|
|
[NotMapped]
|
|
public string ClientName { get; set; }
|
|
|
|
[DisplayName("品种")]
|
|
public int? VarietyId { get; set; }
|
|
|
|
[DisplayName("品种代码")]
|
|
[NotMapped]
|
|
public string VarietyCode { get; set; }
|
|
|
|
[DisplayName("品种名称")]
|
|
[NotMapped]
|
|
public string VarietyName { get; set; }
|
|
|
|
[DisplayName("预付金类型")]
|
|
public string Type { get; set; }
|
|
|
|
[DisplayName("生效日期")]
|
|
public DateTime ValueDate { get; set; }
|
|
|
|
[DisplayName("初始保证金率")]
|
|
public double InitMarginRate { get; set; }
|
|
|
|
[DisplayName("平仓线")]
|
|
public double ClosePositionLine { get; set; }
|
|
|
|
[DisplayName("预警线")]
|
|
public double WarningLine { get; set; }
|
|
|
|
[DisplayName("初始预付金返息率")]
|
|
public decimal? InitMarginRebateRate { get; set; }
|
|
|
|
[DisplayName("追加预付金返息率")]
|
|
public decimal? AddToMarginRebateRate { get; set; }
|
|
|
|
[DisplayName("高预付金率")]
|
|
public double HighMarginRate { get; set; }
|
|
[DisplayName("低预付金率")]
|
|
public double LowMarginRate { get; set; }
|
|
|
|
[DisplayName("多头初始预付金率")]
|
|
public decimal? LongInitMarginRate { get; set; }
|
|
[DisplayName("空头初始预付金率")]
|
|
public decimal? ShortInitMarginRate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 互换默认期限
|
|
/// </summary>
|
|
public int? SwapEndDays { get; set; }
|
|
|
|
[DisplayName("维持保证金率")]
|
|
public double MaintenanceRate { get; set; }
|
|
public string GetDataTraceKeyInfo()
|
|
{
|
|
return "客户品种预付金率:" + ClientId + Type + VarietyId;
|
|
}
|
|
}
|
|
}
|