+118
-176
@@ -1,191 +1,133 @@
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using System.Linq;
|
||||
|
||||
namespace IRaCIS.Core.Domain.Models
|
||||
namespace IRaCIS.Core.Domain.Models;
|
||||
[Comment("系统表格问题")]
|
||||
[Table("ReadingTableQuestionSystem")]
|
||||
public class ReadingTableQuestionSystem : BaseAddAuditEntity
|
||||
{
|
||||
///<summary>
|
||||
///系统表格问题
|
||||
///</summary>
|
||||
[Table("ReadingTableQuestionSystem")]
|
||||
public class ReadingTableQuestionSystem : BaseAddAuditEntity
|
||||
#region 导航属性
|
||||
[ForeignKey("DependParentId")]
|
||||
[JsonIgnore]
|
||||
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public List<string> ParentTriggerValueList
|
||||
{
|
||||
#region 导航属性
|
||||
[ForeignKey("DependParentId")]
|
||||
[JsonIgnore]
|
||||
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public List<string> ParentTriggerValueList
|
||||
get
|
||||
{
|
||||
get
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.ParentTriggerValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
return this.ParentTriggerValue.Split(',').ToList();
|
||||
}
|
||||
|
||||
}
|
||||
[NotMapped]
|
||||
public List<string> RelevanceValueList
|
||||
{
|
||||
get
|
||||
catch (Exception)
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.RelevanceValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
return new List<string>();
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 系统表的问题Id ReadingQuestionSystem的Id
|
||||
/// </summary>
|
||||
public Guid ReadingQuestionId { get; set; }
|
||||
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///父问题触发值
|
||||
/// </summary>
|
||||
public string ParentTriggerValue { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 问题名称
|
||||
/// </summary>
|
||||
public string QuestionName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// IsRequired
|
||||
/// </summary>
|
||||
public IsRequired IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 值
|
||||
/// </summary>
|
||||
public string TypeValue { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用
|
||||
/// </summary>
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
public string Remark { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 显示父问题
|
||||
/// </summary>
|
||||
public Guid? RelevanceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显示父问题的值
|
||||
/// </summary>
|
||||
public string RelevanceValue { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示
|
||||
/// </summary>
|
||||
public int ShowQuestion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大问题数
|
||||
/// </summary>
|
||||
public int? MaxRowCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据表名称
|
||||
/// </summary>
|
||||
public string DataTableName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 数据列
|
||||
/// </summary>
|
||||
public string DataTableColumn { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 关联父问题
|
||||
/// </summary>
|
||||
public Guid? DependParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否关联
|
||||
/// </summary>
|
||||
public IsDepend IsDepend { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表格问题类型
|
||||
/// </summary>
|
||||
public TableQuestionType? TableQuestionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统标准Id
|
||||
/// </summary>
|
||||
public Guid SystemCriterionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 问题标识
|
||||
/// </summary>
|
||||
public QuestionMark? QuestionMark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典code
|
||||
/// </summary>
|
||||
public string DictionaryCode { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 数值类型
|
||||
/// </summary>
|
||||
public ValueOfType? ValueType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
public ValueUnit? Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 问题英文名称
|
||||
/// </summary>
|
||||
public string QuestionEnName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 数据来源
|
||||
/// </summary>
|
||||
public DataSources DataSource { get; set; } = DataSources.ManualEntry;
|
||||
|
||||
/// <summary>
|
||||
/// 限制编辑
|
||||
/// </summary>
|
||||
public LimitEdit LimitEdit { get; set; } = LimitEdit.None;
|
||||
|
||||
/// <summary>
|
||||
/// 最大答案长度
|
||||
/// </summary>
|
||||
public int? MaxAnswerLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件类型
|
||||
/// </summary>
|
||||
public string? FileType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 问题分类
|
||||
/// </summary>
|
||||
public QuestionClassify? QuestionClassify { get; set; }
|
||||
}
|
||||
[NotMapped]
|
||||
public List<string> RelevanceValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.RelevanceValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
[Comment("系统表的问题Id ReadingQuestionSystem的Id")]
|
||||
public Guid ReadingQuestionId { get; set; }
|
||||
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
[Comment("父问题触发值")]
|
||||
public string ParentTriggerValue { get; set; } = string.Empty;
|
||||
|
||||
[Comment("问题名称")]
|
||||
public string QuestionName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public IsRequired IsRequired { get; set; }
|
||||
|
||||
[Comment("排序号")]
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
[Comment("值")]
|
||||
public string TypeValue { get; set; } = string.Empty;
|
||||
|
||||
[Comment("是否启用")]
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
public string Remark { get; set; } = string.Empty;
|
||||
|
||||
[Comment("显示父问题")]
|
||||
public Guid? RelevanceId { get; set; }
|
||||
|
||||
[Comment("显示父问题的值")]
|
||||
public string RelevanceValue { get; set; } = string.Empty;
|
||||
|
||||
[Comment("是否显示")]
|
||||
public int ShowQuestion { get; set; }
|
||||
|
||||
[Comment("最大问题数")]
|
||||
public int? MaxRowCount { get; set; }
|
||||
|
||||
[Comment("数据表名称")]
|
||||
public string DataTableName { get; set; } = string.Empty;
|
||||
|
||||
[Comment("数据列")]
|
||||
public string DataTableColumn { get; set; } = string.Empty;
|
||||
[Comment("关联父问题")]
|
||||
public Guid? DependParentId { get; set; }
|
||||
|
||||
[Comment("是否关联")]
|
||||
public IsDepend IsDepend { get; set; }
|
||||
|
||||
[Comment("表格问题类型")]
|
||||
public TableQuestionType? TableQuestionType { get; set; }
|
||||
|
||||
[Comment("系统标准Id")]
|
||||
public Guid SystemCriterionId { get; set; }
|
||||
|
||||
[Comment("问题标识")]
|
||||
public QuestionMark? QuestionMark { get; set; }
|
||||
|
||||
[Comment("字典code")]
|
||||
public string DictionaryCode { get; set; } = string.Empty;
|
||||
[Comment("数值类型")]
|
||||
public ValueOfType? ValueType { get; set; }
|
||||
|
||||
[Comment("单位")]
|
||||
public ValueUnit? Unit { get; set; }
|
||||
|
||||
[Comment("问题英文名称")]
|
||||
public string QuestionEnName { get; set; } = string.Empty;
|
||||
|
||||
[Comment("数据来源")]
|
||||
public DataSources DataSource { get; set; } = DataSources.ManualEntry;
|
||||
|
||||
[Comment("限制编辑")]
|
||||
public LimitEdit LimitEdit { get; set; } = LimitEdit.None;
|
||||
|
||||
[Comment("最大答案长度")]
|
||||
public int? MaxAnswerLength { get; set; }
|
||||
|
||||
[Comment("文件类型")]
|
||||
public string? FileType { get; set; } = string.Empty;
|
||||
|
||||
[Comment("问题分类")]
|
||||
public QuestionClassify? QuestionClassify { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user