Merge branch 'master' of http://192.168.1.2:8033/IRaCIS_Core_Api
commit
797eff73fa
|
@ -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,
|
||||
|
|
|
@ -917,6 +917,7 @@ namespace IRaCIS.Application.Services
|
|||
Unit = x.Unit,
|
||||
}).ToList();
|
||||
});
|
||||
|
||||
var thisAnswer = tableAnswers.Where(x => x.QuestionId == item.Id).ToList();
|
||||
var orders = thisAnswer.Select(x => x.RowIndex).Distinct().OrderBy(x => x).ToList();
|
||||
item.TableQuestions.Answers = new List<Dictionary<string, string>>();
|
||||
|
@ -1390,11 +1391,11 @@ namespace IRaCIS.Application.Services
|
|||
if (inDto.RowIndex % 1 == 0)
|
||||
{
|
||||
|
||||
if (questionInfo.MaxQuestionCount != null && questionInfo.MaxQuestionCount != 0)
|
||||
if (questionInfo.MaxQuestionCount != null && questionInfo.MaxQuestionCount != 0&& inDto.RowId==null)
|
||||
{
|
||||
if (questionInfo.MaxQuestionCount <
|
||||
(
|
||||
(await _readingTableAnswerRowInfoRepository.Where(x => x.RowIndex != inDto.RowIndex && ((x.RowIndex % 1) == 0) && x.VisitTaskId == inDto.VisitTaskId
|
||||
(await _readingTableAnswerRowInfoRepository.Where(x => ((x.RowIndex % 1) == 0) && x.VisitTaskId == inDto.VisitTaskId
|
||||
&& x.QuestionId == inDto.QuestionId
|
||||
).CountAsync()) + 1))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue