修改一版
parent
db63148ae0
commit
ec25bcaf09
|
@ -1050,6 +1050,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
}
|
||||
|
||||
public class SubmitTableQuestionOutDto
|
||||
{
|
||||
public Guid RowId { get; set; }
|
||||
}
|
||||
public class SubmitTableQuestionInDto
|
||||
{
|
||||
public Guid QuestionId { get; set; }
|
||||
|
|
|
@ -2194,8 +2194,9 @@ namespace IRaCIS.Application.Services
|
|||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> SubmitTableQuestion(SubmitTableQuestionInDto inDto)
|
||||
public async Task<SubmitTableQuestionOutDto> SubmitTableQuestion(SubmitTableQuestionInDto inDto)
|
||||
{
|
||||
SubmitTableQuestionOutDto result = new SubmitTableQuestionOutDto();
|
||||
await VerifyTaskIsSign(inDto.VisitTaskId);
|
||||
|
||||
var tableQuestionIds = inDto.AnswerList.Select(x => x.TableQuestionId).ToList();
|
||||
|
@ -2269,6 +2270,8 @@ namespace IRaCIS.Application.Services
|
|||
rowInfo.SeriesId = inDto.SeriesId;
|
||||
rowInfo.VisitTaskId = inDto.VisitTaskId;
|
||||
|
||||
result.RowId = rowInfo.Id;
|
||||
|
||||
List<ReadingTableQuestionAnswer> answerList = inDto.AnswerList.Select(x => new ReadingTableQuestionAnswer()
|
||||
{
|
||||
Answer = x.Answer,
|
||||
|
@ -2300,7 +2303,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
|
||||
|
||||
return ResponseOutput.Ok(true);
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue