OCT 添加1
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
1427940224
commit
eb8628da5b
|
|
@ -1,4 +1,5 @@
|
||||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
using DocumentFormat.OpenXml.Drawing.Diagrams;
|
||||||
|
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
using IRaCIS.Core.Application.ViewModel;
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infra.EFCore.Common;
|
using IRaCIS.Core.Infra.EFCore.Common;
|
||||||
|
|
@ -340,6 +341,36 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]);
|
throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dictionary<string, string> isPresent = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
{ "有","1"},
|
||||||
|
{ "无","0"},
|
||||||
|
{ "Existence","1"},
|
||||||
|
{ "Non-existence","0"},
|
||||||
|
{ "",""},
|
||||||
|
};
|
||||||
|
|
||||||
|
foreach (var item in measuredValueList)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (isPresent[item.MacrophageInfiltrationMeasurement] == "1"&& item.MacrophageInfiltrationAngle==string.Empty)
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isPresent[item.MacrophageInfiltrationMeasurement] == "0" && item.MacrophageInfiltrationAngle != string.Empty)
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var questionInfo = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == taskinfo.TrialReadingCriterionId && x.LesionType == LesionType.FCT).FirstNotNullAsync();
|
var questionInfo = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == taskinfo.TrialReadingCriterionId && x.LesionType == LesionType.FCT).FirstNotNullAsync();
|
||||||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == questionInfo.Id).ToListAsync();
|
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == questionInfo.Id).ToListAsync();
|
||||||
List<ReadingTableAnswerRowInfo> tableAnsweRowInfos = new List<ReadingTableAnswerRowInfo>();
|
List<ReadingTableAnswerRowInfo> tableAnsweRowInfos = new List<ReadingTableAnswerRowInfo>();
|
||||||
|
|
@ -347,13 +378,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
|
|
||||||
var maxnum = 0;
|
var maxnum = 0;
|
||||||
|
|
||||||
Dictionary<string, string> isPresent = new Dictionary<string, string>()
|
|
||||||
{
|
|
||||||
{ "有","1"},
|
|
||||||
{ "无","0"},
|
|
||||||
{ "Existence","1"},
|
|
||||||
{ "Non-existence","0"},
|
|
||||||
};
|
|
||||||
|
|
||||||
foreach (var item in measuredValueList)
|
foreach (var item in measuredValueList)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue