Uat_Study
parent
204b903f25
commit
ee8071b161
|
@ -174,21 +174,25 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
return GetReadModuleOutDto;
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
/////
|
||||
///// </summary>
|
||||
///// <param name="inDto"></param>
|
||||
///// <returns></returns>
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
//public async Task<List<GetSubjectReadVisitsOutDto>> GetSubjectReadVisits(GetSubjectReadVisitsInDto inDto)
|
||||
//{
|
||||
// var visitquery = _subjectVisitRepository.Where(x => x.SubjectId == inDto.SubjectId && x.LatestScanDate != null);
|
||||
|
||||
// var finalVisitNum =await visitquery.Where(x => x.IsFinalVisit).Select(x => x.VisitNum).FirstOrDefaultAsync();
|
||||
// var finalVisitNum = await visitquery.Where(x => x.IsFinalVisit).Select(x => x.VisitNum).FirstOrDefaultAsync();
|
||||
|
||||
|
||||
// var readModulequery = _readModuleRepository.AsQueryable();
|
||||
// visitquery = visitquery.WhereIf(finalVisitNum!=null,x=>x.VisitNum< finalVisitNum).Where( x=> readModulequery.Where(y=>y.SubjectVisitId==x.Id&&y.ReadingSetType==inDto.ReadingSetType).Count()==0).OrderBy(x=>finalVisitNum)
|
||||
// //visitquery = visitquery.WhereIf(finalVisitNum != null, x => x.VisitNum < finalVisitNum)
|
||||
// // .Where(x => readModulequery.Where(y => y.SubjectVisitId == x.Id && y.ReadingSetType == inDto.ReadingSetType).Count() == 0).OrderBy(x => finalVisitNum)
|
||||
// // .Select(x=>new GetSubjectReadVisitsOutDto() {
|
||||
|
||||
// // } )
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace IRaCIS.Application.Services
|
|||
}).ToList();
|
||||
|
||||
await _readingPeriodSetRepository.AddAsync(entity, true);
|
||||
return ResponseOutput.Ok();
|
||||
return ResponseOutput.Ok(entity.Id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ namespace IRaCIS.Application.Services
|
|||
SiteId = x,
|
||||
}).ToList();
|
||||
var success = await _readingPeriodSetRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok();
|
||||
return ResponseOutput.Ok(entity.Id);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue