Reference.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本:4.0.30319.42000
  5. //
  6. // 对此文件的更改可能会导致不正确的行为,并且如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. //
  11. // 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
  12. //
  13. #pragma warning disable 1591
  14. namespace SIMDP.BLL.AS400Service {
  15. using System;
  16. using System.Web.Services;
  17. using System.Diagnostics;
  18. using System.Web.Services.Protocols;
  19. using System.Xml.Serialization;
  20. using System.ComponentModel;
  21. /// <remarks/>
  22. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  23. [System.Diagnostics.DebuggerStepThroughAttribute()]
  24. [System.ComponentModel.DesignerCategoryAttribute("code")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="GETMAINRServicesPortBinding", Namespace="http://getmainr.wsbeans.iseries/xsd")]
  26. public partial class GETMAINR : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27. private System.Threading.SendOrPostCallback mainOperationCompleted;
  28. private bool useDefaultCredentialsSetExplicitly;
  29. /// <remarks/>
  30. public GETMAINR() {
  31. this.Url = global::SIMDP.BLL.Properties.Settings.Default.SIMDP_BLL_AS400Service_GETMAINR;
  32. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  33. this.UseDefaultCredentials = true;
  34. this.useDefaultCredentialsSetExplicitly = false;
  35. }
  36. else {
  37. this.useDefaultCredentialsSetExplicitly = true;
  38. }
  39. }
  40. public new string Url {
  41. get {
  42. return base.Url;
  43. }
  44. set {
  45. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  46. && (this.useDefaultCredentialsSetExplicitly == false))
  47. && (this.IsLocalFileSystemWebService(value) == false))) {
  48. base.UseDefaultCredentials = false;
  49. }
  50. base.Url = value;
  51. }
  52. }
  53. public new bool UseDefaultCredentials {
  54. get {
  55. return base.UseDefaultCredentials;
  56. }
  57. set {
  58. base.UseDefaultCredentials = value;
  59. this.useDefaultCredentialsSetExplicitly = true;
  60. }
  61. }
  62. /// <remarks/>
  63. public event mainCompletedEventHandler mainCompleted;
  64. /// <remarks/>
  65. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:main", RequestNamespace="http://getmainr.wsbeans.iseries/xsd", ResponseNamespace="http://getmainr.wsbeans.iseries/xsd", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  66. [return: System.Xml.Serialization.XmlElementAttribute("return")]
  67. public mainResult main(mainInput args0) {
  68. object[] results = this.Invoke("main", new object[] {
  69. args0});
  70. return ((mainResult)(results[0]));
  71. }
  72. /// <remarks/>
  73. public void mainAsync(mainInput args0) {
  74. this.mainAsync(args0, null);
  75. }
  76. /// <remarks/>
  77. public void mainAsync(mainInput args0, object userState) {
  78. if ((this.mainOperationCompleted == null)) {
  79. this.mainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnmainOperationCompleted);
  80. }
  81. this.InvokeAsync("main", new object[] {
  82. args0}, this.mainOperationCompleted, userState);
  83. }
  84. private void OnmainOperationCompleted(object arg) {
  85. if ((this.mainCompleted != null)) {
  86. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  87. this.mainCompleted(this, new mainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  88. }
  89. }
  90. /// <remarks/>
  91. public new void CancelAsync(object userState) {
  92. base.CancelAsync(userState);
  93. }
  94. private bool IsLocalFileSystemWebService(string url) {
  95. if (((url == null)
  96. || (url == string.Empty))) {
  97. return false;
  98. }
  99. System.Uri wsUri = new System.Uri(url);
  100. if (((wsUri.Port >= 1024)
  101. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  102. return true;
  103. }
  104. return false;
  105. }
  106. }
  107. /// <remarks/>
  108. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  109. [System.SerializableAttribute()]
  110. [System.Diagnostics.DebuggerStepThroughAttribute()]
  111. [System.ComponentModel.DesignerCategoryAttribute("code")]
  112. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://getmainr.wsbeans.iseries/xsd")]
  113. public partial class mainInput {
  114. private string pI_LINEField;
  115. private string pI_NOField;
  116. private string pI_TYPEField;
  117. /// <remarks/>
  118. public string PI_LINE {
  119. get {
  120. return this.pI_LINEField;
  121. }
  122. set {
  123. this.pI_LINEField = value;
  124. }
  125. }
  126. /// <remarks/>
  127. public string PI_NO {
  128. get {
  129. return this.pI_NOField;
  130. }
  131. set {
  132. this.pI_NOField = value;
  133. }
  134. }
  135. /// <remarks/>
  136. public string PI_TYPE {
  137. get {
  138. return this.pI_TYPEField;
  139. }
  140. set {
  141. this.pI_TYPEField = value;
  142. }
  143. }
  144. }
  145. /// <remarks/>
  146. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  147. [System.SerializableAttribute()]
  148. [System.Diagnostics.DebuggerStepThroughAttribute()]
  149. [System.ComponentModel.DesignerCategoryAttribute("code")]
  150. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://getmainr.wsbeans.iseries/xsd")]
  151. public partial class mainResult {
  152. private string pI_LINEField;
  153. private string[] pI_LISTField;
  154. private string pI_NOField;
  155. private string pI_TYPEField;
  156. /// <remarks/>
  157. public string PI_LINE {
  158. get {
  159. return this.pI_LINEField;
  160. }
  161. set {
  162. this.pI_LINEField = value;
  163. }
  164. }
  165. /// <remarks/>
  166. [System.Xml.Serialization.XmlElementAttribute("PI_LIST")]
  167. public string[] PI_LIST {
  168. get {
  169. return this.pI_LISTField;
  170. }
  171. set {
  172. this.pI_LISTField = value;
  173. }
  174. }
  175. /// <remarks/>
  176. public string PI_NO {
  177. get {
  178. return this.pI_NOField;
  179. }
  180. set {
  181. this.pI_NOField = value;
  182. }
  183. }
  184. /// <remarks/>
  185. public string PI_TYPE {
  186. get {
  187. return this.pI_TYPEField;
  188. }
  189. set {
  190. this.pI_TYPEField = value;
  191. }
  192. }
  193. }
  194. /// <remarks/>
  195. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  196. public delegate void mainCompletedEventHandler(object sender, mainCompletedEventArgs e);
  197. /// <remarks/>
  198. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  199. [System.Diagnostics.DebuggerStepThroughAttribute()]
  200. [System.ComponentModel.DesignerCategoryAttribute("code")]
  201. public partial class mainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  202. private object[] results;
  203. internal mainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  204. base(exception, cancelled, userState) {
  205. this.results = results;
  206. }
  207. /// <remarks/>
  208. public mainResult Result {
  209. get {
  210. this.RaiseExceptionIfNecessary();
  211. return ((mainResult)(this.results[0]));
  212. }
  213. }
  214. }
  215. }
  216. #pragma warning restore 1591