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

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

namespace FactorySystemApi.Sap_Formula {
    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_pp062_bc_senderBinding", Namespace="http://www.zmc.com/flavor/pp")]
    public partial class si_pp062_bc_senderService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback si_pp062_bc_senderOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public si_pp062_bc_senderService() {
            this.Url = global::FactorySystemApi.Properties.Settings.Default.SAP_Formula;
            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_pp062_bc_senderCompletedEventHandler si_pp062_bc_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_pp062_res", Namespace="http://www.zmc.com/flavor/pp")]
        public dt_pp062_res si_pp062_bc_sender([System.Xml.Serialization.XmlArrayAttribute(Namespace="http://www.zmc.com/flavor/pp")] [System.Xml.Serialization.XmlArrayItemAttribute("DATA", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)] dt_pp062_reqDATA[] mt_pp062_req) {
            object[] results = this.Invoke("si_pp062_bc_sender", new object[] {
                        mt_pp062_req});
            return ((dt_pp062_res)(results[0]));
        }
        
        /// <remarks/>
        public void si_pp062_bc_senderAsync(dt_pp062_reqDATA[] mt_pp062_req) {
            this.si_pp062_bc_senderAsync(mt_pp062_req, null);
        }
        
        /// <remarks/>
        public void si_pp062_bc_senderAsync(dt_pp062_reqDATA[] mt_pp062_req, object userState) {
            if ((this.si_pp062_bc_senderOperationCompleted == null)) {
                this.si_pp062_bc_senderOperationCompleted = new System.Threading.SendOrPostCallback(this.Onsi_pp062_bc_senderOperationCompleted);
            }
            this.InvokeAsync("si_pp062_bc_sender", new object[] {
                        mt_pp062_req}, this.si_pp062_bc_senderOperationCompleted, userState);
        }
        
        private void Onsi_pp062_bc_senderOperationCompleted(object arg) {
            if ((this.si_pp062_bc_senderCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.si_pp062_bc_senderCompleted(this, new si_pp062_bc_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(AnonymousType=true, Namespace="http://www.hbflavor.com/pp")]
    public partial class dt_pp062_reqDATA {
        
        private string sOURCESYSField;
        
        private string tARGETSYSField;
        
        private string uPDATETIMEField;
        
        private string mATNRField;
        
        private string wERKSField;
        
        private string sTLANField;
        
        private string sTLALField;
        
        private string eRDAT_SField;
        
        private string eRDAT_EField;
        
        private string zCATEGField;
        
        private string lKENZField;
        
        private string dATUVField;
        
        /// <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(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 STLAN {
            get {
                return this.sTLANField;
            }
            set {
                this.sTLANField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string STLAL {
            get {
                return this.sTLALField;
            }
            set {
                this.sTLALField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string ERDAT_S {
            get {
                return this.eRDAT_SField;
            }
            set {
                this.eRDAT_SField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string ERDAT_E {
            get {
                return this.eRDAT_EField;
            }
            set {
                this.eRDAT_EField = 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 LKENZ {
            get {
                return this.lKENZField;
            }
            set {
                this.lKENZField = 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.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_pp062_res {
        
        private string mSGTYField;
        
        private string mSGTXField;
        
        private dt_pp062_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_pp062_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/pp")]
    public partial class dt_pp062_resDATA {
        
        private string mATNRField;
        
        private string mAKTXField;
        
        private string wERKSField;
        
        private string sTLANField;
        
        private string sTLALField;
        
        /// <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 MAKTX {
            get {
                return this.mAKTXField;
            }
            set {
                this.mAKTXField = 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 STLAN {
            get {
                return this.sTLANField;
            }
            set {
                this.sTLANField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string STLAL {
            get {
                return this.sTLALField;
            }
            set {
                this.sTLALField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void si_pp062_bc_senderCompletedEventHandler(object sender, si_pp062_bc_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_pp062_bc_senderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal si_pp062_bc_senderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public dt_pp062_res Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((dt_pp062_res)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591