
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2022-06-29 14:04:36 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	///<summary>
	///阅片医学审核项目问题
	///</summary>
	[Table("ReadingMedicineTrialQuestion")]	
	 public class ReadingMedicineTrialQuestion : Entity, IAuditUpdate, IAuditAdd
	 {	

		/// <summary>
        /// 创建时间
        /// </summary>	
		public DateTime CreateTime { get; set; }
	
		/// <summary>
        /// 类型
        /// </summary>	
		public string Type { get; set; }
	
		/// <summary>
        /// 父问题触发值
        /// </summary>
		public string ParentTriggerValue { get; set; } = string.Empty;

		/// <summary>
		/// 问题名称
		/// </summary>
		public string QuestionName { get; set; }

		/// <summary>
		/// 语言类型
		/// </summary>
		public LanguageType LanguageType { get; set; } = LanguageType.Chinese;

		/// <summary>
		/// 修改人
		/// </summary>
		public Guid UpdateUserId { get; set; }

		/// <summary>
		/// 类型值
		/// </summary>
		public string TypeValue { get; set; }
	
		/// <summary>
        /// 创建人
        /// </summary>
		public Guid CreateUserId { get; set; }
	
		/// <summary>
        /// 项目ID
        /// </summary>
		public Guid TrialId { get; set; }
	
		/// <summary>
        /// 修改时间
        /// </summary>
		public DateTime UpdateTime { get; set; }
	
		/// <summary>
        /// 是否启用
        /// </summary>
		public bool IsEnable { get; set; }
	
		/// <summary>
        /// 是否必须
        /// </summary>
		public bool IsRequired { get; set; }
	
		/// <summary>
        /// 排序
        /// </summary>
		public int ShowOrder { get; set; }
	
		/// <summary>
        /// 父问题
        /// </summary>
		public Guid? ParentId { get; set; }
	
		/// <summary>
        /// 是否确认
        /// </summary>
		public bool IsConfirm { get; set; }

		/// <summary>
		/// 任务类型
		/// </summary>
		public ReadingCategory ReadingCategory { get; set; }

		/// <summary>
		/// 项目标准
		/// </summary>
		public Guid TrialReadingCriterionId { get; set; }

		[JsonIgnore]
		[ForeignKey("ParentId")]
		public ReadingMedicineTrialQuestion ParentQuestion { get; set; }

	}

	 
}	 
