|
|
|
@ -121,6 +121,13 @@ namespace Shentun.Peis.Schedulers |
|
|
|
var reportApiBaseAddress = interfaceConfig.GetSection("Interface").GetSection("ReportApiBaseAddress").Value; |
|
|
|
var reportApiUrl = interfaceConfig.GetSection("Interface").GetSection("ReportApiUrl").Value; |
|
|
|
|
|
|
|
//是否开启自动导报告
|
|
|
|
var IsSyncReport = interfaceConfig.GetSection("Interface").GetSection("Scheduler") |
|
|
|
.GetSection("IsSyncReport").Value; |
|
|
|
|
|
|
|
//是否开启同步预登记数据
|
|
|
|
var IsSyncPreRegister = interfaceConfig.GetSection("Interface").GetSection("Scheduler") |
|
|
|
.GetSection("IsSyncPreRegister").Value; |
|
|
|
|
|
|
|
SyncPatientRegisterReportInputDto input = new SyncPatientRegisterReportInputDto |
|
|
|
{ |
|
|
|
@ -134,10 +141,12 @@ namespace Shentun.Peis.Schedulers |
|
|
|
object[] classConstructorArg = new object[] { thirdInterfaceDto.Id }; |
|
|
|
object[] objects = [input]; |
|
|
|
|
|
|
|
var pluginsOut = ReflectionHelper.InvokeAsync<List<SyncPatientRegisterIdsDto>>(assemblyName, className, classConstructorArg, funName, objects).Result; |
|
|
|
|
|
|
|
|
|
|
|
#region 同步备单数据
|
|
|
|
|
|
|
|
if (IsSyncPreRegister == "Y") |
|
|
|
{ |
|
|
|
var preRegistrationFunName = "GetSyncPreRegistrationPatientRegisterIds"; |
|
|
|
var preRegistrationPluginsOut = ReflectionHelper.InvokeAsync<List<SyncPatientRegisterIdsDto>>(assemblyName, className, classConstructorArg, preRegistrationFunName, objects).Result; |
|
|
|
|
|
|
|
@ -159,12 +168,15 @@ namespace Shentun.Peis.Schedulers |
|
|
|
Logger.LogError("同步预登记数据成功"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 同步报告
|
|
|
|
if (IsSyncReport == "Y") |
|
|
|
{ |
|
|
|
//需要同步报告的数据
|
|
|
|
var pluginsOut = ReflectionHelper.InvokeAsync<List<SyncPatientRegisterIdsDto>>(assemblyName, className, classConstructorArg, funName, objects).Result; |
|
|
|
if (pluginsOut.Any()) |
|
|
|
{ |
|
|
|
// pluginsOut = pluginsOut.Take(10).ToList();
|
|
|
|
@ -187,7 +199,8 @@ namespace Shentun.Peis.Schedulers |
|
|
|
{ |
|
|
|
Logger.LogError("无数据需要同步"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|