|
|
|
@ -291,7 +291,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
if (!string.IsNullOrEmpty(input.Phone)) |
|
|
|
entlist = entlist.Where(m => m.Patient.MobileTelephone == input.Phone || m.Patient.Telephone == input.Phone); |
|
|
|
|
|
|
|
if (input.SexId != null && input.SexId.ToString() != ForSexFlag.All) |
|
|
|
if (input.SexId != null && input.SexId != ForSexFlag.All) |
|
|
|
entlist = entlist.Where(m => m.SexId == input.SexId); |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(input.StartDate) && !string.IsNullOrEmpty(input.EndDate)) |
|
|
|
@ -1326,7 +1326,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
#region 检测单位分组的性别是否符合
|
|
|
|
//单位分组信息
|
|
|
|
|
|
|
|
if (CustomerOrgGroupEnt.ForSexId.ToString() != ForSexFlag.All |
|
|
|
if (CustomerOrgGroupEnt.ForSexId != ForSexFlag.All |
|
|
|
&& SexId != null |
|
|
|
&& CustomerOrgGroupEnt.ForSexId != SexId) |
|
|
|
{ |
|
|
|
@ -1744,7 +1744,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
query = query.Where(m => m.a.PatientName != null && m.a.PatientName.Contains(input.PatientName)); |
|
|
|
} |
|
|
|
|
|
|
|
if (input.SexId != null && input.SexId.ToString() != ForSexFlag.All) |
|
|
|
if (input.SexId != null && input.SexId != ForSexFlag.All) |
|
|
|
{ |
|
|
|
query = query.Where(m => m.a.SexId == input.SexId); |
|
|
|
} |
|
|
|
@ -1864,7 +1864,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
var customerOrgGroupEntity = await _customerOrgGroupRepository.FindAsync(m => m.Id == input.CustomerOrgGroupId); |
|
|
|
if (customerOrgGroupEntity != null) |
|
|
|
{ |
|
|
|
if (customerOrgGroupEntity.ForSexId.ToString() != ForSexFlag.All |
|
|
|
if (customerOrgGroupEntity.ForSexId != ForSexFlag.All |
|
|
|
&& oldPatientRegisterEntity.SexId != null |
|
|
|
&& customerOrgGroupEntity.ForSexId != oldPatientRegisterEntity.SexId) |
|
|
|
{ |
|
|
|
|