修改一致性核查

Test.EIImageViewer
{872297557@qq.com} 2023-02-02 11:04:10 +08:00
parent 5133a38f6c
commit 84bdeffebe
1 changed files with 8 additions and 5 deletions

View File

@ -102,7 +102,7 @@ namespace IRaCIS.Core.Application.MediatR.Handlers
StringBuilder dialogMsg = new StringBuilder(); StringBuilder dialogMsg = new StringBuilder();
dialogMsg.Append("您好,根据本系统自动识别,该受试者当前访视已提交的影像检查情况如下:"); dialogMsg.Append("您好,根据本系统自动识别,该受试者当前访视在IRC系统中已提交的影像检查情况如下:");
var num = 0; var num = 0;
foreach (var item in sv.StudyList) foreach (var item in sv.StudyList)
{ {
@ -112,6 +112,8 @@ namespace IRaCIS.Core.Application.MediatR.Handlers
var dbSV = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == sv.SubjectVisitId)).IfNullThrowException(); var dbSV = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == sv.SubjectVisitId)).IfNullThrowException();
// 该访视 在ETC Excel中没有任何数据
if (etcVisitStudyList.Count == 0) if (etcVisitStudyList.Count == 0)
{ {
dialogMsg.AppendLine($"<br/>"); dialogMsg.AppendLine($"<br/>");
@ -145,7 +147,7 @@ namespace IRaCIS.Core.Application.MediatR.Handlers
// excel 存在 // excel 存在
var excelExceptDB = etcVisitStudyList.Except(dbCheckList); var excelExceptDB = etcVisitStudyList.Except(dbCheckList);
//两者没有差别 //ETC 和系统的完全一致 两者没有差别
if (dbExceptExcel.Count() == 0 && excelExceptDB.Count()==0) if (dbExceptExcel.Count() == 0 && excelExceptDB.Count()==0)
{ {
dialogMsg.AppendLine($"<br/>"); dialogMsg.AppendLine($"<br/>");
@ -165,22 +167,23 @@ namespace IRaCIS.Core.Application.MediatR.Handlers
dbSV.RequestBackState = dbSV.RequestBackState== RequestBackStateEnum.CRC_RequestBack? RequestBackStateEnum.PM_NotAgree: RequestBackStateEnum.NotRequest; dbSV.RequestBackState = dbSV.RequestBackState== RequestBackStateEnum.CRC_RequestBack? RequestBackStateEnum.PM_NotAgree: RequestBackStateEnum.NotRequest;
dbSV.CheckChallengeDialogList.Add(new CheckChallengeDialog() { SubjectVisitId = sv.SubjectVisitId, TalkContent = dialogMsg.ToString(), UserTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt, CreateTime = DateTime.Now }); dbSV.CheckChallengeDialogList.Add(new CheckChallengeDialog() { SubjectVisitId = sv.SubjectVisitId, TalkContent = dialogMsg.ToString(), UserTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt, CreateTime = DateTime.Now });
} }
// ETC 和系统的有区别
else else
{ {
dialogMsg.AppendLine($"<br/>"); dialogMsg.AppendLine($"<br/>");
dialogMsg.AppendLine($"<br><span style='color: #f00'>存在问题如下</span>"); dialogMsg.AppendLine($"<br><span style='color: #f00'>当前访视在IRChe</span>");
num = 0; num = 0;
foreach (var item in dbExceptExcel) foreach (var item in dbExceptExcel)
{ {
num++; num++;
dialogMsg.AppendLine($"<br>{num}.EDC 缺少{item.StudyDate}的{item.Modality}影像检查 "); dialogMsg.AppendLine($"<br>{num}.{item.StudyDate}的{item.Modality}影像检查(EDC 缺少) ");
} }
foreach (var item in excelExceptDB) foreach (var item in excelExceptDB)
{ {
num++; num++;
dialogMsg.AppendLine($"<br>{num}.IRC 缺少{item.StudyDate}的{item.Modality}影像检查 "); dialogMsg.AppendLine($"<br>{num}.{item.StudyDate}的{item.Modality}影像检查(IRC 缺少) ");
} }
dialogMsg.AppendLine($"<br/>"); dialogMsg.AppendLine($"<br/>");