修改一版
parent
45d5a64cdf
commit
9a571620fe
|
@ -1045,6 +1045,11 @@
|
|||
名称
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetCRCClinicalDataOutDto.ClinicalUploadType">
|
||||
<summary>
|
||||
上传方式
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetCRCClinicalDataOutDto.FileName">
|
||||
<summary>
|
||||
模板文件名称
|
||||
|
|
|
@ -207,7 +207,14 @@ namespace IRaCIS.Application.Services
|
|||
[HttpPost]
|
||||
public async Task<List<GetTrialClinicalDataSelectOutDto>> GetTrialClinicalDataSelect(GetTrialClinicalDataSelectIndto inDto)
|
||||
{
|
||||
if (_userInfo.UserTypeShortName == "PM" || _userInfo.UserTypeShortName == "IR")
|
||||
var userTypes = new List<int>() {
|
||||
(int)UserTypeEnum.APM,
|
||||
(int)UserTypeEnum.SPM,
|
||||
(int)UserTypeEnum.CPM,
|
||||
(int)UserTypeEnum.IndependentReviewer,
|
||||
};
|
||||
|
||||
if (userTypes.Contains(_userInfo.UserTypeEnumInt))
|
||||
{
|
||||
inDto.UploadRole = UploadRole.PM;
|
||||
|
||||
|
@ -226,8 +233,6 @@ namespace IRaCIS.Application.Services
|
|||
ClinicalDataLevel = x.ClinicalDataLevel,
|
||||
ClinicalDataSetName = x.ClinicalDataSetName,
|
||||
ClinicalUploadType = x.ClinicalUploadType,
|
||||
ClinicalDataLevelName = x.ClinicalDataLevel.GetDisplayName(),
|
||||
ClinicalUploadTypeName = x.ClinicalUploadType.GetDisplayName(),
|
||||
Id = x.Id
|
||||
}).ToListAsync() ;
|
||||
return clinicalList;
|
||||
|
@ -260,13 +265,19 @@ namespace IRaCIS.Application.Services
|
|||
[HttpPost]
|
||||
public async Task<PageOutput<GetReadingClinicalDataListOutDto>> GetReadingClinicalDataList(GetReadingClinicalDataListIndto inDto)
|
||||
{
|
||||
var userPMTypes = new List<int>() {
|
||||
(int)UserTypeEnum.APM,
|
||||
(int)UserTypeEnum.SPM,
|
||||
(int)UserTypeEnum.CPM,
|
||||
(int)UserTypeEnum.IndependentReviewer,
|
||||
};
|
||||
|
||||
if (_userInfo.UserTypeShortName == "PM" || _userInfo.UserTypeShortName == "IR")
|
||||
if (userPMTypes.Contains(_userInfo.UserTypeEnumInt))
|
||||
{
|
||||
inDto.UploadRole = UploadRole.PM;
|
||||
|
||||
}
|
||||
else if (_userInfo.UserTypeShortName == "CRC" || _userInfo.UserTypeShortName == "IQC")
|
||||
|
||||
else if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.IQC)
|
||||
{
|
||||
inDto.UploadRole = UploadRole.CRC;
|
||||
}
|
||||
|
@ -294,18 +305,9 @@ namespace IRaCIS.Application.Services
|
|||
}).ToList()
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
var result=await resultQuery.ToPagedListAsync(inDto.PageIndex, inDto.PageSize, inDto.SortField == null ? nameof(GetReadingClinicalDataListOutDto.ClinicalDataSetName) : inDto.SortField,
|
||||
inDto.Asc);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
inDto.Asc);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue