//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
// 
#pragma warning disable 1591

namespace FactorySystemApi.Sap_Group {
    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_pp071_mcs_senderBinding", Namespace="http://www.zmc.com/flavor/pp")]
    public partial class si_pp071_mcs_senderService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback si_pp071_mcs_senderOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public si_pp071_mcs_senderService() {
            this.Url = global::FactorySystemApi.Properties.Settings.Default.Sap_Group;
            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_pp071_mcs_senderCompletedEventHandler si_pp071_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.XmlArrayAttribute("mt_pp071_res", Namespace="http://www.zmc.com/flavor/pp")]
        [return: System.Xml.Serialization.XmlArrayItemAttribute("DATA", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
        public dt_pp071_resDATA[] si_pp071_mcs_sender([System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.zmc.com/flavor/pp")] dt_pp071_req mt_pp071_req) {
            object[] results = this.Invoke("si_pp071_mcs_sender", new object[] {
                        mt_pp071_req});
            return ((dt_pp071_resDATA[])(results[0]));
        }
        
        /// <remarks/>
        public void si_pp071_mcs_senderAsync(dt_pp071_req mt_pp071_req) {
            this.si_pp071_mcs_senderAsync(mt_pp071_req, null);
        }
        
        /// <remarks/>
        public void si_pp071_mcs_senderAsync(dt_pp071_req mt_pp071_req, object userState) {
            if ((this.si_pp071_mcs_senderOperationCompleted == null)) {
                this.si_pp071_mcs_senderOperationCompleted = new System.Threading.SendOrPostCallback(this.Onsi_pp071_mcs_senderOperationCompleted);
            }
            this.InvokeAsync("si_pp071_mcs_sender", new object[] {
                        mt_pp071_req}, this.si_pp071_mcs_senderOperationCompleted, userState);
        }
        
        private void Onsi_pp071_mcs_senderOperationCompleted(object arg) {
            if ((this.si_pp071_mcs_senderCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.si_pp071_mcs_senderCompleted(this, new si_pp071_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/pp")]
    public partial class dt_pp071_req {
        
        private string sOURCESYSField;
        
        private string tARGETSYSField;
        
        private string uPDATETIMEField;
        
        private dt_pp071_reqHEAD[] hEADField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string SOURCESYS {
            get {
                return this.sOURCESYSField;
            }
            set {
                this.sOURCESYSField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string TARGETSYS {
            get {
                return this.tARGETSYSField;
            }
            set {
                this.tARGETSYSField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string UPDATETIME {
            get {
                return this.uPDATETIMEField;
            }
            set {
                this.uPDATETIMEField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("HEAD", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public dt_pp071_reqHEAD[] HEAD {
            get {
                return this.hEADField;
            }
            set {
                this.hEADField = 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/pp")]
    public partial class dt_pp071_reqHEAD {
        
        private string wERKSField;
        
        private string dATUVField;
        
        private string mATNRField;
        
        private string pLNALField;
        
        private string vERWEField;
        
        private string sTATUField;
        
        private string lOSVNField;
        
        private string lOSBSField;
        
        private string kTEXTField;
        
        private dt_pp071_reqHEADITEM[] iTEMField;
        
        /// <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 DATUV {
            get {
                return this.dATUVField;
            }
            set {
                this.dATUVField = value;
            }
        }
        
        /// <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 PLNAL {
            get {
                return this.pLNALField;
            }
            set {
                this.pLNALField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VERWE {
            get {
                return this.vERWEField;
            }
            set {
                this.vERWEField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string STATU {
            get {
                return this.sTATUField;
            }
            set {
                this.sTATUField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string LOSVN {
            get {
                return this.lOSVNField;
            }
            set {
                this.lOSVNField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string LOSBS {
            get {
                return this.lOSBSField;
            }
            set {
                this.lOSBSField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string KTEXT {
            get {
                return this.kTEXTField;
            }
            set {
                this.kTEXTField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ITEM", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public dt_pp071_reqHEADITEM[] ITEM {
            get {
                return this.iTEMField;
            }
            set {
                this.iTEMField = 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/pp")]
    public partial class dt_pp071_reqHEADITEM {
        
        private string bMSCHField;
        
        private string pLNMEField;
        
        private string vORNRField;
        
        private string aRBPLField;
        
        private string sTEUSField;
        
        private string lTXA1Field;
        
        private string vGW01Field;
        
        private string vGE01Field;
        
        private string vGW02Field;
        
        private string vGE02Field;
        
        private string vGW03Field;
        
        private string vGE03Field;
        
        private string vGW04Field;
        
        private string vGE04Field;
        
        private string vGW05Field;
        
        private string vGE05Field;
        
        private string vGW06Field;
        
        private string vGE06Field;
        
        private string vGW07Field;
        
        private string vGE07Field;
        
        private string vGW08Field;
        
        private string vGE08Field;
        
        private string vGW09Field;
        
        private string vGE09Field;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string BMSCH {
            get {
                return this.bMSCHField;
            }
            set {
                this.bMSCHField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string PLNME {
            get {
                return this.pLNMEField;
            }
            set {
                this.pLNMEField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VORNR {
            get {
                return this.vORNRField;
            }
            set {
                this.vORNRField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string ARBPL {
            get {
                return this.aRBPLField;
            }
            set {
                this.aRBPLField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string STEUS {
            get {
                return this.sTEUSField;
            }
            set {
                this.sTEUSField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string LTXA1 {
            get {
                return this.lTXA1Field;
            }
            set {
                this.lTXA1Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW01 {
            get {
                return this.vGW01Field;
            }
            set {
                this.vGW01Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE01 {
            get {
                return this.vGE01Field;
            }
            set {
                this.vGE01Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW02 {
            get {
                return this.vGW02Field;
            }
            set {
                this.vGW02Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE02 {
            get {
                return this.vGE02Field;
            }
            set {
                this.vGE02Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW03 {
            get {
                return this.vGW03Field;
            }
            set {
                this.vGW03Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE03 {
            get {
                return this.vGE03Field;
            }
            set {
                this.vGE03Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW04 {
            get {
                return this.vGW04Field;
            }
            set {
                this.vGW04Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE04 {
            get {
                return this.vGE04Field;
            }
            set {
                this.vGE04Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW05 {
            get {
                return this.vGW05Field;
            }
            set {
                this.vGW05Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE05 {
            get {
                return this.vGE05Field;
            }
            set {
                this.vGE05Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW06 {
            get {
                return this.vGW06Field;
            }
            set {
                this.vGW06Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE06 {
            get {
                return this.vGE06Field;
            }
            set {
                this.vGE06Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW07 {
            get {
                return this.vGW07Field;
            }
            set {
                this.vGW07Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE07 {
            get {
                return this.vGE07Field;
            }
            set {
                this.vGE07Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW08 {
            get {
                return this.vGW08Field;
            }
            set {
                this.vGW08Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE08 {
            get {
                return this.vGE08Field;
            }
            set {
                this.vGE08Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGW09 {
            get {
                return this.vGW09Field;
            }
            set {
                this.vGW09Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string VGE09 {
            get {
                return this.vGE09Field;
            }
            set {
                this.vGE09Field = 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/pp")]
    public partial class dt_pp071_resDATA {
        
        private string mSGTYField;
        
        private string mSGTXField;
        
        private string pLNNRField;
        
        private string pLNALField;
        
        private string mATNRField;
        
        private string wERKSField;
        
        /// <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(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string PLNNR {
            get {
                return this.pLNNRField;
            }
            set {
                this.pLNNRField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string PLNAL {
            get {
                return this.pLNALField;
            }
            set {
                this.pLNALField = value;
            }
        }
        
        /// <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.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void si_pp071_mcs_senderCompletedEventHandler(object sender, si_pp071_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_pp071_mcs_senderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal si_pp071_mcs_senderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public dt_pp071_resDATA[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((dt_pp071_resDATA[])(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591