Uat_Study
he 2022-11-08 11:54:29 +08:00
parent fbc2c6bd28
commit 9903b2413b
2 changed files with 26 additions and 4 deletions

View File

@ -198,7 +198,27 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public bool IsMustGlobalReading { get; set; }
public List<Guid> DictionaryIds { get; set; }
public List<SystemGlobalInfo> DictionaryInfoList { get; set; }
}
public class SystemGlobalInfo
{
/// <summary>
/// DictionaryId
/// </summary>
public Guid DictionaryId { get; set; }
/// <summary>
/// IsBaseLineUse
/// </summary>
public bool IsBaseLineUse { get; set; } = false;
/// <summary>
/// IsBaseUse
/// </summary>
public bool IsFollowVisitUse { get; set; } = false;
}
public class SetSystemOncologyInfoInDto

View File

@ -82,12 +82,14 @@ namespace IRaCIS.Core.Application.Service.RC
await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(x => x.CriterionId == inDto.SystemCriterionId && x.ParentCode == ReadingCommon.CriterionDictionary.GlobalAssess);
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.DictionaryIds.Select(x => new ReadingCriterionDictionary
await _readingCriterionDictionaryRepository.AddRangeAsync(inDto.DictionaryInfoList.Select(x => new ReadingCriterionDictionary
{
CriterionId = inDto.SystemCriterionId,
DictionaryId = x,
DictionaryId = x.DictionaryId,
IsSystemCriterion = true,
ParentCode = ReadingCommon.CriterionDictionary.GlobalAssess
ParentCode = ReadingCommon.CriterionDictionary.GlobalAssess,
IsBaseLineUse=x.IsBaseLineUse,
IsFollowVisitUse=x.IsFollowVisitUse,
}));
await _readingQuestionCriterionSystemRepository.UpdatePartialFromQueryAsync(inDto.SystemCriterionId, x => new ReadingQuestionCriterionSystem()