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 Dapper;using Npgsql;using System;using System.Collections.Generic;using System.Data.Common;using System.Linq;using System.Text;using System.Threading.Tasks;
namespace Shentun.Peis.PlugIns{ public class LisResultImportPlugInsBase : ThirdPlugInsBase { protected Guid ItemColumnReferenceId; protected string AppLisUser; protected string AppLisPassword; public LisResultImportPlugInsBase(string parmValue) : base(parmValue) { var itemColumnReferenceIdStr = InterfaceConfig.GetSection("Interface").GetSection("ItemColumnReferenceId").Value; if (!string.IsNullOrWhiteSpace(itemColumnReferenceIdStr)) { ItemColumnReferenceId = new Guid(itemColumnReferenceIdStr); } AppLisUser = AppConfig.GetSection("App") .GetSection("LisUser").Value; AppLisPassword = AppConfig.GetSection("App") .GetSection("LisPassword").Value; } public virtual async Task<LisResultImportPlugInsOut> ImportResultAsync(LisResultImportPlugInsInput input) { var result = new LisResultImportPlugInsOut(); return result; }
public async Task<List<LisRequestForResultImportPlugIns>> GetLisRequestForResultImportPlugInssAsync(Guid patientRegisterId) { using (DbConnection conn = new NpgsqlConnection(AppConnctionStr)) { string sql; sql = @"
SELECT distinct lis_request.id , lis_request.lis_request_no from patient_register JOIN register_check on patient_register.id = register_check.patient_register_id JOIN register_check_asbitem on register_check.id = register_check_asbitem.register_check_id JOIN lis_request on register_check_asbitem.lis_request_id = lis_request.id where patient_register.id = @PatientRegisterId ";
var lisRequestForResultImportPlugInss = (await conn.QueryAsync<LisRequestForResultImportPlugIns>(sql, new { PatientRegisterId = patientRegisterId })).ToList(); return lisRequestForResultImportPlugInss; } }
protected async Task<LoginOutDto> LoginAsync() { var relult = await LoginAsync(AppLisUser, AppLisPassword); return relult; } }}
|