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

376 lines
14 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  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.SAPCallBackJYHGDVPN {
  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. // 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.9037.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_SAPCallBackJYHGDVPN_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.9037.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 string lGORTField;
  117. private decimal l_LMEField;
  118. private string nEWIDField;
  119. private string pRUEFLOSField;
  120. private string sERNPField;
  121. private ZWEBS_GERNR[] z_GERNRField;
  122. /// <remarks/>
  123. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  124. public string LGORT {
  125. get {
  126. return this.lGORTField;
  127. }
  128. set {
  129. this.lGORTField = value;
  130. }
  131. }
  132. /// <remarks/>
  133. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  134. public decimal L_LME {
  135. get {
  136. return this.l_LMEField;
  137. }
  138. set {
  139. this.l_LMEField = value;
  140. }
  141. }
  142. /// <remarks/>
  143. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  144. public string NEWID {
  145. get {
  146. return this.nEWIDField;
  147. }
  148. set {
  149. this.nEWIDField = value;
  150. }
  151. }
  152. /// <remarks/>
  153. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  154. public string PRUEFLOS {
  155. get {
  156. return this.pRUEFLOSField;
  157. }
  158. set {
  159. this.pRUEFLOSField = value;
  160. }
  161. }
  162. /// <remarks/>
  163. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  164. public string SERNP {
  165. get {
  166. return this.sERNPField;
  167. }
  168. set {
  169. this.sERNPField = value;
  170. }
  171. }
  172. /// <remarks/>
  173. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  174. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  175. public ZWEBS_GERNR[] Z_GERNR {
  176. get {
  177. return this.z_GERNRField;
  178. }
  179. set {
  180. this.z_GERNRField = value;
  181. }
  182. }
  183. }
  184. /// <remarks/>
  185. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9037.0")]
  186. [System.SerializableAttribute()]
  187. [System.Diagnostics.DebuggerStepThroughAttribute()]
  188. [System.ComponentModel.DesignerCategoryAttribute("code")]
  189. [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
  190. public partial class ZWEBS_GERNR {
  191. private string mANDTField;
  192. private string dANJUField;
  193. private string pOSNRField;
  194. private int gERNR_KEYField;
  195. private string mATNRField;
  196. private string gERNRField;
  197. /// <remarks/>
  198. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  199. public string MANDT {
  200. get {
  201. return this.mANDTField;
  202. }
  203. set {
  204. this.mANDTField = value;
  205. }
  206. }
  207. /// <remarks/>
  208. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  209. public string DANJU {
  210. get {
  211. return this.dANJUField;
  212. }
  213. set {
  214. this.dANJUField = value;
  215. }
  216. }
  217. /// <remarks/>
  218. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  219. public string POSNR {
  220. get {
  221. return this.pOSNRField;
  222. }
  223. set {
  224. this.pOSNRField = value;
  225. }
  226. }
  227. /// <remarks/>
  228. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  229. public int GERNR_KEY {
  230. get {
  231. return this.gERNR_KEYField;
  232. }
  233. set {
  234. this.gERNR_KEYField = value;
  235. }
  236. }
  237. /// <remarks/>
  238. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  239. public string MATNR {
  240. get {
  241. return this.mATNRField;
  242. }
  243. set {
  244. this.mATNRField = value;
  245. }
  246. }
  247. /// <remarks/>
  248. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  249. public string GERNR {
  250. get {
  251. return this.gERNRField;
  252. }
  253. set {
  254. this.gERNRField = value;
  255. }
  256. }
  257. }
  258. /// <remarks/>
  259. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9037.0")]
  260. [System.SerializableAttribute()]
  261. [System.Diagnostics.DebuggerStepThroughAttribute()]
  262. [System.ComponentModel.DesignerCategoryAttribute("code")]
  263. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
  264. public partial class ZWMS_SK_WS_RUKUResponse {
  265. private string l_MESSAGEField;
  266. private ZWEBS_GERNR[] z_GERNRField;
  267. private string z_NULLField;
  268. /// <remarks/>
  269. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  270. public string L_MESSAGE {
  271. get {
  272. return this.l_MESSAGEField;
  273. }
  274. set {
  275. this.l_MESSAGEField = value;
  276. }
  277. }
  278. /// <remarks/>
  279. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  280. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  281. public ZWEBS_GERNR[] Z_GERNR {
  282. get {
  283. return this.z_GERNRField;
  284. }
  285. set {
  286. this.z_GERNRField = value;
  287. }
  288. }
  289. /// <remarks/>
  290. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  291. public string Z_NULL {
  292. get {
  293. return this.z_NULLField;
  294. }
  295. set {
  296. this.z_NULLField = value;
  297. }
  298. }
  299. }
  300. /// <remarks/>
  301. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
  302. public delegate void CallZWMS_SK_WS_RUKUCompletedEventHandler(object sender, CallZWMS_SK_WS_RUKUCompletedEventArgs e);
  303. /// <remarks/>
  304. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")]
  305. [System.Diagnostics.DebuggerStepThroughAttribute()]
  306. [System.ComponentModel.DesignerCategoryAttribute("code")]
  307. public partial class CallZWMS_SK_WS_RUKUCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  308. private object[] results;
  309. internal CallZWMS_SK_WS_RUKUCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  310. base(exception, cancelled, userState) {
  311. this.results = results;
  312. }
  313. /// <remarks/>
  314. public ZWMS_SK_WS_RUKUResponse Result {
  315. get {
  316. this.RaiseExceptionIfNecessary();
  317. return ((ZWMS_SK_WS_RUKUResponse)(this.results[0]));
  318. }
  319. }
  320. }
  321. }
  322. #pragma warning restore 1591