
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-08-11 14:15:27 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	 ///<summary>
	 ///系统表格问题
	 ///</summary>
	 [Table("ReadingTableQuestionSystem")]	
	 public class ReadingTableQuestionSystem : Entity, IAuditAdd
	 {

		/// <summary>
		/// 系统表的问题Id    ReadingQuestionSystem的Id
		/// </summary>
		public Guid ReadingQuestionId { get; set; }
	
		/// <summary>
        /// Type
        /// </summary>
		public string Type { get; set; }
	
		/// <summary>
        /// ParentId
        /// </summary>
		public Guid? ParentId { get; set; }
	
		/// <summary>
        ///父问题触发值
        /// </summary>
		public string ParentTriggerValue { get; set; }
	
		/// <summary>
        /// 问题名称
        /// </summary>
		public string QuestionName { get; set; }
	
		/// <summary>
        /// IsRequired
        /// </summary>
		public IsRequired IsRequired { get; set; }
	
		/// <summary>
        /// 排序号
        /// </summary>
		public int ShowOrder { get; set; }
	
		/// <summary>
        /// 值
        /// </summary>
		public string TypeValue { get; set; }
	
		/// <summary>
        /// 是否启用
        /// </summary>
		public bool IsEnable { get; set; }
	
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
	
		/// <summary>
        /// 创建用户
        /// </summary>
		public Guid CreateUserId { get; set; }
	
		/// <summary>
        /// 备注
        /// </summary>
		public string Remark { get; set; }
	
		/// <summary>
        /// 显示父问题
        /// </summary>
		public Guid? RelevanceId { get; set; }
	
		/// <summary>
        /// 显示父问题的值
        /// </summary>
		public string RelevanceValue { get; set; }
	
		/// <summary>
        /// 是否显示
        /// </summary>
		public int ShowQuestion { get; set; }
	
		/// <summary>
        /// 最大问题数
        /// </summary>
		public int? MaxRowCount { get; set; }
	
		/// <summary>
        /// 数据表名称
        /// </summary>
		public string DataTableName { get; set; }
	
		/// <summary>
        /// 数据列
        /// </summary>
		public string DataTableColumn { get; set; }


		/// <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; }


		/// <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; }

        /// <summary>
        /// 问题分类
        /// </summary>
        public QuestionClassify? QuestionClassify { get; set; }

        [ForeignKey("DependParentId")]
		[JsonIgnore]
		public ReadingTableQuestionSystem DependParentQuestion { get; set; }


	}

	 
}	 
