示例#1
0
文件: EnviaXML.cs 项目: ertprs/Estudo
        public static XmlNode ObterXmlStatusServicoNFe(NotaFiscal notaFiscal, XmlDocument xmlStatusServicoNFe)
        {
            var uf = LojaDAO.Instance.GetUf(notaFiscal.IdLoja.Value)?.ToUpper() ?? string.Empty;

            if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Producao)
            {
                return(GetWebService.NFeStatusServicoProducao(notaFiscal, null, uf).nfeStatusServicoNF(xmlStatusServicoNFe));
            }
            else if (ConfigNFe.TipoAmbiente == ConfigNFe.TipoAmbienteNfe.Homologacao)
            {
                return(GetWebService.NFeStatusServicoHomologacao(notaFiscal, null, uf).nfeStatusServicoNF(xmlStatusServicoNFe));
            }

            return(null);
        }