Compare commits
3 Commits
29f8648287
...
53544001a7
| Author | SHA1 | Date |
|---|---|---|
|
|
53544001a7 | |
|
|
f08cd1c818 | |
|
|
2c377d02f9 |
|
|
@ -323,7 +323,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
{
|
||||
//CRC只看到他负责的
|
||||
|
||||
var list = await _trialSiteRepository.Where(t => t.TrialId == trialId)
|
||||
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();
|
||||
|
||||
|
|
|
|||
|
|
@ -1543,6 +1543,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
}
|
||||
await InsertInspection<TrialSite>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
IsDistinctionInterface= type == AuditOpt.Update ? true : false,
|
||||
TrialId = x.TrialId,
|
||||
|
||||
ObjectRelationParentId = x.TrialId
|
||||
|
|
@ -1593,6 +1594,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
|
||||
await InsertInspection<TrialSiteUser>(item.Entity as TrialSiteUser, type, x => new InspectionConvertDTO
|
||||
{
|
||||
IsDistinctionInterface= type == AuditOpt.Update ? true : false,
|
||||
TrialId = x.TrialId,
|
||||
ObjectRelationParentId = entity.TrialSite.Id,
|
||||
ObjectRelationParentId2 = x.UserId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue