Uat_Study
parent
c4a7e8f632
commit
a032c23f5c
|
@ -5891,13 +5891,6 @@
|
|||
<param name="indto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.ReadingQuestionService.GetPreviewTheQuestion(IRaCIS.Core.Application.Service.Reading.Dto.GetPreviewTheQuestionInDto)">
|
||||
<summary>
|
||||
获取预览问题信息
|
||||
</summary>
|
||||
<param name="inDto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Application.Services.ReadingQuestionService.SetTrialReadingQuestionCriterionIsIsCompleteConfig(IRaCIS.Core.Application.Service.Reading.Dto.SetSystemReadingQuestionCriterionIsIsCompleteConfig)">
|
||||
<summary>
|
||||
设置项目标准是否完成配置
|
||||
|
|
|
@ -354,11 +354,11 @@ namespace IRaCIS.Application.Services
|
|||
IsPublicPage = firstData.IsPublicPage,
|
||||
};
|
||||
|
||||
var pageGroupList = newPageQusetionList.Where(x => x.ParentId == null).ToList();
|
||||
pageGroupList.ForEach(x =>
|
||||
{
|
||||
this.FindChildQuestion(x, newPageQusetionList);
|
||||
});
|
||||
var pageGroupList = newPageQusetionList.Where(x =>x.IsPage|| (x.ParentId == null&&x.PageName.IsNullOrEmpty())).ToList();
|
||||
pageGroupList.ForEach(x =>
|
||||
{
|
||||
this.FindChildQuestion(x, newPageQusetionList);
|
||||
});
|
||||
|
||||
page.Childrens = pageGroupList;
|
||||
groupList.Add(page);
|
||||
|
@ -371,7 +371,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
qusetionList = qusetionList.Where(x => x.ReadingCriterionPageId == null).ToList();
|
||||
|
||||
groupList = qusetionList.Where(x => x.ParentId == null).ToList();
|
||||
groupList = qusetionList.Where(x => x.IsPage || (x.ParentId == null && x.PageName.IsNullOrEmpty())).ToList();
|
||||
groupList.ForEach(x =>
|
||||
{
|
||||
this.FindChildQuestion(x, qusetionList);
|
||||
|
@ -540,7 +540,7 @@ namespace IRaCIS.Application.Services
|
|||
[NonDynamicMethod]
|
||||
public void FindChildQuestion(GetTrialReadingQuestionOutDto trialReadingQuestion, List<GetTrialReadingQuestionOutDto> questionlists)
|
||||
{
|
||||
trialReadingQuestion.Childrens = questionlists.Where(x => x.ParentId == trialReadingQuestion.ReadingQuestionTrialId).ToList();
|
||||
trialReadingQuestion.Childrens = questionlists.Where(x => x.ParentId == trialReadingQuestion.ReadingQuestionTrialId||(trialReadingQuestion.IsPage&&x.ParentId==null&&x.GroupName==trialReadingQuestion.GroupName)).ToList();
|
||||
if (trialReadingQuestion.Childrens != null && trialReadingQuestion.Childrens.Count != 0)
|
||||
{
|
||||
trialReadingQuestion.Childrens.ForEach(x =>
|
||||
|
|
|
@ -579,39 +579,39 @@ namespace IRaCIS.Application.Services
|
|||
return ResponseOutput.Ok(entity.Id.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取预览问题信息
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<GetTrialReadingQuestionOutDto>> GetPreviewTheQuestion(GetPreviewTheQuestionInDto inDto)
|
||||
{
|
||||
var trialQuestionQuery = from trialQuestion in _readingQuestionTrialRepository.Where(x=>x.ReadingQuestionCriterionTrialId== inDto.Id)
|
||||
select new GetTrialReadingQuestionOutDto()
|
||||
{
|
||||
ReadingQuestionTrialId = trialQuestion.Id,
|
||||
ReadingQuestionCriterionTrialId = trialQuestion.ReadingQuestionCriterionTrialId,
|
||||
TrialId = trialQuestion.TrialId,
|
||||
Type = trialQuestion.Type,
|
||||
ParentTriggerValue = trialQuestion.ParentTriggerValue,
|
||||
GroupName = trialQuestion.GroupName,
|
||||
QuestionName = trialQuestion.QuestionName,
|
||||
IsRequired = trialQuestion.IsRequired,
|
||||
ShowOrder = trialQuestion.ShowOrder,
|
||||
ParentId = trialQuestion.ParentId,
|
||||
TypeValue = trialQuestion.TypeValue,
|
||||
Answer = string.Empty
|
||||
};
|
||||
var qusetionList = await trialQuestionQuery.OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
List<GetTrialReadingQuestionOutDto> readingQuestionList = qusetionList.Where(x => x.ParentId == null).ToList();
|
||||
readingQuestionList.ForEach(x =>
|
||||
{
|
||||
_readingImageTaskService.FindChildQuestion(x, qusetionList);
|
||||
});
|
||||
///// <summary>
|
||||
///// 获取预览问题信息
|
||||
///// </summary>
|
||||
///// <param name="inDto"></param>
|
||||
///// <returns></returns>
|
||||
//[HttpPost]
|
||||
//public async Task<List<GetTrialReadingQuestionOutDto>> GetPreviewTheQuestion(GetPreviewTheQuestionInDto inDto)
|
||||
//{
|
||||
// var trialQuestionQuery = from trialQuestion in _readingQuestionTrialRepository.Where(x=>x.ReadingQuestionCriterionTrialId== inDto.Id)
|
||||
// select new GetTrialReadingQuestionOutDto()
|
||||
// {
|
||||
// ReadingQuestionTrialId = trialQuestion.Id,
|
||||
// ReadingQuestionCriterionTrialId = trialQuestion.ReadingQuestionCriterionTrialId,
|
||||
// TrialId = trialQuestion.TrialId,
|
||||
// Type = trialQuestion.Type,
|
||||
// ParentTriggerValue = trialQuestion.ParentTriggerValue,
|
||||
// GroupName = trialQuestion.GroupName,
|
||||
// QuestionName = trialQuestion.QuestionName,
|
||||
// IsRequired = trialQuestion.IsRequired,
|
||||
// ShowOrder = trialQuestion.ShowOrder,
|
||||
// ParentId = trialQuestion.ParentId,
|
||||
// TypeValue = trialQuestion.TypeValue,
|
||||
// Answer = string.Empty
|
||||
// };
|
||||
// var qusetionList = await trialQuestionQuery.OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
// List<GetTrialReadingQuestionOutDto> readingQuestionList = qusetionList.Where(x => x.ParentId == null).ToList();
|
||||
// readingQuestionList.ForEach(x =>
|
||||
// {
|
||||
// _readingImageTaskService.FindChildQuestion(x, qusetionList);
|
||||
// });
|
||||
|
||||
return readingQuestionList;
|
||||
}
|
||||
// return readingQuestionList;
|
||||
//}
|
||||
|
||||
///// <summary>
|
||||
///// 设置项目标准是否生效
|
||||
|
|
Loading…
Reference in New Issue