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.

425 lines
14 KiB

//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
//
#pragma warning disable 1591
namespace FactorySystemApi.Sap_Material1 {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="si_mm100_mcs_senderBinding", Namespace="http://www.zmc.com/flavor/mm")]
public partial class si_mm100_mcs_senderService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback si_mm100_mcs_senderOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public si_mm100_mcs_senderService() {
this.Url = global::FactorySystemApi.Properties.Settings.Default.Sap_Material;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
/// <remarks/>
public event si_mm100_mcs_senderCompletedEventHandler si_mm100_mcs_senderCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://sap.com/xi/WebService/soap1.1", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("mt_mm100_res", Namespace="http://www.zmc.com/flavor/mm")]
public dt_mm100_res si_mm100_mcs_sender([System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.zmc.com/flavor/mm")] dt_mm100_req mt_mm100_req) {
object[] results = this.Invoke("si_mm100_mcs_sender", new object[] {
mt_mm100_req});
return ((dt_mm100_res)(results[0]));
}
/// <remarks/>
public void si_mm100_mcs_senderAsync(dt_mm100_req mt_mm100_req) {
this.si_mm100_mcs_senderAsync(mt_mm100_req, null);
}
/// <remarks/>
public void si_mm100_mcs_senderAsync(dt_mm100_req mt_mm100_req, object userState) {
if ((this.si_mm100_mcs_senderOperationCompleted == null)) {
this.si_mm100_mcs_senderOperationCompleted = new System.Threading.SendOrPostCallback(this.Onsi_mm100_mcs_senderOperationCompleted);
}
this.InvokeAsync("si_mm100_mcs_sender", new object[] {
mt_mm100_req}, this.si_mm100_mcs_senderOperationCompleted, userState);
}
private void Onsi_mm100_mcs_senderOperationCompleted(object arg) {
if ((this.si_mm100_mcs_senderCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.si_mm100_mcs_senderCompleted(this, new si_mm100_mcs_senderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9032.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.hbflavor.com/mm")]
public partial class dt_mm100_req {
private string wERKSField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string WERKS {
get {
return this.wERKSField;
}
set {
this.wERKSField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9032.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.hbflavor.com/mm")]
public partial class dt_mm100_res {
private string mSGTYField;
private string mSGTXField;
private dt_mm100_resDATA[] dATAField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MSGTY {
get {
return this.mSGTYField;
}
set {
this.mSGTYField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MSGTX {
get {
return this.mSGTXField;
}
set {
this.mSGTXField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("DATA", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public dt_mm100_resDATA[] DATA {
get {
return this.dATAField;
}
set {
this.dATAField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9032.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.hbflavor.com/mm")]
public partial class dt_mm100_resDATA {
private string mATNRField;
private string wERKSField;
private string bISMTField;
private string mEINSField;
private string eXTWGField;
private string mATKLField;
private string mTARTField;
private string zCATEGField;
private string mSTDEField;
private string vOLEHField;
private string gROESField;
private string nUMTPField;
private string eKGRPField;
private string mAKTXField;
private string zJWLHField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MATNR {
get {
return this.mATNRField;
}
set {
this.mATNRField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string WERKS {
get {
return this.wERKSField;
}
set {
this.wERKSField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string BISMT {
get {
return this.bISMTField;
}
set {
this.bISMTField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MEINS {
get {
return this.mEINSField;
}
set {
this.mEINSField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string EXTWG {
get {
return this.eXTWGField;
}
set {
this.eXTWGField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MATKL {
get {
return this.mATKLField;
}
set {
this.mATKLField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MTART {
get {
return this.mTARTField;
}
set {
this.mTARTField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string ZCATEG {
get {
return this.zCATEGField;
}
set {
this.zCATEGField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MSTDE {
get {
return this.mSTDEField;
}
set {
this.mSTDEField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string VOLEH {
get {
return this.vOLEHField;
}
set {
this.vOLEHField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string GROES {
get {
return this.gROESField;
}
set {
this.gROESField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string NUMTP {
get {
return this.nUMTPField;
}
set {
this.nUMTPField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string EKGRP {
get {
return this.eKGRPField;
}
set {
this.eKGRPField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MAKTX {
get {
return this.mAKTXField;
}
set {
this.mAKTXField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string ZJWLH {
get {
return this.zJWLHField;
}
set {
this.zJWLHField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void si_mm100_mcs_senderCompletedEventHandler(object sender, si_mm100_mcs_senderCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class si_mm100_mcs_senderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal si_mm100_mcs_senderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public dt_mm100_res Result {
get {
this.RaiseExceptionIfNecessary();
return ((dt_mm100_res)(this.results[0]));
}
}
}
}
#pragma warning restore 1591