Test.EIImageViewer
parent
df1c894d0f
commit
e8eee81af0
|
@ -660,6 +660,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public List<GlobalQuestionInfo> BeforeQuestionList { get; set; }
|
public List<GlobalQuestionInfo> BeforeQuestionList { get; set; }
|
||||||
|
|
||||||
|
public List<GlobalQuestionInfo> AgreeOrNot { get; set; }
|
||||||
|
|
||||||
public List<GlobalQuestionInfo> AfterQuestionList { get; set; }
|
public List<GlobalQuestionInfo> AfterQuestionList { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1158,11 +1158,25 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
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,
|
||||||
|
QuestionName = "是否同意访视结果",
|
||||||
|
Type = "input",
|
||||||
|
GlobalAnswerType=GlobalAnswerType.AgreeOrNot,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
List<GetGlobalQuestionType> questionTypes = new List<GetGlobalQuestionType>()
|
List<GetGlobalQuestionType> questionTypes = new List<GetGlobalQuestionType>()
|
||||||
{
|
{
|
||||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.Reason,QuestionName="原因" },
|
|
||||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.AgreeOrNot,QuestionName="是否同意访视结果" },
|
|
||||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.UpdateType,QuestionName="评估更新类型" },
|
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.UpdateType,QuestionName="评估更新类型" },
|
||||||
|
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.Reason,QuestionName="原因" },
|
||||||
|
//new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.AgreeOrNot,QuestionName="是否同意访视结果" },
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -2129,6 +2143,8 @@ namespace IRaCIS.Application.Services
|
||||||
throw new BusinessValidationFailedException($"相同问题传入两次!");
|
throw new BusinessValidationFailedException($"相同问题传入两次!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (inDto.RowIndex % 1 == 0)
|
||||||
|
{
|
||||||
var questionInfo = await _readingQuestionTrialRepository.Where(x => x.Id == inDto.QuestionId).FirstNotNullAsync();
|
var questionInfo = await _readingQuestionTrialRepository.Where(x => x.Id == inDto.QuestionId).FirstNotNullAsync();
|
||||||
if (questionInfo.MaxQuestionCount != null)
|
if (questionInfo.MaxQuestionCount != null)
|
||||||
{
|
{
|
||||||
|
@ -2156,7 +2172,7 @@ namespace IRaCIS.Application.Services
|
||||||
throw new BusinessValidationFailedException($"问题{item.QuestionName}最大相同问题数为{item.MaxRowCount.Value},当前已存在{rowCount}条!");
|
throw new BusinessValidationFailedException($"问题{item.QuestionName}最大相同问题数为{item.MaxRowCount.Value},当前已存在{rowCount}条!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
var isCurrentTaskAddList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.TrialId == inDto.TrialId && x.RowIndex == inDto.RowIndex).Select(x => x.IsCurrentTaskAdd).ToListAsync();
|
var isCurrentTaskAddList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.TrialId == inDto.TrialId && x.RowIndex == inDto.RowIndex).Select(x => x.IsCurrentTaskAdd).ToListAsync();
|
||||||
bool isCurrentTaskAdd = true;
|
bool isCurrentTaskAdd = true;
|
||||||
if (isCurrentTaskAddList.Count() > 0)
|
if (isCurrentTaskAddList.Count() > 0)
|
||||||
|
|
Loading…
Reference in New Issue