Uat_Study
parent
b2e7cc62fb
commit
e76c318a79
|
@ -248,7 +248,7 @@ namespace IRaCIS.Core.Application.Service.RC
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<PageOutput<ReadingQuestionCriterionTrialView>> GetReadingQuestionCriterionTrialList(ReadingQuestionCriterionTrialViewInDto inDto)
|
public async Task<PageOutput<ReadingQuestionCriterionTrialView>> GetReadingQuestionCriterionTrialList(ReadingQuestionCriterionTrialViewInDto inDto)
|
||||||
{
|
{
|
||||||
//await AddSystemDataToTrila(inDto.TrialId);
|
await AddSystemDataToTrila(inDto.TrialId);
|
||||||
var query = _readingQuestionCriterionTrialRepository.AsQueryable()
|
var query = _readingQuestionCriterionTrialRepository.AsQueryable()
|
||||||
.Where(x => x.TrialId == inDto.TrialId)
|
.Where(x => x.TrialId == inDto.TrialId)
|
||||||
.Where(x => (x.ReadingQuestionCriterionSystemId != null && x.IsEnable) || x.ReadingQuestionCriterionSystemId == null)
|
.Where(x => (x.ReadingQuestionCriterionSystemId != null && x.IsEnable) || x.ReadingQuestionCriterionSystemId == null)
|
||||||
|
@ -356,6 +356,7 @@ namespace IRaCIS.Core.Application.Service.RC
|
||||||
x.TrialId = trialId;
|
x.TrialId = trialId;
|
||||||
x.ReadingQuestionCriterionSystemId = x.Id;
|
x.ReadingQuestionCriterionSystemId = x.Id;
|
||||||
x.Id = NewId.NextGuid();
|
x.Id = NewId.NextGuid();
|
||||||
|
|
||||||
// 同步问题暂时注释
|
// 同步问题暂时注释
|
||||||
//List<ReadingQuestionTrial> readingQuestionTrialList = new List<ReadingQuestionTrial>();
|
//List<ReadingQuestionTrial> readingQuestionTrialList = new List<ReadingQuestionTrial>();
|
||||||
//SetChildParentQuestion(criterion.Id, trialId, systemQuestionList, readingQuestionTrialList);
|
//SetChildParentQuestion(criterion.Id, trialId, systemQuestionList, readingQuestionTrialList);
|
||||||
|
|
|
@ -677,6 +677,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public FormType? FormType { get; set; }
|
public FormType? FormType { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public bool IsSystemCriterion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目标准Id
|
/// 项目标准Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -728,7 +730,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public List<Guid> OncologyAssessIds { get; set; }
|
public List<Guid> OncologyAssessIds { get; set; }
|
||||||
|
|
||||||
|
public bool IsSystemCriterion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 评估原因
|
/// 评估原因
|
||||||
|
|
|
@ -160,7 +160,7 @@ namespace IRaCIS.Core.Application
|
||||||
{
|
{
|
||||||
EvaluationReason = trialCriterion.EvaluationReason.IsNullOrEmpty()? ReadingCommon.EvaluationReason : trialCriterion.EvaluationReason,
|
EvaluationReason = trialCriterion.EvaluationReason.IsNullOrEmpty()? ReadingCommon.EvaluationReason : trialCriterion.EvaluationReason,
|
||||||
OncologyAssessIds = await _readingCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.TrialReadingCriterionId && x.ParentCode == "OncologyAssess").Select(x => x.DictionaryId).ToListAsync(),
|
OncologyAssessIds = await _readingCriterionDictionaryRepository.Where(x => x.CriterionId == inDto.TrialReadingCriterionId && x.ParentCode == "OncologyAssess").Select(x => x.DictionaryId).ToListAsync(),
|
||||||
|
IsSystemCriterion= trialCriterion.ReadingQuestionCriterionSystemId!=null,
|
||||||
IsSign = trialCriterion.ReadingInfoSignTime != null,
|
IsSign = trialCriterion.ReadingInfoSignTime != null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -285,7 +285,7 @@ namespace IRaCIS.Core.Application
|
||||||
&&x.ReadingCriterionPageId==null)
|
&&x.ReadingCriterionPageId==null)
|
||||||
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||||
|
|
||||||
|
IsSystemCriterion = trialCriterion.ReadingQuestionCriterionSystemId != null;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue