@@ -663,30 +663,33 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
// 交集
|
||||||
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
||||||
|
// 差集
|
||||||
measureDataList = measureDataList.Except(allExists).ToList();
|
measureDataList = measureDataList.Except(allExists).ToList();
|
||||||
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
||||||
|
|
||||||
|
|
||||||
if (measureDataList.Count() > 0)
|
if (measureDataList.Count() > 0)
|
||||||
{
|
{
|
||||||
|
// 无标记
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stateIsNullList.Count > 0)
|
||||||
if (tableAnswerList.Count > 0)
|
|
||||||
{
|
{
|
||||||
|
// 状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allExists.Count > 0)
|
if (allExists.Count > 0)
|
||||||
{
|
{
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ",";
|
// 未做标记且状态为空
|
||||||
|
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (errorMassage != string.Empty)
|
if (errorMassage != string.Empty)
|
||||||
{
|
{
|
||||||
|
errorMassage = _localizer["ReadingCalculate_Questionable"] + errorMassage;
|
||||||
throw new BusinessValidationFailedException(errorMassage);
|
throw new BusinessValidationFailedException(errorMassage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -479,8 +479,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
|
|
||||||
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
|
// 交集
|
||||||
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
||||||
// 取差
|
// 差集
|
||||||
measureDataList = measureDataList.Except(allExists).ToList();
|
measureDataList = measureDataList.Except(allExists).ToList();
|
||||||
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
||||||
if (measureDataList.Count() > 0)
|
if (measureDataList.Count() > 0)
|
||||||
@@ -489,7 +490,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tableAnswerList.Count > 0)
|
if (stateIsNullList.Count > 0)
|
||||||
{
|
{
|
||||||
// 状态为空
|
// 状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
||||||
@@ -498,7 +499,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
if (allExists.Count > 0)
|
if (allExists.Count > 0)
|
||||||
{
|
{
|
||||||
// 未做标记且状态为空
|
// 未做标记且状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -481,8 +481,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
|
|
||||||
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> measureDataList = rowAnswerList.Where(x => !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
|
|
||||||
|
// 交集
|
||||||
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
||||||
// 取差
|
// 差集
|
||||||
measureDataList = measureDataList.Except(allExists).ToList();
|
measureDataList = measureDataList.Except(allExists).ToList();
|
||||||
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
||||||
if (measureDataList.Count() > 0)
|
if (measureDataList.Count() > 0)
|
||||||
@@ -491,7 +493,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tableAnswerList.Count > 0)
|
if (stateIsNullList.Count > 0)
|
||||||
{
|
{
|
||||||
// 状态为空
|
// 状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
||||||
@@ -500,7 +502,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
if (allExists.Count > 0)
|
if (allExists.Count > 0)
|
||||||
{
|
{
|
||||||
// 未做标记且状态为空
|
// 未做标记且状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+7
-5
@@ -482,25 +482,27 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||||||
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
List<string> stateIsNullList = tableAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
// 交集
|
||||||
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
List<string> allExists = measureDataList.Intersect(stateIsNullList).ToList();
|
||||||
|
// 差集
|
||||||
measureDataList = measureDataList.Except(allExists).ToList();
|
measureDataList = measureDataList.Except(allExists).ToList();
|
||||||
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
stateIsNullList = stateIsNullList.Except(allExists).ToList();
|
||||||
|
|
||||||
|
|
||||||
if (measureDataList.Count() > 0)
|
if (measureDataList.Count() > 0)
|
||||||
{
|
{
|
||||||
|
// 无标记
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_NoMarker", string.Join(',', measureDataList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stateIsNullList.Count > 0)
|
||||||
if (tableAnswerList.Count > 0)
|
|
||||||
{
|
{
|
||||||
|
// 状态为空
|
||||||
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
errorMassage += _localizer["ReadingCalculate_StatusIsEmpty", string.Join(',', stateIsNullList)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allExists.Count > 0)
|
if (allExists.Count > 0)
|
||||||
{
|
{
|
||||||
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ",";
|
// 未做标记且状态为空
|
||||||
|
errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', allExists)] + ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user