-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reincluído projeto do QuestPdf na solução
- Loading branch information
Maurício Bernardo
committed
Feb 3, 2025
1 parent
290b9d0
commit f43b575
Showing
16 changed files
with
1,938 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
654 changes: 654 additions & 0 deletions
654
NFe.Danfe.QuestPdf/ImpressaoEventoNfe/EventoNfeDocument.cs
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.ComponentModel; | ||
|
||
namespace NFe.Danfe.QuestPdf.ImpressaoNfce; | ||
|
||
public enum TamanhoImpressao | ||
{ | ||
[Description("Impressão 80mm")] | ||
Impressao80 = 1, | ||
|
||
[Description("Impressão 72mm")] | ||
Impressao72 = 2, | ||
|
||
[Description("Impressão 50mm")] | ||
Impressao50 = 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class EmpresaModel | ||
{ | ||
public string RazaoSocial { get; set; } | ||
public string Cnpj { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class NfceInutilizacaoModel | ||
{ | ||
public DateTime InutilizacaoEm { get; set; } | ||
public string DescricaoModelo { get; set; } | ||
public int Serie { get; set; } | ||
public int NumeroInicial { get; set; } | ||
public int NumeroFinal { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class NfceResumidaModel | ||
{ | ||
public DateTime AutorizacaoEm { get; set; } | ||
public string Situacao { get; set; } | ||
public int Serie { get; set; } | ||
public int NumeroFiscal { get; set; } | ||
public string Chave { get; set; } | ||
public decimal ValorTotal { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class NfeInutilizadaModel | ||
{ | ||
public DateTime InutilizacaoEm { get; set; } | ||
public string DescricaoModelo { get; set; } | ||
public int Serie { get; set; } | ||
public int NumeroInicial { get; set; } | ||
public int NumeroFinal { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class NfeResumidaModel | ||
{ | ||
public DateTime AutorizacaoEm { get; set; } | ||
public string Situacao { get; set; } | ||
public int Serie { get; set; } | ||
public int NumeroFiscal { get; set; } | ||
public string Chave { get; set; } | ||
public decimal ValorTotal { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class PeriodoModel | ||
{ | ||
public DateOnly DataInicial { get; set; } | ||
public DateOnly DataFinal { get; set; } | ||
} |
20 changes: 20 additions & 0 deletions
20
NFe.Danfe.QuestPdf/Models/RelatorioFiscalEmissoesNfceModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class RelatorioFiscalEmissoesNfceModel | ||
{ | ||
public EmpresaModel EmpresaModel { get; set; } | ||
public PeriodoModel PeriodoModel { get; set; } | ||
public IEnumerable<NfceResumidaModel> NfceResumidaModels { get; set; } | ||
public IEnumerable<NfceInutilizacaoModel> NfceInutilizacaoModels { get; set; } | ||
|
||
public decimal QuantidadeNfceAutorizada => NfceResumidaModels.Count(n => n.Situacao == "Autorizada"); | ||
public decimal ValorTotalNfceAutorizada => NfceResumidaModels.Where(n => n.Situacao == "Autorizada") | ||
.Sum(n => n.ValorTotal); | ||
public decimal QuantidadeNfceCancelada => NfceResumidaModels.Count(n => n.Situacao == "Cancelada"); | ||
public decimal ValorTotalNfceCancelada => NfceResumidaModels.Where(n => n.Situacao == "Cancelada") | ||
.Sum(n => n.ValorTotal); | ||
public decimal QuantidadeNfceDenegada => NfceResumidaModels.Count(n => n.Situacao == "Denegada"); | ||
|
||
public decimal ValorTotalNfceDenegada => NfceResumidaModels.Where(n => n.Situacao == "Denegada") | ||
.Sum(n => n.ValorTotal); | ||
} |
20 changes: 20 additions & 0 deletions
20
NFe.Danfe.QuestPdf/Models/RelatorioFiscalEmissoesNfeModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace NFe.Danfe.QuestPdf.Models; | ||
|
||
public class RelatorioFiscalEmissoesNfeModel | ||
{ | ||
public EmpresaModel EmpresaModel { get; set; } | ||
public PeriodoModel PeriodoModel { get; set; } | ||
public IEnumerable<NfeResumidaModel> NfeResumidaModels { get; set; } | ||
public IEnumerable<NfeInutilizadaModel> NfeInutilizacaoModels { get; set; } | ||
|
||
public decimal QuantidadeNfeAutorizada => NfeResumidaModels.Count(n => n.Situacao == "Autorizada"); | ||
public decimal ValorTotalNfeAutorizada => NfeResumidaModels.Where(n => n.Situacao == "Autorizada") | ||
.Sum(n => n.ValorTotal); | ||
public decimal QuantidadeNfeCancelada => NfeResumidaModels.Count(n => n.Situacao == "Cancelada"); | ||
public decimal ValorTotalNfeCancelada => NfeResumidaModels.Where(n => n.Situacao == "Cancelada") | ||
.Sum(n => n.ValorTotal); | ||
public decimal QuantidadeNfeDenegada => NfeResumidaModels.Count(n => n.Situacao == "Denegada"); | ||
|
||
public decimal ValorTotalNfeDenegada => NfeResumidaModels.Where(n => n.Situacao == "Denegada") | ||
.Sum(n => n.ValorTotal); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="Fontes\Arial.ttf" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="Fontes\Arial.ttf"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BarcodeLib" Version="3.1.4" /> | ||
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="7.3.0.2" /> | ||
<PackageReference Include="Hercules.NET.NFe.NFCe" Version="2024.9.19.1844" /> | ||
<PackageReference Include="QuestPDF" Version="2024.7.3" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" /> | ||
<PackageReference Include="SkiaSharp.QrCode" Version="0.7.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.