Example #1
0
        public CliForModel(CedentePrestatoreSimplified.CedentePrestatore cedentePrestatore)
        {
            if (cedentePrestatore != null)
            {
                this.IdPaese           = cedentePrestatore.IdFiscaleIVA.IdPaese;
                this.IdCodice          = cedentePrestatore.IdFiscaleIVA.IdCodice;
                this.CodiceFiscale     = cedentePrestatore.CodiceFiscale;
                this.Denominazione     = cedentePrestatore.Denominazione;
                this.Nome              = cedentePrestatore.Nome;
                this.Cognome           = cedentePrestatore.Cognome;
                this.Ufficio           = cedentePrestatore.IscrizioneREA.Ufficio;
                this.NumeroREA         = cedentePrestatore.IscrizioneREA.NumeroREA;
                this.CapitaleSociale   = cedentePrestatore.IscrizioneREA.CapitaleSociale;
                this.SocioUnico        = cedentePrestatore.IscrizioneREA.SocioUnico;
                this.StatoLiquidazione = cedentePrestatore.IscrizioneREA.StatoLiquidazione;
                this.RegimeFiscale     = cedentePrestatore.RegimeFiscale;

                if (cedentePrestatore.RappresentanteFiscale != null)
                {
                    this.RappresentanteFiscale = new CliForModel(cedentePrestatore.RappresentanteFiscale);
                }

                if (cedentePrestatore.Sede != null && cedentePrestatore.Sede.CAP != null)
                {
                    this.Sedi = new List <SediModel>();
                    this.Sedi.Add(new SediModel(cedentePrestatore.Sede));
                }

                if (cedentePrestatore.StabileOrganizzazione != null &&
                    cedentePrestatore.StabileOrganizzazione.CAP != null)
                {
                    if (this.Sedi == null)
                    {
                        this.Sedi = new List <SediModel>();
                    }
                    this.Sedi.Add(new SediModel(cedentePrestatore.StabileOrganizzazione));
                }
            }
        }
Example #2
0
 /// <summary>
 /// Intestazione della FatturaOrdinaria Elettronica.
 /// </summary>
 public FatturaElettronicaHeader()
 {
     DatiTrasmissione       = new DatiTrasmissione.DatiTrasmissione();
     CedentePrestatore      = new CedentePrestatore.CedentePrestatore();
     CessionarioCommittente = new CessionarioCommittente.CessionarioCommittente();
 }