|
|
|
@ -28,6 +28,7 @@ namespace Shentun.Peis.Patients |
|
|
|
private readonly IRepository<PrimarykeyBuilder> _primarykeyBuilderRepository; |
|
|
|
private readonly IRepository<Nation> _nationRepository; |
|
|
|
private readonly SysParmValueManager _sysParmValueManager; |
|
|
|
public char IsAllowIdNoSexError { get; set; } = 'N'; |
|
|
|
public PatientManager( |
|
|
|
IRepository<Patient, Guid> repository, |
|
|
|
IRepository<SysParmValue> sysParmValueRepository, |
|
|
|
@ -370,8 +371,9 @@ namespace Shentun.Peis.Patients |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (sexByIdNo[0] != entity.SexId) |
|
|
|
if (sexByIdNo[0] != entity.SexId && IsAllowIdNoSexError == 'N') |
|
|
|
{ |
|
|
|
|
|
|
|
throw new UserFriendlyException("身份证号解析出的性别与填入的性别不一致"); |
|
|
|
} |
|
|
|
} |
|
|
|
|