纽威
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.

363 lines
13 KiB

  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 NFine.Application.SAPCallBackJYHGDVPNCS {
  15. using System.Diagnostics;
  16. using System;
  17. using System.Xml.Serialization;
  18. using System.ComponentModel;
  19. using System.Web.Services.Protocols;
  20. using System.Web.Services;
  21. /// <remarks/>
  22. // CODEGEN: 未处理命名空间“http://schemas.xmlsoap.org/ws/2004/09/policy”中的可选 WSDL 扩展元素“Policy”。
  23. // CODEGEN: 未处理命名空间“http://schemas.xmlsoap.org/ws/2004/08/addressing”中的可选 WSDL 扩展元素“EndpointReference”。
  24. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  25. [System.Diagnostics.DebuggerStepThroughAttribute()]
  26. [System.ComponentModel.DesignerCategoryAttribute("code")]
  27. [System.Web.Services.WebServiceBindingAttribute(Name="ZWMS_SK_WS_RUKU", Namespace="urn:sap-com:document:sap:rfc:functions")]
  28. public partial class ZWMS_SK_WS_RUKU : System.Web.Services.Protocols.SoapHttpClientProtocol {
  29. private System.Threading.SendOrPostCallback CallZWMS_SK_WS_RUKUOperationCompleted;
  30. private bool useDefaultCredentialsSetExplicitly;
  31. /// <remarks/>
  32. public ZWMS_SK_WS_RUKU() {
  33. this.Url = global::NFine.Application.Properties.Settings.Default.NFine_Application_SAPCallBackJYHGDVPNCS_ZWMS_SK_WS_RUKU;
  34. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  35. this.UseDefaultCredentials = true;
  36. this.useDefaultCredentialsSetExplicitly = false;
  37. }
  38. else {
  39. this.useDefaultCredentialsSetExplicitly = true;
  40. }
  41. }
  42. public new string Url {
  43. get {
  44. return base.Url;
  45. }
  46. set {
  47. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  48. && (this.useDefaultCredentialsSetExplicitly == false))
  49. && (this.IsLocalFileSystemWebService(value) == false))) {
  50. base.UseDefaultCredentials = false;
  51. }
  52. base.Url = value;
  53. }
  54. }
  55. public new bool UseDefaultCredentials {
  56. get {
  57. return base.UseDefaultCredentials;
  58. }
  59. set {
  60. base.UseDefaultCredentials = value;
  61. this.useDefaultCredentialsSetExplicitly = true;
  62. }
  63. }
  64. /// <remarks/>
  65. public event CallZWMS_SK_WS_RUKUCompletedEventHandler CallZWMS_SK_WS_RUKUCompleted;
  66. /// <remarks/>
  67. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
  68. [return: System.Xml.Serialization.XmlElementAttribute("ZWMS_SK_WS_RUKUResponse", Namespace="urn:sap-com:document:sap:rfc:functions")]
  69. public ZWMS_SK_WS_RUKUResponse CallZWMS_SK_WS_RUKU([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")] ZWMS_SK_WS_RUKU1 ZWMS_SK_WS_RUKU) {
  70. object[] results = this.Invoke("CallZWMS_SK_WS_RUKU", new object[] {
  71. ZWMS_SK_WS_RUKU});
  72. return ((ZWMS_SK_WS_RUKUResponse)(results[0]));
  73. }
  74. /// <remarks/>
  75. public void CallZWMS_SK_WS_RUKUAsync(ZWMS_SK_WS_RUKU1 ZWMS_SK_WS_RUKU) {
  76. this.CallZWMS_SK_WS_RUKUAsync(ZWMS_SK_WS_RUKU, null);
  77. }
  78. /// <remarks/>
  79. public void CallZWMS_SK_WS_RUKUAsync(ZWMS_SK_WS_RUKU1 ZWMS_SK_WS_RUKU, object userState) {
  80. if ((this.CallZWMS_SK_WS_RUKUOperationCompleted == null)) {
  81. this.CallZWMS_SK_WS_RUKUOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCallZWMS_SK_WS_RUKUOperationCompleted);
  82. }
  83. this.InvokeAsync("CallZWMS_SK_WS_RUKU", new object[] {
  84. ZWMS_SK_WS_RUKU}, this.CallZWMS_SK_WS_RUKUOperationCompleted, userState);
  85. }
  86. private void OnCallZWMS_SK_WS_RUKUOperationCompleted(object arg) {
  87. if ((this.CallZWMS_SK_WS_RUKUCompleted != null)) {
  88. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  89. this.CallZWMS_SK_WS_RUKUCompleted(this, new CallZWMS_SK_WS_RUKUCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  90. }
  91. }
  92. /// <remarks/>
  93. public new void CancelAsync(object userState) {
  94. base.CancelAsync(userState);
  95. }
  96. private bool IsLocalFileSystemWebService(string url) {
  97. if (((url == null)
  98. || (url == string.Empty))) {
  99. return false;
  100. }
  101. System.Uri wsUri = new System.Uri(url);
  102. if (((wsUri.Port >= 1024)
  103. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  104. return true;
  105. }
  106. return false;
  107. }
  108. }
  109. /// <remarks/>
  110. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  111. [System.SerializableAttribute()]
  112. [System.Diagnostics.DebuggerStepThroughAttribute()]
  113. [System.ComponentModel.DesignerCategoryAttribute("code")]
  114. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
  115. public partial class ZWMS_SK_WS_RUKU1 {
  116. private decimal l_LMEField;
  117. private string nEWIDField;
  118. private string pRUEFLOSField;
  119. private string sERNPField;
  120. private ZWEBS_GERNR[] z_GERNRField;
  121. /// <remarks/>
  122. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  123. public decimal L_LME {
  124. get {
  125. return this.l_LMEField;
  126. }
  127. set {
  128. this.l_LMEField = value;
  129. }
  130. }
  131. /// <remarks/>
  132. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  133. public string NEWID {
  134. get {
  135. return this.nEWIDField;
  136. }
  137. set {
  138. this.nEWIDField = value;
  139. }
  140. }
  141. /// <remarks/>
  142. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  143. public string PRUEFLOS {
  144. get {
  145. return this.pRUEFLOSField;
  146. }
  147. set {
  148. this.pRUEFLOSField = value;
  149. }
  150. }
  151. /// <remarks/>
  152. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  153. public string SERNP {
  154. get {
  155. return this.sERNPField;
  156. }
  157. set {
  158. this.sERNPField = value;
  159. }
  160. }
  161. /// <remarks/>
  162. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  163. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  164. public ZWEBS_GERNR[] Z_GERNR {
  165. get {
  166. return this.z_GERNRField;
  167. }
  168. set {
  169. this.z_GERNRField = value;
  170. }
  171. }
  172. }
  173. /// <remarks/>
  174. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  175. [System.SerializableAttribute()]
  176. [System.Diagnostics.DebuggerStepThroughAttribute()]
  177. [System.ComponentModel.DesignerCategoryAttribute("code")]
  178. [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
  179. public partial class ZWEBS_GERNR {
  180. private string mANDTField;
  181. private string dANJUField;
  182. private string pOSNRField;
  183. private int gERNR_KEYField;
  184. private string mATNRField;
  185. private string gERNRField;
  186. /// <remarks/>
  187. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  188. public string MANDT {
  189. get {
  190. return this.mANDTField;
  191. }
  192. set {
  193. this.mANDTField = value;
  194. }
  195. }
  196. /// <remarks/>
  197. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  198. public string DANJU {
  199. get {
  200. return this.dANJUField;
  201. }
  202. set {
  203. this.dANJUField = value;
  204. }
  205. }
  206. /// <remarks/>
  207. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  208. public string POSNR {
  209. get {
  210. return this.pOSNRField;
  211. }
  212. set {
  213. this.pOSNRField = value;
  214. }
  215. }
  216. /// <remarks/>
  217. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  218. public int GERNR_KEY {
  219. get {
  220. return this.gERNR_KEYField;
  221. }
  222. set {
  223. this.gERNR_KEYField = value;
  224. }
  225. }
  226. /// <remarks/>
  227. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  228. public string MATNR {
  229. get {
  230. return this.mATNRField;
  231. }
  232. set {
  233. this.mATNRField = value;
  234. }
  235. }
  236. /// <remarks/>
  237. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  238. public string GERNR {
  239. get {
  240. return this.gERNRField;
  241. }
  242. set {
  243. this.gERNRField = value;
  244. }
  245. }
  246. }
  247. /// <remarks/>
  248. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  249. [System.SerializableAttribute()]
  250. [System.Diagnostics.DebuggerStepThroughAttribute()]
  251. [System.ComponentModel.DesignerCategoryAttribute("code")]
  252. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
  253. public partial class ZWMS_SK_WS_RUKUResponse {
  254. private string l_MESSAGEField;
  255. private ZWEBS_GERNR[] z_GERNRField;
  256. private string z_NULLField;
  257. /// <remarks/>
  258. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  259. public string L_MESSAGE {
  260. get {
  261. return this.l_MESSAGEField;
  262. }
  263. set {
  264. this.l_MESSAGEField = value;
  265. }
  266. }
  267. /// <remarks/>
  268. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  269. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  270. public ZWEBS_GERNR[] Z_GERNR {
  271. get {
  272. return this.z_GERNRField;
  273. }
  274. set {
  275. this.z_GERNRField = value;
  276. }
  277. }
  278. /// <remarks/>
  279. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  280. public string Z_NULL {
  281. get {
  282. return this.z_NULLField;
  283. }
  284. set {
  285. this.z_NULLField = value;
  286. }
  287. }
  288. }
  289. /// <remarks/>
  290. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  291. public delegate void CallZWMS_SK_WS_RUKUCompletedEventHandler(object sender, CallZWMS_SK_WS_RUKUCompletedEventArgs e);
  292. /// <remarks/>
  293. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  294. [System.Diagnostics.DebuggerStepThroughAttribute()]
  295. [System.ComponentModel.DesignerCategoryAttribute("code")]
  296. public partial class CallZWMS_SK_WS_RUKUCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  297. private object[] results;
  298. internal CallZWMS_SK_WS_RUKUCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  299. base(exception, cancelled, userState) {
  300. this.results = results;
  301. }
  302. /// <remarks/>
  303. public ZWMS_SK_WS_RUKUResponse Result {
  304. get {
  305. this.RaiseExceptionIfNecessary();
  306. return ((ZWMS_SK_WS_RUKUResponse)(this.results[0]));
  307. }
  308. }
  309. }
  310. }
  311. #pragma warning restore 1591