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