修改一版
parent
23818bb44c
commit
0ca3447cf6
|
@ -226,18 +226,21 @@ namespace IRaCIS.Application.Services
|
|||
public async Task<List<GetTrialClinicalDataSelectOutDto>> GetTrialClinicalDataSelect(GetTrialClinicalDataSelectIndto inDto)
|
||||
{
|
||||
var userTypes = new List<int>() {
|
||||
(int)UserTypeEnum.APM,
|
||||
(int)UserTypeEnum.ProjectManager,
|
||||
(int)UserTypeEnum.SPM,
|
||||
(int)UserTypeEnum.CPM,
|
||||
(int)UserTypeEnum.IndependentReviewer,
|
||||
};
|
||||
|
||||
|
||||
|
||||
if (userTypes.Contains(_userInfo.UserTypeEnumInt))
|
||||
{
|
||||
inDto.UploadRole = UploadRole.PM;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var usedIdsQuery = _readingClinicalDataRepository.Where(x => x.ReadingId == inDto.ReadingId && x.Id != inDto.ReadingClinicalDataId).Select(x => x.ClinicalDataTrialSetId);
|
||||
List<GetTrialClinicalDataSelectOutDto> clinicalList = await _clinicalDataTrialSetRepository.Where(x=>x.TrialId==inDto.TrialId&&x.IsConfirm)
|
||||
.WhereIf(inDto.UploadRole!=null,x=>x.UploadRole==inDto.UploadRole)
|
||||
|
@ -283,7 +286,7 @@ namespace IRaCIS.Application.Services
|
|||
public async Task<PageOutput<GetReadingClinicalDataListOutDto>> GetReadingClinicalDataList(GetReadingClinicalDataListIndto inDto)
|
||||
{
|
||||
var userPMTypes = new List<int>() {
|
||||
(int)UserTypeEnum.APM,
|
||||
(int)UserTypeEnum.ProjectManager,
|
||||
(int)UserTypeEnum.SPM,
|
||||
(int)UserTypeEnum.CPM,
|
||||
(int)UserTypeEnum.IndependentReviewer,
|
||||
|
|
Loading…
Reference in New Issue