diff --git a/DanfeFluentBlazor/DanfeFluentBlazor/Components/DadosNFe.razor b/DanfeFluentBlazor/DanfeFluentBlazor/Components/DadosNFe.razor index fbd0880..b4d39cc 100644 --- a/DanfeFluentBlazor/DanfeFluentBlazor/Components/DadosNFe.razor +++ b/DanfeFluentBlazor/DanfeFluentBlazor/Components/DadosNFe.razor @@ -4,7 +4,7 @@ - + @@ -17,5 +17,5 @@ @code { [Parameter] - public nfeProc? nfeProc { get; set; } + public nfeProc nfeProc { get; set; } = new(); } diff --git a/DanfeFluentBlazor/DanfeFluentBlazor/Components/IdentificacaoDaNotaFiscalEletronica.razor b/DanfeFluentBlazor/DanfeFluentBlazor/Components/IdentificacaoDaNotaFiscalEletronica.razor index b3d0a1e..223fa05 100644 --- a/DanfeFluentBlazor/DanfeFluentBlazor/Components/IdentificacaoDaNotaFiscalEletronica.razor +++ b/DanfeFluentBlazor/DanfeFluentBlazor/Components/IdentificacaoDaNotaFiscalEletronica.razor @@ -1,5 +1,6 @@ @using DanfeFluentBlazor.Extensions @using NFe.Classes +@using NFe.Classes.Informacoes.Identificacao Identificação da nota fiscal eletrônica @@ -8,24 +9,21 @@ - + - - - - + - + @code { [Parameter] - public nfeProc? nfeProc { get; set; } + public ide IdentificacaoDaNFe { get; set; } = new(); - private string NumeroSerie => $"{nfeProc?.NFe.infNFe.ide.nNF.ToString()}/{nfeProc?.NFe.infNFe.ide.serie}"; + private string NumeroSerie => $"{IdentificacaoDaNFe.nNF.ToString()}/{IdentificacaoDaNFe.serie}"; }