|
|
@ -50,8 +50,11 @@ namespace Shentun.Peis.PlugIns.Gem |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//设置导入人员信息
|
|
|
//设置导入人员信息
|
|
|
foreach (var patient in qztlPatientRegisterFromInterface.plans) |
|
|
foreach (var patient in qztlPatientRegisterFromInterface.plans) |
|
|
|
|
|
{ |
|
|
|
|
|
try |
|
|
{ |
|
|
{ |
|
|
//婚姻状况
|
|
|
//婚姻状况
|
|
|
var maritalStatusId = ConvertMaritalStatus(patient.wedding); |
|
|
var maritalStatusId = ConvertMaritalStatus(patient.wedding); |
|
|
@ -272,6 +275,25 @@ namespace Shentun.Peis.PlugIns.Gem |
|
|
await NoteOk(succesIds, deleteIds); |
|
|
await NoteOk(succesIds, deleteIds); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
if (ex.Message.Contains("人员信息姓名和性别和原来的信息都不一致") || |
|
|
|
|
|
ex.Message.Contains("身份证号解析出的性别与填入的性别不一致")) |
|
|
|
|
|
{ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
throw ex; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -379,7 +401,10 @@ namespace Shentun.Peis.PlugIns.Gem |
|
|
result = await response.Content.ReadAsStringAsync(); |
|
|
result = await response.Content.ReadAsStringAsync(); |
|
|
|
|
|
|
|
|
result = result.Replace(":\"[{", ":[{").Replace("}]\"", "}]").Replace("\\", ""); |
|
|
result = result.Replace(":\"[{", ":[{").Replace("}]\"", "}]").Replace("\\", ""); |
|
|
|
|
|
|
|
|
|
|
|
if(result.IndexOf("status") < 0) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new Exception($"调用WebApi中无status,返回值:" + result); |
|
|
|
|
|
} |
|
|
QztlPatientRegisterFromInterface? resultDto = JsonConvert.DeserializeObject<QztlPatientRegisterFromInterface>(result); |
|
|
QztlPatientRegisterFromInterface? resultDto = JsonConvert.DeserializeObject<QztlPatientRegisterFromInterface>(result); |
|
|
if (resultDto != null) |
|
|
if (resultDto != null) |
|
|
{ |
|
|
{ |
|
|
|