修改访视

Uat_Study
hang 2022-04-27 16:18:26 +08:00
parent 714c136d12
commit f679eba8fb
4 changed files with 7 additions and 4 deletions

View File

@ -48,6 +48,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<DicomSeries, QASeriesInfoDto>()
.ForMember(o => o.StudyTime, t => t.MapFrom(u => u.DicomStudy.StudyTime))
.ForMember(o => o.StudyCode, t => t.MapFrom(u => u.DicomStudy.StudyCode))
.ForMember(o => o.InstanceList, t => t.MapFrom(u => u.DicomInstanceList.Select(t=>t.Id).ToArray()))
;

View File

@ -386,6 +386,8 @@ namespace IRaCIS.Core.Application.Contracts.DTO
public class QASeriesInfoDto
{
public DateTime? StudyTime { get; set; }
public string StudyCode { get; set; } = string.Empty;
public Guid Id { get; set; }
public Guid StudyId { get; set; }

View File

@ -359,7 +359,6 @@ namespace IRaCIS.Core.Application.Contracts
public string SubjectCode { get; set; } = String.Empty;
public String TrialSiteCode { get; set; } = String.Empty;
public ChallengeStateEnum ChallengeState { get; set; }
public int? ChallengeCount { get; set; }
@ -400,7 +399,7 @@ namespace IRaCIS.Core.Application.Contracts
public class QCVisitBasicListViewModel
{
public ChallengeStateEnum ChallengeState { get; set; }
public bool? IsConfirmedClinicalData { get; set; }
public bool IsQCConfirmedReupload { get; set; }

View File

@ -76,8 +76,8 @@ namespace IRaCIS.Application.Services
public async Task<List<TrialSelectDTO>> GetTrialSelect()
{
return await _trialRepository.AsQueryable()
.WhereIf(_userInfo.UserTypeEnumInt != (int)UserTypeEnum.SuperAdmin, t => t.TrialUserList.Any(t => t.UserId == _userInfo.Id))
.WhereIf(_userInfo.UserTypeEnumInt != (int)UserTypeEnum.SuperAdmin && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM, t => t.IsDeleted == false)
.WhereIf(_userInfo.UserTypeEnumInt != (int)UserTypeEnum.SuperAdmin, t => t.TrialUserList.Any(t => t.UserId == _userInfo.Id) && t.IsDeleted == false)
.ProjectTo<TrialSelectDTO>(_mapper.ConfigurationProvider).ToListAsync();
}