Uat_Study
parent
371cc24520
commit
4309ee627a
|
@ -1247,6 +1247,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
/// </summary>
|
||||
public JudgeTypeEnum JudgeType { get; set; }
|
||||
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型值
|
||||
/// </summary>
|
||||
|
|
|
@ -248,6 +248,7 @@ namespace IRaCIS.Application.Services
|
|||
GlobalReadingShowType=y.ReadingQuestionTrial.GlobalReadingShowType,
|
||||
AnswerCombination = y.ReadingQuestionTrial.AnswerCombination,
|
||||
JudgeType = y.ReadingQuestionTrial.JudgeType,
|
||||
ShowOrder= y.ReadingQuestionTrial.ShowOrder,
|
||||
Type = y.ReadingQuestionTrial.Type,
|
||||
TypeValue = y.ReadingQuestionTrial.TypeValue,
|
||||
ValueType = y.ReadingQuestionTrial.ValueType,
|
||||
|
@ -255,10 +256,54 @@ namespace IRaCIS.Application.Services
|
|||
Answer =y.Answer,
|
||||
}).ToList()
|
||||
}).ToListAsync();
|
||||
var globalQuestionList = await _readingQuestionTrialRepository.Where(x => x.GlobalReadingShowType != GlobalReadingShowType.NotShow && x.ReadingQuestionCriterionTrialId == taskInfo.TrialReadingCriterionId).IgnoreAutoIncludes().ToListAsync();
|
||||
|
||||
|
||||
|
||||
|
||||
result.TaskList.ForEach(x =>
|
||||
{
|
||||
x.CrterionDictionaryGroup = ReadingCommon.GetCrterionDictionaryGroup(x.IsConvertedTask);
|
||||
if (x.BeforeQuestionList.Count() != globalQuestionList.Count())
|
||||
{
|
||||
var beforeQuestionIds = x.BeforeQuestionList.Select(x => x.QuestionId).ToList();
|
||||
|
||||
globalQuestionList.ForEach(y =>
|
||||
{
|
||||
if (!beforeQuestionIds.Contains(y.Id))
|
||||
{
|
||||
x.BeforeQuestionList.Add(new GlobalQuestionInfo()
|
||||
{
|
||||
QuestionId = y.Id,
|
||||
QuestionName = y.QuestionName.LanguageName(y.QuestionEnName, _userInfo.IsEn_Us),
|
||||
QuestionEnName = y.QuestionEnName,
|
||||
AnswerGroup = y.AnswerGroup,
|
||||
QuestionType = y.QuestionType,
|
||||
LimitEdit = y.LimitEdit,
|
||||
MaxAnswerLength = y.MaxAnswerLength,
|
||||
FileType = y.FileType,
|
||||
QuestionGenre = y.QuestionGenre,
|
||||
ShowOrder=y.ShowOrder,
|
||||
DictionaryCode = y.DictionaryCode,
|
||||
GlobalReadingShowType = y.GlobalReadingShowType,
|
||||
AnswerCombination = y.AnswerCombination,
|
||||
JudgeType = y.JudgeType,
|
||||
Type = y.Type,
|
||||
TypeValue = y.TypeValue,
|
||||
ValueType = y.ValueType,
|
||||
IsJudgeQuestion = y.IsJudgeQuestion,
|
||||
Answer = string.Empty,
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
x.BeforeQuestionList = x.BeforeQuestionList.OrderBy(y => y.ShowOrder).ToList();
|
||||
|
||||
});
|
||||
|
||||
var globalReadingQuestion = await _readingGlobalTaskInfoRepository.Where(x => x.GlobalTaskId == inDto.VisitTaskId).ToListAsync();
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// <summary>
|
||||
/// 标准病灶中间表
|
||||
/// </summary>
|
||||
[Table("CriterionNidus")]
|
||||
[Table("CriterionNidusSystem")]
|
||||
public class CriterionNidus : Entity, IAuditAdd
|
||||
{
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
///<summary>
|
||||
///ReadingCriterionDictionary
|
||||
///</summary>
|
||||
[Table("ReadingCriterionDictionary")]
|
||||
[Table("ReadingSystemCriterionDictionary")]
|
||||
public class ReadingCriterionDictionary : Entity, IAuditAdd
|
||||
{
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue