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

528 lines
18 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.SAPCallBackDocVPNCS {
  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_PZ", Namespace="urn:sap-com:document:sap:rfc:functions")]
  28. public partial class ZWMS_SK_WS_PZ : System.Web.Services.Protocols.SoapHttpClientProtocol {
  29. private System.Threading.SendOrPostCallback CallZWMS_SK_WS_PZOperationCompleted;
  30. private bool useDefaultCredentialsSetExplicitly;
  31. /// <remarks/>
  32. public ZWMS_SK_WS_PZ() {
  33. this.Url = global::NFine.Application.Properties.Settings.Default.NFine_Application_SAPCallBackDocVPNCS_ZWMS_SK_WS_PZ;
  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_PZCompletedEventHandler CallZWMS_SK_WS_PZCompleted;
  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_PZResponse", Namespace="urn:sap-com:document:sap:rfc:functions")]
  69. public ZWMS_SK_WS_PZResponse CallZWMS_SK_WS_PZ([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")] ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ) {
  70. object[] results = this.Invoke("CallZWMS_SK_WS_PZ", new object[] {
  71. ZWMS_SK_WS_PZ});
  72. return ((ZWMS_SK_WS_PZResponse)(results[0]));
  73. }
  74. /// <remarks/>
  75. public void CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ) {
  76. this.CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ, null);
  77. }
  78. /// <remarks/>
  79. public void CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ, object userState) {
  80. if ((this.CallZWMS_SK_WS_PZOperationCompleted == null)) {
  81. this.CallZWMS_SK_WS_PZOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCallZWMS_SK_WS_PZOperationCompleted);
  82. }
  83. this.InvokeAsync("CallZWMS_SK_WS_PZ", new object[] {
  84. ZWMS_SK_WS_PZ}, this.CallZWMS_SK_WS_PZOperationCompleted, userState);
  85. }
  86. private void OnCallZWMS_SK_WS_PZOperationCompleted(object arg) {
  87. if ((this.CallZWMS_SK_WS_PZCompleted != null)) {
  88. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  89. this.CallZWMS_SK_WS_PZCompleted(this, new CallZWMS_SK_WS_PZCompletedEventArgs(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_PZ1 {
  116. private string dANJUField;
  117. private string nEWIDField;
  118. private string sTATEField;
  119. private ZWEB_RETURN[] z_FLAGField;
  120. private ZWEBS_GERNR[] z_GERNRField;
  121. private ZWMS_PZ[] z_ITEMField;
  122. /// <remarks/>
  123. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  124. public string DANJU {
  125. get {
  126. return this.dANJUField;
  127. }
  128. set {
  129. this.dANJUField = value;
  130. }
  131. }
  132. /// <remarks/>
  133. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  134. public string NEWID {
  135. get {
  136. return this.nEWIDField;
  137. }
  138. set {
  139. this.nEWIDField = value;
  140. }
  141. }
  142. /// <remarks/>
  143. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  144. public string STATE {
  145. get {
  146. return this.sTATEField;
  147. }
  148. set {
  149. this.sTATEField = value;
  150. }
  151. }
  152. /// <remarks/>
  153. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  154. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  155. public ZWEB_RETURN[] Z_FLAG {
  156. get {
  157. return this.z_FLAGField;
  158. }
  159. set {
  160. this.z_FLAGField = value;
  161. }
  162. }
  163. /// <remarks/>
  164. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  165. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  166. public ZWEBS_GERNR[] Z_GERNR {
  167. get {
  168. return this.z_GERNRField;
  169. }
  170. set {
  171. this.z_GERNRField = value;
  172. }
  173. }
  174. /// <remarks/>
  175. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  176. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  177. public ZWMS_PZ[] Z_ITEM {
  178. get {
  179. return this.z_ITEMField;
  180. }
  181. set {
  182. this.z_ITEMField = value;
  183. }
  184. }
  185. }
  186. /// <remarks/>
  187. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  188. [System.SerializableAttribute()]
  189. [System.Diagnostics.DebuggerStepThroughAttribute()]
  190. [System.ComponentModel.DesignerCategoryAttribute("code")]
  191. [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
  192. public partial class ZWEB_RETURN {
  193. private string dANJUField;
  194. private string pOSNRField;
  195. private string fLAGField;
  196. private string l_MESSAGEField;
  197. private string mBLNRField;
  198. /// <remarks/>
  199. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  200. public string DANJU {
  201. get {
  202. return this.dANJUField;
  203. }
  204. set {
  205. this.dANJUField = value;
  206. }
  207. }
  208. /// <remarks/>
  209. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  210. public string POSNR {
  211. get {
  212. return this.pOSNRField;
  213. }
  214. set {
  215. this.pOSNRField = value;
  216. }
  217. }
  218. /// <remarks/>
  219. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  220. public string FLAG {
  221. get {
  222. return this.fLAGField;
  223. }
  224. set {
  225. this.fLAGField = value;
  226. }
  227. }
  228. /// <remarks/>
  229. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  230. public string L_MESSAGE {
  231. get {
  232. return this.l_MESSAGEField;
  233. }
  234. set {
  235. this.l_MESSAGEField = value;
  236. }
  237. }
  238. /// <remarks/>
  239. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  240. public string MBLNR {
  241. get {
  242. return this.mBLNRField;
  243. }
  244. set {
  245. this.mBLNRField = value;
  246. }
  247. }
  248. }
  249. /// <remarks/>
  250. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  251. [System.SerializableAttribute()]
  252. [System.Diagnostics.DebuggerStepThroughAttribute()]
  253. [System.ComponentModel.DesignerCategoryAttribute("code")]
  254. [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
  255. public partial class ZWMS_PZ {
  256. private string dANJUField;
  257. private string pOSNRField;
  258. private decimal lINGYSLField;
  259. private string sERNPField;
  260. /// <remarks/>
  261. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  262. public string DANJU {
  263. get {
  264. return this.dANJUField;
  265. }
  266. set {
  267. this.dANJUField = value;
  268. }
  269. }
  270. /// <remarks/>
  271. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  272. public string POSNR {
  273. get {
  274. return this.pOSNRField;
  275. }
  276. set {
  277. this.pOSNRField = value;
  278. }
  279. }
  280. /// <remarks/>
  281. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  282. public decimal LINGYSL {
  283. get {
  284. return this.lINGYSLField;
  285. }
  286. set {
  287. this.lINGYSLField = value;
  288. }
  289. }
  290. /// <remarks/>
  291. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  292. public string SERNP {
  293. get {
  294. return this.sERNPField;
  295. }
  296. set {
  297. this.sERNPField = value;
  298. }
  299. }
  300. }
  301. /// <remarks/>
  302. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  303. [System.SerializableAttribute()]
  304. [System.Diagnostics.DebuggerStepThroughAttribute()]
  305. [System.ComponentModel.DesignerCategoryAttribute("code")]
  306. [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
  307. public partial class ZWEBS_GERNR {
  308. private string mANDTField;
  309. private string dANJUField;
  310. private string pOSNRField;
  311. private int gERNR_KEYField;
  312. private string mATNRField;
  313. private string gERNRField;
  314. /// <remarks/>
  315. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  316. public string MANDT {
  317. get {
  318. return this.mANDTField;
  319. }
  320. set {
  321. this.mANDTField = value;
  322. }
  323. }
  324. /// <remarks/>
  325. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  326. public string DANJU {
  327. get {
  328. return this.dANJUField;
  329. }
  330. set {
  331. this.dANJUField = value;
  332. }
  333. }
  334. /// <remarks/>
  335. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  336. public string POSNR {
  337. get {
  338. return this.pOSNRField;
  339. }
  340. set {
  341. this.pOSNRField = value;
  342. }
  343. }
  344. /// <remarks/>
  345. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  346. public int GERNR_KEY {
  347. get {
  348. return this.gERNR_KEYField;
  349. }
  350. set {
  351. this.gERNR_KEYField = value;
  352. }
  353. }
  354. /// <remarks/>
  355. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  356. public string MATNR {
  357. get {
  358. return this.mATNRField;
  359. }
  360. set {
  361. this.mATNRField = value;
  362. }
  363. }
  364. /// <remarks/>
  365. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  366. public string GERNR {
  367. get {
  368. return this.gERNRField;
  369. }
  370. set {
  371. this.gERNRField = value;
  372. }
  373. }
  374. }
  375. /// <remarks/>
  376. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  377. [System.SerializableAttribute()]
  378. [System.Diagnostics.DebuggerStepThroughAttribute()]
  379. [System.ComponentModel.DesignerCategoryAttribute("code")]
  380. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
  381. public partial class ZWMS_SK_WS_PZResponse {
  382. private ZWEB_RETURN[] z_FLAGField;
  383. private ZWEBS_GERNR[] z_GERNRField;
  384. private ZWMS_PZ[] z_ITEMField;
  385. private string z_NULLField;
  386. /// <remarks/>
  387. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  388. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  389. public ZWEB_RETURN[] Z_FLAG {
  390. get {
  391. return this.z_FLAGField;
  392. }
  393. set {
  394. this.z_FLAGField = value;
  395. }
  396. }
  397. /// <remarks/>
  398. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  399. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  400. public ZWEBS_GERNR[] Z_GERNR {
  401. get {
  402. return this.z_GERNRField;
  403. }
  404. set {
  405. this.z_GERNRField = value;
  406. }
  407. }
  408. /// <remarks/>
  409. [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  410. [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  411. public ZWMS_PZ[] Z_ITEM {
  412. get {
  413. return this.z_ITEMField;
  414. }
  415. set {
  416. this.z_ITEMField = value;
  417. }
  418. }
  419. /// <remarks/>
  420. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  421. public string Z_NULL {
  422. get {
  423. return this.z_NULLField;
  424. }
  425. set {
  426. this.z_NULLField = value;
  427. }
  428. }
  429. }
  430. /// <remarks/>
  431. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  432. public delegate void CallZWMS_SK_WS_PZCompletedEventHandler(object sender, CallZWMS_SK_WS_PZCompletedEventArgs e);
  433. /// <remarks/>
  434. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  435. [System.Diagnostics.DebuggerStepThroughAttribute()]
  436. [System.ComponentModel.DesignerCategoryAttribute("code")]
  437. public partial class CallZWMS_SK_WS_PZCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  438. private object[] results;
  439. internal CallZWMS_SK_WS_PZCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  440. base(exception, cancelled, userState) {
  441. this.results = results;
  442. }
  443. /// <remarks/>
  444. public ZWMS_SK_WS_PZResponse Result {
  445. get {
  446. this.RaiseExceptionIfNecessary();
  447. return ((ZWMS_SK_WS_PZResponse)(this.results[0]));
  448. }
  449. }
  450. }
  451. }
  452. #pragma warning restore 1591