// ------------------------------------------------------------------------------
// <auto-generated>
// 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000
// 
// 對這個檔案所做的變更可能會造成錯誤的行為，而且如果重新產生程式碼，
// 變更將會遺失。
// </auto-generated>
// ------------------------------------------------------------------------------


using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using Microsoft.VisualBasic.CompilerServices;

// 
// 原始程式碼已由 Microsoft.VSDesigner 自動產生，版本 4.0.30319.42000。
// 
namespace AutoRunLib_C.wsERP_MES
{

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [WebServiceBinding(Name = "wsMESSoap", Namespace = "http://www.imestech.com/wsMES")]
    public partial class wsMES : SoapHttpClientProtocol
    {

        private System.Threading.SendOrPostCallback LoadWIPInventory_SEMIbyMO_TPOperationCompleted;

        private System.Threading.SendOrPostCallback loadWIP_SEMI_MO_TPOperationCompleted;

        private System.Threading.SendOrPostCallback loadWIP_SEMI_MO_WFOperationCompleted;

        private System.Threading.SendOrPostCallback ChkmesStockIn_LotOperationCompleted;

        private System.Threading.SendOrPostCallback updateINVBookingFlagOperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_TPOperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_E10OperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_Scrap_TPOperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_WFOperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_Check_WFOperationCompleted;

        private System.Threading.SendOrPostCallback MOStockIn_WF_CancelOperationCompleted;

        private System.Threading.SendOrPostCallback LoadWIPInventory_SEMIbyMO_WFOperationCompleted;

        private System.Threading.SendOrPostCallback LoadOEMOBasis_byLot_WFOperationCompleted;

        private System.Threading.SendOrPostCallback UpdOSBasisOperationCompleted;

        private System.Threading.SendOrPostCallback LoadMOMaterialStateOPOperationCompleted;

        private System.Threading.SendOrPostCallback LoadMOMaterialStateOperationCompleted;

        private System.Threading.SendOrPostCallback MOIssueReturnOperationCompleted;

        private System.Threading.SendOrPostCallback MOIssueReturn_CancelOperationCompleted;

        private System.Threading.SendOrPostCallback ExeMaterialScrapOperationCompleted;

        private System.Threading.SendOrPostCallback GetERPReferenceNoOperationCompleted;

        private System.Threading.SendOrPostCallback addTransactionLogOperationCompleted;

        private System.Threading.SendOrPostCallback addTransactionLog_ErrorCodeOperationCompleted;

        private bool useDefaultCredentialsSetExplicitly;

        /// <remarks/>
        public wsMES() : base()
        {
            Url = My.MySettings.Default.AutoRunLib_wsERP_MES_wsMES;
            if (IsLocalFileSystemWebService(Url) == true)
            {
                UseDefaultCredentials = true;
                useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        public new string Url
        {
            get
            {
                return base.Url;
            }
            set
            {
                if (IsLocalFileSystemWebService(base.Url) == true && useDefaultCredentialsSetExplicitly == false && IsLocalFileSystemWebService(value) == false)

                {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }

        public new bool UseDefaultCredentials
        {
            get
            {
                return base.UseDefaultCredentials;
            }
            set
            {
                base.UseDefaultCredentials = value;
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        /// <remarks/>
        public event LoadWIPInventory_SEMIbyMO_TPCompletedEventHandler LoadWIPInventory_SEMIbyMO_TPCompleted;

        /// <remarks/>
        public event loadWIP_SEMI_MO_TPCompletedEventHandler loadWIP_SEMI_MO_TPCompleted;

        /// <remarks/>
        public event loadWIP_SEMI_MO_WFCompletedEventHandler loadWIP_SEMI_MO_WFCompleted;

        /// <remarks/>
        public event ChkmesStockIn_LotCompletedEventHandler ChkmesStockIn_LotCompleted;

        /// <remarks/>
        public event updateINVBookingFlagCompletedEventHandler updateINVBookingFlagCompleted;

        /// <remarks/>
        public event MOStockIn_TPCompletedEventHandler MOStockIn_TPCompleted;

        /// <remarks/>
        public event MOStockIn_E10CompletedEventHandler MOStockIn_E10Completed;

        /// <remarks/>
        public event MOStockIn_Scrap_TPCompletedEventHandler MOStockIn_Scrap_TPCompleted;

        /// <remarks/>
        public event MOStockIn_WFCompletedEventHandler MOStockIn_WFCompleted;

        /// <remarks/>
        public event MOStockIn_Check_WFCompletedEventHandler MOStockIn_Check_WFCompleted;

        /// <remarks/>
        public event MOStockIn_WF_CancelCompletedEventHandler MOStockIn_WF_CancelCompleted;

        /// <remarks/>
        public event LoadWIPInventory_SEMIbyMO_WFCompletedEventHandler LoadWIPInventory_SEMIbyMO_WFCompleted;

        /// <remarks/>
        public event LoadOEMOBasis_byLot_WFCompletedEventHandler LoadOEMOBasis_byLot_WFCompleted;

        /// <remarks/>
        public event UpdOSBasisCompletedEventHandler UpdOSBasisCompleted;

        /// <remarks/>
        public event LoadMOMaterialStateOPCompletedEventHandler LoadMOMaterialStateOPCompleted;

        /// <remarks/>
        public event LoadMOMaterialStateCompletedEventHandler LoadMOMaterialStateCompleted;

        /// <remarks/>
        public event MOIssueReturnCompletedEventHandler MOIssueReturnCompleted;

        /// <remarks/>
        public event MOIssueReturn_CancelCompletedEventHandler MOIssueReturn_CancelCompleted;

        /// <remarks/>
        public event ExeMaterialScrapCompletedEventHandler ExeMaterialScrapCompleted;

        /// <remarks/>
        public event GetERPReferenceNoCompletedEventHandler GetERPReferenceNoCompleted;

        /// <remarks/>
        public event addTransactionLogCompletedEventHandler addTransactionLogCompleted;

        /// <remarks/>
        public event addTransactionLog_ErrorCodeCompletedEventHandler addTransactionLog_ErrorCodeCompleted;

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/LoadWIPInventory_SEMIbyMO_TP", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string LoadWIPInventory_SEMIbyMO_TP(string InXml)
        {
            object[] results = Invoke("LoadWIPInventory_SEMIbyMO_TP", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginLoadWIPInventory_SEMIbyMO_TP(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("LoadWIPInventory_SEMIbyMO_TP", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndLoadWIPInventory_SEMIbyMO_TP(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void LoadWIPInventory_SEMIbyMO_TPAsync(string InXml)
        {
            LoadWIPInventory_SEMIbyMO_TPAsync(InXml, null);
        }

        /// <remarks/>
        public void LoadWIPInventory_SEMIbyMO_TPAsync(string InXml, object userState)
        {
            if (LoadWIPInventory_SEMIbyMO_TPOperationCompleted == null)
            {
                LoadWIPInventory_SEMIbyMO_TPOperationCompleted = OnLoadWIPInventory_SEMIbyMO_TPOperationCompleted;
            }
            InvokeAsync("LoadWIPInventory_SEMIbyMO_TP", new object[] { InXml }, LoadWIPInventory_SEMIbyMO_TPOperationCompleted, userState);
        }

        private void OnLoadWIPInventory_SEMIbyMO_TPOperationCompleted(object arg)
        {
            if (LoadWIPInventory_SEMIbyMO_TPCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                LoadWIPInventory_SEMIbyMO_TPCompleted?.Invoke(this, new LoadWIPInventory_SEMIbyMO_TPCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/loadWIP_SEMI_MO_TP", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string loadWIP_SEMI_MO_TP(string InXml)
        {
            object[] results = Invoke("loadWIP_SEMI_MO_TP", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginloadWIP_SEMI_MO_TP(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("loadWIP_SEMI_MO_TP", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndloadWIP_SEMI_MO_TP(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void loadWIP_SEMI_MO_TPAsync(string InXml)
        {
            loadWIP_SEMI_MO_TPAsync(InXml, null);
        }

        /// <remarks/>
        public void loadWIP_SEMI_MO_TPAsync(string InXml, object userState)
        {
            if (loadWIP_SEMI_MO_TPOperationCompleted == null)
            {
                loadWIP_SEMI_MO_TPOperationCompleted = OnloadWIP_SEMI_MO_TPOperationCompleted;
            }
            InvokeAsync("loadWIP_SEMI_MO_TP", new object[] { InXml }, loadWIP_SEMI_MO_TPOperationCompleted, userState);
        }

        private void OnloadWIP_SEMI_MO_TPOperationCompleted(object arg)
        {
            if (loadWIP_SEMI_MO_TPCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                loadWIP_SEMI_MO_TPCompleted?.Invoke(this, new loadWIP_SEMI_MO_TPCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/loadWIP_SEMI_MO_WF", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string loadWIP_SEMI_MO_WF(string InXml)
        {
            object[] results = Invoke("loadWIP_SEMI_MO_WF", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginloadWIP_SEMI_MO_WF(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("loadWIP_SEMI_MO_WF", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndloadWIP_SEMI_MO_WF(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void loadWIP_SEMI_MO_WFAsync(string InXml)
        {
            loadWIP_SEMI_MO_WFAsync(InXml, null);
        }

        /// <remarks/>
        public void loadWIP_SEMI_MO_WFAsync(string InXml, object userState)
        {
            if (loadWIP_SEMI_MO_WFOperationCompleted == null)
            {
                loadWIP_SEMI_MO_WFOperationCompleted = OnloadWIP_SEMI_MO_WFOperationCompleted;
            }
            InvokeAsync("loadWIP_SEMI_MO_WF", new object[] { InXml }, loadWIP_SEMI_MO_WFOperationCompleted, userState);
        }

        private void OnloadWIP_SEMI_MO_WFOperationCompleted(object arg)
        {
            if (loadWIP_SEMI_MO_WFCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                loadWIP_SEMI_MO_WFCompleted?.Invoke(this, new loadWIP_SEMI_MO_WFCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/ChkmesStockIn_Lot", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string ChkmesStockIn_Lot(string InXml)
        {
            object[] results = Invoke("ChkmesStockIn_Lot", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginChkmesStockIn_Lot(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("ChkmesStockIn_Lot", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndChkmesStockIn_Lot(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void ChkmesStockIn_LotAsync(string InXml)
        {
            ChkmesStockIn_LotAsync(InXml, null);
        }

        /// <remarks/>
        public void ChkmesStockIn_LotAsync(string InXml, object userState)
        {
            if (ChkmesStockIn_LotOperationCompleted == null)
            {
                ChkmesStockIn_LotOperationCompleted = OnChkmesStockIn_LotOperationCompleted;
            }
            InvokeAsync("ChkmesStockIn_Lot", new object[] { InXml }, ChkmesStockIn_LotOperationCompleted, userState);
        }

        private void OnChkmesStockIn_LotOperationCompleted(object arg)
        {
            if (ChkmesStockIn_LotCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                ChkmesStockIn_LotCompleted?.Invoke(this, new ChkmesStockIn_LotCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/updateINVBookingFlag", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string updateINVBookingFlag(string InXml)
        {
            object[] results = Invoke("updateINVBookingFlag", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginupdateINVBookingFlag(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("updateINVBookingFlag", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndupdateINVBookingFlag(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void updateINVBookingFlagAsync(string InXml)
        {
            updateINVBookingFlagAsync(InXml, null);
        }

        /// <remarks/>
        public void updateINVBookingFlagAsync(string InXml, object userState)
        {
            if (updateINVBookingFlagOperationCompleted == null)
            {
                updateINVBookingFlagOperationCompleted = OnupdateINVBookingFlagOperationCompleted;
            }
            InvokeAsync("updateINVBookingFlag", new object[] { InXml }, updateINVBookingFlagOperationCompleted, userState);
        }

        private void OnupdateINVBookingFlagOperationCompleted(object arg)
        {
            if (updateINVBookingFlagCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                updateINVBookingFlagCompleted?.Invoke(this, new updateINVBookingFlagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_TP", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_TP(string InXml)
        {
            object[] results = Invoke("MOStockIn_TP", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_TP(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_TP", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_TP(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_TPAsync(string InXml)
        {
            MOStockIn_TPAsync(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_TPAsync(string InXml, object userState)
        {
            if (MOStockIn_TPOperationCompleted == null)
            {
                MOStockIn_TPOperationCompleted = OnMOStockIn_TPOperationCompleted;
            }
            InvokeAsync("MOStockIn_TP", new object[] { InXml }, MOStockIn_TPOperationCompleted, userState);
        }

        private void OnMOStockIn_TPOperationCompleted(object arg)
        {
            if (MOStockIn_TPCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_TPCompleted?.Invoke(this, new MOStockIn_TPCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_E10", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_E10(string InXml)
        {
            object[] results = Invoke("MOStockIn_E10", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_E10(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_E10", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_E10(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_E10Async(string InXml)
        {
            MOStockIn_E10Async(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_E10Async(string InXml, object userState)
        {
            if (MOStockIn_E10OperationCompleted == null)
            {
                MOStockIn_E10OperationCompleted = OnMOStockIn_E10OperationCompleted;
            }
            InvokeAsync("MOStockIn_E10", new object[] { InXml }, MOStockIn_E10OperationCompleted, userState);
        }

        private void OnMOStockIn_E10OperationCompleted(object arg)
        {
            if (MOStockIn_E10Completed != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_E10Completed?.Invoke(this, new MOStockIn_E10CompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_Scrap_TP", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_Scrap_TP(string InXml)
        {
            object[] results = Invoke("MOStockIn_Scrap_TP", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_Scrap_TP(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_Scrap_TP", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_Scrap_TP(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_Scrap_TPAsync(string InXml)
        {
            MOStockIn_Scrap_TPAsync(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_Scrap_TPAsync(string InXml, object userState)
        {
            if (MOStockIn_Scrap_TPOperationCompleted == null)
            {
                MOStockIn_Scrap_TPOperationCompleted = OnMOStockIn_Scrap_TPOperationCompleted;
            }
            InvokeAsync("MOStockIn_Scrap_TP", new object[] { InXml }, MOStockIn_Scrap_TPOperationCompleted, userState);
        }

        private void OnMOStockIn_Scrap_TPOperationCompleted(object arg)
        {
            if (MOStockIn_Scrap_TPCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_Scrap_TPCompleted?.Invoke(this, new MOStockIn_Scrap_TPCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_WF", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_WF(string InXml)
        {
            object[] results = Invoke("MOStockIn_WF", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_WF(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_WF", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_WF(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_WFAsync(string InXml)
        {
            MOStockIn_WFAsync(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_WFAsync(string InXml, object userState)
        {
            if (MOStockIn_WFOperationCompleted == null)
            {
                MOStockIn_WFOperationCompleted = OnMOStockIn_WFOperationCompleted;
            }
            InvokeAsync("MOStockIn_WF", new object[] { InXml }, MOStockIn_WFOperationCompleted, userState);
        }

        private void OnMOStockIn_WFOperationCompleted(object arg)
        {
            if (MOStockIn_WFCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_WFCompleted?.Invoke(this, new MOStockIn_WFCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_Check_WF", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_Check_WF(string InXml)
        {
            object[] results = Invoke("MOStockIn_Check_WF", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_Check_WF(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_Check_WF", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_Check_WF(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_Check_WFAsync(string InXml)
        {
            MOStockIn_Check_WFAsync(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_Check_WFAsync(string InXml, object userState)
        {
            if (MOStockIn_Check_WFOperationCompleted == null)
            {
                MOStockIn_Check_WFOperationCompleted = OnMOStockIn_Check_WFOperationCompleted;
            }
            InvokeAsync("MOStockIn_Check_WF", new object[] { InXml }, MOStockIn_Check_WFOperationCompleted, userState);
        }

        private void OnMOStockIn_Check_WFOperationCompleted(object arg)
        {
            if (MOStockIn_Check_WFCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_Check_WFCompleted?.Invoke(this, new MOStockIn_Check_WFCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOStockIn_WF_Cancel", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOStockIn_WF_Cancel(string InXml)
        {
            object[] results = Invoke("MOStockIn_WF_Cancel", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOStockIn_WF_Cancel(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOStockIn_WF_Cancel", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOStockIn_WF_Cancel(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOStockIn_WF_CancelAsync(string InXml)
        {
            MOStockIn_WF_CancelAsync(InXml, null);
        }

        /// <remarks/>
        public void MOStockIn_WF_CancelAsync(string InXml, object userState)
        {
            if (MOStockIn_WF_CancelOperationCompleted == null)
            {
                MOStockIn_WF_CancelOperationCompleted = OnMOStockIn_WF_CancelOperationCompleted;
            }
            InvokeAsync("MOStockIn_WF_Cancel", new object[] { InXml }, MOStockIn_WF_CancelOperationCompleted, userState);
        }

        private void OnMOStockIn_WF_CancelOperationCompleted(object arg)
        {
            if (MOStockIn_WF_CancelCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOStockIn_WF_CancelCompleted?.Invoke(this, new MOStockIn_WF_CancelCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/LoadWIPInventory_SEMIbyMO_WF", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string LoadWIPInventory_SEMIbyMO_WF(string InXml)
        {
            object[] results = Invoke("LoadWIPInventory_SEMIbyMO_WF", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginLoadWIPInventory_SEMIbyMO_WF(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("LoadWIPInventory_SEMIbyMO_WF", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndLoadWIPInventory_SEMIbyMO_WF(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void LoadWIPInventory_SEMIbyMO_WFAsync(string InXml)
        {
            LoadWIPInventory_SEMIbyMO_WFAsync(InXml, null);
        }

        /// <remarks/>
        public void LoadWIPInventory_SEMIbyMO_WFAsync(string InXml, object userState)
        {
            if (LoadWIPInventory_SEMIbyMO_WFOperationCompleted == null)
            {
                LoadWIPInventory_SEMIbyMO_WFOperationCompleted = OnLoadWIPInventory_SEMIbyMO_WFOperationCompleted;
            }
            InvokeAsync("LoadWIPInventory_SEMIbyMO_WF", new object[] { InXml }, LoadWIPInventory_SEMIbyMO_WFOperationCompleted, userState);
        }

        private void OnLoadWIPInventory_SEMIbyMO_WFOperationCompleted(object arg)
        {
            if (LoadWIPInventory_SEMIbyMO_WFCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                LoadWIPInventory_SEMIbyMO_WFCompleted?.Invoke(this, new LoadWIPInventory_SEMIbyMO_WFCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/LoadOEMOBasis_byLot_WF", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string LoadOEMOBasis_byLot_WF(string InXml)
        {
            object[] results = Invoke("LoadOEMOBasis_byLot_WF", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginLoadOEMOBasis_byLot_WF(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("LoadOEMOBasis_byLot_WF", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndLoadOEMOBasis_byLot_WF(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void LoadOEMOBasis_byLot_WFAsync(string InXml)
        {
            LoadOEMOBasis_byLot_WFAsync(InXml, null);
        }

        /// <remarks/>
        public void LoadOEMOBasis_byLot_WFAsync(string InXml, object userState)
        {
            if (LoadOEMOBasis_byLot_WFOperationCompleted == null)
            {
                LoadOEMOBasis_byLot_WFOperationCompleted = OnLoadOEMOBasis_byLot_WFOperationCompleted;
            }
            InvokeAsync("LoadOEMOBasis_byLot_WF", new object[] { InXml }, LoadOEMOBasis_byLot_WFOperationCompleted, userState);
        }

        private void OnLoadOEMOBasis_byLot_WFOperationCompleted(object arg)
        {
            if (LoadOEMOBasis_byLot_WFCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                LoadOEMOBasis_byLot_WFCompleted?.Invoke(this, new LoadOEMOBasis_byLot_WFCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/UpdOSBasis", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string UpdOSBasis(string InXml)
        {
            object[] results = Invoke("UpdOSBasis", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginUpdOSBasis(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("UpdOSBasis", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndUpdOSBasis(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void UpdOSBasisAsync(string InXml)
        {
            UpdOSBasisAsync(InXml, null);
        }

        /// <remarks/>
        public void UpdOSBasisAsync(string InXml, object userState)
        {
            if (UpdOSBasisOperationCompleted == null)
            {
                UpdOSBasisOperationCompleted = OnUpdOSBasisOperationCompleted;
            }
            InvokeAsync("UpdOSBasis", new object[] { InXml }, UpdOSBasisOperationCompleted, userState);
        }

        private void OnUpdOSBasisOperationCompleted(object arg)
        {
            if (UpdOSBasisCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                UpdOSBasisCompleted?.Invoke(this, new UpdOSBasisCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/LoadMOMaterialStateOP", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string LoadMOMaterialStateOP(string InXml)
        {
            object[] results = Invoke("LoadMOMaterialStateOP", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginLoadMOMaterialStateOP(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("LoadMOMaterialStateOP", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndLoadMOMaterialStateOP(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void LoadMOMaterialStateOPAsync(string InXml)
        {
            LoadMOMaterialStateOPAsync(InXml, null);
        }

        /// <remarks/>
        public void LoadMOMaterialStateOPAsync(string InXml, object userState)
        {
            if (LoadMOMaterialStateOPOperationCompleted == null)
            {
                LoadMOMaterialStateOPOperationCompleted = OnLoadMOMaterialStateOPOperationCompleted;
            }
            InvokeAsync("LoadMOMaterialStateOP", new object[] { InXml }, LoadMOMaterialStateOPOperationCompleted, userState);
        }

        private void OnLoadMOMaterialStateOPOperationCompleted(object arg)
        {
            if (LoadMOMaterialStateOPCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                LoadMOMaterialStateOPCompleted?.Invoke(this, new LoadMOMaterialStateOPCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/LoadMOMaterialState", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string LoadMOMaterialState(string InXml)
        {
            object[] results = Invoke("LoadMOMaterialState", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginLoadMOMaterialState(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("LoadMOMaterialState", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndLoadMOMaterialState(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void LoadMOMaterialStateAsync(string InXml)
        {
            LoadMOMaterialStateAsync(InXml, null);
        }

        /// <remarks/>
        public void LoadMOMaterialStateAsync(string InXml, object userState)
        {
            if (LoadMOMaterialStateOperationCompleted == null)
            {
                LoadMOMaterialStateOperationCompleted = OnLoadMOMaterialStateOperationCompleted;
            }
            InvokeAsync("LoadMOMaterialState", new object[] { InXml }, LoadMOMaterialStateOperationCompleted, userState);
        }

        private void OnLoadMOMaterialStateOperationCompleted(object arg)
        {
            if (LoadMOMaterialStateCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                LoadMOMaterialStateCompleted?.Invoke(this, new LoadMOMaterialStateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOIssueReturn", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOIssueReturn(string InXml)
        {
            object[] results = Invoke("MOIssueReturn", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOIssueReturn(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOIssueReturn", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOIssueReturn(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOIssueReturnAsync(string InXml)
        {
            MOIssueReturnAsync(InXml, null);
        }

        /// <remarks/>
        public void MOIssueReturnAsync(string InXml, object userState)
        {
            if (MOIssueReturnOperationCompleted == null)
            {
                MOIssueReturnOperationCompleted = OnMOIssueReturnOperationCompleted;
            }
            InvokeAsync("MOIssueReturn", new object[] { InXml }, MOIssueReturnOperationCompleted, userState);
        }

        private void OnMOIssueReturnOperationCompleted(object arg)
        {
            if (MOIssueReturnCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOIssueReturnCompleted?.Invoke(this, new MOIssueReturnCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/MOIssueReturn_Cancel", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string MOIssueReturn_Cancel(string InXml)
        {
            object[] results = Invoke("MOIssueReturn_Cancel", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginMOIssueReturn_Cancel(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("MOIssueReturn_Cancel", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndMOIssueReturn_Cancel(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void MOIssueReturn_CancelAsync(string InXml)
        {
            MOIssueReturn_CancelAsync(InXml, null);
        }

        /// <remarks/>
        public void MOIssueReturn_CancelAsync(string InXml, object userState)
        {
            if (MOIssueReturn_CancelOperationCompleted == null)
            {
                MOIssueReturn_CancelOperationCompleted = OnMOIssueReturn_CancelOperationCompleted;
            }
            InvokeAsync("MOIssueReturn_Cancel", new object[] { InXml }, MOIssueReturn_CancelOperationCompleted, userState);
        }

        private void OnMOIssueReturn_CancelOperationCompleted(object arg)
        {
            if (MOIssueReturn_CancelCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                MOIssueReturn_CancelCompleted?.Invoke(this, new MOIssueReturn_CancelCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/ExeMaterialScrap", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string ExeMaterialScrap(string InXml)
        {
            object[] results = Invoke("ExeMaterialScrap", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginExeMaterialScrap(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("ExeMaterialScrap", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndExeMaterialScrap(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void ExeMaterialScrapAsync(string InXml)
        {
            ExeMaterialScrapAsync(InXml, null);
        }

        /// <remarks/>
        public void ExeMaterialScrapAsync(string InXml, object userState)
        {
            if (ExeMaterialScrapOperationCompleted == null)
            {
                ExeMaterialScrapOperationCompleted = OnExeMaterialScrapOperationCompleted;
            }
            InvokeAsync("ExeMaterialScrap", new object[] { InXml }, ExeMaterialScrapOperationCompleted, userState);
        }

        private void OnExeMaterialScrapOperationCompleted(object arg)
        {
            if (ExeMaterialScrapCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                ExeMaterialScrapCompleted?.Invoke(this, new ExeMaterialScrapCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/GetERPReferenceNo", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string GetERPReferenceNo(string InXml)
        {
            object[] results = Invoke("GetERPReferenceNo", new object[] { InXml });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginGetERPReferenceNo(string InXml, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("GetERPReferenceNo", new object[] { InXml }, callback, asyncState);
        }

        /// <remarks/>
        public string EndGetERPReferenceNo(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void GetERPReferenceNoAsync(string InXml)
        {
            GetERPReferenceNoAsync(InXml, null);
        }

        /// <remarks/>
        public void GetERPReferenceNoAsync(string InXml, object userState)
        {
            if (GetERPReferenceNoOperationCompleted == null)
            {
                GetERPReferenceNoOperationCompleted = OnGetERPReferenceNoOperationCompleted;
            }
            InvokeAsync("GetERPReferenceNo", new object[] { InXml }, GetERPReferenceNoOperationCompleted, userState);
        }

        private void OnGetERPReferenceNoOperationCompleted(object arg)
        {
            if (GetERPReferenceNoCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                GetERPReferenceNoCompleted?.Invoke(this, new GetERPReferenceNoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/addTransactionLog", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public bool addTransactionLog(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, ref string arrException)
        {
            object[] results = Invoke("addTransactionLog", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException });
            arrException = Conversions.ToString(results[1]);
            return Conversions.ToBoolean(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginaddTransactionLog(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("addTransactionLog", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException }, callback, asyncState);
        }

        /// <remarks/>
        public bool EndaddTransactionLog(IAsyncResult asyncResult, ref string arrException)
        {
            object[] results = EndInvoke(asyncResult);
            arrException = Conversions.ToString(results[1]);
            return Conversions.ToBoolean(results[0]);
        }

        /// <remarks/>
        public void addTransactionLogAsync(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException)
        {
            addTransactionLogAsync(InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException, null);
        }

        /// <remarks/>
        public void addTransactionLogAsync(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException, object userState)
        {
            if (addTransactionLogOperationCompleted == null)
            {
                addTransactionLogOperationCompleted = OnaddTransactionLogOperationCompleted;
            }
            InvokeAsync("addTransactionLog", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException }, addTransactionLogOperationCompleted, userState);
        }

        private void OnaddTransactionLogOperationCompleted(object arg)
        {
            if (addTransactionLogCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                addTransactionLogCompleted?.Invoke(this, new addTransactionLogCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsMES/addTransactionLog_ErrorCode", RequestNamespace = "http://www.imestech.com/wsMES", ResponseNamespace = "http://www.imestech.com/wsMES", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public bool addTransactionLog_ErrorCode(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, ref string arrException, string ErrorCode, string LogClass)
        {
            object[] results = Invoke("addTransactionLog_ErrorCode", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException, ErrorCode, LogClass });
            arrException = Conversions.ToString(results[1]);
            return Conversions.ToBoolean(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginaddTransactionLog_ErrorCode(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException, string ErrorCode, string LogClass, AsyncCallback callback, object asyncState)















        {
            return BeginInvoke("addTransactionLog_ErrorCode", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException, ErrorCode, LogClass }, callback, asyncState);
        }

        /// <remarks/>
        public bool EndaddTransactionLog_ErrorCode(IAsyncResult asyncResult, ref string arrException)
        {
            object[] results = EndInvoke(asyncResult);
            arrException = Conversions.ToString(results[1]);
            return Conversions.ToBoolean(results[0]);
        }

        /// <remarks/>
        public void addTransactionLog_ErrorCodeAsync(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException, string ErrorCode, string LogClass)
        {
            addTransactionLog_ErrorCodeAsync(InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException, ErrorCode, LogClass, null);
        }

        /// <remarks/>
        public void addTransactionLog_ErrorCodeAsync(string InXml, string OutXml, string TransactionID, string ModuleID, string FunctionID, string ComputerName, string CurUserNo, string SendTime, string Result, string KeyValue, string ExceptionFun, string arrException, string ErrorCode, string LogClass, object userState)
        {
            if (addTransactionLog_ErrorCodeOperationCompleted == null)
            {
                addTransactionLog_ErrorCodeOperationCompleted = OnaddTransactionLog_ErrorCodeOperationCompleted;
            }
            InvokeAsync("addTransactionLog_ErrorCode", new object[] { InXml, OutXml, TransactionID, ModuleID, FunctionID, ComputerName, CurUserNo, SendTime, Result, KeyValue, ExceptionFun, arrException, ErrorCode, LogClass }, addTransactionLog_ErrorCodeOperationCompleted, userState);
        }

        private void OnaddTransactionLog_ErrorCodeOperationCompleted(object arg)
        {
            if (addTransactionLog_ErrorCodeCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                addTransactionLog_ErrorCodeCompleted?.Invoke(this, new addTransactionLog_ErrorCodeCompletedEventArgs(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 || ReferenceEquals(url, string.Empty))
            {
                return false;
            }
            var wsUri = new Uri(url);
            if (wsUri.Port >= 1024 && string.Compare(wsUri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return true;
            }
            return false;
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void LoadWIPInventory_SEMIbyMO_TPCompletedEventHandler(object sender, LoadWIPInventory_SEMIbyMO_TPCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class LoadWIPInventory_SEMIbyMO_TPCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal LoadWIPInventory_SEMIbyMO_TPCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void loadWIP_SEMI_MO_TPCompletedEventHandler(object sender, loadWIP_SEMI_MO_TPCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class loadWIP_SEMI_MO_TPCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal loadWIP_SEMI_MO_TPCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void loadWIP_SEMI_MO_WFCompletedEventHandler(object sender, loadWIP_SEMI_MO_WFCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class loadWIP_SEMI_MO_WFCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal loadWIP_SEMI_MO_WFCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void ChkmesStockIn_LotCompletedEventHandler(object sender, ChkmesStockIn_LotCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class ChkmesStockIn_LotCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal ChkmesStockIn_LotCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void updateINVBookingFlagCompletedEventHandler(object sender, updateINVBookingFlagCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class updateINVBookingFlagCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal updateINVBookingFlagCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_TPCompletedEventHandler(object sender, MOStockIn_TPCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_TPCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_TPCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_E10CompletedEventHandler(object sender, MOStockIn_E10CompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_E10CompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_E10CompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_Scrap_TPCompletedEventHandler(object sender, MOStockIn_Scrap_TPCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_Scrap_TPCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_Scrap_TPCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_WFCompletedEventHandler(object sender, MOStockIn_WFCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_WFCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_WFCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_Check_WFCompletedEventHandler(object sender, MOStockIn_Check_WFCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_Check_WFCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_Check_WFCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOStockIn_WF_CancelCompletedEventHandler(object sender, MOStockIn_WF_CancelCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOStockIn_WF_CancelCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOStockIn_WF_CancelCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void LoadWIPInventory_SEMIbyMO_WFCompletedEventHandler(object sender, LoadWIPInventory_SEMIbyMO_WFCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class LoadWIPInventory_SEMIbyMO_WFCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal LoadWIPInventory_SEMIbyMO_WFCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void LoadOEMOBasis_byLot_WFCompletedEventHandler(object sender, LoadOEMOBasis_byLot_WFCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class LoadOEMOBasis_byLot_WFCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal LoadOEMOBasis_byLot_WFCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void UpdOSBasisCompletedEventHandler(object sender, UpdOSBasisCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class UpdOSBasisCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal UpdOSBasisCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void LoadMOMaterialStateOPCompletedEventHandler(object sender, LoadMOMaterialStateOPCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class LoadMOMaterialStateOPCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal LoadMOMaterialStateOPCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void LoadMOMaterialStateCompletedEventHandler(object sender, LoadMOMaterialStateCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class LoadMOMaterialStateCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal LoadMOMaterialStateCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOIssueReturnCompletedEventHandler(object sender, MOIssueReturnCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOIssueReturnCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOIssueReturnCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void MOIssueReturn_CancelCompletedEventHandler(object sender, MOIssueReturn_CancelCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class MOIssueReturn_CancelCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal MOIssueReturn_CancelCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void ExeMaterialScrapCompletedEventHandler(object sender, ExeMaterialScrapCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class ExeMaterialScrapCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal ExeMaterialScrapCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void GetERPReferenceNoCompletedEventHandler(object sender, GetERPReferenceNoCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class GetERPReferenceNoCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal GetERPReferenceNoCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void addTransactionLogCompletedEventHandler(object sender, addTransactionLogCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class addTransactionLogCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal addTransactionLogCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public bool Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToBoolean(results[0]);
            }
        }

        /// <remarks/>
        public string arrException
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[1]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    public delegate void addTransactionLog_ErrorCodeCompletedEventHandler(object sender, addTransactionLog_ErrorCodeCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.4084.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class addTransactionLog_ErrorCodeCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal addTransactionLog_ErrorCodeCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public bool Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToBoolean(results[0]);
            }
        }

        /// <remarks/>
        public string arrException
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[1]);
            }
        }
    }
}