using System.ComponentModel.DataAnnotations.Schema; namespace YLErp.DBModels { [Table("eod_status")] public class EodStatus : DBModelWithOperator { public static string LogClass = "市场信息"; /// /// ValueDate /// [DisplayName("操作时间")] public DateTime ValueDate { set; get; } /// /// 市场名 /// [DisplayName("状态")] public string Status { set; get; } /// /// 市场名 /// [DisplayName("状态")] public string StepStatus { set; get; } /// /// 波动率执行状态(Flags枚举)(收盘价) /// public VolTypeFlagEnum VolTypeFlag { get; set; } /// /// 波动率执行状态(Flags枚举)(结算价) /// public VolTypeFlagEnum VolTypeFlag_S { get; set; } [NotMapped] public bool IsHoliday { get; set; } /// /// 核对状态:(0 未核对 1 已核对) /// public bool? CheckStatus { get; set; } /// /// 核对时间 /// public DateTime? CheckDate { get; set; } /// /// 获取收盘的某一步骤的执行状态 /// public bool? CheckStepExecuteState(string step) { if (string.IsNullOrEmpty(StepStatus)) { return null; } step = $"\"{step}\""; var index = StepStatus.IndexOf(step); if (index < 0) { return null; } return StepStatus.IndexOf(":true", index + step.Length, 6) > 0; } } }