From c5ebdc55f38dd290a6341e68c3cfe5b92019d04c Mon Sep 17 00:00:00 2001 From: "{872297557@qq.com}" <872297557@qq.com> Date: Thu, 1 Dec 2022 14:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BF=94=E5=9B=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Management/UserTypeService.cs | 15 ++++++++++++++- IRaCIS.Core.Domain.Share/User/UserType.cs | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs index 48f055611..adc27a65f 100644 --- a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs @@ -91,7 +91,7 @@ namespace IRaCIS.Core.Application.Contracts /// - /// 通过传递场景枚举 返回对应的下拉框数据 1:是外部 2:是内部 3:是Site调研 + /// 通过传递场景枚举 返回对应的下拉框数据 1:是外部 2:是内部 3:是Site调研 4: 邮件接收人,5:邮件抄送人 /// /// /// @@ -123,6 +123,19 @@ namespace IRaCIS.Core.Application.Contracts } + if (userTypeSelectEnum == UserTypeSelectEnum.EnrollOrPD_EMailCopy) + { + userTypeEnums = new List() { UserTypeEnum.CRA, UserTypeEnum.ClinicalResearchCoordinator }; + } + + if (userTypeSelectEnum == UserTypeSelectEnum.EnrollOrPD_EmailReceive) + { + userTypeEnums = new List() { UserTypeEnum.CPM, UserTypeEnum.SPM, UserTypeEnum.SMM, UserTypeEnum.CMM }; + } + + + + var query = userTypeServiceRepository.Where(x => x.UserTypeEnum != UserTypeEnum.SuperAdmin) .WhereIf(userTypeSelectEnum != UserTypeSelectEnum.None, t => userTypeEnums.Contains(t.UserTypeEnum)) .OrderBy(t => t.Order).ProjectTo(_mapper.ConfigurationProvider); diff --git a/IRaCIS.Core.Domain.Share/User/UserType.cs b/IRaCIS.Core.Domain.Share/User/UserType.cs index bf4392f48..944c5fe7e 100644 --- a/IRaCIS.Core.Domain.Share/User/UserType.cs +++ b/IRaCIS.Core.Domain.Share/User/UserType.cs @@ -75,6 +75,9 @@ InnerUser=2, SiteSurvey=3, + + EnrollOrPD_EmailReceive=4, + EnrollOrPD_EMailCopy=5, }