diff --git a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs index 00e00396e..19a03b97d 100644 --- a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs @@ -50,8 +50,10 @@ namespace IRaCIS.Core.Application.Service.Inspection from leftparent in parenttemp.DefaultIfEmpty() join user in _repository.GetQueryable() on data.CreateUserId equals user.Id into usertemp from leftuser in usertemp.DefaultIfEmpty() + join usertype in _repository.GetQueryable() on leftuser.UserTypeId equals usertype.Id into usertypetemp + from leftusertype in usertypetemp.DefaultIfEmpty() + - @@ -125,13 +127,13 @@ namespace IRaCIS.Core.Application.Service.Inspection UserFirstName = leftuser.FirstName, UserLastName = leftuser.LastName, //SubjectCode=leftsubject.Code, - SubjectCode =data.SubjectCode, - SubjectVisitName=data.SubjectVisitName, - CreateUserName = data.CreateUserName, - RoleName=data.RoleName, - TrialName=data.TrialName, - SiteCode=data.SiteCode, - ResearchProgramNo=data.ResearchProgramNo, + SubjectCode =leftsubject.Code, + SubjectVisitName=leftsubjectVisit.VisitName, + CreateUserName = leftuser.FirstName + leftuser.LastName, + RoleName= leftusertype.UserTypeShortName, + TrialName= leftrial.ExperimentName, + SiteCode=leftsite.SiteCode, + ResearchProgramNo= leftrial.ResearchProgramNo, ObjectType=data.ObjectType, Description=leftfrontAuditConfig.Description, ModuleTypeName= leftmoduleTypec.ValueCN,