人民医院API

WebServiceHelper.cs 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本:4.0.30319.42000
  5. //
  6. // 对此文件的更改可能会导致不正确的行为,并且如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. //
  11. // 此源代码由 wsdl 自动生成, Version=4.8.3928.0。
  12. //
  13. namespace CHEER.PresentationLayer {
  14. using System;
  15. using System.Web.Services;
  16. using System.Diagnostics;
  17. using System.Web.Services.Protocols;
  18. using System.Xml.Serialization;
  19. using System.ComponentModel;
  20. /// <remarks/>
  21. // CODEGEN: 未处理命名空间“http://www.w3.org/2006/05/addressing/wsdl”中的可选 WSDL 扩展元素“UsingAddressing”。
  22. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  23. [System.Diagnostics.DebuggerStepThroughAttribute()]
  24. [System.ComponentModel.DesignerCategoryAttribute("code")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="HandlePatientSoap11Binding", Namespace="http://www.winning.com.cn")]
  26. public partial class HandlePatient : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27. private System.Threading.SendOrPostCallback ControllerOperationCompleted;
  28. private System.Threading.SendOrPostCallback RegisterPatientOperationCompleted;
  29. private System.Threading.SendOrPostCallback QueryPatientOperationCompleted;
  30. private System.Threading.SendOrPostCallback QueryHospitalsOperationCompleted;
  31. private System.Threading.SendOrPostCallback QueryVisitByIDOperationCompleted;
  32. private System.Threading.SendOrPostCallback QueryPatientVisitByIDOperationCompleted;
  33. /// <remarks/>
  34. public HandlePatient() {
  35. this.Url = "http://172.16.0.177:8081/winempi/HandlePatientHttpSoap11Endpoint";
  36. }
  37. /// <remarks/>
  38. public event ControllerCompletedEventHandler ControllerCompleted;
  39. /// <remarks/>
  40. public event RegisterPatientCompletedEventHandler RegisterPatientCompleted;
  41. /// <remarks/>
  42. public event QueryPatientCompletedEventHandler QueryPatientCompleted;
  43. /// <remarks/>
  44. public event QueryHospitalsCompletedEventHandler QueryHospitalsCompleted;
  45. /// <remarks/>
  46. public event QueryVisitByIDCompletedEventHandler QueryVisitByIDCompleted;
  47. /// <remarks/>
  48. public event QueryPatientVisitByIDCompletedEventHandler QueryPatientVisitByIDCompleted;
  49. /// <remarks/>
  50. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:Controller", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  51. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  52. public string Controller(string action, string inxml) {
  53. object[] results = this.Invoke("Controller", new object[] {
  54. action,
  55. inxml});
  56. return ((string)(results[0]));
  57. }
  58. /// <remarks/>
  59. public System.IAsyncResult BeginController(string action, string inxml, System.AsyncCallback callback, object asyncState) {
  60. return this.BeginInvoke("Controller", new object[] {
  61. action,
  62. inxml}, callback, asyncState);
  63. }
  64. /// <remarks/>
  65. public string EndController(System.IAsyncResult asyncResult) {
  66. object[] results = this.EndInvoke(asyncResult);
  67. return ((string)(results[0]));
  68. }
  69. /// <remarks/>
  70. public void ControllerAsync(string action, string inxml) {
  71. this.ControllerAsync(action, inxml, null);
  72. }
  73. /// <remarks/>
  74. public void ControllerAsync(string action, string inxml, object userState) {
  75. if ((this.ControllerOperationCompleted == null)) {
  76. this.ControllerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnControllerOperationCompleted);
  77. }
  78. this.InvokeAsync("Controller", new object[] {
  79. action,
  80. inxml}, this.ControllerOperationCompleted, userState);
  81. }
  82. private void OnControllerOperationCompleted(object arg) {
  83. if ((this.ControllerCompleted != null)) {
  84. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  85. this.ControllerCompleted(this, new ControllerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  86. }
  87. }
  88. /// <remarks/>
  89. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:RegisterPatient", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  90. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  91. public string RegisterPatient(string inxml) {
  92. object[] results = this.Invoke("RegisterPatient", new object[] {
  93. inxml});
  94. return ((string)(results[0]));
  95. }
  96. /// <remarks/>
  97. public System.IAsyncResult BeginRegisterPatient(string inxml, System.AsyncCallback callback, object asyncState) {
  98. return this.BeginInvoke("RegisterPatient", new object[] {
  99. inxml}, callback, asyncState);
  100. }
  101. /// <remarks/>
  102. public string EndRegisterPatient(System.IAsyncResult asyncResult) {
  103. object[] results = this.EndInvoke(asyncResult);
  104. return ((string)(results[0]));
  105. }
  106. /// <remarks/>
  107. public void RegisterPatientAsync(string inxml) {
  108. this.RegisterPatientAsync(inxml, null);
  109. }
  110. /// <remarks/>
  111. public void RegisterPatientAsync(string inxml, object userState) {
  112. if ((this.RegisterPatientOperationCompleted == null)) {
  113. this.RegisterPatientOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterPatientOperationCompleted);
  114. }
  115. this.InvokeAsync("RegisterPatient", new object[] {
  116. inxml}, this.RegisterPatientOperationCompleted, userState);
  117. }
  118. private void OnRegisterPatientOperationCompleted(object arg) {
  119. if ((this.RegisterPatientCompleted != null)) {
  120. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  121. this.RegisterPatientCompleted(this, new RegisterPatientCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  122. }
  123. }
  124. /// <remarks/>
  125. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:QueryPatient", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  126. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  127. public string QueryPatient(string inxml) {
  128. object[] results = this.Invoke("QueryPatient", new object[] {
  129. inxml});
  130. return ((string)(results[0]));
  131. }
  132. /// <remarks/>
  133. public System.IAsyncResult BeginQueryPatient(string inxml, System.AsyncCallback callback, object asyncState) {
  134. return this.BeginInvoke("QueryPatient", new object[] {
  135. inxml}, callback, asyncState);
  136. }
  137. /// <remarks/>
  138. public string EndQueryPatient(System.IAsyncResult asyncResult) {
  139. object[] results = this.EndInvoke(asyncResult);
  140. return ((string)(results[0]));
  141. }
  142. /// <remarks/>
  143. public void QueryPatientAsync(string inxml) {
  144. this.QueryPatientAsync(inxml, null);
  145. }
  146. /// <remarks/>
  147. public void QueryPatientAsync(string inxml, object userState) {
  148. if ((this.QueryPatientOperationCompleted == null)) {
  149. this.QueryPatientOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQueryPatientOperationCompleted);
  150. }
  151. this.InvokeAsync("QueryPatient", new object[] {
  152. inxml}, this.QueryPatientOperationCompleted, userState);
  153. }
  154. private void OnQueryPatientOperationCompleted(object arg) {
  155. if ((this.QueryPatientCompleted != null)) {
  156. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  157. this.QueryPatientCompleted(this, new QueryPatientCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  158. }
  159. }
  160. /// <remarks/>
  161. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:QueryHospitals", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  162. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  163. public string QueryHospitals(string inxml) {
  164. object[] results = this.Invoke("QueryHospitals", new object[] {
  165. inxml});
  166. return ((string)(results[0]));
  167. }
  168. /// <remarks/>
  169. public System.IAsyncResult BeginQueryHospitals(string inxml, System.AsyncCallback callback, object asyncState) {
  170. return this.BeginInvoke("QueryHospitals", new object[] {
  171. inxml}, callback, asyncState);
  172. }
  173. /// <remarks/>
  174. public string EndQueryHospitals(System.IAsyncResult asyncResult) {
  175. object[] results = this.EndInvoke(asyncResult);
  176. return ((string)(results[0]));
  177. }
  178. /// <remarks/>
  179. public void QueryHospitalsAsync(string inxml) {
  180. this.QueryHospitalsAsync(inxml, null);
  181. }
  182. /// <remarks/>
  183. public void QueryHospitalsAsync(string inxml, object userState) {
  184. if ((this.QueryHospitalsOperationCompleted == null)) {
  185. this.QueryHospitalsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQueryHospitalsOperationCompleted);
  186. }
  187. this.InvokeAsync("QueryHospitals", new object[] {
  188. inxml}, this.QueryHospitalsOperationCompleted, userState);
  189. }
  190. private void OnQueryHospitalsOperationCompleted(object arg) {
  191. if ((this.QueryHospitalsCompleted != null)) {
  192. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  193. this.QueryHospitalsCompleted(this, new QueryHospitalsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  194. }
  195. }
  196. /// <remarks/>
  197. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:QueryVisitByID", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  198. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  199. public string QueryVisitByID(string inxml) {
  200. object[] results = this.Invoke("QueryVisitByID", new object[] {
  201. inxml});
  202. return ((string)(results[0]));
  203. }
  204. /// <remarks/>
  205. public System.IAsyncResult BeginQueryVisitByID(string inxml, System.AsyncCallback callback, object asyncState) {
  206. return this.BeginInvoke("QueryVisitByID", new object[] {
  207. inxml}, callback, asyncState);
  208. }
  209. /// <remarks/>
  210. public string EndQueryVisitByID(System.IAsyncResult asyncResult) {
  211. object[] results = this.EndInvoke(asyncResult);
  212. return ((string)(results[0]));
  213. }
  214. /// <remarks/>
  215. public void QueryVisitByIDAsync(string inxml) {
  216. this.QueryVisitByIDAsync(inxml, null);
  217. }
  218. /// <remarks/>
  219. public void QueryVisitByIDAsync(string inxml, object userState) {
  220. if ((this.QueryVisitByIDOperationCompleted == null)) {
  221. this.QueryVisitByIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQueryVisitByIDOperationCompleted);
  222. }
  223. this.InvokeAsync("QueryVisitByID", new object[] {
  224. inxml}, this.QueryVisitByIDOperationCompleted, userState);
  225. }
  226. private void OnQueryVisitByIDOperationCompleted(object arg) {
  227. if ((this.QueryVisitByIDCompleted != null)) {
  228. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  229. this.QueryVisitByIDCompleted(this, new QueryVisitByIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  230. }
  231. }
  232. /// <remarks/>
  233. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:QueryPatientVisitByID", RequestNamespace="http://www.winning.com.cn", ResponseNamespace="http://www.winning.com.cn", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  234. [return: System.Xml.Serialization.XmlElementAttribute("outxml")]
  235. public string QueryPatientVisitByID(string inxml) {
  236. object[] results = this.Invoke("QueryPatientVisitByID", new object[] {
  237. inxml});
  238. return ((string)(results[0]));
  239. }
  240. /// <remarks/>
  241. public System.IAsyncResult BeginQueryPatientVisitByID(string inxml, System.AsyncCallback callback, object asyncState) {
  242. return this.BeginInvoke("QueryPatientVisitByID", new object[] {
  243. inxml}, callback, asyncState);
  244. }
  245. /// <remarks/>
  246. public string EndQueryPatientVisitByID(System.IAsyncResult asyncResult) {
  247. object[] results = this.EndInvoke(asyncResult);
  248. return ((string)(results[0]));
  249. }
  250. /// <remarks/>
  251. public void QueryPatientVisitByIDAsync(string inxml) {
  252. this.QueryPatientVisitByIDAsync(inxml, null);
  253. }
  254. /// <remarks/>
  255. public void QueryPatientVisitByIDAsync(string inxml, object userState) {
  256. if ((this.QueryPatientVisitByIDOperationCompleted == null)) {
  257. this.QueryPatientVisitByIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQueryPatientVisitByIDOperationCompleted);
  258. }
  259. this.InvokeAsync("QueryPatientVisitByID", new object[] {
  260. inxml}, this.QueryPatientVisitByIDOperationCompleted, userState);
  261. }
  262. private void OnQueryPatientVisitByIDOperationCompleted(object arg) {
  263. if ((this.QueryPatientVisitByIDCompleted != null)) {
  264. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  265. this.QueryPatientVisitByIDCompleted(this, new QueryPatientVisitByIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  266. }
  267. }
  268. /// <remarks/>
  269. public new void CancelAsync(object userState) {
  270. base.CancelAsync(userState);
  271. }
  272. }
  273. /// <remarks/>
  274. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  275. public delegate void ControllerCompletedEventHandler(object sender, ControllerCompletedEventArgs e);
  276. /// <remarks/>
  277. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  278. [System.Diagnostics.DebuggerStepThroughAttribute()]
  279. [System.ComponentModel.DesignerCategoryAttribute("code")]
  280. public partial class ControllerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  281. private object[] results;
  282. internal ControllerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  283. base(exception, cancelled, userState) {
  284. this.results = results;
  285. }
  286. /// <remarks/>
  287. public string Result {
  288. get {
  289. this.RaiseExceptionIfNecessary();
  290. return ((string)(this.results[0]));
  291. }
  292. }
  293. }
  294. /// <remarks/>
  295. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  296. public delegate void RegisterPatientCompletedEventHandler(object sender, RegisterPatientCompletedEventArgs e);
  297. /// <remarks/>
  298. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  299. [System.Diagnostics.DebuggerStepThroughAttribute()]
  300. [System.ComponentModel.DesignerCategoryAttribute("code")]
  301. public partial class RegisterPatientCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  302. private object[] results;
  303. internal RegisterPatientCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  304. base(exception, cancelled, userState) {
  305. this.results = results;
  306. }
  307. /// <remarks/>
  308. public string Result {
  309. get {
  310. this.RaiseExceptionIfNecessary();
  311. return ((string)(this.results[0]));
  312. }
  313. }
  314. }
  315. /// <remarks/>
  316. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  317. public delegate void QueryPatientCompletedEventHandler(object sender, QueryPatientCompletedEventArgs e);
  318. /// <remarks/>
  319. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  320. [System.Diagnostics.DebuggerStepThroughAttribute()]
  321. [System.ComponentModel.DesignerCategoryAttribute("code")]
  322. public partial class QueryPatientCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  323. private object[] results;
  324. internal QueryPatientCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  325. base(exception, cancelled, userState) {
  326. this.results = results;
  327. }
  328. /// <remarks/>
  329. public string Result {
  330. get {
  331. this.RaiseExceptionIfNecessary();
  332. return ((string)(this.results[0]));
  333. }
  334. }
  335. }
  336. /// <remarks/>
  337. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  338. public delegate void QueryHospitalsCompletedEventHandler(object sender, QueryHospitalsCompletedEventArgs e);
  339. /// <remarks/>
  340. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  341. [System.Diagnostics.DebuggerStepThroughAttribute()]
  342. [System.ComponentModel.DesignerCategoryAttribute("code")]
  343. public partial class QueryHospitalsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  344. private object[] results;
  345. internal QueryHospitalsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  346. base(exception, cancelled, userState) {
  347. this.results = results;
  348. }
  349. /// <remarks/>
  350. public string Result {
  351. get {
  352. this.RaiseExceptionIfNecessary();
  353. return ((string)(this.results[0]));
  354. }
  355. }
  356. }
  357. /// <remarks/>
  358. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  359. public delegate void QueryVisitByIDCompletedEventHandler(object sender, QueryVisitByIDCompletedEventArgs e);
  360. /// <remarks/>
  361. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  362. [System.Diagnostics.DebuggerStepThroughAttribute()]
  363. [System.ComponentModel.DesignerCategoryAttribute("code")]
  364. public partial class QueryVisitByIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  365. private object[] results;
  366. internal QueryVisitByIDCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  367. base(exception, cancelled, userState) {
  368. this.results = results;
  369. }
  370. /// <remarks/>
  371. public string Result {
  372. get {
  373. this.RaiseExceptionIfNecessary();
  374. return ((string)(this.results[0]));
  375. }
  376. }
  377. }
  378. /// <remarks/>
  379. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  380. public delegate void QueryPatientVisitByIDCompletedEventHandler(object sender, QueryPatientVisitByIDCompletedEventArgs e);
  381. /// <remarks/>
  382. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")]
  383. [System.Diagnostics.DebuggerStepThroughAttribute()]
  384. [System.ComponentModel.DesignerCategoryAttribute("code")]
  385. public partial class QueryPatientVisitByIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  386. private object[] results;
  387. internal QueryPatientVisitByIDCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  388. base(exception, cancelled, userState) {
  389. this.results = results;
  390. }
  391. /// <remarks/>
  392. public string Result {
  393. get {
  394. this.RaiseExceptionIfNecessary();
  395. return ((string)(this.results[0]));
  396. }
  397. }
  398. }
  399. }