Uat_Study
parent
39c1919884
commit
0930b9116b
|
@ -2063,7 +2063,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
var isConvertedTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x=>x.IsConvertedTask).FirstNotNullAsync();
|
var isConvertedTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x=>x.IsConvertedTask).FirstNotNullAsync();
|
||||||
|
|
||||||
if (await _readingTableAnswerRowInfoRepository.AnyAsync(x => x.ReadingQuestionTrial.LesionType == LesionType.NewLesions && x.VisitTaskId == inDto.VisitTaskId))
|
if (isConvertedTask&&(await _readingTableAnswerRowInfoRepository.AnyAsync(x => x.ReadingQuestionTrial.LesionType == LesionType.NewLesions && x.VisitTaskId == inDto.VisitTaskId)))
|
||||||
{
|
{
|
||||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_NotNewFocus"]);
|
throw new BusinessValidationFailedException(_localizer["ReadingImage_NotNewFocus"]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue