You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using Shentun.Peis.PatientRegisters;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;
namespace Shentun.Peis.PlugIns.PatientRegisters{ public class ImportPatientRegisterPlugInsBase : ThirdPlugInsBase { protected Guid CustomerOrgRegisterId; public ImportPatientRegisterPlugInsBase(Guid thirdInterfaceId) : base(thirdInterfaceId) {
} public ImportPatientRegisterPlugInsBase(string parmValue) : base(parmValue) { }
public virtual async Task<ImportPatientRegisterByCustomerOrgRegisterIdDto> ImportPatientRegisterByCustomerOrgRegisterIdAsync(Guid customerOrgRegisterId) { throw new NotImplementedException(); } public override Task DoWork() { //var loginResult = LoginAsync().Result;
var queryDaysStr = InterfaceConfig.GetSection("Interface").GetSection("Scheduler").GetSection("QueryDays").Value; var customerOrgRegisterIdStr = InterfaceConfig.GetSection("Interface").GetSection("CustomerOrgRegisterId").Value; if(!Guid.TryParse(customerOrgRegisterIdStr, out CustomerOrgRegisterId)) { return Task.CompletedTask; }
if (string.IsNullOrWhiteSpace(queryDaysStr)) { queryDaysStr = "1"; } if (!int.TryParse(queryDaysStr, out int days)) { days = 1; } try { var result = ImportPatientRegisterByCustomerOrgRegisterIdAsync(CustomerOrgRegisterId).Result; } catch (Exception ex) {
} return Task.CompletedTask; } }}
|