//-------------------------------------------------------------------- // 此代码由T4模板自动生成 byzhouhang 20210918 // 生成时间 2022-06-29 13:54:08 // 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。 using System; using IRaCIS.Core.Domain.Share; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Collections.Generic; using System.Linq; namespace IRaCIS.Core.Domain.Models { /// /// 阅片医学审核系统问题 /// [Table("ReadingMedicineSystemQuestion")] public class ReadingMedicineSystemQuestion : Entity, IAuditUpdate, IAuditAdd { /// /// 类型 /// public string Type { get; set; } /// /// 父问题触发 /// public string ParentTriggerValue { get; set; } = string.Empty; /// /// 问题名称 /// public string QuestionName { get; set; } /// /// 是否是必须 /// public bool IsRequired { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 排序 /// public int ShowOrder { get; set; } /// /// 父问题ID /// public Guid? ParentId { get; set; } /// /// 更新时间 /// public DateTime UpdateTime { get; set; } /// /// 类型值 /// public string TypeValue { get; set; } /// /// 修改人 /// public Guid UpdateUserId { get; set; } /// /// 创建人 /// public Guid CreateUserId { get; set; } /// /// 是否启用 /// public bool IsEnable { get; set; } /// /// 任务类型 /// public ReadingCategory ReadingCategory { get; set; } [JsonIgnore] [ForeignKey("ParentId")] public ReadingMedicineSystemQuestion ParentQuestion { get; set; } public CriterionType? CriterionTypeEnum { get; set; } public bool IsGeneral { get; set; } //// |1|2| 这种保存 // public string CriterionEnumStr { get; set; } = string.Empty; // [NotMapped] // public List CriterionEnumList => CriterionEnumStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=> Convert.ToInt32(t.Trim()) ).ToList(); } }