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
|
public class GetTrialReadingQuestionInDto
|
||||||
{
|
{
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
|
|
|
@ -143,7 +143,44 @@ namespace IRaCIS.Application.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <param name="inDto"></param>
|
/// <param name="inDto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
@ -237,7 +274,7 @@ namespace IRaCIS.Application.Services
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="inDto"></param>
|
/// <param name="inDto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[NonDynamicMethod]
|
||||||
public async Task<IResponseOutput> SubmitVisitTaskQuestions(SubmitVisitTaskQuestionsInDto inDto)
|
public async Task<IResponseOutput> SubmitVisitTaskQuestions(SubmitVisitTaskQuestionsInDto inDto)
|
||||||
{
|
{
|
||||||
await this.SaveVisitTaskQuestions(inDto);
|
await this.SaveVisitTaskQuestions(inDto);
|
||||||
|
|
|
@ -361,6 +361,7 @@ namespace IRaCIS.Application.Services
|
||||||
TrialId = trialId,
|
TrialId = trialId,
|
||||||
Type = quesiton.Type,
|
Type = quesiton.Type,
|
||||||
GroupName=quesiton.GroupName,
|
GroupName=quesiton.GroupName,
|
||||||
|
ReadingQuestionSystemId=x.Id,
|
||||||
IsJudgeQuestion =quesiton.IsJudgeQuestion,
|
IsJudgeQuestion =quesiton.IsJudgeQuestion,
|
||||||
Remark=quesiton.Remark,
|
Remark=quesiton.Remark,
|
||||||
TypeValue = quesiton.TypeValue,
|
TypeValue = quesiton.TypeValue,
|
||||||
|
@ -394,6 +395,7 @@ namespace IRaCIS.Application.Services
|
||||||
IsEnable = quesiton.IsEnable,
|
IsEnable = quesiton.IsEnable,
|
||||||
IsRequired = quesiton.IsRequired,
|
IsRequired = quesiton.IsRequired,
|
||||||
ParentId = newParentId,
|
ParentId = newParentId,
|
||||||
|
ReadingQuestionSystemId = x.Id,
|
||||||
ParentTriggerValue = quesiton.ParentTriggerValue,
|
ParentTriggerValue = quesiton.ParentTriggerValue,
|
||||||
QuestionName = quesiton.QuestionName,
|
QuestionName = quesiton.QuestionName,
|
||||||
ReadingQuestionCriterionTrialId = ReadingQuestionCriterionTrialId,
|
ReadingQuestionCriterionTrialId = ReadingQuestionCriterionTrialId,
|
||||||
|
|
|
@ -82,6 +82,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 系统问题ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid? ReadingQuestionSystemId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 答案分组
|
||||||
|
/// </summary>
|
||||||
|
public string AnswerGroup { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue