From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- .../BancosContasMap.cs | 27 ++++++++++++++ .../CentroMap.cs | 22 ++++++++++++ .../ControleFinanceiroMap.cs | 24 +++++++++++++ .../FornecedorMap.cs | 42 ++++++++++++++++++++++ .../LancamentoMap.cs | 36 +++++++++++++++++++ .../PlanoMap.cs | 21 +++++++++++ .../PlanosMap.cs | 25 +++++++++++++ .../SaldoMap.cs | 25 +++++++++++++ .../TipoContaMap.cs | 21 +++++++++++ 9 files changed, 243 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/BancosContasMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/CentroMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/FornecedorMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/LancamentoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanosMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/SaldoMap.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/TipoContaMap.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/BancosContasMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/BancosContasMap.cs new file mode 100644 index 0000000..c04a524 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/BancosContasMap.cs @@ -0,0 +1,27 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class BancosContasMap : ClassMap + { + public BancosContasMap() + { + base.Table("conta"); + base.LazyLoad(); + base.Id((BancosContasDb x) => (object)x.Id).GeneratedBy.Identity().Column("idconta"); + base.References((BancosContasDb x) => x.Banco).Column("idcodigobanco").Fetch.Join(); + base.Map((BancosContasDb x) => (object)x.IdEmpresa).Column("idempresa"); + base.Map((BancosContasDb x) => x.Descricao).Column("descricao"); + base.Map((BancosContasDb x) => x.Agencia).Column("agencia"); + base.Map((BancosContasDb x) => x.Conta).Column("conta"); + base.Map((BancosContasDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); + base.Map((BancosContasDb x) => (object)x.Ativo).Column("ativo").CustomType(); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/CentroMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/CentroMap.cs new file mode 100644 index 0000000..c59e823 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/CentroMap.cs @@ -0,0 +1,22 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class CentroMap : ClassMap + { + public CentroMap() + { + base.Table("centro"); + base.LazyLoad(); + base.Id((CentroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcentro"); + base.Map((CentroDb x) => x.Descricao).Column("descricao"); + base.Map((CentroDb x) => (object)x.Ativo).Column("ativo").CustomType(); + base.Map((CentroDb x) => (object)x.IdEmpresa).Column("idempresa"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs new file mode 100644 index 0000000..e5e420c --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/ControleFinanceiroMap.cs @@ -0,0 +1,24 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class ControleFinanceiroMap : ClassMap + { + public ControleFinanceiroMap() + { + base.Table("cfinan"); + base.LazyLoad(); + base.Id((ControleFinanceiroDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcfinan"); + base.References((ControleFinanceiroDb x) => x.Fornecedor).Column("idfornecedor").NotFound.Ignore().Fetch.Join(); + base.References((ControleFinanceiroDb x) => x.Plano).Column("idcplanos").NotFound.Ignore().Fetch.Join(); + base.References((ControleFinanceiroDb x) => x.Centro).Column("idcentro").NotFound.Ignore().Fetch.Join(); + base.Map((ControleFinanceiroDb x) => x.Historico).Column("historico"); + base.Map((ControleFinanceiroDb x) => (object)x.Parcelas).Column("parcela"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/FornecedorMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/FornecedorMap.cs new file mode 100644 index 0000000..431c4a8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/FornecedorMap.cs @@ -0,0 +1,42 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class FornecedorMap : ClassMap + { + public FornecedorMap() + { + base.Table("fornecedor"); + base.LazyLoad(); + base.Id((FornecedorDb x) => (object)x.Id).GeneratedBy.Identity().Column("idfornecedor"); + base.Map((FornecedorDb x) => (object)x.IdEmpresa).Column("idempresa").Not.Nullable(); + base.Map((FornecedorDb x) => (object)x.IdCentro).Column("idcentro"); + base.Map((FornecedorDb x) => (object)x.IdConta).Column("idconta"); + base.Map((FornecedorDb x) => (object)x.IdPlano).Column("idcplanos"); + base.Map((FornecedorDb x) => (object)x.TipoPagamento).CustomType().Column("idtipopagto"); + base.Map((FornecedorDb x) => x.Nome).Column("nome"); + base.Map((FornecedorDb x) => x.Documento).Column("cpfcnpj"); + base.Map((FornecedorDb x) => x.Cep).Column("cep"); + base.Map((FornecedorDb x) => x.Cidade).Column("cidade"); + base.Map((FornecedorDb x) => x.Estado).Column("uf"); + base.Map((FornecedorDb x) => x.Bairro).Column("bairro"); + base.Map((FornecedorDb x) => x.Endereco).Column("endereco"); + base.Map((FornecedorDb x) => x.Numero).Column("numero"); + base.Map((FornecedorDb x) => x.Complemento).Column("complemento"); + base.Map((FornecedorDb x) => (object)x.TipoTelefone1).CustomType().Column("idfonetipo1"); + base.Map((FornecedorDb x) => x.Prefixo1).Column("ddd1"); + base.Map((FornecedorDb x) => x.Telefone1).Column("fone1"); + base.Map((FornecedorDb x) => (object)x.TipoTelefone2).CustomType().Column("idfonetipo2"); + base.Map((FornecedorDb x) => x.Prefixo2).Column("ddd2"); + base.Map((FornecedorDb x) => x.Telefone2).Column("fone2"); + base.Map((FornecedorDb x) => (object)x.Ativo).Column("Ativo"); + base.Map((FornecedorDb x) => x.Email).Column("email"); + base.Map((FornecedorDb x) => x.Observacao).CustomType("StringClob").CustomSqlType("varchar(MAX)"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/LancamentoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/LancamentoMap.cs new file mode 100644 index 0000000..baf3ce7 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/LancamentoMap.cs @@ -0,0 +1,36 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class LancamentoMap : ClassMap + { + public LancamentoMap() + { + base.Table("lancamen"); + base.LazyLoad(); + base.Id((LancamentoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idlancamen"); + base.References((LancamentoDb x) => x.Controle).Column("idcfinan").Fetch.Join(); + base.References((LancamentoDb x) => x.Conta).Column("idconta").Fetch.Join(); + base.Map((LancamentoDb x) => (object)x.TipoPagamento).CustomType>().Column("idtipopagto"); + base.Map((LancamentoDb x) => x.Historico).Column("historico"); + base.Map((LancamentoDb x) => x.Documento).Column("documento"); + base.Map((LancamentoDb x) => x.Complemento).Column("complemento"); + base.Map((LancamentoDb x) => x.Competencia).Column("competencia"); + base.Map((LancamentoDb x) => (object)x.Parcela).Column("parcela"); + base.Map((LancamentoDb x) => (object)x.Valor).Column("vlrpre"); + base.Map((LancamentoDb x) => (object)x.Vencimento).Column("dtpre"); + base.Map((LancamentoDb x) => (object)x.Baixa).Column("dtbaixa"); + base.Map((LancamentoDb x) => (object)x.ValorPago).Column("vlrbaixa"); + base.Map((LancamentoDb x) => (object)x.Pagamento).Column("dtpagto"); + base.Map((LancamentoDb x) => (object)x.Sinal).CustomType>().Column("sinal"); + base.Map((LancamentoDb x) => x.Observacao).Column("obs").CustomType("StringClob").CustomSqlType("varchar(MAX)"); + base.Map((LancamentoDb x) => x.CodigoBanco); + base.Map((LancamentoDb x) => (object)x.DataLancamento).Column("datacriacao"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanoMap.cs new file mode 100644 index 0000000..7017c7a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanoMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class PlanoMap : ClassMap + { + public PlanoMap() + { + base.Table("cplano"); + base.LazyLoad(); + base.Id((PlanoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcplano"); + base.Map((PlanoDb x) => x.Descricao).Column("descricao"); + base.Map((PlanoDb x) => (object)x.Ativo).Column("ativo").CustomType(); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanosMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanosMap.cs new file mode 100644 index 0000000..bbbbc2b --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/PlanosMap.cs @@ -0,0 +1,25 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using Gestor.Infrastructure.Entities.Seguros; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class PlanosMap : ClassMap + { + public PlanosMap() + { + base.Table("cplanos"); + base.LazyLoad(); + base.Id((PlanosDb x) => (object)x.Id).GeneratedBy.Identity().Column("idcplanos"); + base.References((PlanosDb x) => x.TipoConta).Column("idtipoconta"); + base.References((PlanosDb x) => x.Plano).Column("idcplano").Fetch.Join(); + base.Map((PlanosDb x) => x.Descricao).Column("descricao"); + base.Map((PlanosDb x) => (object)x.Sinal).Column("ctipo").CustomType>(); + base.Map((PlanosDb x) => (object)x.Ativo).Column("ativo").CustomType(); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/SaldoMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/SaldoMap.cs new file mode 100644 index 0000000..1549efe --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/SaldoMap.cs @@ -0,0 +1,25 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Entities.Generic; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class SaldoMap : ClassMap + { + public SaldoMap() + { + base.Table("saldo"); + base.LazyLoad(); + base.Id((SaldoDb x) => (object)x.Id).GeneratedBy.Identity().Column("idsaldo"); + base.References((SaldoDb x) => x.Conta).Column("idconta").Fetch.Join(); + base.Map((SaldoDb x) => (object)x.ValorInicio).Column("vlrinicio"); + base.Map((SaldoDb x) => (object)x.DataInicio).Column("dtinicio"); + base.Map((SaldoDb x) => (object)x.ValorFinal).Column("vlrfim"); + base.Map((SaldoDb x) => (object)x.DataFinal).Column("dtfim"); + base.Map((SaldoDb x) => x.Extrato).Column("extrato").CustomType("StringClob").CustomSqlType("varchar(MAX)"); + } + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/TipoContaMap.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/TipoContaMap.cs new file mode 100644 index 0000000..6cfee28 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Mappings.Financeiro/TipoContaMap.cs @@ -0,0 +1,21 @@ +using FluentNHibernate.Mapping; +using Gestor.Infrastructure.Entities.Generic; +using Gestor.Infrastructure.Entities.Seguros; +using System; +using System.Linq.Expressions; +using System.Runtime.CompilerServices; + +namespace Gestor.Infrastructure.Mappings.Financeiro +{ + public class TipoContaMap : ClassMap + { + public TipoContaMap() + { + base.Table("tipoconta"); + base.LazyLoad(); + base.Id((TipoContaDb x) => (object)x.Id).GeneratedBy.Identity().Column("idtipoconta"); + base.Map((TipoContaDb x) => x.Descricao).Column("descricao"); + base.Map((TipoContaDb x) => (object)x.Ativo).Column("ativo").CustomType(); + } + } +} \ No newline at end of file -- cgit v1.2.3