74 lines
1.8 KiB
C#
74 lines
1.8 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using YieldChain.Security;
|
|
using YLErp.Helpers;
|
|
|
|
|
|
namespace YLErp.DBModels
|
|
{
|
|
[Table("etrading_rule")]
|
|
public class EtradingRule
|
|
{
|
|
[Key]
|
|
public int id { get; set; }
|
|
//资金流向
|
|
|
|
public BoundSideEnum BoundSide { get; set; }
|
|
|
|
//对客客户编号
|
|
public string ClientNumber_0 { get; set; }
|
|
|
|
//对客簿记账户
|
|
public string AssetAccount_0 { get; set; }
|
|
|
|
//对客清算机构
|
|
public string ClearingAgency_0 { get; set; }
|
|
|
|
//连接客户编号
|
|
public string ClientNumber_1 { get; set; }
|
|
|
|
//连接簿记账户
|
|
public string AssetAccount_1 { get; set; }
|
|
|
|
//连接清算机构
|
|
public string ClearingAgency_1 { get; set; }
|
|
|
|
//对冲Broker
|
|
public string Broker_2 { get; set; }
|
|
|
|
//对冲簿记账户
|
|
public string AssetAccount_2{ get; set; }
|
|
|
|
//对冲清算机构
|
|
public string ClearingAgency_2 { get; set; }
|
|
/// <summary>
|
|
/// 对冲交易员编号
|
|
/// </summary>
|
|
public string Trader_2 { get; set; }
|
|
/// <summary>
|
|
/// 对冲资金账户2
|
|
/// </summary>
|
|
public string FundAccount_2 { get; set; }
|
|
|
|
[NotMapped]
|
|
public string BoundSideDesc
|
|
{
|
|
get
|
|
{
|
|
return EnumHelper.GetDescriptionByName(BoundSide);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 加密主键
|
|
/// </summary>
|
|
[NotMapped]
|
|
public string EncryptId
|
|
{
|
|
get { return DataProtect.Encrypt(id.ToString()); }
|
|
}
|
|
|
|
[NotMapped]
|
|
public string ClientNumber_0_Name { get; set; }
|
|
}
|
|
}
|