From 41be5599f8a61dbefd2bec63a0cca829000d5df6 Mon Sep 17 00:00:00 2001
From: wxd <123@qq.com>
Date: Fri, 30 Jan 2026 11:01:08 +0800
Subject: [PATCH] 013001
---
.../ConnectedService.json | 15 ++
.../ServiceReferenceYinHai/Reference.cs | 218 ++++++++++++++++++
.../YinHai/LisRequestPlugInsYinHai.cs | 44 ++++
3 files changed, 277 insertions(+)
create mode 100644 ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/ConnectedService.json
create mode 100644 ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/Reference.cs
create mode 100644 ThirdPlugIns/Shentun.Peis.PlugIns.Gem/LisRequests/YinHai/LisRequestPlugInsYinHai.cs
diff --git a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/ConnectedService.json b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/ConnectedService.json
new file mode 100644
index 00000000..716d427a
--- /dev/null
+++ b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/ConnectedService.json
@@ -0,0 +1,15 @@
+{
+ "providerId": "Microsoft.Tools.ServiceModel.Svcutil",
+ "version": "2.0.3",
+ "options": {
+ "inputs": [
+ "http://192.168.1.194:8080/jcdsbws/proxy/lis_server?wsdl"
+ ],
+ "namespaceMappings": [
+ "*, ServiceReference"
+ ],
+ "outputFile": "Reference.cs",
+ "targetFramework": "net6.0",
+ "typeReuseMode": "All"
+ }
+}
\ No newline at end of file
diff --git a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/Reference.cs b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/Reference.cs
new file mode 100644
index 00000000..3be05dd4
--- /dev/null
+++ b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/Connected Services/ServiceReferenceYinHai/Reference.cs
@@ -0,0 +1,218 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
+// 代码重新生成。
+//
+//------------------------------------------------------------------------------
+
+namespace ServiceReferenceYinHai
+{
+
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ [System.ServiceModel.ServiceContractAttribute(Namespace="http://esb.webservice", ConfigurationName="ServiceReferenceYinHai.WebService")]
+ public interface WebService
+ {
+
+ [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
+ [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
+ System.Threading.Tasks.Task callBussinessAsync(ServiceReferenceYinHai.callBussiness request);
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://esb.webservice")]
+ public partial class soapResponse
+ {
+
+ private string msgField;
+
+ private string status_codeField;
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
+ public string msg
+ {
+ get
+ {
+ return this.msgField;
+ }
+ set
+ {
+ this.msgField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
+ public string status_code
+ {
+ get
+ {
+ return this.status_codeField;
+ }
+ set
+ {
+ this.status_codeField = value;
+ }
+ }
+ }
+
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
+ [System.ServiceModel.MessageContractAttribute(WrapperName="callBussiness", WrapperNamespace="http://esb.webservice", IsWrapped=true)]
+ public partial class callBussiness
+ {
+
+ [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://esb.webservice", Order=0)]
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string message;
+
+ public callBussiness()
+ {
+ }
+
+ public callBussiness(string message)
+ {
+ this.message = message;
+ }
+ }
+
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
+ [System.ServiceModel.MessageContractAttribute(WrapperName="callBussinessResponse", WrapperNamespace="http://esb.webservice", IsWrapped=true)]
+ public partial class callBussinessResponse
+ {
+
+ [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://esb.webservice", Order=0)]
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public ServiceReferenceYinHai.soapResponse data;
+
+ public callBussinessResponse()
+ {
+ }
+
+ public callBussinessResponse(ServiceReferenceYinHai.soapResponse data)
+ {
+ this.data = data;
+ }
+ }
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ public interface WebServiceChannel : ServiceReferenceYinHai.WebService, System.ServiceModel.IClientChannel
+ {
+ }
+
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
+ public partial class WebServiceClient : System.ServiceModel.ClientBase, ServiceReferenceYinHai.WebService
+ {
+
+ ///
+ /// 实现此分部方法,配置服务终结点。
+ ///
+ /// 要配置的终结点
+ /// 客户端凭据
+ static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
+
+ public WebServiceClient() :
+ base(WebServiceClient.GetDefaultBinding(), WebServiceClient.GetDefaultEndpointAddress())
+ {
+ this.Endpoint.Name = EndpointConfiguration.WebServicePort.ToString();
+ ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
+ }
+
+ public WebServiceClient(EndpointConfiguration endpointConfiguration) :
+ base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), WebServiceClient.GetEndpointAddress(endpointConfiguration))
+ {
+ this.Endpoint.Name = endpointConfiguration.ToString();
+ ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
+ }
+
+ public WebServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
+ base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
+ {
+ this.Endpoint.Name = endpointConfiguration.ToString();
+ ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
+ }
+
+ public WebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
+ base(WebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
+ {
+ this.Endpoint.Name = endpointConfiguration.ToString();
+ ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
+ }
+
+ public WebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
+ base(binding, remoteAddress)
+ {
+ }
+
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
+ System.Threading.Tasks.Task ServiceReferenceYinHai.WebService.callBussinessAsync(ServiceReferenceYinHai.callBussiness request)
+ {
+ return base.Channel.callBussinessAsync(request);
+ }
+
+ public System.Threading.Tasks.Task callBussinessAsync(string message)
+ {
+ ServiceReferenceYinHai.callBussiness inValue = new ServiceReferenceYinHai.callBussiness();
+ inValue.message = message;
+ return ((ServiceReferenceYinHai.WebService)(this)).callBussinessAsync(inValue);
+ }
+
+ public virtual System.Threading.Tasks.Task OpenAsync()
+ {
+ return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
+ }
+
+ public virtual System.Threading.Tasks.Task CloseAsync()
+ {
+ return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
+ }
+
+ private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
+ {
+ if ((endpointConfiguration == EndpointConfiguration.WebServicePort))
+ {
+ System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
+ result.MaxBufferSize = int.MaxValue;
+ result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
+ result.MaxReceivedMessageSize = int.MaxValue;
+ result.AllowCookies = true;
+ return result;
+ }
+ throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
+ }
+
+ private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
+ {
+ if ((endpointConfiguration == EndpointConfiguration.WebServicePort))
+ {
+ return new System.ServiceModel.EndpointAddress("http://192.168.1.194:8080/jcdsbws/proxy/lis_server");
+ }
+ throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
+ }
+
+ private static System.ServiceModel.Channels.Binding GetDefaultBinding()
+ {
+ return WebServiceClient.GetBindingForEndpoint(EndpointConfiguration.WebServicePort);
+ }
+
+ private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
+ {
+ return WebServiceClient.GetEndpointAddress(EndpointConfiguration.WebServicePort);
+ }
+
+ public enum EndpointConfiguration
+ {
+
+ WebServicePort,
+ }
+ }
+}
diff --git a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/LisRequests/YinHai/LisRequestPlugInsYinHai.cs b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/LisRequests/YinHai/LisRequestPlugInsYinHai.cs
new file mode 100644
index 00000000..9513071a
--- /dev/null
+++ b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/LisRequests/YinHai/LisRequestPlugInsYinHai.cs
@@ -0,0 +1,44 @@
+using Dapper;
+using Npgsql;
+using NPOI.SS.Formula.Functions;
+using ServiceReferenceDianLisResult;
+using ServiceReferenceYinHai;
+using Shentun.Peis.ImportLisResults;
+using Shentun.Peis.PlugIns.Extensions.ImportLisResults.Dian;
+using Shentun.Peis.PlugIns.ImportLisResults;
+using Shentun.Peis.PlugIns.LisRequests;
+using Shentun.Peis.PrintReports;
+using Shentun.Peis.RegisterCheckPictures;
+using System;
+using System.Collections.Generic;
+using System.Data.Common;
+using System.Linq;
+using System.ServiceModel;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Shentun.Peis.PlugIns.Extensions.LisRequests.Hzcy
+{
+ public class LisRequestPlugInsYinHai
+ {
+ public LisRequestPlugInsYinHai()
+ {
+
+ }
+
+ public async Task Testssss(Guid patientRegisterId)
+ {
+ string lisResultAddress = "";
+ using (var client = CreateClient(lisResultAddress))
+ {
+ await client.callBussinessAsync("");
+ }
+ }
+
+ private WebServiceClient CreateClient(string url)
+ {
+ return new WebServiceClient(new BasicHttpBinding(),
+ new EndpointAddress(url));
+ }
+ }
+}