using BaseOUDAL; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { public static class ExDividendDataSources { public const string Manual = "Manual"; public const string MarketData = "MarketData"; } [Table("ex_dividend_info")] public class ex_dividend_info : DBModelWithOperator { public static string LogClass = "除权除息信息"; /// /// 股权登记日 /// [DisplayName("股权登记日")] public DateTime? ExDividendDate { get; set; } /// /// 税率 /// [NotMapped] public double DividRate { get; set; } [DisplayName("标的资产")] public int UnderlyingId { get; set; } /// /// 标的资产码 /// [DisplayName("标的资产码"), Required] public string UnderlyingCode { get; set; } /// /// 派息金额 /// [DisplayName("派息金额")] public decimal GiveCashAmount { get; set; } /// /// 送股手数 /// [DisplayName("送股股数")] public decimal GiveShareAmount { get; set; } /// /// 配股手数 /// [DisplayName("配股股数")] public decimal RationedSharesAmount { get; set; } /// /// 配股手数 /// [DisplayName("配股价")] public decimal RationedSharesPrice { get; set; } /// /// 是否有效 /// public bool ValidStatus { get; set; } /// /// Ownership of the record. Manual records always take precedence over imports. /// [DisplayName("数据来源"), Required, MaxLength(32)] public string DataSource { get; set; } = ExDividendDataSources.Manual; /// /// Last update timestamp supplied by the market-data provider. /// [DisplayName("来源更新时间")] public DateTime? SourceUpdatedAt { get; set; } } public class ex_dividend_infoReq : BaseSearchReq { /// /// /// public int id { get; set; } [DisplayName("标的资产")] public int? UnderlyingId { get; set; } /// /// 标的资产码 /// public string UnderlyingCode { get; set; } /// /// 股权登记日 /// public DateTime? ExDividendDate { get; set; } } }