Uat_Study
parent
195485f7ab
commit
f0d3d0b190
|
@ -60,6 +60,31 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
}
|
||||
|
||||
|
||||
public class SetTrialCriterionJudgeQuestionAnswerGroupInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid ReadingQuestionTrialId { get; set; }
|
||||
|
||||
|
||||
[NotDefault]
|
||||
public string AnswerGroup { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialCriterionJudgeQuestionListOutDto
|
||||
{
|
||||
public Guid ReadingQuestionTrialId { get; set; }
|
||||
|
||||
public string QuestionName { get; set; }
|
||||
|
||||
public string AnswerGroup { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialCriterionJudgeQuestionListInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid ReadingQuestionCriterionTrialId { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialReadingQuestionInDto
|
||||
{
|
||||
[NotDefault]
|
||||
|
|
|
@ -143,7 +143,44 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目的阅片问题(
|
||||
/// 获取项目标准的裁判问题
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<GetTrialCriterionJudgeQuestionListOutDto>> GetTrialCriterionJudgeQuestionList(GetTrialCriterionJudgeQuestionListInDto inDto)
|
||||
{
|
||||
var result = await _readingQuestionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId && x.IsJudgeQuestion)
|
||||
.Select(x => new GetTrialCriterionJudgeQuestionListOutDto()
|
||||
{
|
||||
AnswerGroup = x.AnswerGroup,
|
||||
QuestionName = x.QuestionName,
|
||||
ReadingQuestionTrialId = x.Id
|
||||
|
||||
}).ToListAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置裁判问题的答案分组
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> SetTrialCriterionJudgeQuestionAnswerGroup(SetTrialCriterionJudgeQuestionAnswerGroupInDto inDto)
|
||||
{
|
||||
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(inDto.ReadingQuestionTrialId, x => new ReadingQuestionTrial()
|
||||
{
|
||||
AnswerGroup = inDto.AnswerGroup
|
||||
});
|
||||
|
||||
var result = await _readingQuestionTrialRepository.SaveChangesAsync();
|
||||
|
||||
return ResponseOutput.Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目的阅片问题
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
|
@ -237,7 +274,7 @@ namespace IRaCIS.Application.Services
|
|||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[NonDynamicMethod]
|
||||
public async Task<IResponseOutput> SubmitVisitTaskQuestions(SubmitVisitTaskQuestionsInDto inDto)
|
||||
{
|
||||
await this.SaveVisitTaskQuestions(inDto);
|
||||
|
|
|
@ -361,6 +361,7 @@ namespace IRaCIS.Application.Services
|
|||
TrialId = trialId,
|
||||
Type = quesiton.Type,
|
||||
GroupName=quesiton.GroupName,
|
||||
ReadingQuestionSystemId=x.Id,
|
||||
IsJudgeQuestion =quesiton.IsJudgeQuestion,
|
||||
Remark=quesiton.Remark,
|
||||
TypeValue = quesiton.TypeValue,
|
||||
|
@ -394,6 +395,7 @@ namespace IRaCIS.Application.Services
|
|||
IsEnable = quesiton.IsEnable,
|
||||
IsRequired = quesiton.IsRequired,
|
||||
ParentId = newParentId,
|
||||
ReadingQuestionSystemId = x.Id,
|
||||
ParentTriggerValue = quesiton.ParentTriggerValue,
|
||||
QuestionName = quesiton.QuestionName,
|
||||
ReadingQuestionCriterionTrialId = ReadingQuestionCriterionTrialId,
|
||||
|
|
|
@ -82,6 +82,16 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统问题ID
|
||||
/// </summary>
|
||||
public Guid? ReadingQuestionSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 答案分组
|
||||
/// </summary>
|
||||
public string AnswerGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue