Files
zszq-trs/Framework/YLErp.Core/DBModels/EodPnlStatics.cs
T
2024-05-09 14:06:26 +08:00

65 lines
1.4 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
public class TradePnlStatics
{
/// <summary>
/// 估值日
/// </summary>
public DateTime ValueDate { get; set; }
/// <summary>
/// 客户ID
/// </summary>
public int ClientId { get; set; }
/// <summary>
/// 资产类型
/// </summary>
public string AssetType { get; set; }
/// <summary>
/// 资产簿记账号
/// </summary>
public int BookId { get; set; }
/// <summary>
/// 标的代码
/// </summary>
public string UnderlyingCode { get; set; }
public double TotalPnl { get; set; }
public override string ToString()
{
return $"{UnderlyingCode}--{AssetType}--{ClientId}";
}
public TradePnlStatics Clone()
{
return (TradePnlStatics)MemberwiseClone();
}
}
[NotMapped]
public class EodPnlStaticsDto : TradePnlStatics
{
public int TraderId { get; set; }
/// <summary>
/// 手续费
/// </summary>
public double TotalCommission { get; set; }
/// <summary>
///
/// </summary>
public double TotalAmount { get; set; }
public string Remark { get; set; }
public int TotalCount { get; set; }
}
}