Uat_Study
hang 2022-08-12 09:54:19 +08:00
parent 32bd9c4624
commit 57bec89d11
2 changed files with 5 additions and 0 deletions

View File

@ -208,6 +208,9 @@ namespace IRaCIS.Application.Contracts
public string BlindNameCN { get; set; } = string.Empty; public string BlindNameCN { get; set; } = string.Empty;
public Guid? SpecialityId { get; set; } = Guid.Empty; public Guid? SpecialityId { get; set; } = Guid.Empty;
public string SpecialityCN { get; set; } = string.Empty;
public string Speciality { get; set; } = string.Empty;
public string SpecialityOther { get; set; } = string.Empty; public string SpecialityOther { get; set; } = string.Empty;
public string SpecialityOtherCN { get; set; } = string.Empty; public string SpecialityOtherCN { get; set; } = string.Empty;

View File

@ -139,6 +139,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<Enroll, ConfirmationReviewerDTO>().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital) CreateMap<Enroll, ConfirmationReviewerDTO>().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital)
.ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder))) .ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)))
.ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value))
.ForMember(d => d.SpecialityCN, u => u.MapFrom(s => s.Doctor.Speciality.ValueCN))
.ForMember(d => d.Id, u => u.MapFrom(s => s.Doctor.Id)); .ForMember(d => d.Id, u => u.MapFrom(s => s.Doctor.Id));
CreateMap<Doctor, ConfirmationReviewerDTO>(); CreateMap<Doctor, ConfirmationReviewerDTO>();
CreateMap<Hospital, ConfirmationReviewerDTO>(); CreateMap<Hospital, ConfirmationReviewerDTO>();