257 lines
6.7 KiB
C#
257 lines
6.7 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using YLErp.Commons;
|
|
|
|
namespace YLErp.Modules.SuperviseReportModule.CFMMC.Model
|
|
{
|
|
public class SuperviseReportTodayModel : SuperviseReportBaseModel
|
|
{
|
|
|
|
/// <summary>
|
|
/// 主协议类型
|
|
/// </summary>
|
|
public string ProtocalType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 主协议日期
|
|
/// </summary>
|
|
public DateTime? ProtocolSignDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 主协议日期
|
|
/// </summary>
|
|
public string ProtocolSignDateString
|
|
{
|
|
get
|
|
{
|
|
return ProtocolSignDate == null ? "" : ProtocolSignDate.Value.ToString("yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否有授信
|
|
/// </summary>
|
|
public string IsCredit { get; set; }
|
|
|
|
private double _credit;
|
|
/// <summary>
|
|
/// 授信额度
|
|
/// </summary>
|
|
public double? Credit
|
|
{
|
|
get { return _credit == 0 ? null : (double?)_credit; }
|
|
set { _credit = OtcFormatHelper.FormatValue(value, 4).Value; }
|
|
}
|
|
|
|
public string CreditString => ConsGlobal.IgnoreTSV(_credit) == 0 ? "" : _credit.ToString("0.####");
|
|
|
|
private string _spotPrice;
|
|
/// <summary>
|
|
/// 期初价格
|
|
/// </summary>
|
|
public string SpotPrice
|
|
{
|
|
get
|
|
{
|
|
return _spotPrice;
|
|
}
|
|
set
|
|
{
|
|
_spotPrice = value;
|
|
}
|
|
}
|
|
|
|
private double _initCastClientPayable;
|
|
/// <summary>
|
|
/// 初始预付金要求
|
|
/// </summary>
|
|
public double? InitCastClientPayable
|
|
{
|
|
get
|
|
{
|
|
return _initCastClientPayable == 0 ? null : (double?)_initCastClientPayable;
|
|
}
|
|
set { _initCastClientPayable = OtcFormatHelper.FormatValue(value, 4).Value; }
|
|
}
|
|
|
|
public string InitCastClientPayableString => ConsGlobal.IgnoreTSV(_initCastClientPayable) == 0 ? "" : _initCastClientPayable.ToString("0.####");
|
|
|
|
private double _worstCastClientPayable;
|
|
/// <summary>
|
|
/// 维持预付金
|
|
/// </summary>
|
|
public double? WorstCastClientPayable
|
|
{
|
|
get
|
|
{
|
|
return _worstCastClientPayable == 0 ? null : (double?)_worstCastClientPayable;
|
|
}
|
|
set
|
|
{
|
|
_worstCastClientPayable = OtcFormatHelper.FormatValue(value, 4).Value;
|
|
}
|
|
}
|
|
|
|
public string WorstCastClientPayableString => ConsGlobal.IgnoreTSV(_worstCastClientPayable) == 0 ? "" : _worstCastClientPayable.ToString("0.####");
|
|
|
|
/// <summary>
|
|
/// 操作类型
|
|
/// </summary>
|
|
public string OperationType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 生效日
|
|
/// </summary>
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 生效日
|
|
/// </summary>
|
|
public string StartDateString
|
|
{
|
|
get
|
|
{
|
|
return StartDate == null ? "" : StartDate.Value.ToString("yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
public DateTime? RealExerciseDate { get; set; }
|
|
|
|
public string RealExerciseDateString
|
|
{
|
|
get
|
|
{
|
|
return RealExerciseDate == null ? "" : RealExerciseDate.Value.ToString("yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 提前终止日期
|
|
/// </summary>
|
|
public DateTime? UnWindDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 提前终止日期
|
|
/// </summary>
|
|
public string UnWindDateString
|
|
{
|
|
get
|
|
{
|
|
return UnWindDate == null ? "" : UnWindDate.Value.ToString("yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 标的资产交易场所
|
|
/// </summary>
|
|
public string TradingMarket { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标的资产交易场所En
|
|
/// </summary>
|
|
public string TradingMarketEn { get; set; }
|
|
|
|
private double? _tradePrice;
|
|
/// <summary>
|
|
/// 期权费金额
|
|
/// </summary>
|
|
public double? TradePrice
|
|
{
|
|
get
|
|
{
|
|
return _tradePrice;
|
|
}
|
|
set
|
|
{
|
|
_tradePrice = value != null ? Math.Abs(OtcFormatHelper.FormatValue(value.Value, 4)) : default(Nullable<double>);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 结算方法
|
|
/// </summary>
|
|
public string SettlementMethod { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最后结算日
|
|
/// </summary>
|
|
public DateTime? LastUnWindDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最后结算日
|
|
/// </summary>
|
|
public string LastUnWindDateString
|
|
{
|
|
get
|
|
{
|
|
return LastUnWindDate == null ? "" : LastUnWindDate.Value.ToString("yyyy-MM-dd");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 结算价确认方式
|
|
/// </summary>
|
|
public int? SettlementPriceType { get; set; }
|
|
|
|
private double? _fixedPrice;
|
|
/// <summary>
|
|
/// 一口价价格
|
|
/// </summary>
|
|
public double? FixedPrice
|
|
{
|
|
get { return _fixedPrice; }
|
|
set { _fixedPrice = value.HasValue ? (double?)OtcFormatHelper.FormatValue(value ?? 0, 4) : null; ; }
|
|
}
|
|
|
|
private double? _referencePrice;
|
|
|
|
/// <summary>
|
|
/// 商品参考价格
|
|
/// </summary>
|
|
public double? ReferencePrice
|
|
{
|
|
get { return _referencePrice; }
|
|
set { _referencePrice = value.HasValue ? OtcFormatHelper.FormatValue(value.Value, 4) : value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品参考价格
|
|
/// </summary>
|
|
public string ReferencePriceString
|
|
{
|
|
get
|
|
{
|
|
return ReferencePrice?.ToString("0.####");
|
|
}
|
|
}
|
|
|
|
#region 辅助属性
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[NotMapped]
|
|
public int TradeCashId { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[NotMapped]
|
|
public double? ClosePrice { get; set; }
|
|
|
|
/// <summary>
|
|
/// TradeSpan表里的维持预付金
|
|
/// 用于计算维持预付金和初始预付金
|
|
/// </summary>
|
|
[NotMapped]
|
|
public double? TradeSpan_WorstCastClientPayable { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分组交易中的父交易Id
|
|
/// </summary>
|
|
[NotMapped]
|
|
public int GroupPercentTradeId { get; set; }
|
|
|
|
#endregion
|
|
}
|
|
}
|