Uat_Study
he 2022-07-13 16:34:21 +08:00
parent 353fc63f5e
commit b6ded90a84
6 changed files with 55 additions and 4 deletions

View File

@ -2074,6 +2074,11 @@
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingCriterionPageQuery.PageName"> <member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingCriterionPageQuery.PageName">
<summary> PageName</summary> <summary> PageName</summary>
</member> </member>
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingCriterionPageAddOrEdit.IsPublicPage">
<summary>
是否公共分页
</summary>
</member>
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.AddOrUpdateReadingQuestionCriterionTrialInDto.ShowOrder"> <member name="P:IRaCIS.Core.Application.Service.Reading.Dto.AddOrUpdateReadingQuestionCriterionTrialInDto.ShowOrder">
<summary> <summary>
排序 排序
@ -3874,6 +3879,11 @@
是否启用 是否启用
</summary> </summary>
</member> </member>
<member name="P:IRaCIS.Core.Application.Contracts.ReadingCriterionPageDto.IsPublicPage">
<summary>
是否公共分页
</summary>
</member>
<member name="P:IRaCIS.Core.Application.Contracts.ReadingCriterionPageDto.CreateTime"> <member name="P:IRaCIS.Core.Application.Contracts.ReadingCriterionPageDto.CreateTime">
<summary> <summary>
创建时间 创建时间
@ -4644,6 +4654,13 @@
<param name="inDto"></param> <param name="inDto"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:IRaCIS.Core.Application.TrialConfigService.GetReadingCriterionPageList(IRaCIS.Core.Application.Contracts.GetTrialReadingInfoInDto)">
<summary>
获取项目标准分页信息
</summary>
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.TrialConfigService.GetTrialReadingCriterionInfo(IRaCIS.Core.Application.Contracts.GetTrialReadingInfoInDto)"> <member name="M:IRaCIS.Core.Application.TrialConfigService.GetTrialReadingCriterionInfo(IRaCIS.Core.Application.Contracts.GetTrialReadingInfoInDto)">
<summary> <summary>
获取项目阅片标准信息 获取项目阅片标准信息

View File

@ -37,7 +37,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid ReadingQuestionCriterionTrialId{ get; set; } public Guid ReadingQuestionCriterionTrialId{ get; set; }
} /// <summary>
/// 是否公共分页
/// </summary>
public bool IsPublicPage { get; set; }
}
public class AddOrUpdateReadingQuestionCriterionTrialInDto public class AddOrUpdateReadingQuestionCriterionTrialInDto
@ -381,6 +386,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// 当前ID /// 当前ID
/// </summary> /// </summary>
public Guid? Id { get; set; } public Guid? Id { get; set; }
public Guid? ReadingCriterionPageId { get; set; }
} }
public class GetSystemCriterionOtherQuestionInDto public class GetSystemCriterionOtherQuestionInDto

View File

@ -713,7 +713,7 @@ namespace IRaCIS.Application.Services
.WhereIf(!inDto.QuestionName.IsNullOrEmpty(), x => x.QuestionName.Contains(inDto.QuestionName)) .WhereIf(!inDto.QuestionName.IsNullOrEmpty(), x => x.QuestionName.Contains(inDto.QuestionName))
.WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type.Contains(inDto.Type)) .WhereIf(!inDto.Type.IsNullOrEmpty(), x => x.Type.Contains(inDto.Type))
.WhereIf(inDto.ReadingCriterionPageId!=null, x => x.ReadingCriterionPageId==inDto.ReadingCriterionPageId) .WhereIf(inDto.ReadingCriterionPageId!=null, x => x.ReadingCriterionPageId==inDto.ReadingCriterionPageId)
.ProjectTo<ReadingQuestionTrialView>(_mapper.ConfigurationProvider); .ProjectTo<ReadingQuestionTrialView>(_mapper.ConfigurationProvider).OrderBy(x=>x.ShowOrder);
return await query.ToListAsync(); return await query.ToListAsync();
} }
@ -732,6 +732,7 @@ namespace IRaCIS.Application.Services
var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId) var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId)
.Where(x => types.Contains(x.Type)) .Where(x => types.Contains(x.Type))
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id) .WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.WhereIf(inDto.ReadingCriterionPageId != null, x => x.ReadingCriterionPageId == inDto.ReadingCriterionPageId)
.Select(x => new CriterionOtherQuestionOutDto() .Select(x => new CriterionOtherQuestionOutDto()
{ {
QuestionId = x.Id, QuestionId = x.Id,

View File

@ -388,6 +388,12 @@ namespace IRaCIS.Core.Application.Contracts
/// </summary> /// </summary>
public bool IsEnable { get; set; } public bool IsEnable { get; set; }
/// <summary>
/// 是否公共分页
/// </summary>
public bool IsPublicPage { get; set; }
/// <summary> /// <summary>
/// 创建时间 /// 创建时间
/// </summary> /// </summary>
@ -401,6 +407,9 @@ namespace IRaCIS.Core.Application.Contracts
public class TrialReadQuestion public class TrialReadQuestion
{ {
public Guid Id { get; set; }
/// <summary> /// <summary>
/// 排序 /// 排序
/// </summary> /// </summary>

View File

@ -97,6 +97,17 @@ namespace IRaCIS.Core.Application
}).ToListAsync(); }).ToListAsync();
} }
/// <summary>
/// 获取项目标准分页信息
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<ReadingCriterionPageDto>> GetReadingCriterionPageList(GetTrialReadingInfoInDto inDto)
{
return await _readingCriterionPageRepository.Where(x => x.TrialId == inDto.TrialId).ProjectTo<ReadingCriterionPageDto>(_mapper.ConfigurationProvider).ToListAsync();
}
/// <summary> /// <summary>
/// 获取项目阅片标准信息 /// 获取项目阅片标准信息
/// </summary> /// </summary>
@ -117,8 +128,8 @@ namespace IRaCIS.Core.Application
}; };
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId) result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId&&x.ReadingQuestionCriterionTrialId == result.TrialCriterionId)
.ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).ToListAsync(); .ProjectTo<TrialReadQuestion>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();

View File

@ -43,6 +43,12 @@ namespace IRaCIS.Core.Domain.Models
public Guid CreateUserId { get; set; } public Guid CreateUserId { get; set; }
/// <summary>
/// 是否公共分页
/// </summary>
public bool IsPublicPage { get; set; } = false;
public Guid ReadingQuestionCriterionTrialId { get; set; } public Guid ReadingQuestionCriterionTrialId { get; set; }
public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>(); public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>();