コード例 #1
0
ファイル: EnviaXML.cs プロジェクト: ertprs/Estudo
        public static XmlNode ObterXmlRecepcaoEventoNFCe(NotaFiscal notaFiscal, XmlDocument xmlRecepcaoEventoNFCe)
        {
            var uf = LojaDAO.Instance.GetUf(notaFiscal.IdLoja.Value)?.ToUpper() ?? string.Empty;

            if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Producao)
            {
                return(GetWebService.NFCeRecepcaoEventoProducao(notaFiscal, null, uf).nfeRecepcaoEvento(xmlRecepcaoEventoNFCe));
            }
            else if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Homologacao)
            {
                return(GetWebService.NFCeRecepcaoEventoHomologacao(notaFiscal, null, uf).nfeRecepcaoEvento(xmlRecepcaoEventoNFCe));
            }

            return(null);
        }