Exemplo n.º 1
0
        private XmlNode contato()
        {
            if (this.Contato == null)
            {
                throw new InvalidOperationException("sem contato");
            }

            XmlElement e = XmlDoc.CreateElement("contato");

            e.AppendChild(CreateElement("nmCtt", this.Contato.nmCtt));
            e.AppendChild(CreateElement("cpfCtt", FormatadorReinf.FormatarCPFCNPJCNO(this.Contato.cpfCtt)));
            if (!string.IsNullOrEmpty(this.Contato.foneFixo))
            {
                e.AppendChild(CreateElement("foneFixo", FormatadorReinf.FormatarTelefone(this.Contato.foneFixo)));
            }
            if (!string.IsNullOrEmpty(this.Contato.foneCel))
            {
                e.AppendChild(CreateElement("foneCel", FormatadorReinf.FormatarTelefone(this.Contato.foneCel)));
            }
            if (!string.IsNullOrEmpty(this.Contato.email))
            {
                e.AppendChild(CreateElement("email", this.Contato.email));
            }
            return(e);
        }
Exemplo n.º 2
0
        protected virtual XmlNode ideEvento()
        {
            XmlElement e = XmlDoc.CreateElement("ideEvento");

            e.AppendChild(CreateElement("perApur", FormatadorReinf.FormatarMesAno(this.perApur)));
            return(e);
        }
Exemplo n.º 3
0
        protected XmlElement CreateElement(string tagName, string innerText)
        {
            XmlElement element = this.XmlDoc.CreateElement(tagName);

            element.InnerText = FormatadorReinf.FormatarGenerico(innerText);
            return(element);
        }
Exemplo n.º 4
0
        protected virtual XmlNode ideContri()
        {
            XmlElement e = XmlDoc.CreateElement("ideContri");

            e.AppendChild(CreateElement("tpInsc", ((int)this.TipoInscricao).ToString()));
            e.AppendChild(CreateElement("nrInsc", FormatadorReinf.FormatarCPFCNPJCNO(this.NumeroInscricao)));
            return(e);
        }
Exemplo n.º 5
0
        private XmlNode outrasReceitas()
        {
            XmlElement e = XmlDoc.CreateElement("outrasReceitas");

            e.AppendChild(CreateElement("tpReceita", this.tpReceita));
            e.AppendChild(CreateElement("vlrReceita", FormatadorReinf.FormatarMoeda(this.vlrReceita)));
            e.AppendChild(CreateElement("descReceita", this.descReceita));
            return(e);
        }
Exemplo n.º 6
0
        private XmlNode infoRecurso()
        {
            XmlElement e = XmlDoc.CreateElement("infoRecurso");

            e.AppendChild(CreateElement("tpRepasse", this.tpRepasse));
            e.AppendChild(CreateElement("descRecurso", this.descRecurso));
            e.AppendChild(CreateElement("vlrBruto", FormatadorReinf.FormatarMoeda(this.vlrBruto)));
            e.AppendChild(CreateElement("vlrRetApur", FormatadorReinf.FormatarMoeda(this.vlrRetApur)));
            return(e);
        }
Exemplo n.º 7
0
        private XmlNode tipoCom()
        {
            XmlElement e = XmlDoc.CreateElement("tipoCom");

            e.AppendChild(CreateElement("indCom", this.indCom));
            e.AppendChild(CreateElement("vlrRecBruta", FormatadorReinf.FormatarMoeda(this.vlrRecBruta)));
            e.AppendChild(infoProc());

            return(e);
        }
Exemplo n.º 8
0
        private XmlNode recursosRep()
        {
            XmlElement e = XmlDoc.CreateElement("recursosRep");

            e.AppendChild(CreateElement("cnpjAssocDesp", this.cnpjAssocDesp));
            e.AppendChild(CreateElement("vlrTotalRep", FormatadorReinf.FormatarMoeda(this.vlrTotalRep)));
            e.AppendChild(CreateElement("vlrTotalRet", FormatadorReinf.FormatarMoeda(this.vlrTotalRet)));
            e.AppendChild(CreateElement("vlrTotalNRet", FormatadorReinf.FormatarMoeda(this.vlrTotalNRet)));
            e.AppendChild(infoProc());
            return(e);
        }
Exemplo n.º 9
0
        private XmlNode novaValidade()
        {
            XmlElement e = XmlDoc.CreateElement("novaValidade");

            e.AppendChild(CreateElement("iniValid", FormatadorReinf.FormatarMesAno(this.NovoMesAnoInicioValidade)));
            if (this.NovoMesAnoFimValidade > DateTime.MinValue)
            {
                e.AppendChild(CreateElement("fimValid", FormatadorReinf.FormatarMesAno(this.NovoMesAnoFimValidade)));
            }
            return(e);
        }
Exemplo n.º 10
0
        private XmlNode infoProc()
        {
            XmlElement e = XmlDoc.CreateElement("infoProc");

            e.AppendChild(CreateElement("tpProc", this.tpProc));
            e.AppendChild(CreateElement("nrProc", this.nrProc));
            //Este campo deve ser utilizado se, num mesmo processo
            //e.AppendChild(CreateElement("codSusp", this.codSusp));
            e.AppendChild(CreateElement("vlrNRet", FormatadorReinf.FormatarMoeda(this.vlrNRet)));
            return(e);
        }
Exemplo n.º 11
0
        private XmlNode tipoAjuste()
        {
            XmlElement e = XmlDoc.CreateElement("tipoAjuste");

            e.AppendChild(CreateElement("tpAjuste", this.tpAjuste));
            e.AppendChild(CreateElement("codAjuste", this.codAjuste));
            e.AppendChild(CreateElement("vlrAjuste", FormatadorReinf.FormatarMoeda(this.vlrAjuste)));
            e.AppendChild(CreateElement("descAjuste", this.descAjuste));
            e.AppendChild(CreateElement("dtAjuste", FormatadorReinf.FormatarMesAno(this._dtAjuste)));

            return(e);
        }
Exemplo n.º 12
0
        private XmlNode infoProc()
        {
            XmlElement e = XmlDoc.CreateElement("infoProc");

            e.AppendChild(CreateElement("tpProc", this.tpProc));
            e.AppendChild(CreateElement("nrProc", this.nrProc));


            //e.AppendChild(CreateElement("codSusp", this.codSusp));
            e.AppendChild(CreateElement("vlrCPSusp", FormatadorReinf.FormatarMoeda(this.vlrCPSusp)));
            return(e);
        }
Exemplo n.º 13
0
        private XmlNode nfs()
        {
            XmlElement e = XmlDoc.CreateElement("nfs");

            e.AppendChild(CreateElement("serie", this.serie));
            e.AppendChild(CreateElement("numDocto", this.numDocto));
            e.AppendChild(CreateElement("dtEmissaoNF", FormatadorReinf.FormatarData(this.dtEmissaoNF)));
            e.AppendChild(CreateElement("vlrBruto", FormatadorReinf.FormatarMoeda(this.vlrBruto)));
            e.AppendChild(CreateElement("obs", this.obs));
            e.AppendChild(infoTpServ());

            return(e);
        }
Exemplo n.º 14
0
        private XmlNode receitaTotal()
        {
            XmlElement e = XmlDoc.CreateElement("receitaTotal");

            e.AppendChild(CreateElement("vlrReceitaTotal", FormatadorReinf.FormatarMoeda(this.vlrReceitaTotal)));
            e.AppendChild(CreateElement("vlrCP", FormatadorReinf.FormatarMoeda(this.vlrCP)));
            e.AppendChild(CreateElement("vlrCPSuspTotal", FormatadorReinf.FormatarMoeda(this.vlrCPSuspTotal)));
            e.AppendChild(CreateElement("vlrCPSuspTotal", FormatadorReinf.FormatarMoeda(this.vlrReceitaClubes)));
            e.AppendChild(CreateElement("vlrCPSuspTotal", FormatadorReinf.FormatarMoeda(this.vlrRetParc)));
            e.AppendChild(infoProc());

            return(e);
        }
Exemplo n.º 15
0
        //private XmlNode operacao()
        //{
        //    XmlElement e = XmlDoc.CreateElement(this.Operacao.ToString().ToLower());
        //    e.AppendChild(ideEstabObra());
        //    if (this.Operacao != Enumeracoes.OperacoesREINF.EXCLUSAO)
        //    {
        //        e.AppendChild(idePrestServ());
        //        if (this.Operacao == Enumeracoes.OperacoesREINF.ALTERACAO)
        //            e.AppendChild(novaValidade());
        //    }
        //    return e;
        //}

        private XmlNode ideEstab()
        {
            XmlElement e = XmlDoc.CreateElement("ideEstab");

            e.AppendChild(CreateElement("tpInscEstab", this.tpInscEstab));
            e.AppendChild(CreateElement("nrInscEstab", this.nrInscEstab));
            e.AppendChild(CreateElement("vlrRecBrutaTotal", FormatadorReinf.FormatarMoeda(this.vlrRecBrutaTotal)));
            e.AppendChild(CreateElement("vlrCPApurTotal", FormatadorReinf.FormatarMoeda(this.vlrCPApurTotal)));
            e.AppendChild(CreateElement("vlrCPRBSuspTotal", FormatadorReinf.FormatarMoeda(this.vlrCPRBSuspTotal)));

            e.AppendChild(tipoCod());
            return(e);
        }
Exemplo n.º 16
0
        private XmlNode receitaIngressos()
        {
            XmlElement e = XmlDoc.CreateElement("receitaIngressos");

            e.AppendChild(CreateElement("tpIngresso", this.tpIngresso));
            e.AppendChild(CreateElement("descIngr", this.descIngr));
            e.AppendChild(CreateElement("qtdeIngrVenda", this.qtdeIngrVenda));
            e.AppendChild(CreateElement("qtdeIngrVendidos", this.qtdeIngrVendidos));
            e.AppendChild(CreateElement("qtdeIngrDev", this.qtdeIngrDev));
            e.AppendChild(CreateElement("precoIndiv", FormatadorReinf.FormatarMoeda(this.precoIndiv)));
            e.AppendChild(CreateElement("vlrTotal", FormatadorReinf.FormatarMoeda(this.vlrTotal)));

            return(e);
        }
Exemplo n.º 17
0
        //private XmlNode operacao()
        //{
        //    XmlElement e = XmlDoc.CreateElement(this.Operacao.ToString().ToLower());
        //    e.AppendChild(ideEstabObra());
        //    if (this.Operacao != Enumeracoes.OperacoesREINF.EXCLUSAO)
        //    {
        //        e.AppendChild(idePrestServ());
        //        if (this.Operacao == Enumeracoes.OperacoesREINF.ALTERACAO)
        //            e.AppendChild(novaValidade());
        //    }
        //    return e;
        //}

        //private XmlNode ideEstab()
        //{
        //    XmlElement e = XmlDoc.CreateElement("ideEstab");

        //    e.AppendChild(CreateElement("tpInscEstab", this.tpInscEstab));
        //    e.AppendChild(CreateElement("nrInscEstab", this.nrInscEstab));
        //    e.AppendChild(recursosRec());
        //    return e;
        //}

        private XmlNode recursosRec()
        {
            XmlElement e = XmlDoc.CreateElement("recursosRec");

            e.AppendChild(CreateElement("cnpjOrigRecurso", this.cnpjOrigRecurso));
            e.AppendChild(CreateElement("vlrTotalRec", FormatadorReinf.FormatarMoeda(this.vlrTotalRec)));
            e.AppendChild(CreateElement("vlrTotalRet", FormatadorReinf.FormatarMoeda(this.vlrTotalRet)));
            e.AppendChild(CreateElement("vlrTotalNRet", FormatadorReinf.FormatarMoeda(this.vlrTotalNRet)));
            e.AppendChild(infoRecurso());
            e.AppendChild(infoProc());
            //e.AppendChild(infoProcRetAd());

            return(e);
        }
Exemplo n.º 18
0
        protected override XmlNode infoFech()
        {
            XmlElement e = XmlDoc.CreateElement("infoFech");

            e.AppendChild(CreateElement("evtServTm", this.evtServTm));
            e.AppendChild(CreateElement("evtServPr", this.evtServPr));
            e.AppendChild(CreateElement("evtAssDespRec", this.evtAssDespRec));
            e.AppendChild(CreateElement("evtAssDespRep", this.evtAssDespRep));
            e.AppendChild(CreateElement("evtComProd", this.evtComProd));
            e.AppendChild(CreateElement("evtCPRB", this.evtCPRB));
            e.AppendChild(CreateElement("evtPgtos", this.evtPgtos));
            e.AppendChild(CreateElement("compSemMovto", FormatadorReinf.FormatarMesAno(this.compSemMovto)));

            return(e);
        }
Exemplo n.º 19
0
        private XmlNode tipoCod()
        {
            XmlElement e = XmlDoc.CreateElement("tipoCod");

            e.AppendChild(CreateElement("codAtivEcon", this.codAtivEcon));
            e.AppendChild(CreateElement("vlrRecBrutaAtiv", FormatadorReinf.FormatarMoeda(this.vlrRecBrutaAtiv)));
            e.AppendChild(CreateElement("vlrExcRecBruta", FormatadorReinf.FormatarMoeda(this.vlrExcRecBruta)));
            e.AppendChild(CreateElement("vlrAdicRecBruta", FormatadorReinf.FormatarMoeda(this.vlrAdicRecBruta)));
            e.AppendChild(CreateElement("vlrBcCPRB", FormatadorReinf.FormatarMoeda(this.vlrBcCPRB)));
            e.AppendChild(CreateElement("vlrCPRBapur", FormatadorReinf.FormatarMoeda(this.vlrCPRBapur)));

            e.AppendChild(tipoAjuste());
            e.AppendChild(infoProc());

            return(e);
        }
Exemplo n.º 20
0
        private XmlNode infoTpServ()
        {
            XmlElement e = XmlDoc.CreateElement("infoTpServ");

            e.AppendChild(CreateElement("tpServico", this.tpServico));
            e.AppendChild(CreateElement("vlrBaseRet", FormatadorReinf.FormatarMoeda(this.vlrBaseRet)));
            e.AppendChild(CreateElement("vlrRetencao", this.vlrRetencao));
            e.AppendChild(CreateElement("vlrRetSub", FormatadorReinf.FormatarMoeda(this.vlrRetSub)));
            e.AppendChild(CreateElement("vlrNRetPrinc", this.vlrNRetPrinc));
            e.AppendChild(CreateElement("vlrServicos15", FormatadorReinf.FormatarMoeda(this.vlrServicos15)));
            e.AppendChild(CreateElement("vlrServicos20", FormatadorReinf.FormatarMoeda(this.vlrServicos20)));
            e.AppendChild(CreateElement("vlrServicos25", FormatadorReinf.FormatarMoeda(this.vlrServicos25)));
            e.AppendChild(CreateElement("vlrAdicional", FormatadorReinf.FormatarMoeda(this.vlrAdicional)));
            e.AppendChild(CreateElement("vlrNRetAdic", FormatadorReinf.FormatarMoeda(this.vlrNRetAdic)));

            return(e);
        }
Exemplo n.º 21
0
        private XmlNode ideProcesso()
        {
            XmlElement e = XmlDoc.CreateElement("ideProcesso");

            e.AppendChild(CreateElement("tpProc", this.TipoDeProcesso));
            e.AppendChild(CreateElement("nrProc", this.NumeroProcesso));
            e.AppendChild(CreateElement("iniValid", FormatadorReinf.FormatarMesAno(this.MesAnoInicioValidade)));
            if (this.MesAnoFimValidade > DateTime.MinValue)
            {
                e.AppendChild(CreateElement("fimValid", FormatadorReinf.FormatarMesAno(this.MesAnoFimValidade)));
            }
            e.AppendChild(CreateElement("indAutoria", this.IndicativoAuditoria));

            e.AppendChild(infoSusp());

            return(e);
        }
Exemplo n.º 22
0
        protected virtual XmlNode ideEvento()
        {
            XmlElement e = XmlDoc.CreateElement("ideEvento");

            e.AppendChild(CreateElement("indRetif", this.indRetif));

            //Preencher com o número do recibo do arquivo a ser retificado.
            //Validação: O preenchimento é obrigatório se { indRetif } = [2]
            //e.AppendChild(CreateElement("nrRecibo", this.nrRecibo));

            e.AppendChild(CreateElement("perApur", FormatadorReinf.FormatarMesAno(this.perApur)));
            e.AppendChild(CreateElement("tpAmb", ((int)this.Ambiente).ToString()));
            e.AppendChild(CreateElement("procEmi", APLICATIVO_DO_CONTRIBUINTE));
            e.AppendChild(CreateElement("verProc", this.VersaoProcesso));

            return(e);
        }
Exemplo n.º 23
0
        private XmlNode softHouse()
        {
            XmlElement e = XmlDoc.CreateElement("softHouse");

            e.AppendChild(CreateElement("cnpjSoftHouse", FormatadorReinf.FormatarCPFCNPJCNO(this.SoftwareHouse.cnpjSoftHouse)));
            e.AppendChild(CreateElement("nmRazao", this.SoftwareHouse.nmRazao));
            e.AppendChild(CreateElement("nmCont", this.SoftwareHouse.nmCont));
            if (!string.IsNullOrEmpty(this.SoftwareHouse.telefone))
            {
                e.AppendChild(CreateElement("telefone", FormatadorReinf.FormatarTelefone(this.SoftwareHouse.telefone)));
            }
            if (!string.IsNullOrEmpty(this.SoftwareHouse.email))
            {
                e.AppendChild(CreateElement("email", this.SoftwareHouse.email));
            }
            return(e);
        }
Exemplo n.º 24
0
        protected virtual XmlNode ideEvento()
        {
            XmlElement e = XmlDoc.CreateElement("ideEvento");

            e.AppendChild(CreateElement("indRetif", this.indRetif));
            //Preencher com o número do recibo do arquivo a ser retificado.
            //Validação: O preenchimento é obrigatório se { indRetif} = [2].
            //Deve ser um recibo de entrega válido, correspondente ao arquivo objeto da
            //retificação.
            //e.AppendChild(CreateElement("nrRecibo", this.nrRecibo));
            e.AppendChild(CreateElement("dtApuracao", FormatadorReinf.FormatarData(this.dtApuracao)));
            e.AppendChild(CreateElement("tpAmb", ((int)this.Ambiente).ToString()));
            e.AppendChild(CreateElement("procEmi", APLICATIVO_DO_CONTRIBUINTE));
            e.AppendChild(CreateElement("verProc", this.VersaoProcesso));

            return(e);
        }
Exemplo n.º 25
0
        private XmlNode infoSusp()
        {
            XmlElement e = XmlDoc.CreateElement("infoSusp");

            //Verificar qdo adicionar esse nó
            //e.AppendChild(CreateElement("codSusp", this.CodigoIndicativoSuspensao));
            e.AppendChild(CreateElement("indSusp", this.IndicativoDeSuspencao));
            e.AppendChild(CreateElement("dtDecisao", FormatadorReinf.FormatarData(this.DataDecisao)));
            e.AppendChild(CreateElement("indDeposito", this.IndicativodeDeposito));

            //VERIFICAR A NECESSIDADE DE INCLUIR ESSE NÓ!
            //e.AppendChild(dadosProcJud());

            //if (this.SoftwareHouse != null)
            //e.AppendChild(softHouse());

            return(e);
        }
Exemplo n.º 26
0
        private XmlNode idePrestServ()
        {
            XmlElement e = XmlDoc.CreateElement("idePrestServ");

            e.AppendChild(CreateElement("cnpjPrestador", this.cnpjPrestador));
            e.AppendChild(CreateElement("vlrTotalBruto", FormatadorReinf.FormatarMoeda(this.vlrTotalBruto)));
            e.AppendChild(CreateElement("vlrTotalBaseRet", FormatadorReinf.FormatarMoeda(this.vlrTotalBaseRet)));
            e.AppendChild(CreateElement("vlrTotalRetPrinc", FormatadorReinf.FormatarMoeda(this.vlrTotalRetPrinc)));
            e.AppendChild(CreateElement("vlrTotalRetAdic", FormatadorReinf.FormatarMoeda(this.vlrTotalRetAdic)));
            e.AppendChild(CreateElement("vlrTotalNRetPrinc", FormatadorReinf.FormatarMoeda(this.vlrTotalNRetPrinc)));
            e.AppendChild(CreateElement("vlrTotalNRetAdic", FormatadorReinf.FormatarMoeda(this.vlrTotalNRetAdic)));
            e.AppendChild(CreateElement("indCPRB", this.indCPRB));

            e.AppendChild(nfs());
            e.AppendChild(infoProcRetPr());
            e.AppendChild(infoProcRetAd());

            return(e);
        }