co表 导出质量评估,备注是空那么就忽略
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-11-12 14:29:14 +08:00
parent ff4ab39025
commit 4aa0161c41
1 changed files with 23 additions and 10 deletions

View File

@ -720,34 +720,47 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
questionAnswer.QuestionType == QuestionType.ImageQualityProblem || questionAnswer.QuestionType == QuestionType.ImageQualityProblem ||
questionAnswer.QuestionType == QuestionType.ImageQualityProblemComment) questionAnswer.QuestionType == QuestionType.ImageQualityProblemComment)
{ {
var co = CreatNewCOExport(task, coList.Count + 1);
var remarkQuote = string.Empty;
var remark = string.Empty;
switch (questionAnswer.QuestionType) switch (questionAnswer.QuestionType)
{ {
case QuestionType.ImageQualityAssessment: case QuestionType.ImageQualityAssessment:
co.RemarksQuote = $"{co.ArmEnumStr}_QUALITY"; remarkQuote = $"{task.ArmEnumStr}_QUALITY";
break; break;
case QuestionType.ImageQualityProblem: case QuestionType.ImageQualityProblem:
co.RemarksQuote = $"{co.ArmEnumStr}_QUALITY_ISSUE"; remarkQuote = $"{task.ArmEnumStr}_QUALITY_ISSUE";
break; break;
case QuestionType.ImageQualityProblemComment: case QuestionType.ImageQualityProblemComment:
co.RemarksQuote = $"{co.ArmEnumStr}_QUALITY_COMMETS"; remarkQuote = $"{task.ArmEnumStr}_QUALITY_COMMETS";
break; break;
} }
if (questionAnswer.TranslateDicName.IsNotNullOrEmpty()) if (questionAnswer.TranslateDicName.IsNotNullOrEmpty())
{ {
co.Remarks = translateDataList[questionAnswer.TranslateDicName].Where(t => t.Code.ToLower() == questionAnswer.QuestionValue?.ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty; remark = translateDataList[questionAnswer.TranslateDicName].Where(t => t.Code.ToLower() == questionAnswer.QuestionValue?.ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty;
} }
else else
{ {
co.Remarks = questionAnswer.QuestionValue; remark = questionAnswer.QuestionValue;
} }
co.CODTC = task.SignTime?.ToString("yyyy-MM-dd");
coList.Add(co); if (remark.IsNotNullOrEmpty())
{
var co = CreatNewCOExport(task, coList.Count + 1);
co.RemarksQuote = remarkQuote;
co.Remarks = remark;
co.CODTC = task.SignTime?.ToString("yyyy-MM-dd");
coList.Add(co);
}
} }
@ -800,7 +813,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
foreach (var rsPd in rsList.Where(t=>t.IsOverallResponsePD==true)) foreach (var rsPd in rsList.Where(t => t.IsOverallResponsePD == true))
{ {
foreach (var item in rsList.Where(t => t.VisitTaskId == rsPd.VisitTaskId)) foreach (var item in rsList.Where(t => t.VisitTaskId == rsPd.VisitTaskId))
{ {