GlobalUsings 清理实体层
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-20 09:20:04 +08:00
parent 0a1ce59670
commit 32931e155c
187 changed files with 7126 additions and 7323 deletions
@@ -3,95 +3,120 @@
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2023-06-19 11:32:48
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("系统临床表格问题 (需要同步)")]
[Table("SystemClinicalTableQuestion")]
public class SystemClinicalTableQuestion : BaseAddAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[NotMapped]
public List<string> RelevanceValueList
///<summary>
/// 系统临床表格问题
///</summary>
[Table("SystemClinicalTableQuestion")]
public class SystemClinicalTableQuestion : BaseAddAuditEntity
{
get
#region
[NotMapped]
public List<string> RelevanceValueList
{
try
{
return this.RelevanceValue.Split(',').ToList();
}
catch (Exception)
get
{
try
{
return this.RelevanceValue.Split(',').ToList();
}
catch (Exception)
{
return new List<string>();
return new List<string>();
}
}
}
#endregion
/// <summary>
/// 系统临床数据Id
/// </summary>
public Guid SystemClinicalId { get; set; }
/// <summary>
/// 问题名称
/// </summary>
public string QuestionName { get; set; } = string.Empty;
/// <summary>
/// 问题英文名称
/// </summary>
public string QuestionEnName { get; set; } = string.Empty;
/// <summary>
/// 临床问题类型(分组,单选。)
/// </summary>
public string ClinicalTableQuestionType { get; set; } = string.Empty;
/// <summary>
/// 问题标识
/// </summary>
public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; }
/// <summary>
/// 最大长度
/// </summary>
public int? MaxAnswerLength { get; set; }
/// <summary>
/// 临床数据选项类型(无,自定义)
/// </summary>
public ClinicalOptionType ClinicalOptionTypeEnum { get; set; }
/// <summary>
/// 自定义选项
/// </summary>
public string TypeValue { get; set; } = string.Empty;
/// <summary>
/// 字典Code
/// </summary>
public string DictionaryCode { get; set; } = string.Empty;
/// <summary>
/// 排序
/// </summary>
public int ShowOrder { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public IsRequired IsRequired { get; set; }
/// <summary>
/// 外层问题Id
/// </summary>
public Guid QuestionId { get; set; }
/// <summary>
/// 小数点位数
/// </summary>
public int? DigitPlaces { get; set; }
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
/// <summary>
/// 关联ID
/// </summary>
public Guid? RelevanceId { get; set; }
/// <summary>
/// 关联Value
/// </summary>
public string RelevanceValue { get; set; } = string.Empty;
}
#endregion
[Comment(" 系统临床数据Id")]
public Guid SystemClinicalId { get; set; }
[Comment(" 临床数据选项类型(无,自定义)")]
public int ClinicalOptionTypeEnum { get; set; }
[Comment(" 问题标识")]
public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; }
[Comment(" 临床问题类型(分组,单选。)")]
public string ClinicalTableQuestionType { get; set; } = null!;
[Comment(" 字典Code")]
[StringLength(400)]
public string DictionaryCode { get; set; } = null!;
public int? DigitPlaces { get; set; }
[Comment(" 是否必填")]
public int IsRequired { get; set; }
[Comment(" 最大长度")]
public int? MaxAnswerLength { get; set; }
[Comment(" 问题英文名称")]
[StringLength(400)]
public string QuestionEnName { get; set; } = null!;
[Comment(" 外层问题Id")]
public Guid QuestionId { get; set; }
[Comment(" 问题名称")]
[StringLength(400)]
public string QuestionName { get; set; } = null!;
[Comment(" 关联ID")]
public Guid? RelevanceId { get; set; }
[Comment(" 关联Value")]
[StringLength(1000)]
public string RelevanceValue { get; set; } = null!;
[Comment(" 排序")]
public int ShowOrder { get; set; }
[Comment(" 自定义选项")]
[StringLength(1000)]
public string TypeValue { get; set; } = null!;
public string Unit { get; set; } = null!;
}