|
|
|
@ -5,6 +5,7 @@ using NUglify.JavaScript.Syntax; |
|
|
|
using Shentun.Peis.AppointRegisterAsbitems; |
|
|
|
using Shentun.Peis.Enums; |
|
|
|
using Shentun.Peis.Models; |
|
|
|
using Shentun.Peis.PatientRegisters; |
|
|
|
using Shentun.Peis.PlugIns; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
@ -66,6 +67,12 @@ namespace Shentun.Peis.AppointPatientRegisters |
|
|
|
return pluginsOut; |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 获取预约组合项目通过预约ID
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <exception cref="UserFriendlyException"></exception>
|
|
|
|
[HttpPost("api/app/AppointPatientRegister/GetAppointRegisterAsbitemListById")] |
|
|
|
public async Task<List<AppointRegisterAsbitemDto>> GetAppointRegisterAsbitemListByIdAsync(AppointPatientRegisterIdInputDto input) |
|
|
|
{ |
|
|
|
@ -88,5 +95,33 @@ namespace Shentun.Peis.AppointPatientRegisters |
|
|
|
return pluginsOut; |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 获取预约人员信息通过人员登记ID
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <exception cref="UserFriendlyException"></exception>
|
|
|
|
[HttpPost("api/app/AppointPatientRegister/GetByPatientRegisterId")] |
|
|
|
public async Task<AppointPatientRegisterDto> GetByPatientRegisterIdAsync(AppointPatientRegisterIdInputDto input) |
|
|
|
{ |
|
|
|
var thirdInterface = await _thirdInterfaceRepository.GetAsync(input.ThirdInterFaceId); |
|
|
|
if (thirdInterface.IsActive != 'Y') |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("该接口已禁用"); |
|
|
|
} |
|
|
|
|
|
|
|
object[] objects = [input]; |
|
|
|
var parmValue = thirdInterface.ParmValue; |
|
|
|
var configurationBuilder = new ConfigurationBuilder() |
|
|
|
.AddJsonStream(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(parmValue))); |
|
|
|
var config = configurationBuilder.Build(); |
|
|
|
var assemblyName = config.GetSection("Interface").GetSection("AssemblyName").Value; |
|
|
|
var className = config.GetSection("Interface").GetSection("ClassName").Value; |
|
|
|
|
|
|
|
var pluginsOut = await Utilities.ReflectionHelper.InvokeAsync<AppointPatientRegisterDto>(assemblyName, |
|
|
|
className, [thirdInterface.Id], "GetByPatientRegisterIdAsync", objects); |
|
|
|
return pluginsOut; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |