修改一版
This commit is contained in:
+8
-1
@@ -333,11 +333,18 @@ namespace IRaCIS.Application.Services
|
||||
};
|
||||
if (criterionType != CriterionType.PCWG3)
|
||||
{
|
||||
var agreeOrNotAnswer = globalReadingQuestion.Where(y => y.TaskId == x.VisitTaskId && y.GlobalAnswerType == GlobalAnswerType.AgreeOrNot).Select(x => x.Answer).FirstOrDefault() ?? string.Empty;
|
||||
|
||||
if (agreeOrNotAnswer.IsNullOrEmpty()&& lastGlobalTask.RelatedVisitTaskIdList.Contains(x.VisitTaskId))
|
||||
{
|
||||
agreeOrNotAnswer = "1";
|
||||
}
|
||||
|
||||
x.AgreeOrNot = new List<GlobalQuestionInfo>()
|
||||
{
|
||||
new GlobalQuestionInfo()
|
||||
{
|
||||
Answer = globalReadingQuestion.Where(y => y.TaskId == x.VisitTaskId && y.GlobalAnswerType == GlobalAnswerType.AgreeOrNot).Select(x => x.Answer).FirstOrDefault() ?? string.Empty,
|
||||
Answer = agreeOrNotAnswer,
|
||||
QuestionName = "",
|
||||
Type = "input",
|
||||
GlobalAnswerType=GlobalAnswerType.AgreeOrNot,
|
||||
|
||||
Reference in New Issue
Block a user