diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs index d7245ced..ac950134 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs @@ -124,7 +124,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } public Guid? Id { get; set; } @@ -185,7 +185,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } public Guid? Id { get; set; } public Guid ReadingQuestionId { get; set; } public string Type { get; set; } = string.Empty; @@ -628,7 +628,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } } public class ReadingQuestionSystemView @@ -641,7 +641,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } /// /// Id @@ -969,7 +969,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } /// /// 分组 @@ -1242,7 +1242,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } } public class GetSystemCriterionSelectDto diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs index 296bf5ab..e5cb8553 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs @@ -328,7 +328,7 @@ namespace IRaCIS.Core.Application }); - var result = await _trialRepository.SaveChangesAsync(); + var result = await _readingQuestionCriterionTrialRepository.SaveChangesAsync(); return ResponseOutput.Ok(result); diff --git a/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs b/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs index 619d32d9..ccf19832 100644 --- a/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs +++ b/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs @@ -16,6 +16,26 @@ namespace IRaCIS.Core.Domain.Share public static readonly string Group = "group"; } + + /// + /// 数值单位 + /// + public enum ValueUnit + { + None=0, + + /// + /// MM + /// + MM = 1, + + /// + /// CM + /// + CM = 2 + } + + /// /// 数值类型 /// diff --git a/IRaCIS.Core.Domain/Reading/ReadingQuestionSystem.cs b/IRaCIS.Core.Domain/Reading/ReadingQuestionSystem.cs index 97a92d05..d2b32e44 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingQuestionSystem.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingQuestionSystem.cs @@ -148,7 +148,7 @@ namespace IRaCIS.Core.Domain.Models /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } [JsonIgnore] [ForeignKey("ReadingQuestionCriterionSystemId")] diff --git a/IRaCIS.Core.Domain/Reading/ReadingQuestionTrial.cs b/IRaCIS.Core.Domain/Reading/ReadingQuestionTrial.cs index aa0b7e8c..d05b2fb4 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingQuestionTrial.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingQuestionTrial.cs @@ -181,7 +181,7 @@ namespace IRaCIS.Core.Domain.Models /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } /// /// 分页标准 diff --git a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs index 8ed050fa..95622c4b 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionSystem.cs @@ -146,7 +146,7 @@ namespace IRaCIS.Core.Domain.Models /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } [ForeignKey("DependParentId")] public ReadingTableQuestionSystem DependParentQuestion { get; set; } diff --git a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionTrial.cs b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionTrial.cs index 50f329c5..2503fe69 100644 --- a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionTrial.cs +++ b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionTrial.cs @@ -150,7 +150,7 @@ namespace IRaCIS.Core.Domain.Models /// /// 单位 /// - public string Unit { get; set; } = string.Empty; + public ValueUnit? Unit { get; set; } [JsonIgnore] [ForeignKey("DependParentId")]