医生下拉列表
This commit is contained in:
@@ -74,7 +74,11 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
|
||||
public class TrialDoctorUserSelectView
|
||||
{
|
||||
public Guid DoctorUserId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public ReadingMethod ReadingType { get; set; }
|
||||
|
||||
public Guid? DoctorUserId { get; set; }
|
||||
|
||||
public string UserCode { get; set; }
|
||||
|
||||
|
||||
@@ -82,9 +82,18 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
var query = from enroll in _enrollRepository.Where(t => t.TrialId == trialId)
|
||||
join user in _userRepository.AsQueryable() on enroll.DoctorId equals user.DoctorId
|
||||
select user;
|
||||
select new TrialDoctorUserSelectView()
|
||||
{
|
||||
TrialId = enroll.TrialId,
|
||||
ReadingType=enroll.Trial.ReadingType,
|
||||
DoctorUserId= user.Id,
|
||||
FullName=user.FullName,
|
||||
UserCode=user.UserCode,
|
||||
UserName=user.UserName,
|
||||
UserTypeEnum=user.UserTypeRole.UserTypeEnum
|
||||
};
|
||||
|
||||
return query.ProjectTo<TrialDoctorUserSelectView>(_mapper.ConfigurationProvider).ToList();
|
||||
return query.ToList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user