[删除site调研 中心查询]
parent
58e29608e5
commit
abfd0a0a2e
|
@ -331,23 +331,6 @@ namespace IRaCIS.Core.Application.Services
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取项目下的 site 下拉框数据 CRC只看到他负责的
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="trialId"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpGet("{trialId:guid}")]
|
|
||||||
public async Task<IEnumerable<TrialSiteForSelect>> GetTrialSiteSelectForSiteSurvey(Guid trialId)
|
|
||||||
{
|
|
||||||
//CRC只看到他负责的
|
|
||||||
|
|
||||||
var list = await _trialSiteRepository.Where(t => t.TrialId == trialId).IgnoreQueryFilters()
|
|
||||||
.WhereIf(_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA, t => t.CRCUserList.Any(t => t.UserId == _userInfo.Id))
|
|
||||||
.ProjectTo<TrialSiteForSelect>(_mapper.ConfigurationProvider).OrderBy(t => t.TrialSiteCode).ToListAsync();
|
|
||||||
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public async Task<IEnumerable<string>> GetTrialSiteCodeSelect(Guid trialId, bool isIncludeVirtualSite = true)
|
public async Task<IEnumerable<string>> GetTrialSiteCodeSelect(Guid trialId, bool isIncludeVirtualSite = true)
|
||||||
|
|
Loading…
Reference in New Issue