Uat_Study
parent
ee0526986f
commit
819a6a0b07
|
@ -18,6 +18,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public class GetReadingTaskDto
|
||||
{
|
||||
public Guid VisistTaskId { get; set; }
|
||||
public Guid VisistId { get; set; }
|
||||
|
||||
public Guid SubjectId { get; set; }
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
task = await _visitTaskRepository.Where(x => x.TrialId == trialId && x.ReadingTaskState != ReadingTaskState.HaveSigned && x.SubjectId == subjectId.Value).Select(x => new GetReadingTaskDto()
|
||||
{
|
||||
|
||||
VisistTaskId=x.Id,
|
||||
ReadingCategory = x.ReadingCategory,
|
||||
VisistId = x.ReadingCategory == ReadingCategory.Visit ? x.SourceSubjectVisitId.Value : x.ReadModule.SubjectVisitId,
|
||||
VisitNum = x.ReadingCategory == ReadingCategory.Visit ? x.SubjectVisit.VisitNum : x.ReadModule.VisitNum
|
||||
|
@ -75,7 +75,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
task = await _visitTaskRepository.Where(x => x.TrialId == trialId && x.ReadingTaskState != ReadingTaskState.HaveSigned).Select(x => new GetReadingTaskDto()
|
||||
{
|
||||
|
||||
VisistTaskId = x.Id,
|
||||
ReadingCategory = x.ReadingCategory,
|
||||
VisistId = x.ReadingCategory == ReadingCategory.Visit ? x.SourceSubjectVisitId.Value : x.ReadModule.SubjectVisitId,
|
||||
VisitNum = x.ReadingCategory == ReadingCategory.Visit ? x.SubjectVisit.VisitNum : x.ReadModule.VisitNum
|
||||
|
@ -99,7 +99,7 @@ namespace IRaCIS.Application.Services
|
|||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<List<GetReadingImgOutDto>> GetReadingImageFile(GetReadingImgInDto inDto)
|
||||
public async Task<(List<GetReadingImgOutDto>,object)> GetReadingImageFile(GetReadingImgInDto inDto)
|
||||
{
|
||||
var task=await GetNextTaskId(inDto.SubjectId, inDto.TrialId);
|
||||
List<Guid> visitIds = new List<Guid>();
|
||||
|
@ -120,7 +120,9 @@ namespace IRaCIS.Application.Services
|
|||
FileName = x.FileName,
|
||||
Path = x.Path
|
||||
}).ToListAsync();
|
||||
return imgList;
|
||||
return (imgList,new {
|
||||
VisitTaskId= task.VisistTaskId
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue