//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// Il codice sorgente è stato generato automaticamente da Microsoft.VSDesigner, versione 4.0.30319.42000.
// 
#pragma warning disable 1591

namespace Consulenza.Web.ConsulenzaUnicaWS {
    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.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="ReportManagerSoap", Namespace="http://tempuri.org/")]
    public partial class ReportManager : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback CreaReportPOOperationCompleted;
        
        private System.Threading.SendOrPostCallback CreaReportNoChiaveOperationCompleted;
        
        private System.Threading.SendOrPostCallback CreaReportOperationCompleted;
        
        private System.Threading.SendOrPostCallback CreaReportOldOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetModelliOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetModelloOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetVincoliNoChiaveOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetVincoliOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetTemplatesOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetTemplateOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetSchedeTemplateOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetTemplateOperationCompleted;
        
        private System.Threading.SendOrPostCallback DelTemplateOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetDocumentPdfOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetStatoOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetlogPdfOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetPdfsOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetPdfOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public ReportManager() {
            this.Url = global::Consulenza.Web.Properties.Settings.Default.Consulenza_Web_ConsulenzaUnicaWS_ReportManager;
            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 CreaReportPOCompletedEventHandler CreaReportPOCompleted;
        
        /// <remarks/>
        public event CreaReportNoChiaveCompletedEventHandler CreaReportNoChiaveCompleted;
        
        /// <remarks/>
        public event CreaReportCompletedEventHandler CreaReportCompleted;
        
        /// <remarks/>
        public event CreaReportOldCompletedEventHandler CreaReportOldCompleted;
        
        /// <remarks/>
        public event GetModelliCompletedEventHandler GetModelliCompleted;
        
        /// <remarks/>
        public event GetModelloCompletedEventHandler GetModelloCompleted;
        
        /// <remarks/>
        public event GetVincoliNoChiaveCompletedEventHandler GetVincoliNoChiaveCompleted;
        
        /// <remarks/>
        public event GetVincoliCompletedEventHandler GetVincoliCompleted;
        
        /// <remarks/>
        public event GetTemplatesCompletedEventHandler GetTemplatesCompleted;
        
        /// <remarks/>
        public event GetTemplateCompletedEventHandler GetTemplateCompleted;
        
        /// <remarks/>
        public event GetSchedeTemplateCompletedEventHandler GetSchedeTemplateCompleted;
        
        /// <remarks/>
        public event SetTemplateCompletedEventHandler SetTemplateCompleted;
        
        /// <remarks/>
        public event DelTemplateCompletedEventHandler DelTemplateCompleted;
        
        /// <remarks/>
        public event SetDocumentPdfCompletedEventHandler SetDocumentPdfCompleted;
        
        /// <remarks/>
        public event SetStatoCompletedEventHandler SetStatoCompleted;
        
        /// <remarks/>
        public event GetlogPdfCompletedEventHandler GetlogPdfCompleted;
        
        /// <remarks/>
        public event GetPdfsCompletedEventHandler GetPdfsCompleted;
        
        /// <remarks/>
        public event GetPdfCompletedEventHandler GetPdfCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreaReportPO", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
        public byte[] CreaReportPO(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiaveProposta) {
            object[] results = this.Invoke("CreaReportPO", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        chiaveProposta});
            return ((byte[])(results[0]));
        }
        
        /// <remarks/>
        public void CreaReportPOAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiaveProposta) {
            this.CreaReportPOAsync(codiceAgente, codiceFiscale, codiceMandato, codiceRete, chiaveProposta, null);
        }
        
        /// <remarks/>
        public void CreaReportPOAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiaveProposta, object userState) {
            if ((this.CreaReportPOOperationCompleted == null)) {
                this.CreaReportPOOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreaReportPOOperationCompleted);
            }
            this.InvokeAsync("CreaReportPO", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        chiaveProposta}, this.CreaReportPOOperationCompleted, userState);
        }
        
        private void OnCreaReportPOOperationCompleted(object arg) {
            if ((this.CreaReportPOCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreaReportPOCompleted(this, new CreaReportPOCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreaReportNoChiave", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
        public byte[] CreaReportNoChiave(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, Template template, Parametro[] parametri) {
            object[] results = this.Invoke("CreaReportNoChiave", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        template,
                        parametri});
            return ((byte[])(results[0]));
        }
        
        /// <remarks/>
        public void CreaReportNoChiaveAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, Template template, Parametro[] parametri) {
            this.CreaReportNoChiaveAsync(codiceAgente, codiceFiscale, codiceMandato, codiceRete, template, parametri, null);
        }
        
        /// <remarks/>
        public void CreaReportNoChiaveAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, Template template, Parametro[] parametri, object userState) {
            if ((this.CreaReportNoChiaveOperationCompleted == null)) {
                this.CreaReportNoChiaveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreaReportNoChiaveOperationCompleted);
            }
            this.InvokeAsync("CreaReportNoChiave", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        template,
                        parametri}, this.CreaReportNoChiaveOperationCompleted, userState);
        }
        
        private void OnCreaReportNoChiaveOperationCompleted(object arg) {
            if ((this.CreaReportNoChiaveCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreaReportNoChiaveCompleted(this, new CreaReportNoChiaveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreaReport", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
        public byte[] CreaReport(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiave, Template template, Parametro[] parametri) {
            object[] results = this.Invoke("CreaReport", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        chiave,
                        template,
                        parametri});
            return ((byte[])(results[0]));
        }
        
        /// <remarks/>
        public void CreaReportAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiave, Template template, Parametro[] parametri) {
            this.CreaReportAsync(codiceAgente, codiceFiscale, codiceMandato, codiceRete, chiave, template, parametri, null);
        }
        
        /// <remarks/>
        public void CreaReportAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long chiave, Template template, Parametro[] parametri, object userState) {
            if ((this.CreaReportOperationCompleted == null)) {
                this.CreaReportOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreaReportOperationCompleted);
            }
            this.InvokeAsync("CreaReport", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        chiave,
                        template,
                        parametri}, this.CreaReportOperationCompleted, userState);
        }
        
        private void OnCreaReportOperationCompleted(object arg) {
            if ((this.CreaReportCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreaReportCompleted(this, new CreaReportCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreaReportOld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
        public byte[] CreaReportOld(long chiave, Template template, Parametro[] parametri) {
            object[] results = this.Invoke("CreaReportOld", new object[] {
                        chiave,
                        template,
                        parametri});
            return ((byte[])(results[0]));
        }
        
        /// <remarks/>
        public void CreaReportOldAsync(long chiave, Template template, Parametro[] parametri) {
            this.CreaReportOldAsync(chiave, template, parametri, null);
        }
        
        /// <remarks/>
        public void CreaReportOldAsync(long chiave, Template template, Parametro[] parametri, object userState) {
            if ((this.CreaReportOldOperationCompleted == null)) {
                this.CreaReportOldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreaReportOldOperationCompleted);
            }
            this.InvokeAsync("CreaReportOld", new object[] {
                        chiave,
                        template,
                        parametri}, this.CreaReportOldOperationCompleted, userState);
        }
        
        private void OnCreaReportOldOperationCompleted(object arg) {
            if ((this.CreaReportOldCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreaReportOldCompleted(this, new CreaReportOldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetModelli", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Modello[] GetModelli() {
            object[] results = this.Invoke("GetModelli", new object[0]);
            return ((Modello[])(results[0]));
        }
        
        /// <remarks/>
        public void GetModelliAsync() {
            this.GetModelliAsync(null);
        }
        
        /// <remarks/>
        public void GetModelliAsync(object userState) {
            if ((this.GetModelliOperationCompleted == null)) {
                this.GetModelliOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetModelliOperationCompleted);
            }
            this.InvokeAsync("GetModelli", new object[0], this.GetModelliOperationCompleted, userState);
        }
        
        private void OnGetModelliOperationCompleted(object arg) {
            if ((this.GetModelliCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetModelliCompleted(this, new GetModelliCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetModello", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Modello GetModello(int idModello, string codicePb) {
            object[] results = this.Invoke("GetModello", new object[] {
                        idModello,
                        codicePb});
            return ((Modello)(results[0]));
        }
        
        /// <remarks/>
        public void GetModelloAsync(int idModello, string codicePb) {
            this.GetModelloAsync(idModello, codicePb, null);
        }
        
        /// <remarks/>
        public void GetModelloAsync(int idModello, string codicePb, object userState) {
            if ((this.GetModelloOperationCompleted == null)) {
                this.GetModelloOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetModelloOperationCompleted);
            }
            this.InvokeAsync("GetModello", new object[] {
                        idModello,
                        codicePb}, this.GetModelloOperationCompleted, userState);
        }
        
        private void OnGetModelloOperationCompleted(object arg) {
            if ((this.GetModelloCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetModelloCompleted(this, new GetModelloCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetVincoliNoChiave", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Vincolo[] GetVincoliNoChiave(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long proposta, string modello) {
            object[] results = this.Invoke("GetVincoliNoChiave", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        proposta,
                        modello});
            return ((Vincolo[])(results[0]));
        }
        
        /// <remarks/>
        public void GetVincoliNoChiaveAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long proposta, string modello) {
            this.GetVincoliNoChiaveAsync(codiceAgente, codiceFiscale, codiceMandato, codiceRete, proposta, modello, null);
        }
        
        /// <remarks/>
        public void GetVincoliNoChiaveAsync(string codiceAgente, string codiceFiscale, string codiceMandato, string codiceRete, long proposta, string modello, object userState) {
            if ((this.GetVincoliNoChiaveOperationCompleted == null)) {
                this.GetVincoliNoChiaveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVincoliNoChiaveOperationCompleted);
            }
            this.InvokeAsync("GetVincoliNoChiave", new object[] {
                        codiceAgente,
                        codiceFiscale,
                        codiceMandato,
                        codiceRete,
                        proposta,
                        modello}, this.GetVincoliNoChiaveOperationCompleted, userState);
        }
        
        private void OnGetVincoliNoChiaveOperationCompleted(object arg) {
            if ((this.GetVincoliNoChiaveCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetVincoliNoChiaveCompleted(this, new GetVincoliNoChiaveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetVincoli", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Vincolo[] GetVincoli(long chiave, long proposta, string modello) {
            object[] results = this.Invoke("GetVincoli", new object[] {
                        chiave,
                        proposta,
                        modello});
            return ((Vincolo[])(results[0]));
        }
        
        /// <remarks/>
        public void GetVincoliAsync(long chiave, long proposta, string modello) {
            this.GetVincoliAsync(chiave, proposta, modello, null);
        }
        
        /// <remarks/>
        public void GetVincoliAsync(long chiave, long proposta, string modello, object userState) {
            if ((this.GetVincoliOperationCompleted == null)) {
                this.GetVincoliOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVincoliOperationCompleted);
            }
            this.InvokeAsync("GetVincoli", new object[] {
                        chiave,
                        proposta,
                        modello}, this.GetVincoliOperationCompleted, userState);
        }
        
        private void OnGetVincoliOperationCompleted(object arg) {
            if ((this.GetVincoliCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetVincoliCompleted(this, new GetVincoliCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetTemplates", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Template[] GetTemplates(int idModello, string codicePb) {
            object[] results = this.Invoke("GetTemplates", new object[] {
                        idModello,
                        codicePb});
            return ((Template[])(results[0]));
        }
        
        /// <remarks/>
        public void GetTemplatesAsync(int idModello, string codicePb) {
            this.GetTemplatesAsync(idModello, codicePb, null);
        }
        
        /// <remarks/>
        public void GetTemplatesAsync(int idModello, string codicePb, object userState) {
            if ((this.GetTemplatesOperationCompleted == null)) {
                this.GetTemplatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTemplatesOperationCompleted);
            }
            this.InvokeAsync("GetTemplates", new object[] {
                        idModello,
                        codicePb}, this.GetTemplatesOperationCompleted, userState);
        }
        
        private void OnGetTemplatesOperationCompleted(object arg) {
            if ((this.GetTemplatesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetTemplatesCompleted(this, new GetTemplatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetTemplate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public Template GetTemplate(int idTemplate, string isDefault) {
            object[] results = this.Invoke("GetTemplate", new object[] {
                        idTemplate,
                        isDefault});
            return ((Template)(results[0]));
        }
        
        /// <remarks/>
        public void GetTemplateAsync(int idTemplate, string isDefault) {
            this.GetTemplateAsync(idTemplate, isDefault, null);
        }
        
        /// <remarks/>
        public void GetTemplateAsync(int idTemplate, string isDefault, object userState) {
            if ((this.GetTemplateOperationCompleted == null)) {
                this.GetTemplateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetTemplateOperationCompleted);
            }
            this.InvokeAsync("GetTemplate", new object[] {
                        idTemplate,
                        isDefault}, this.GetTemplateOperationCompleted, userState);
        }
        
        private void OnGetTemplateOperationCompleted(object arg) {
            if ((this.GetTemplateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetTemplateCompleted(this, new GetTemplateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSchedeTemplate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public SchedaTemplate[] GetSchedeTemplate(int idTemplate, string isDefault) {
            object[] results = this.Invoke("GetSchedeTemplate", new object[] {
                        idTemplate,
                        isDefault});
            return ((SchedaTemplate[])(results[0]));
        }
        
        /// <remarks/>
        public void GetSchedeTemplateAsync(int idTemplate, string isDefault) {
            this.GetSchedeTemplateAsync(idTemplate, isDefault, null);
        }
        
        /// <remarks/>
        public void GetSchedeTemplateAsync(int idTemplate, string isDefault, object userState) {
            if ((this.GetSchedeTemplateOperationCompleted == null)) {
                this.GetSchedeTemplateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSchedeTemplateOperationCompleted);
            }
            this.InvokeAsync("GetSchedeTemplate", new object[] {
                        idTemplate,
                        isDefault}, this.GetSchedeTemplateOperationCompleted, userState);
        }
        
        private void OnGetSchedeTemplateOperationCompleted(object arg) {
            if ((this.GetSchedeTemplateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetSchedeTemplateCompleted(this, new GetSchedeTemplateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetTemplate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int SetTemplate(int idModello, string codicePb, string nomeTemplate, Option[] opzTemplate, SchedaTemplate[] schede) {
            object[] results = this.Invoke("SetTemplate", new object[] {
                        idModello,
                        codicePb,
                        nomeTemplate,
                        opzTemplate,
                        schede});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SetTemplateAsync(int idModello, string codicePb, string nomeTemplate, Option[] opzTemplate, SchedaTemplate[] schede) {
            this.SetTemplateAsync(idModello, codicePb, nomeTemplate, opzTemplate, schede, null);
        }
        
        /// <remarks/>
        public void SetTemplateAsync(int idModello, string codicePb, string nomeTemplate, Option[] opzTemplate, SchedaTemplate[] schede, object userState) {
            if ((this.SetTemplateOperationCompleted == null)) {
                this.SetTemplateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetTemplateOperationCompleted);
            }
            this.InvokeAsync("SetTemplate", new object[] {
                        idModello,
                        codicePb,
                        nomeTemplate,
                        opzTemplate,
                        schede}, this.SetTemplateOperationCompleted, userState);
        }
        
        private void OnSetTemplateOperationCompleted(object arg) {
            if ((this.SetTemplateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetTemplateCompleted(this, new SetTemplateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DelTemplate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int DelTemplate(int idTemplate) {
            object[] results = this.Invoke("DelTemplate", new object[] {
                        idTemplate});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void DelTemplateAsync(int idTemplate) {
            this.DelTemplateAsync(idTemplate, null);
        }
        
        /// <remarks/>
        public void DelTemplateAsync(int idTemplate, object userState) {
            if ((this.DelTemplateOperationCompleted == null)) {
                this.DelTemplateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDelTemplateOperationCompleted);
            }
            this.InvokeAsync("DelTemplate", new object[] {
                        idTemplate}, this.DelTemplateOperationCompleted, userState);
        }
        
        private void OnDelTemplateOperationCompleted(object arg) {
            if ((this.DelTemplateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DelTemplateCompleted(this, new DelTemplateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetDocumentPdf", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long SetDocumentPdf(DocumentoPdf documentoPdf, string idProvenienza) {
            object[] results = this.Invoke("SetDocumentPdf", new object[] {
                        documentoPdf,
                        idProvenienza});
            return ((long)(results[0]));
        }
        
        /// <remarks/>
        public void SetDocumentPdfAsync(DocumentoPdf documentoPdf, string idProvenienza) {
            this.SetDocumentPdfAsync(documentoPdf, idProvenienza, null);
        }
        
        /// <remarks/>
        public void SetDocumentPdfAsync(DocumentoPdf documentoPdf, string idProvenienza, object userState) {
            if ((this.SetDocumentPdfOperationCompleted == null)) {
                this.SetDocumentPdfOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDocumentPdfOperationCompleted);
            }
            this.InvokeAsync("SetDocumentPdf", new object[] {
                        documentoPdf,
                        idProvenienza}, this.SetDocumentPdfOperationCompleted, userState);
        }
        
        private void OnSetDocumentPdfOperationCompleted(object arg) {
            if ((this.SetDocumentPdfCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetDocumentPdfCompleted(this, new SetDocumentPdfCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetStato", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int SetStato(long idPdf, string idstato, string idProvenienza) {
            object[] results = this.Invoke("SetStato", new object[] {
                        idPdf,
                        idstato,
                        idProvenienza});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SetStatoAsync(long idPdf, string idstato, string idProvenienza) {
            this.SetStatoAsync(idPdf, idstato, idProvenienza, null);
        }
        
        /// <remarks/>
        public void SetStatoAsync(long idPdf, string idstato, string idProvenienza, object userState) {
            if ((this.SetStatoOperationCompleted == null)) {
                this.SetStatoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetStatoOperationCompleted);
            }
            this.InvokeAsync("SetStato", new object[] {
                        idPdf,
                        idstato,
                        idProvenienza}, this.SetStatoOperationCompleted, userState);
        }
        
        private void OnSetStatoOperationCompleted(object arg) {
            if ((this.SetStatoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetStatoCompleted(this, new SetStatoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetlogPdf", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public LogPdf[] GetlogPdf(long idPdf) {
            object[] results = this.Invoke("GetlogPdf", new object[] {
                        idPdf});
            return ((LogPdf[])(results[0]));
        }
        
        /// <remarks/>
        public void GetlogPdfAsync(long idPdf) {
            this.GetlogPdfAsync(idPdf, null);
        }
        
        /// <remarks/>
        public void GetlogPdfAsync(long idPdf, object userState) {
            if ((this.GetlogPdfOperationCompleted == null)) {
                this.GetlogPdfOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetlogPdfOperationCompleted);
            }
            this.InvokeAsync("GetlogPdf", new object[] {
                        idPdf}, this.GetlogPdfOperationCompleted, userState);
        }
        
        private void OnGetlogPdfOperationCompleted(object arg) {
            if ((this.GetlogPdfCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetlogPdfCompleted(this, new GetlogPdfCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPdfs", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public DocumentoPdf[] GetPdfs(RicercaPdf ricercaPdf) {
            object[] results = this.Invoke("GetPdfs", new object[] {
                        ricercaPdf});
            return ((DocumentoPdf[])(results[0]));
        }
        
        /// <remarks/>
        public void GetPdfsAsync(RicercaPdf ricercaPdf) {
            this.GetPdfsAsync(ricercaPdf, null);
        }
        
        /// <remarks/>
        public void GetPdfsAsync(RicercaPdf ricercaPdf, object userState) {
            if ((this.GetPdfsOperationCompleted == null)) {
                this.GetPdfsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPdfsOperationCompleted);
            }
            this.InvokeAsync("GetPdfs", new object[] {
                        ricercaPdf}, this.GetPdfsOperationCompleted, userState);
        }
        
        private void OnGetPdfsOperationCompleted(object arg) {
            if ((this.GetPdfsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetPdfsCompleted(this, new GetPdfsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPdf", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public DocumentoPdf GetPdf(long idPdf) {
            object[] results = this.Invoke("GetPdf", new object[] {
                        idPdf});
            return ((DocumentoPdf)(results[0]));
        }
        
        /// <remarks/>
        public void GetPdfAsync(long idPdf) {
            this.GetPdfAsync(idPdf, null);
        }
        
        /// <remarks/>
        public void GetPdfAsync(long idPdf, object userState) {
            if ((this.GetPdfOperationCompleted == null)) {
                this.GetPdfOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPdfOperationCompleted);
            }
            this.InvokeAsync("GetPdf", new object[] {
                        idPdf}, this.GetPdfOperationCompleted, userState);
        }
        
        private void OnGetPdfOperationCompleted(object arg) {
            if ((this.GetPdfCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetPdfCompleted(this, new GetPdfCompletedEventArgs(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.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Template {
        
        private int idField;
        
        private string nomeField;
        
        private string codicePbField;
        
        private int idModelloField;
        
        private Option[] optionsField;
        
        private string isDefaultField;
        
        private SchedaTemplate[] schedeField;
        
        /// <remarks/>
        public int Id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public string Nome {
            get {
                return this.nomeField;
            }
            set {
                this.nomeField = value;
            }
        }
        
        /// <remarks/>
        public string CodicePb {
            get {
                return this.codicePbField;
            }
            set {
                this.codicePbField = value;
            }
        }
        
        /// <remarks/>
        public int IdModello {
            get {
                return this.idModelloField;
            }
            set {
                this.idModelloField = value;
            }
        }
        
        /// <remarks/>
        public Option[] Options {
            get {
                return this.optionsField;
            }
            set {
                this.optionsField = value;
            }
        }
        
        /// <remarks/>
        public string IsDefault {
            get {
                return this.isDefaultField;
            }
            set {
                this.isDefaultField = value;
            }
        }
        
        /// <remarks/>
        public SchedaTemplate[] Schede {
            get {
                return this.schedeField;
            }
            set {
                this.schedeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Option {
        
        private string keyField;
        
        private string valueField;
        
        /// <remarks/>
        public string Key {
            get {
                return this.keyField;
            }
            set {
                this.keyField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class RicercaPdf {
        
        private long idPdfField;
        
        private string idProvenienzaField;
        
        private int[] idModelloField;
        
        private string idStatoField;
        
        private string idArchivioField;
        
        private string codicePbField;
        
        private System.DateTime dtInizioField;
        
        private System.DateTime dtFineField;
        
        private string codiceContrattoField;
        
        private long chiaveNucleoField;
        
        private long chiaveClientePbField;
        
        private string chiavePropostaField;
        
        private string propostaBaseField;
        
        /// <remarks/>
        public long IdPdf {
            get {
                return this.idPdfField;
            }
            set {
                this.idPdfField = value;
            }
        }
        
        /// <remarks/>
        public string IdProvenienza {
            get {
                return this.idProvenienzaField;
            }
            set {
                this.idProvenienzaField = value;
            }
        }
        
        /// <remarks/>
        public int[] IdModello {
            get {
                return this.idModelloField;
            }
            set {
                this.idModelloField = value;
            }
        }
        
        /// <remarks/>
        public string IdStato {
            get {
                return this.idStatoField;
            }
            set {
                this.idStatoField = value;
            }
        }
        
        /// <remarks/>
        public string IdArchivio {
            get {
                return this.idArchivioField;
            }
            set {
                this.idArchivioField = value;
            }
        }
        
        /// <remarks/>
        public string CodicePb {
            get {
                return this.codicePbField;
            }
            set {
                this.codicePbField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime DtInizio {
            get {
                return this.dtInizioField;
            }
            set {
                this.dtInizioField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime DtFine {
            get {
                return this.dtFineField;
            }
            set {
                this.dtFineField = value;
            }
        }
        
        /// <remarks/>
        public string CodiceContratto {
            get {
                return this.codiceContrattoField;
            }
            set {
                this.codiceContrattoField = value;
            }
        }
        
        /// <remarks/>
        public long ChiaveNucleo {
            get {
                return this.chiaveNucleoField;
            }
            set {
                this.chiaveNucleoField = value;
            }
        }
        
        /// <remarks/>
        public long ChiaveClientePb {
            get {
                return this.chiaveClientePbField;
            }
            set {
                this.chiaveClientePbField = value;
            }
        }
        
        /// <remarks/>
        public string ChiaveProposta {
            get {
                return this.chiavePropostaField;
            }
            set {
                this.chiavePropostaField = value;
            }
        }
        
        /// <remarks/>
        public string PropostaBase {
            get {
                return this.propostaBaseField;
            }
            set {
                this.propostaBaseField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class LogPdf {
        
        private long idPdfField;
        
        private string dtstampField;
        
        private string eventoField;
        
        private string provenienzaField;
        
        private string eventoDescField;
        
        private string utenteField;
        
        /// <remarks/>
        public long IdPdf {
            get {
                return this.idPdfField;
            }
            set {
                this.idPdfField = value;
            }
        }
        
        /// <remarks/>
        public string Dtstamp {
            get {
                return this.dtstampField;
            }
            set {
                this.dtstampField = value;
            }
        }
        
        /// <remarks/>
        public string Evento {
            get {
                return this.eventoField;
            }
            set {
                this.eventoField = value;
            }
        }
        
        /// <remarks/>
        public string Provenienza {
            get {
                return this.provenienzaField;
            }
            set {
                this.provenienzaField = value;
            }
        }
        
        /// <remarks/>
        public string EventoDesc {
            get {
                return this.eventoDescField;
            }
            set {
                this.eventoDescField = value;
            }
        }
        
        /// <remarks/>
        public string Utente {
            get {
                return this.utenteField;
            }
            set {
                this.utenteField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Cliente {
        
        private long chiaveClientePbField;
        
        private string codiceContrattoField;
        
        private long chiavePropostaField;
        
        private string propostaBaseField;
        
        /// <remarks/>
        public long ChiaveClientePb {
            get {
                return this.chiaveClientePbField;
            }
            set {
                this.chiaveClientePbField = value;
            }
        }
        
        /// <remarks/>
        public string CodiceContratto {
            get {
                return this.codiceContrattoField;
            }
            set {
                this.codiceContrattoField = value;
            }
        }
        
        /// <remarks/>
        public long ChiaveProposta {
            get {
                return this.chiavePropostaField;
            }
            set {
                this.chiavePropostaField = value;
            }
        }
        
        /// <remarks/>
        public string PropostaBase {
            get {
                return this.propostaBaseField;
            }
            set {
                this.propostaBaseField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class DocumentoPdf {
        
        private long idPdfField;
        
        private int idModelloField;
        
        private string idStatoField;
        
        private string idArchivioField;
        
        private string codicePBField;
        
        private string noteField;
        
        private byte[] imageField;
        
        private long chiaveNucleoField;
        
        private Cliente[] clientiField;
        
        private System.DateTime dtCreazioneField;
        
        private System.DateTime dtRestoreField;
        
        private System.DateTime dtEliminatoField;
        
        private LogPdf[] logPdfField;
        
        /// <remarks/>
        public long IdPdf {
            get {
                return this.idPdfField;
            }
            set {
                this.idPdfField = value;
            }
        }
        
        /// <remarks/>
        public int IdModello {
            get {
                return this.idModelloField;
            }
            set {
                this.idModelloField = value;
            }
        }
        
        /// <remarks/>
        public string IdStato {
            get {
                return this.idStatoField;
            }
            set {
                this.idStatoField = value;
            }
        }
        
        /// <remarks/>
        public string IdArchivio {
            get {
                return this.idArchivioField;
            }
            set {
                this.idArchivioField = value;
            }
        }
        
        /// <remarks/>
        public string CodicePB {
            get {
                return this.codicePBField;
            }
            set {
                this.codicePBField = value;
            }
        }
        
        /// <remarks/>
        public string Note {
            get {
                return this.noteField;
            }
            set {
                this.noteField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
        public byte[] Image {
            get {
                return this.imageField;
            }
            set {
                this.imageField = value;
            }
        }
        
        /// <remarks/>
        public long ChiaveNucleo {
            get {
                return this.chiaveNucleoField;
            }
            set {
                this.chiaveNucleoField = value;
            }
        }
        
        /// <remarks/>
        public Cliente[] Clienti {
            get {
                return this.clientiField;
            }
            set {
                this.clientiField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime dtCreazione {
            get {
                return this.dtCreazioneField;
            }
            set {
                this.dtCreazioneField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime dtRestore {
            get {
                return this.dtRestoreField;
            }
            set {
                this.dtRestoreField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime dtEliminato {
            get {
                return this.dtEliminatoField;
            }
            set {
                this.dtEliminatoField = value;
            }
        }
        
        /// <remarks/>
        public LogPdf[] logPdf {
            get {
                return this.logPdfField;
            }
            set {
                this.logPdfField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Tabs {
        
        private int idModelloField;
        
        private int numTabField;
        
        private string titoloField;
        
        /// <remarks/>
        public int IdModello {
            get {
                return this.idModelloField;
            }
            set {
                this.idModelloField = value;
            }
        }
        
        /// <remarks/>
        public int NumTab {
            get {
                return this.numTabField;
            }
            set {
                this.numTabField = value;
            }
        }
        
        /// <remarks/>
        public string Titolo {
            get {
                return this.titoloField;
            }
            set {
                this.titoloField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Vincolo {
        
        private string keyField;
        
        private string valueField;
        
        /// <remarks/>
        public string Key {
            get {
                return this.keyField;
            }
            set {
                this.keyField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Scheda {
        
        private int idField;
        
        private string nomeImmagineField;
        
        private string testoHTMLField;
        
        private int numTabField;
        
        private string sezioniField;
        
        private Vincolo[] vincoliField;
        
        private Option[] optionsField;
        
        /// <remarks/>
        public int Id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public string NomeImmagine {
            get {
                return this.nomeImmagineField;
            }
            set {
                this.nomeImmagineField = value;
            }
        }
        
        /// <remarks/>
        public string TestoHTML {
            get {
                return this.testoHTMLField;
            }
            set {
                this.testoHTMLField = value;
            }
        }
        
        /// <remarks/>
        public int NumTab {
            get {
                return this.numTabField;
            }
            set {
                this.numTabField = value;
            }
        }
        
        /// <remarks/>
        public string Sezioni {
            get {
                return this.sezioniField;
            }
            set {
                this.sezioniField = value;
            }
        }
        
        /// <remarks/>
        public Vincolo[] Vincoli {
            get {
                return this.vincoliField;
            }
            set {
                this.vincoliField = value;
            }
        }
        
        /// <remarks/>
        public Option[] Options {
            get {
                return this.optionsField;
            }
            set {
                this.optionsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Modello {
        
        private int idField;
        
        private string nomeField;
        
        private string reteField;
        
        private Scheda[] schedeField;
        
        private Template[] templatesField;
        
        private Option[] optionsField;
        
        private Tabs[] tabsField;
        
        /// <remarks/>
        public int Id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public string Nome {
            get {
                return this.nomeField;
            }
            set {
                this.nomeField = value;
            }
        }
        
        /// <remarks/>
        public string Rete {
            get {
                return this.reteField;
            }
            set {
                this.reteField = value;
            }
        }
        
        /// <remarks/>
        public Scheda[] Schede {
            get {
                return this.schedeField;
            }
            set {
                this.schedeField = value;
            }
        }
        
        /// <remarks/>
        public Template[] Templates {
            get {
                return this.templatesField;
            }
            set {
                this.templatesField = value;
            }
        }
        
        /// <remarks/>
        public Option[] Options {
            get {
                return this.optionsField;
            }
            set {
                this.optionsField = value;
            }
        }
        
        /// <remarks/>
        public Tabs[] Tabs {
            get {
                return this.tabsField;
            }
            set {
                this.tabsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class Parametro {
        
        private string keyField;
        
        private string valueField;
        
        private Parametro[] parametriField;
        
        /// <remarks/>
        public string Key {
            get {
                return this.keyField;
            }
            set {
                this.keyField = value;
            }
        }
        
        /// <remarks/>
        public string Value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
        
        /// <remarks/>
        public Parametro[] Parametri {
            get {
                return this.parametriField;
            }
            set {
                this.parametriField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class SchedaTemplate {
        
        private int idField;
        
        private Option[] optionsField;
        
        /// <remarks/>
        public int Id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public Option[] Options {
            get {
                return this.optionsField;
            }
            set {
                this.optionsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void CreaReportPOCompletedEventHandler(object sender, CreaReportPOCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreaReportPOCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreaReportPOCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public byte[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((byte[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void CreaReportNoChiaveCompletedEventHandler(object sender, CreaReportNoChiaveCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreaReportNoChiaveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreaReportNoChiaveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public byte[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((byte[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void CreaReportCompletedEventHandler(object sender, CreaReportCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreaReportCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreaReportCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public byte[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((byte[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void CreaReportOldCompletedEventHandler(object sender, CreaReportOldCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreaReportOldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreaReportOldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public byte[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((byte[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetModelliCompletedEventHandler(object sender, GetModelliCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetModelliCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetModelliCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Modello[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Modello[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetModelloCompletedEventHandler(object sender, GetModelloCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetModelloCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetModelloCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Modello Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Modello)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetVincoliNoChiaveCompletedEventHandler(object sender, GetVincoliNoChiaveCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetVincoliNoChiaveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetVincoliNoChiaveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Vincolo[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Vincolo[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetVincoliCompletedEventHandler(object sender, GetVincoliCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetVincoliCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetVincoliCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Vincolo[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Vincolo[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetTemplatesCompletedEventHandler(object sender, GetTemplatesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetTemplatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetTemplatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Template[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Template[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetTemplateCompletedEventHandler(object sender, GetTemplateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetTemplateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetTemplateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public Template Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((Template)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetSchedeTemplateCompletedEventHandler(object sender, GetSchedeTemplateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetSchedeTemplateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetSchedeTemplateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public SchedaTemplate[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((SchedaTemplate[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void SetTemplateCompletedEventHandler(object sender, SetTemplateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetTemplateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetTemplateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void DelTemplateCompletedEventHandler(object sender, DelTemplateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DelTemplateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal DelTemplateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void SetDocumentPdfCompletedEventHandler(object sender, SetDocumentPdfCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetDocumentPdfCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetDocumentPdfCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void SetStatoCompletedEventHandler(object sender, SetStatoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SetStatoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SetStatoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetlogPdfCompletedEventHandler(object sender, GetlogPdfCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetlogPdfCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetlogPdfCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public LogPdf[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((LogPdf[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetPdfsCompletedEventHandler(object sender, GetPdfsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetPdfsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetPdfsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public DocumentoPdf[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((DocumentoPdf[])(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    public delegate void GetPdfCompletedEventHandler(object sender, GetPdfCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetPdfCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetPdfCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public DocumentoPdf Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((DocumentoPdf)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591