修改用户类型返回接口
							parent
							
								
									a06e6a2616
								
							
						
					
					
						commit
						c5ebdc55f3
					
				| 
						 | 
				
			
			@ -91,7 +91,7 @@ namespace IRaCIS.Core.Application.Contracts
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///  通过传递场景枚举 返回对应的下拉框数据   1:是外部   2:是内部  3:是Site调研
 | 
			
		||||
        ///  通过传递场景枚举 返回对应的下拉框数据   1:是外部   2:是内部  3:是Site调研 4: 邮件接收人,5:邮件抄送人
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="userTypeSelectEnum"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
| 
						 | 
				
			
			@ -123,6 +123,19 @@ namespace IRaCIS.Core.Application.Contracts
 | 
			
		|||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            if (userTypeSelectEnum == UserTypeSelectEnum.EnrollOrPD_EMailCopy)
 | 
			
		||||
            {
 | 
			
		||||
                userTypeEnums = new List<UserTypeEnum>() { UserTypeEnum.CRA, UserTypeEnum.ClinicalResearchCoordinator };
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (userTypeSelectEnum == UserTypeSelectEnum.EnrollOrPD_EmailReceive)
 | 
			
		||||
            {
 | 
			
		||||
                userTypeEnums = new List<UserTypeEnum>() { 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<TrialUserType>(_mapper.ConfigurationProvider);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,6 +75,9 @@
 | 
			
		|||
        InnerUser=2,
 | 
			
		||||
 | 
			
		||||
        SiteSurvey=3,
 | 
			
		||||
 | 
			
		||||
        EnrollOrPD_EmailReceive=4,
 | 
			
		||||
        EnrollOrPD_EMailCopy=5,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue