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

147 lines
4.1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YieldChain.Security;
namespace YLErp.DBModels
{
[Table("client_deal")]
public class ClientDeal
{
[Key]
public long id { get; set; }
/// <summary>
/// 加密主键
/// </summary>
[NotMapped]
public string EncryptId
{
get { return DataProtect.Encrypt(id.ToString()); }
}
/// <summary>
/// 客户委托订单ID
/// </summary>
public long? client_order_id { get; set; }
/// <summary>
/// 客户委托编号
/// </summary>
public string client_order_sno { get; set; }
/// <summary>
/// 对冲委托订单ID
/// </summary>
public long? hedge_order_id { get; set; }
/// <summary>
/// 对冲委托编号
/// </summary>
public string hedge_order_sno { get; set; }
/// <summary>
/// 客户机构编码
/// </summary>
public long? client_id { get; set; }
/// <summary>
/// 客户机构名称
/// </summary>
public string client_name { get; set; }
/// <summary>
/// 客户编号
/// </summary>
public long? client_user_id { get; set; }
/// <summary>
/// 客户名称
/// </summary>
public string client_user_name { get; set; }
/// <summary>
/// 成交类型(1:对冲成交;2:合约成交)
/// </summary>
public byte? deal_type { get; set; }
/// <summary>
/// 债券代码
/// </summary>
public string security_id { get; set; }
/// <summary>
/// 债券名称
/// </summary>
public string symbol { get; set; }
/// <summary>
/// 交易方向(0:买入,1:卖出)
/// </summary>
public byte side { get; set; }
/// <summary>
/// 委托数量
/// </summary>
public decimal order_qty { get; set; }
/// <summary>
/// 委托净价
/// </summary>
public decimal price { get; set; }
/// <summary>
/// 委托全价
/// </summary>
public decimal? full_price { get; set; }
/// <summary>
/// 委托收益率
/// </summary>
public decimal? entrust_yield { get; set; }
/// <summary>
/// 成交净价
/// </summary>
public decimal? deal_price { get; set; }
/// <summary>
/// 成交净价 含费
/// </summary>
public decimal? deal_price_include_fee { get; set; }
/// <summary>
/// 成交全价
/// </summary>
public decimal? deal_full_price { get; set; }
/// <summary>
/// 成交数量
/// </summary>
public decimal? last_shares { get; set; }
/// <summary>
/// 成交全价(含费)
/// </summary>
public decimal? deal_full_price_include_fee { get; set; }
/// <summary>
/// 手续费
/// </summary>
public decimal? commission { get; set; }
/// <summary>
/// 成交收益率
/// </summary>
public decimal? ytm { get; set; }
/// <summary>
/// 开平标志
/// </summary>
public byte open_close { get; set; }
/// <summary>
/// 币种
/// </summary>
public string currency { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? create_time { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long? create_user { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? update_time { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? update_user { get; set; }
[NotMapped]
public string settlType { get; set; }
}
}