|
|
|
@ -228,7 +228,7 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
CustomerOrgId = o.FirstOrDefault().appointPatientRegister.CustomerOrgId, |
|
|
|
ChildCustomerOrgName = o.FirstOrDefault().customerOrg.PathCode.Length == 5 ? "" : o.FirstOrDefault().customerOrg.CustomerOrgName, |
|
|
|
CustomerOrgGroupId = o.FirstOrDefault().appointPatientRegister.CustomerOrgGroupId, |
|
|
|
CustomerOrgGroupName = o.FirstOrDefault().haveCustomerOrgGroup == null ? "" : o.FirstOrDefault().haveCustomerOrgGroup.DisplayName, |
|
|
|
CustomerOrgGroupName = o.FirstOrDefault().haveCustomerOrgGroup == null ? "" : o.FirstOrDefault().haveCustomerOrgGroup.CustomerOrgGroupName, |
|
|
|
CustomerOrgRegisterId = o.FirstOrDefault().appointPatientRegister.CustomerOrgRegisterId, |
|
|
|
MedicalPackageId = o.FirstOrDefault().appointPatientRegister.MedicalPackageId, |
|
|
|
MedicalPackageName = o.FirstOrDefault().haveMedicalPackage == null ? "" : o.FirstOrDefault().haveMedicalPackage.MedicalPackageName, |
|
|
|
@ -330,6 +330,9 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
on patient.PatientId equals patientRegister.PatientId |
|
|
|
join customerOrg in await _customerOrgRepository.GetQueryableAsync() |
|
|
|
on patientRegister.CustomerOrgId equals customerOrg.CustomerOrgId |
|
|
|
join customerOrgGroup in await _customerOrgGroupRepository.GetQueryableAsync() |
|
|
|
on patientRegister.CustomerOrgGroupId equals customerOrgGroup.CustomerOrgGroupId into canEmptyCustomerOrgGroup |
|
|
|
from haveCustomerOrgGroup in canEmptyCustomerOrgGroup.DefaultIfEmpty() |
|
|
|
where user.Id == input.PersonId && |
|
|
|
(patientRegister.CompleteFlag == PatientRegisterCompleteFlag.PreRegistration || |
|
|
|
patientRegister.CompleteFlag == PatientRegisterCompleteFlag.Registration) && |
|
|
|
@ -342,6 +345,7 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
ChildCustomerOrgName = customerOrg.CustomerOrgName, |
|
|
|
CustomerOrgRegisterId = patientRegister.CustomerOrgRegisterId, |
|
|
|
CustomerOrgGroupId = patientRegister.CustomerOrgGroupId, |
|
|
|
CustomerOrgGroupName = haveCustomerOrgGroup == null?"": haveCustomerOrgGroup.CustomerOrgGroupName |
|
|
|
}).FirstOrDefault(); |
|
|
|
if (patientRegisterDto == null) |
|
|
|
{ |
|
|
|
|