@@ -16,22 +16,59 @@ namespace IRaCIS.Core.Domain.Models
|
||||
///系统表格问题
|
||||
///</summary>
|
||||
[Table("ReadingTableQuestionSystem")]
|
||||
public class ReadingTableQuestionSystem : BaseAuditAddEntity
|
||||
{
|
||||
public class ReadingTableQuestionSystem : BaseAddAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
[ForeignKey("DependParentId")]
|
||||
[JsonIgnore]
|
||||
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统表的问题Id ReadingQuestionSystem的Id
|
||||
/// </summary>
|
||||
public Guid ReadingQuestionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Type
|
||||
[NotMapped]
|
||||
public List<string> ParentTriggerValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.ParentTriggerValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public List<string> RelevanceValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.RelevanceValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 系统表的问题Id ReadingQuestionSystem的Id
|
||||
/// </summary>
|
||||
public Guid ReadingQuestionId { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ParentId
|
||||
/// </summary>
|
||||
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -64,10 +101,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||
/// </summary>
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -172,46 +205,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||
/// </summary>
|
||||
public QuestionClassify? QuestionClassify { get; set; }
|
||||
|
||||
[ForeignKey("DependParentId")]
|
||||
[JsonIgnore]
|
||||
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public List<string> ParentTriggerValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.ParentTriggerValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public List<string> RelevanceValueList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return this.RelevanceValue.Split(',').ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user