using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
public class TradePnlStatics
{
///
/// 估值日
///
public DateTime ValueDate { get; set; }
///
/// 客户ID
///
public int ClientId { get; set; }
///
/// 资产类型
///
public string AssetType { get; set; }
///
/// 资产簿记账号
///
public int BookId { get; set; }
///
/// 标的代码
///
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; }
///
/// 手续费
///
public double TotalCommission { get; set; }
///
///
///
public double TotalAmount { get; set; }
public string Remark { get; set; }
public int TotalCount { get; set; }
}
}