医生下拉列表

This commit is contained in:
2022-06-10 14:12:16 +08:00
parent 36f2cb60e7
commit 27a584575c
3 changed files with 21 additions and 3 deletions
@@ -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();
}