using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { /// /// 服务商配置 /// [Table("servicerepresentativeconfig")] public class ServiceRepresentativeConfig : DBModelWithOperator, IDataTrace { public static string LogClass = "服务产商通道费设置"; /// /// 服务商的Id /// [DisplayName("服务商的Id")] [Required] public int ServiceId { get; set; } /// /// 加成费率 /// [DisplayName("加成费率")] [Required] public double PremiumRateVariation { get; set; } /// /// 服务商别名 /// [DisplayName("服务商别名")] public string Alias { get; set; } /// /// 默认交易/行权指令 /// [DisplayName("默认交易/行权指令")] public string DefaultTradeInstruction { get; set; } /// /// 协议版本号 /// [DisplayName("协议版本号")] public string ContractVersion { get; set; } /// /// 默认期权费率 /// [DisplayName("默认期权费率")] public double? DefaultPremiumRate { get; set; } /// /// 卖方权利金交割日类型 /// [DisplayName("卖方权利金交割日类型")] public int? SellerRightDeliveryDayType { get; set; } /// /// 交易确认书编码长度 /// [DisplayName("交易确认书编码长度")] public int? ContractNoLength { get; set; } /// /// 交易确认书子编码样式 /// [DisplayName("交易确认书子编码样式")] public string ContractSubNoStyle { get; set; } /// /// 行权规则 /// [DisplayName("行权规则")] public int? ExerciseRule { get; set; } /// /// 服务商名称 /// [DisplayName("服务商名称")] [NotMapped] public string ServiceName { get; set; } /// /// 协议版本号 /// [DisplayName("个股期权买方协议版本号")] public string StockBuyContractVersion { get; set; } /// /// 协议版本号 /// [DisplayName("个股期权卖方协议版本号")] public string StockSellContractVersion { get; set; } /// /// 协议版本号 /// [DisplayName("商品期货期权买方协议版本号")] public string FutureBuyContractVersion { get; set; } /// /// 协议版本号 /// [DisplayName("商品期货期权卖方协议版本号")] public string FutureSellContractVersion { get; set; } [DisplayName("远期商品期货卖方协议版本号")] public string ForwardBuyContractVersion { get; set; } [DisplayName("远期商品期货卖方协议版本号")] public string ForwardSellContractVersion { get; set; } /// /// 是否有效 /// [DisplayName("是否有效")] public string ValidState { get; set; } public string GetDataTraceKeyInfo() { return "服务商配置"; } } }