修改一版
parent
31158df4a0
commit
aa8bdf7865
|
@ -285,19 +285,20 @@ namespace IRaCIS.Application.Services
|
|||
[HttpPost]
|
||||
public async Task<PageOutput<GetReadingClinicalDataListOutDto>> GetReadingClinicalDataList(GetReadingClinicalDataListIndto inDto)
|
||||
{
|
||||
var userPMTypes = new List<int>() {
|
||||
(int)UserTypeEnum.ProjectManager,
|
||||
(int)UserTypeEnum.SPM,
|
||||
(int)UserTypeEnum.CPM,
|
||||
(int)UserTypeEnum.IndependentReviewer,
|
||||
};
|
||||
//var userPMTypes = new List<int>() {
|
||||
// (int)UserTypeEnum.ProjectManager,
|
||||
// (int)UserTypeEnum.SPM,
|
||||
// (int)UserTypeEnum.CPM,
|
||||
// (int)UserTypeEnum.IndependentReviewer,
|
||||
// };
|
||||
|
||||
if (userPMTypes.Contains(_userInfo.UserTypeEnumInt))
|
||||
{
|
||||
inDto.UploadRole = UploadRole.PM;
|
||||
}
|
||||
//if (userPMTypes.Contains(_userInfo.UserTypeEnumInt))
|
||||
//{
|
||||
// inDto.UploadRole = UploadRole.PM;
|
||||
//}
|
||||
|
||||
else if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.IQC)
|
||||
//else
|
||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.IQC)
|
||||
{
|
||||
inDto.UploadRole = UploadRole.CRC;
|
||||
}
|
||||
|
@ -306,7 +307,7 @@ namespace IRaCIS.Application.Services
|
|||
var resultQuery = _readingClinicalDataRepository.Where(x => x.SubjectId == inDto.SubjectId)
|
||||
.Where(x => x.ReadingId == inDto.ReadingId)
|
||||
.WhereIf(inDto.UploadRole == UploadRole.CRC, x => x.ClinicalDataTrialSet.UploadRole == UploadRole.CRC)
|
||||
.WhereIf(inDto.UploadRole == UploadRole.PM && !isBaseLine, x => x.ClinicalDataTrialSet.UploadRole == UploadRole.PM)
|
||||
//.WhereIf(inDto.UploadRole == UploadRole.PM && !isBaseLine, x => x.ClinicalDataTrialSet.UploadRole == UploadRole.PM)
|
||||
.Select(x => new GetReadingClinicalDataListOutDto() {
|
||||
ClinicalDataLevel = x.ClinicalDataTrialSet.ClinicalDataLevel,
|
||||
SubjectId = x.SubjectId,
|
||||
|
|
Loading…
Reference in New Issue