├── fenix
├── artefatos
│ ├── der
│ │ ├── fenix.mwb
│ │ ├── fenix.mwb.bak
│ │ ├── Script_Dados.txt
│ │ ├── Script_Dados_SisCom.rar
│ │ ├── NFS-e_Lista_Serviços.txt
│ │ └── apagar tabelas NFe.sql
│ ├── arquivos-json-teste
│ │ ├── banco.txt
│ │ └── pessoa.txt
│ ├── documentos
│ │ ├── T2Ti-ERP-Fenix-Padronizacao-BD.doc
│ │ └── T2Ti ERP Fenix - Estrutura Objeto JSON Comentario DER.doc
│ └── views-mysql
│ │ ├── sped
│ │ ├── sequencia de geração das views.txt
│ │ ├── VIEW_SPED_C300 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_NFE_EMITENTE.txt
│ │ ├── VIEW_SPED_NFE_DESTINATARIO.txt
│ │ ├── VIEW_SPED_C490 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_C390 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_I155 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_C370 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_NFE_ITEM.txt
│ │ ├── VIEW_SPED_C425 - NÃO GERE ESSA VIEW AINDA.txt
│ │ ├── VIEW_SPED_C190.txt
│ │ ├── VIEW_SPED_C321 - NÃO GERE ESSA VIEW AINDA.txt
│ │ └── VIEW_SPED_NFE_DETALHE.txt
│ │ ├── VIEW_FIN_CHEQUE_NAO_COMPENSADO.txt
│ │ ├── VIEW_PESSOA_TRANSPORTADORA.txt
│ │ ├── VIEW_PESSOA_FORNECEDOR.txt
│ │ ├── VIEW_PESSOA_CLIENTE.txt
│ │ ├── VIEW_PESSOA_COLABORADOR.txt
│ │ ├── VIEW_FIN_FLUXO_CAIXA.txt
│ │ ├── VIEW_PESSOA_VENDEDOR.txt
│ │ ├── VIEW_FIN_LANCAMENTO_PAGAR.txt
│ │ └── VIEW_FIN_MOVIMENTO_CAIXA_BANCO.txt
└── fontes
│ └── frontend
│ └── provider
│ ├── assets
│ ├── images
│ │ ├── logo.jpg
│ │ ├── map.jpg
│ │ ├── maps.png
│ │ ├── error.jpg
│ │ ├── menu_bi.jpg
│ │ ├── menu_os.jpg
│ │ ├── profile.jpg
│ │ ├── t2ti-32.png
│ │ ├── t2ti-48.png
│ │ ├── menu_afv.jpg
│ │ ├── menu_crm.jpg
│ │ ├── menu_cte.jpg
│ │ ├── menu_cte.png
│ │ ├── menu_ged.jpg
│ │ ├── menu_loja.jpg
│ │ ├── menu_nfce.jpg
│ │ ├── menu_nfe.jpg
│ │ ├── menu_nfse.jpg
│ │ ├── menu_sat.jpg
│ │ ├── menu_sped.jpg
│ │ ├── menu_banco.jpg
│ │ ├── menu_compras.jpg
│ │ ├── menu_estoque.jpg
│ │ ├── menu_pagar.jpg
│ │ ├── menu_receber.jpg
│ │ ├── menu_vendas.jpg
│ │ ├── menu_cadastros.jpg
│ │ ├── menu_comissoes.jpg
│ │ ├── menu_conciliacao.jpg
│ │ ├── menu_fluxo_caixa.jpg
│ │ ├── menu_tesouraria.jpg
│ │ ├── menu_tributacao.jpg
│ │ ├── t2ti_background.jpg
│ │ └── t2ti_logo_fundo.jpg
│ └── fonts
│ │ ├── Quicksand_Bold.otf
│ │ ├── Quicksand_Book.otf
│ │ ├── Quicksand_Light.otf
│ │ ├── Raleway-Medium.ttf
│ │ ├── Raleway-Regular.ttf
│ │ └── Quicksand-Medium.ttf
│ ├── lib
│ ├── generated_plugin_registrant.dart
│ └── src
│ │ ├── view
│ │ ├── shared
│ │ │ ├── rounded_bordered_container.dart
│ │ │ ├── about_tile.dart
│ │ │ ├── profile_tile.dart
│ │ │ └── arc_clipper.dart
│ │ ├── page
│ │ │ ├── afv
│ │ │ │ └── visao_vendedor
│ │ │ │ │ ├── afv_visao_vendedor_rota_page.dart
│ │ │ │ │ └── afv_visao_vendedor_promocao_page.dart
│ │ │ └── sera_implementado
│ │ │ │ └── sera_implementado_page.dart
│ │ └── menu
│ │ │ └── menu_titulo_grupo_menu_interno.dart
│ │ └── model
│ │ ├── menu
│ │ └── menu.dart
│ │ ├── retorno_json_erro.dart
│ │ ├── os
│ │ ├── os_status.dart
│ │ └── os_equipamento.dart
│ │ ├── cadastros
│ │ ├── papel.dart
│ │ ├── setor.dart
│ │ ├── cnae.dart
│ │ ├── estado_civil.dart
│ │ ├── produto_grupo.dart
│ │ ├── produto_marca.dart
│ │ ├── nivel_formacao.dart
│ │ ├── banco.dart
│ │ ├── uf.dart
│ │ ├── cfop.dart
│ │ ├── ncm.dart
│ │ ├── csosn.dart
│ │ ├── cst_ipi.dart
│ │ ├── cst_pis.dart
│ │ ├── cst_icms.dart
│ │ ├── cst_cofins.dart
│ │ ├── pessoa_contato.dart
│ │ ├── contador.dart
│ │ ├── produto_subgrupo.dart
│ │ └── vendedor.dart
│ │ ├── filtro.dart
│ │ ├── nfse
│ │ ├── nfse_lista_servico.dart
│ │ └── nfse_intermediario.dart
│ │ ├── financeiro
│ │ ├── fin_tipo_pagamento.dart
│ │ ├── fin_tipo_recebimento.dart
│ │ ├── fin_documento_origem.dart
│ │ └── fin_status_parcela.dart
│ │ ├── compras
│ │ ├── compra_tipo_pedido.dart
│ │ ├── compra_tipo_requisicao.dart
│ │ └── compra_requisicao_detalhe.dart
│ │ ├── tributacao
│ │ └── tribut_operacao_fiscal.dart
│ │ ├── vendas
│ │ └── venda_condicoes_parcelas.dart
│ │ ├── afv
│ │ └── tabela_preco_produto.dart
│ │ └── comissoes
│ │ └── comissao_perfil.dart
│ └── pubspec.yaml
└── README.md
/fenix/artefatos/der/fenix.mwb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/der/fenix.mwb
--------------------------------------------------------------------------------
/fenix/artefatos/der/fenix.mwb.bak:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/der/fenix.mwb.bak
--------------------------------------------------------------------------------
/fenix/artefatos/der/Script_Dados.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/der/Script_Dados.txt
--------------------------------------------------------------------------------
/fenix/artefatos/der/Script_Dados_SisCom.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/der/Script_Dados_SisCom.rar
--------------------------------------------------------------------------------
/fenix/artefatos/arquivos-json-teste/banco.txt:
--------------------------------------------------------------------------------
1 | {
2 | "ID": "999",
3 | "CODIGO": "999",
4 | "NOME": "BANCO TESTANDO",
5 | "URL": "WWW.TESTANDO.COM"
6 | }
--------------------------------------------------------------------------------
/fenix/artefatos/der/NFS-e_Lista_Serviços.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/der/NFS-e_Lista_Serviços.txt
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/logo.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/map.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/map.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/maps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/maps.png
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/error.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/error.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_bi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_bi.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_os.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_os.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/profile.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/profile.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/t2ti-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/t2ti-32.png
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/t2ti-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/t2ti-48.png
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_afv.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_afv.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_crm.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_crm.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_cte.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_cte.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_cte.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_cte.png
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_ged.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_ged.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_loja.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_loja.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_nfce.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_nfce.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_nfe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_nfe.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_nfse.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_nfse.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_sat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_sat.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_sped.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_sped.jpg
--------------------------------------------------------------------------------
/fenix/artefatos/documentos/T2Ti-ERP-Fenix-Padronizacao-BD.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/documentos/T2Ti-ERP-Fenix-Padronizacao-BD.doc
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_banco.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_banco.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_compras.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_compras.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_estoque.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_estoque.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_pagar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_pagar.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_receber.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_receber.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_vendas.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_vendas.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Bold.otf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Book.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Book.otf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Quicksand_Light.otf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Raleway-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Raleway-Medium.ttf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Raleway-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Raleway-Regular.ttf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_cadastros.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_cadastros.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_comissoes.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_comissoes.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/fonts/Quicksand-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/fonts/Quicksand-Medium.ttf
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_conciliacao.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_conciliacao.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_fluxo_caixa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_fluxo_caixa.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_tesouraria.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_tesouraria.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/menu_tributacao.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/menu_tributacao.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/t2ti_background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/t2ti_background.jpg
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/assets/images/t2ti_logo_fundo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/fontes/frontend/provider/assets/images/t2ti_logo_fundo.jpg
--------------------------------------------------------------------------------
/fenix/artefatos/documentos/T2Ti ERP Fenix - Estrutura Objeto JSON Comentario DER.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alberteije/t2ti-erp-fenix/HEAD/fenix/artefatos/documentos/T2Ti ERP Fenix - Estrutura Objeto JSON Comentario DER.doc
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/sequencia de geração das views.txt:
--------------------------------------------------------------------------------
1 | gere as views do sped na seguinte ordem:
2 |
3 | VIEW VIEW_SPED_NFE_EMITENTE
4 | VIEW VIEW_SPED_NFE_DETALHE
5 | VIEW VIEW_SPED_NFE_DESTINATARIO
6 | VIEW VIEW_SPED_NFE_ITEM
7 | VIEW VIEW_SPED_C190
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C300 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C300
3 | AS
4 |
5 | select
6 | SERIE,
7 | SUBSERIE,
8 | DATA_EMISSAO,
9 | SUM(TOTAL_NF) AS SOMA_TOTAL_NF,
10 | SUM(PIS) AS SOMA_PIS,
11 | SUM(COFINS) AS SOMA_COFINS
12 | from
13 | ECF_NOTA_FISCAL_CABECALHO
14 | group by
15 | SERIE, SUBSERIE, DATA_EMISSAO
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_NFE_EMITENTE.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_NFE_EMITENTE
3 | AS
4 |
5 | select
6 | DISTINCT(NFE.ID_FORNECEDOR) AS ID,
7 | E.NOME,
8 | E.CPF,
9 | E.CNPJ,
10 | E.INSCRICAO_ESTADUAL,
11 | E.CODIGO_MUNICIPIO,
12 | E.LOGRADOURO,
13 | E.NUMERO,
14 | E.COMPLEMENTO,
15 | E.BAIRRO
16 | from
17 | NFE_CABECALHO NFE
18 | INNER JOIN NFE_EMITENTE E ON (E.ID_NFE_CABECALHO = NFE.ID)
19 | where
20 | NFE.ID_FORNECEDOR IS NOT NULL
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_NFE_DESTINATARIO.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_NFE_DESTINATARIO
3 | AS
4 |
5 | select
6 | DISTINCT(NFE.ID_CLIENTE) AS ID,
7 | D.NOME,
8 | D.CPF,
9 | D.CNPJ,
10 | D.INSCRICAO_ESTADUAL,
11 | D.CODIGO_MUNICIPIO,
12 | D.SUFRAMA,
13 | D.LOGRADOURO,
14 | D.NUMERO,
15 | D.COMPLEMENTO,
16 | D.BAIRRO
17 | from
18 | NFE_CABECALHO NFE
19 | INNER JOIN NFE_DESTINATARIO D ON (D.ID_NFE_CABECALHO = NFE.ID)
20 | where
21 | NFE.ID_CLIENTE IS NOT NULL
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C490 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C490
3 | AS
4 | (
5 | select
6 | VD.CST,
7 | VD.CFOP,
8 | VD.TAXA_ICMS,
9 | VC.DATA_VENDA,
10 | SUM(VD.VALOR_TOTAL) AS SOMA_ITEM,
11 | SUM(VD.BASE_ICMS) AS SOMA_BASE_ICMS,
12 | SUM(VD.ICMS) AS SOMA_ICMS
13 | from
14 | ECF_VENDA_DETALHE VD, ECF_VENDA_CABECALHO VC
15 | where
16 | VD.ID_ECF_VENDA_CABECALHO = VC.ID
17 | AND VD.CANCELADO = 'N'
18 | group by
19 | CST, CFOP, TAXA_ICMS, DATA_VENDA
20 | )
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/generated_plugin_registrant.dart:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // ignore: unused_import
6 | import 'dart:ui';
7 |
8 | import 'package:fluttertoast/fluttertoast_web.dart';
9 |
10 | import 'package:flutter_web_plugins/flutter_web_plugins.dart';
11 |
12 | // ignore: public_member_api_docs
13 | void registerPlugins(PluginRegistry registry) {
14 | FluttertoastWebPlugin.registerWith(registry.registrarFor(FluttertoastWebPlugin));
15 | registry.registerMessageHandler();
16 | }
17 |
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C390 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C390
3 | AS
4 | (
5 | select
6 | NF2D.CST,
7 | NF2D.CFOP,
8 | NF2D.TAXA_ICMS,
9 | NF2C.DATA_EMISSAO,
10 | SUM(NF2D.VALOR_TOTAL) AS SOMA_ITEM,
11 | SUM(NF2D.BASE_ICMS) AS SOMA_BASE_ICMS,
12 | SUM(NF2D.ICMS) AS SOMA_ICMS,
13 | SUM(NF2D.ICMS_OUTRAS) AS SOMA_ICMS_OUTRAS
14 | from
15 | ECF_NOTA_FISCAL_DETALHE NF2D, ECF_NOTA_FISCAL_CABECALHO NF2C
16 | where
17 | NF2D.ID_NF_CABECALHO = NF2C.ID
18 | group by
19 | CST, CFOP, TAXA_ICMS
20 | )
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_I155 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW t2tierp.VIEW_SPED_I155
3 | AS
4 | (
5 | select
6 | DATE_FORMAT(LC.DATA_LANCAMENTO, '%m/%Y') AS MES_ANO,
7 | LD.ID_CONTABIL_CONTA,
8 | C.CLASSIFICACAO,
9 | LD.TIPO,
10 | SUM(LD.VALOR) AS SOMA_VALOR
11 | from
12 | CONTABIL_LANCAMENTO_DETALHE LD
13 | INNER JOIN CONTABIL_LANCAMENTO_CABECALHO LC ON (LD.ID_CONTABIL_LANCAMENTO_CAB = LC.ID)
14 | INNER JOIN CONTABIL_CONTA C ON (LD.ID_CONTABIL_CONTA = C.ID)
15 | group by
16 | ID_CONTABIL_CONTA, TIPO, CLASSIFICACAO, MES_ANO
17 | )
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C370 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C370
3 | AS
4 | (
5 | select
6 | nd.ID_NF_CABECALHO AS ID_NF_CABECALHO,
7 | nc.DATA_EMISSAO AS DATA_EMISSAO,
8 | nd.ID_PRODUTO AS ID_PRODUTO,
9 | nd.ITEM AS ITEM,
10 | p.ID_UNIDADE_PRODUTO AS ID_UNIDADE_PRODUTO,
11 | nd.QUANTIDADE AS QUANTIDADE,
12 | nd.VALOR_TOTAL AS VALOR_TOTAL,
13 | nd.CST AS CST,
14 | nd.DESCONTO AS DESCONTO
15 | from
16 | ((ecf_nota_fiscal_detalhe nd JOIN ecf_nota_fiscal_cabecalho nc) JOIN produto p)
17 | where
18 | ((nd.ID_NF_CABECALHO = nc.ID) AND (nd.ID_PRODUTO = p.ID))
19 | )
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_NFE_ITEM.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_NFE_ITEM
3 | AS
4 |
5 | select
6 | distinct(P.ID),
7 | P.NOME,
8 | P.GTIN,
9 | P.ID_PRODUTO_UNIDADE,
10 | U.SIGLA,
11 | #P.TIPO_ITEM_SPED, -- deverá ser criado na tabela produto para gerar o registro 0200 da EFD
12 | P.CODIGO_NCM
13 | #P.EX_TIPI, -- onde pegar esse dado?
14 | #P.CODIGO_LST, -- deverá ser criado na tabela produto para gerar o registro 0200 da EFD
15 | #P.ALIQUOTA_ICMS -- onde pegar esse dado?
16 | from
17 | PRODUTO P
18 | INNER JOIN NFE_DETALHE NFED ON (NFED.ID_PRODUTO = P.ID)
19 | INNER JOIN PRODUTO_UNIDADE U ON (P.ID_PRODUTO_UNIDADE = U.ID)
20 |
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C425 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C425
3 | AS
4 | (
5 | select
6 | VD.ID_ECF_PRODUTO,
7 | U.SIGLA AS DESCRICAO_UNIDADE,
8 | VD.TOTALIZADOR_PARCIAL,
9 | VC.DATA_VENDA,
10 | SUM(VD.QUANTIDADE) AS SOMA_QUANTIDADE,
11 | SUM(VD.VALOR_TOTAL) AS SOMA_ITEM,
12 | SUM(VD.PIS) AS SOMA_PIS,
13 | SUM(VD.COFINS) AS SOMA_COFINS
14 | from
15 | ECF_VENDA_DETALHE VD, ECF_VENDA_CABECALHO VC, PRODUTO P, UNIDADE_PRODUTO U
16 | where
17 | VD.ID_ECF_VENDA_CABECALHO = VC.ID and
18 | VD.ID_ECF_PRODUTO = P.ID and
19 | P.ID_UNIDADE_PRODUTO = U.ID
20 | group by
21 | ID_ECF_PRODUTO, U.SIGLA, ID_UNIDADE_PRODUTO, TOTALIZADOR_PARCIAL,DATA_VENDA
22 | )
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_FIN_CHEQUE_NAO_COMPENSADO.txt:
--------------------------------------------------------------------------------
1 | CREATE VIEW VIEW_FIN_CHEQUE_NAO_COMPENSADO(
2 | ID,
3 | ID_CONTA_CAIXA,
4 | NOME_CONTA_CAIXA,
5 | TALAO,
6 | NUMERO_TALAO,
7 | NUMERO_CHEQUE,
8 | STATUS_CHEQUE,
9 | DATA_STATUS,
10 | VALOR)
11 | AS
12 | select
13 | 0 as ID,
14 | CC.ID AS ID_CONTA_CAIXA, CC.NOME AS NOME_CONTA_CAIXA,
15 | T.TALAO, T.NUMERO AS NUMERO_TALAO,
16 | C.NUMERO AS NUMERO_CHEQUE, C.STATUS_CHEQUE, C.DATA_STATUS, VALOR
17 |
18 | from
19 | CHEQUE C
20 | inner join TALONARIO_CHEQUE T on (C.ID_TALONARIO_CHEQUE = T.ID)
21 | inner join BANCO_CONTA_CAIXA CC on (T.ID_BANCO_CONTA_CAIXA = CC.ID)
22 | inner join FIN_CHEQUE_EMITIDO CE on (CE.ID_CHEQUE = C.ID)
23 |
24 | where
25 | C.STATUS_CHEQUE <> '3'
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C190.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C190
3 | AS
4 |
5 | select
6 | NFEC.ID,
7 | NFED.CST_ICMS,
8 | NFED.CFOP,
9 | NFED.ALIQUOTA_ICMS,
10 | NFEC.DATA_HORA_EMISSAO,
11 | SUM(NFED.VALOR_TOTAL) AS SOMA_VALOR_OPERACAO,
12 | SUM(NFED.VALOR_BC_ICMS) AS SOMA_BASE_CALCULO_ICMS,
13 | SUM(NFED.VALOR_ICMS) AS SOMA_VALOR_ICMS,
14 | SUM(NFED.VALOR_BASE_CALCULO_ICMS_ST) AS SOMA_BASE_CALCULO_ICMS_ST,
15 | SUM(NFED.VALOR_ICMS_ST) AS SOMA_VALOR_ICMS_ST,
16 | SUM(NFED.VALOR_OUTRAS_DESPESAS) AS SOMA_VL_RED_BC,
17 | SUM(NFED.VALOR_IPI) AS SOMA_VALOR_IPI
18 | from
19 | VIEW_SPED_NFE_DETALHE NFED
20 | INNER JOIN NFE_CABECALHO NFEC ON (NFED.ID_NFE_CABECALHO = NFEC.ID)
21 | group by
22 | ID, CST_ICMS, CFOP, ALIQUOTA_ICMS, DATA_HORA_EMISSAO
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_C321 - NÃO GERE ESSA VIEW AINDA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_C321
3 | AS
4 | (
5 | select
6 | NF2D.ID_PRODUTO,
7 | U.SIGLA AS DESCRICAO_UNIDADE,
8 | NF2C.DATA_EMISSAO,
9 | SUM(NF2D.QUANTIDADE) AS SOMA_QUANTIDADE,
10 | SUM(NF2D.VALOR_TOTAL) AS SOMA_ITEM,
11 | SUM(NF2D.DESCONTO) AS SOMA_DESCONTO,
12 | SUM(NF2D.BASE_ICMS) AS SOMA_BASE_ICMS,
13 | SUM(NF2D.ICMS) AS SOMA_ICMS,
14 | SUM(NF2D.PIS) AS SOMA_PIS,
15 | SUM(NF2D.COFINS) AS SOMA_COFINS
16 | from
17 | ECF_NOTA_FISCAL_DETALHE NF2D, ECF_NOTA_FISCAL_CABECALHO NF2C, PRODUTO P, UNIDADE_PRODUTO U
18 | where
19 | NF2D.ID_NF_CABECALHO = NF2C.ID and
20 | NF2D.ID_PRODUTO = P.ID and
21 | P.ID_UNIDADE_PRODUTO = U.ID
22 | group by
23 | ID_PRODUTO
24 | )
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_PESSOA_TRANSPORTADORA.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_PESSOA_TRANSPORTADORA
3 | AS
4 |
5 | select
6 | T.ID,
7 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
8 | PF.CPF AS "CPF_CNPJ",
9 | PF.RG AS "RG_IE",
10 | T.DATA_CADASTRO,
11 | T.OBSERVACAO,
12 | P.ID as "ID_PESSOA"
13 | from
14 | PESSOA P
15 | INNER JOIN PESSOA_FISICA PF ON (PF.ID_PESSOA = P.ID)
16 | INNER JOIN TRANSPORTADORA T ON (T.ID_PESSOA = P.ID)
17 | where
18 | P.TRANSPORTADORA = "S"
19 |
20 | UNION
21 |
22 | select
23 | T.ID,
24 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
25 | PJ.CNPJ AS "CPF_CNPJ",
26 | PJ.INSCRICAO_ESTADUAL AS "RG_IE",
27 | T.DATA_CADASTRO,
28 | T.OBSERVACAO,
29 | P.ID as "ID_PESSOA"
30 | from
31 | PESSOA P
32 | INNER JOIN PESSOA_JURIDICA PJ ON (PJ.ID_PESSOA = P.ID)
33 | INNER JOIN TRANSPORTADORA T ON (T.ID_PESSOA = P.ID)
34 | where
35 | P.TRANSPORTADORA = "S"
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_PESSOA_FORNECEDOR.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_PESSOA_FORNECEDOR
3 | AS
4 |
5 | select
6 | F.ID,
7 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
8 | PF.CPF AS "CPF_CNPJ",
9 | PF.RG AS "RG_IE",
10 | F.DESDE,
11 | F.DATA_CADASTRO,
12 | F.OBSERVACAO,
13 | P.ID as "ID_PESSOA"
14 | from
15 | PESSOA P
16 | INNER JOIN PESSOA_FISICA PF ON (PF.ID_PESSOA = P.ID)
17 | INNER JOIN FORNECEDOR F ON (F.ID_PESSOA = P.ID)
18 | where
19 | P.FORNECEDOR = "S"
20 |
21 | UNION
22 |
23 | select
24 | F.ID,
25 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
26 | PJ.CNPJ AS "CPF_CNPJ",
27 | PJ.INSCRICAO_ESTADUAL AS "RG_IE",
28 | F.DESDE,
29 | F.DATA_CADASTRO,
30 | F.OBSERVACAO,
31 | P.ID as "ID_PESSOA"
32 | from
33 | PESSOA P
34 | INNER JOIN PESSOA_JURIDICA PJ ON (PJ.ID_PESSOA = P.ID)
35 | INNER JOIN FORNECEDOR F ON (F.ID_PESSOA = P.ID)
36 | where
37 | P.FORNECEDOR = "S"
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_PESSOA_CLIENTE.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_PESSOA_CLIENTE
3 | AS
4 |
5 | select
6 | C.ID,
7 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
8 | PF.CPF AS "CPF_CNPJ",
9 | PF.RG AS "RG_IE",
10 | C.DESDE,
11 | C.TAXA_DESCONTO,
12 | C.LIMITE_CREDITO,
13 | C.DATA_CADASTRO,
14 | C.OBSERVACAO,
15 | P.ID as "ID_PESSOA"
16 | from
17 | PESSOA P
18 | INNER JOIN PESSOA_FISICA PF ON (PF.ID_PESSOA = P.ID)
19 | INNER JOIN CLIENTE C ON (C.ID_PESSOA = P.ID)
20 | where
21 | P.CLIENTE = "S"
22 |
23 | UNION
24 |
25 | select
26 | C.ID,
27 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
28 | PJ.CNPJ AS "CPF_CNPJ",
29 | PJ.INSCRICAO_ESTADUAL AS "RG_IE",
30 | C.DESDE,
31 | C.TAXA_DESCONTO,
32 | C.LIMITE_CREDITO,
33 | C.DATA_CADASTRO,
34 | C.OBSERVACAO,
35 | P.ID as "ID_PESSOA"
36 | from
37 | PESSOA P
38 | INNER JOIN PESSOA_JURIDICA PJ ON (PJ.ID_PESSOA = P.ID)
39 | INNER JOIN CLIENTE C ON (C.ID_PESSOA = P.ID)
40 | where
41 | P.CLIENTE = "S"
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/shared/rounded_bordered_container.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class RoundedContainer extends StatelessWidget {
4 | const RoundedContainer({
5 | Key key,
6 | @required this.child,
7 | this.height,
8 | this.width,
9 | this.color = Colors.white,
10 | this.padding = const EdgeInsets.all(16.0),
11 | this.margin,
12 | this.borderRadius,
13 | this.alignment,
14 | this.elevation,
15 | }) : super(key: key);
16 | final Widget child;
17 | final double width;
18 | final double height;
19 | final Color color;
20 | final EdgeInsets padding;
21 | final EdgeInsets margin;
22 | final BorderRadius borderRadius;
23 | final AlignmentGeometry alignment;
24 | final double elevation;
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Card(
29 | margin: margin ?? const EdgeInsets.all(0),
30 | color: color,
31 | elevation: elevation ?? 0,
32 | clipBehavior: Clip.antiAlias,
33 | shape: RoundedRectangleBorder(
34 | borderRadius: borderRadius ?? BorderRadius.circular(20.0),
35 | ),
36 | child: Container(
37 | alignment: alignment,
38 | height: height,
39 | width: width,
40 | padding: padding,
41 | child: child,
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
T2Ti ERP Fenix
5 |
6 | O T2Ti ERP Fenix é um treinamento fornecido pela T2Ti. Mais detalhes sobre o treinamento podem ser vistos no link: http://t2ti.com/erp3/.
7 |
8 |
9 | [T2Ti ERP Fenix is a training provided by T2Ti. More details about the training can be seen at the link: http://t2ti.com/erp3/.]
10 |
11 |
12 |

13 |
14 |
15 |
16 |
Primeira Fase [First Phase]
17 | A primeira fase do treinamento é chamada de T2Ti ERP Fenix, onde são construídos os primeiros 24 módulos do ERP.
18 |
19 |
20 | [The first phase of the training is called T2Ti ERP Fenix, where the first 24 ERP modules are built.]
21 |
22 |
23 |

24 |
25 |
26 |
Um Cliente - Cinco Servidores [One Client - Five Servers]
27 | O cliente é feito com o Flutter que consome 5 servidores feitos nas linguagens: C#, Delphi, Java, Node e PHP.
28 |
29 |
30 | [The client is built with Flutter which consumes 5 servers built in the languages: C#, Delphi, Java, Node and PHP.]
31 |
32 |
33 |

34 |
35 |
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_PESSOA_COLABORADOR.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_PESSOA_COLABORADOR
3 | AS
4 |
5 | select
6 | C.ID,
7 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
8 | PF.CPF AS "CPF_CNPJ",
9 | PF.RG AS "RG_IE",
10 | C.MATRICULA,
11 | C.DATA_CADASTRO,
12 | C.DATA_ADMISSAO,
13 | C.DATA_DEMISSAO,
14 | C.CTPS_NUMERO,
15 | C.CTPS_SERIE,
16 | C.CTPS_DATA_EXPEDICAO,
17 | C.CTPS_UF,
18 | C.OBSERVACAO,
19 | E.LOGRADOURO, E.NUMERO, E.COMPLEMENTO, E.BAIRRO, E.CIDADE, E.CEP, E.MUNICIPIO_IBGE, E.UF,
20 | P.ID as "ID_PESSOA",
21 | C.ID_CARGO,
22 | C.ID_SETOR
23 | from
24 | PESSOA P
25 | INNER JOIN PESSOA_FISICA PF ON (PF.ID_PESSOA = P.ID)
26 | INNER JOIN COLABORADOR C ON (C.ID_PESSOA = P.ID)
27 | INNER JOIN PESSOA_ENDERECO E ON (E.ID_PESSOA = P.ID)
28 | where
29 | P.COLABORADOR = "S" and E.PRINCIPAL = "S"
30 |
31 | UNION
32 |
33 | select
34 | C.ID,
35 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
36 | PJ.CNPJ AS "CPF_CNPJ",
37 | PJ.INSCRICAO_ESTADUAL AS "RG_IE",
38 | C.MATRICULA,
39 | C.DATA_CADASTRO,
40 | C.DATA_ADMISSAO,
41 | C.DATA_DEMISSAO,
42 | C.CTPS_NUMERO,
43 | C.CTPS_SERIE,
44 | C.CTPS_DATA_EXPEDICAO,
45 | C.CTPS_UF,
46 | C.OBSERVACAO,
47 | E.LOGRADOURO, E.NUMERO, E.COMPLEMENTO, E.BAIRRO, E.CIDADE, E.CEP, E.MUNICIPIO_IBGE, E.UF,
48 | P.ID as "ID_PESSOA",
49 | C.ID_CARGO,
50 | C.ID_SETOR
51 | from
52 | PESSOA P
53 | INNER JOIN PESSOA_JURIDICA PJ ON (PJ.ID_PESSOA = P.ID)
54 | INNER JOIN COLABORADOR C ON (C.ID_PESSOA = P.ID)
55 | INNER JOIN PESSOA_ENDERECO E ON (E.ID_PESSOA = P.ID)
56 | where
57 | P.COLABORADOR = "S" and E.PRINCIPAL = "S"
--------------------------------------------------------------------------------
/fenix/artefatos/arquivos-json-teste/pessoa.txt:
--------------------------------------------------------------------------------
1 | {
2 | "ID":1,
3 | "NOME":"TESTE PESSOA FISICA",
4 | "TIPO":"F",
5 | "EMAIL":"pf@gmail.com",
6 | "SITE":"",
7 | "CLIENTE":"S",
8 | "FORNECEDOR":"S",
9 | "COLABORADOR":"S",
10 | "CONTADOR":"S",
11 | "TRANSPORTADORA":"S",
12 | "ListaContato":
13 | [
14 | {
15 | "ID":1,
16 | "ID_PESSOA":1,
17 | "NOME":"contato",
18 | "EMAIL":"",
19 | "OBSERVACAO":"OBS 1"
20 | },
21 | {
22 | "ID":2,
23 | "ID_PESSOA":1,
24 | "NOME":"outro contato",
25 | "EMAIL":"conato@gmail.com",
26 | "OBSERVACAO":"OBS 2"
27 | }
28 | ],
29 | "ListaEndereco":
30 | [
31 | {
32 | "ID":2,
33 | "FID_PESSOA":1,
34 | "LOGRADOURO":"LOGRADOURO PESSOA FISICA",
35 | "NUMERO":"2",
36 | "COMPLEMENTO":"COMPLEMENTO",
37 | "BAIRRO":"BAIRRO",
38 | "CIDADE":"CIDADE",
39 | "CEP":"71000000",
40 | "MUNICIPIO_IBGE":5300108,
41 | "UF":"DF",
42 | "PRINCIPAL":"S",
43 | "ENTREGA":"",
44 | "COBRANCA":"",
45 | "CORRESPONDENCIA":""
46 | },
47 | {
48 | "ID":4,
49 | "FID_PESSOA":1,
50 | "LOGRADOURO":"mais um endereco da pessoa fisica",
51 | "NUMERO":"",
52 | "COMPLEMENTO":"",
53 | "BAIRRO":"",
54 | "CIDADE":"",
55 | "CEP":"",
56 | "MUNICIPIO_IBGE":0,
57 | "UF":"",
58 | "PRINCIPAL":"N",
59 | "ENTREGA":"N",
60 | "COBRANCA":"N",
61 | "CORRESPONDENCIA":"N"
62 | }
63 | ],
64 | "PessoaFisica":
65 | {
66 | "ID":1,
67 | "FID_PESSOA":1,
68 | "ID_ESTADO_CIVIL":1,
69 | "CPF":"11111111111",
70 | "RG":"123456",
71 | "ORGAO_RG":"SSP-SP",
72 | "DATA_EMISSAO_RG":29221,
73 | "DATA_NASCIMENTO":25569,
74 | "SEXO":"M",
75 | "NATURALIDADE":"BRASILIA",
76 | "NACIONALIDADE":"BRASILEIRA",
77 | "RACA":"B",
78 | "NOME_MAE":"MARIA JOSE",
79 | "NOME_PAI":"JOSE MARIA"
80 | },
81 | "PessoaJuridica":null
82 | }
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_FIN_FLUXO_CAIXA.txt:
--------------------------------------------------------------------------------
1 | CREATE VIEW VIEW_FIN_FLUXO_CAIXA(
2 | ID,
3 | ID_CONTA_CAIXA,
4 | NOME_CONTA_CAIXA,
5 | NOME_PESSOA,
6 | DATA_LANCAMENTO,
7 | DATA_VENCIMENTO,
8 | VALOR,
9 | CODIGO_SITUACAO,
10 | DESCRICAO_SITUACAO,
11 | OPERACAO)
12 | AS
13 |
14 | select
15 | CAST( CONCAT(LP.ID,PP.ID) as UNSIGNED) as ID,
16 | CC.ID AS ID_CONTA_CAIXA, CC.NOME AS NOME_CONTA_CAIXA, P.NOME,
17 | LP.DATA_LANCAMENTO, PP.DATA_VENCIMENTO,
18 | PP.VALOR, SP.SITUACAO, SP.DESCRICAO, 'S' AS OPERACAO
19 |
20 | from
21 | FIN_PARCELA_PAGAR PP
22 | inner join FIN_LANCAMENTO_PAGAR LP on (PP.ID_FIN_LANCAMENTO_PAGAR = LP.ID)
23 | inner join BANCO_CONTA_CAIXA CC on (LP.ID_BANCO_CONTA_CAIXA = CC.ID)
24 | inner join FORNECEDOR F on (LP.ID_FORNECEDOR = F.ID)
25 | inner join PESSOA P on (F.ID_PESSOA = P.ID)
26 | inner join FIN_STATUS_PARCELA SP on (PP.ID_FIN_STATUS_PARCELA = SP.ID)
27 |
28 | where
29 | SP.SITUACAO = '01' or SP.SITUACAO = '04'
30 |
31 | union
32 |
33 | select
34 | CAST( CONCAT(LR.ID,PR.ID) as UNSIGNED) as ID,
35 | CC.ID AS ID_CONTA_CAIXA, CC.NOME AS NOME_CONTA_CAIXA, P.NOME,
36 | LR.DATA_LANCAMENTO, PR.DATA_VENCIMENTO,
37 | PR.VALOR, SP.SITUACAO, SP.DESCRICAO, 'E' AS OPERACAO
38 |
39 | from
40 | FIN_PARCELA_RECEBER PR
41 | inner join FIN_LANCAMENTO_RECEBER LR on (PR.ID_FIN_LANCAMENTO_RECEBER = LR.ID)
42 | inner join BANCO_CONTA_CAIXA CC on (LR.ID_BANCO_CONTA_CAIXA = CC.ID)
43 | inner join CLIENTE C on (LR.ID_CLIENTE = C.ID)
44 | inner join PESSOA P on (C.ID_PESSOA = P.ID)
45 | inner join FIN_STATUS_PARCELA SP on (PR.ID_FIN_STATUS_PARCELA = SP.ID)
46 |
47 | where
48 | SP.SITUACAO = '01' or SP.SITUACAO = '04'
49 |
50 | ORDER BY 1
51 | ;
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_PESSOA_VENDEDOR.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_PESSOA_VENDEDOR
3 | AS
4 |
5 | select
6 | C.ID,
7 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
8 | PF.CPF AS "CPF_CNPJ",
9 | PF.RG AS "RG_IE",
10 | C.MATRICULA,
11 | C.DATA_CADASTRO,
12 | C.DATA_ADMISSAO,
13 | C.DATA_DEMISSAO,
14 | C.CTPS_NUMERO,
15 | C.CTPS_SERIE,
16 | C.CTPS_DATA_EXPEDICAO,
17 | C.CTPS_UF,
18 | C.OBSERVACAO,
19 | E.LOGRADOURO, E.NUMERO, E.COMPLEMENTO, E.BAIRRO, E.CIDADE, E.CEP, E.MUNICIPIO_IBGE, E.UF,
20 | P.ID as "ID_PESSOA",
21 | C.ID_CARGO,
22 | C.ID_SETOR,
23 | V.COMISSAO,
24 | V.META_VENDA
25 | from
26 | PESSOA P
27 | INNER JOIN PESSOA_FISICA PF ON (PF.ID_PESSOA = P.ID)
28 | INNER JOIN COLABORADOR C ON (C.ID_PESSOA = P.ID)
29 | INNER JOIN PESSOA_ENDERECO E ON (E.ID_PESSOA = P.ID)
30 | INNER JOIN VENDEDOR V ON (V.ID_COLABORADOR = C.ID)
31 | where
32 | P.COLABORADOR = "S" and E.PRINCIPAL = "S"
33 |
34 | UNION
35 |
36 | select
37 | C.ID,
38 | P.NOME, P.TIPO, P.EMAIL, P.SITE,
39 | PJ.CNPJ AS "CPF_CNPJ",
40 | PJ.INSCRICAO_ESTADUAL AS "RG_IE",
41 | C.MATRICULA,
42 | C.DATA_CADASTRO,
43 | C.DATA_ADMISSAO,
44 | C.DATA_DEMISSAO,
45 | C.CTPS_NUMERO,
46 | C.CTPS_SERIE,
47 | C.CTPS_DATA_EXPEDICAO,
48 | C.CTPS_UF,
49 | C.OBSERVACAO,
50 | E.LOGRADOURO, E.NUMERO, E.COMPLEMENTO, E.BAIRRO, E.CIDADE, E.CEP, E.MUNICIPIO_IBGE, E.UF,
51 | P.ID as "ID_PESSOA",
52 | C.ID_CARGO,
53 | C.ID_SETOR,
54 | V.COMISSAO,
55 | V.META_VENDA
56 | from
57 | PESSOA P
58 | INNER JOIN PESSOA_JURIDICA PJ ON (PJ.ID_PESSOA = P.ID)
59 | INNER JOIN COLABORADOR C ON (C.ID_PESSOA = P.ID)
60 | INNER JOIN PESSOA_ENDERECO E ON (E.ID_PESSOA = P.ID)
61 | INNER JOIN VENDEDOR V ON (V.ID_COLABORADOR = C.ID)
62 | where
63 | P.COLABORADOR = "S" and E.PRINCIPAL = "S"
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_FIN_LANCAMENTO_PAGAR.txt:
--------------------------------------------------------------------------------
1 | CREATE VIEW VIEW_FIN_LANCAMENTO_PAGAR(
2 | ID,
3 | ID_FIN_LANCAMENTO_PAGAR,
4 | QUANTIDADE_PARCELA,
5 | VALOR_LANCAMENTO,
6 | DATA_LANCAMENTO,
7 | NUMERO_DOCUMENTO,
8 | ID_FIN_PARCELA_PAGAR,
9 | NUMERO_PARCELA,
10 | DATA_VENCIMENTO,
11 | VALOR_PARCELA,
12 | TAXA_JURO,
13 | VALOR_JURO,
14 | TAXA_MULTA,
15 | VALOR_MULTA,
16 | TAXA_DESCONTO,
17 | VALOR_DESCONTO,
18 | SIGLA_DOCUMENTO,
19 | NOME_FORNECEDOR,
20 | ID_FIN_STATUS_PARCELA,
21 | SITUACAO_PARCELA,
22 | DESCRICAO_SITUACAO_PARCELA,
23 | ID_BANCO_CONTA_CAIXA,
24 | NOME_CONTA_CAIXA)
25 | AS
26 | select
27 | CAST( CONCAT(LP.ID,PP.ID) as UNSIGNED) as ID,
28 | LP.ID as ID_FIN_LANCAMENTO_PAGAR,
29 | LP.QUANTIDADE_PARCELA,
30 | LP.VALOR_A_PAGAR AS VALOR_LANCAMENTO,
31 | LP.DATA_LANCAMENTO,
32 | LP.NUMERO_DOCUMENTO,
33 | PP.ID as ID_FIN_PARCELA_PAGAR,
34 | PP.NUMERO_PARCELA,
35 | PP.DATA_VENCIMENTO,
36 | PP.VALOR AS VALOR_PARCELA,
37 | PP.TAXA_JURO,
38 | PP.VALOR_JURO,
39 | PP.TAXA_MULTA,
40 | PP.VALOR_MULTA,
41 | PP.TAXA_DESCONTO,
42 | PP.VALOR_DESCONTO,
43 | DOC.SIGLA,
44 | P.NOME as NOME_FORNECEDOR,
45 | S.ID as ID_FIN_STATUS_PARCELA,
46 | S.SITUACAO as SITUACAO_PARCELA,
47 | S.DESCRICAO as DESCRICAO_SITUACAO_PARCELA,
48 | CC.ID AS ID_BANCO_CONTA_CAIXA,
49 | CC.NOME AS NOME_CONTA_CAIXA
50 | from
51 | FIN_LANCAMENTO_PAGAR LP, FIN_PARCELA_PAGAR PP, FIN_DOCUMENTO_ORIGEM DOC,
52 | PESSOA P, FORNECEDOR F, FIN_STATUS_PARCELA S, BANCO_CONTA_CAIXA CC
53 | where
54 | PP.ID_FIN_LANCAMENTO_PAGAR = LP.ID
55 | and
56 | PP.ID_FIN_STATUS_PARCELA = S.ID
57 | and
58 | LP.ID_FIN_DOCUMENTO_ORIGEM = DOC.ID
59 | and
60 | LP.ID_FORNECEDOR = F.ID
61 | and
62 | F.ID_PESSOA = P.ID
63 | and
64 | LP.ID_BANCO_CONTA_CAIXA = CC.ID
65 | ;
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/VIEW_FIN_MOVIMENTO_CAIXA_BANCO.txt:
--------------------------------------------------------------------------------
1 | CREATE VIEW VIEW_FIN_MOVIMENTO_CAIXA_BANCO(
2 | ID,
3 | ID_CONTA_CAIXA,
4 | NOME_CONTA_CAIXA,
5 | NOME_PESSOA,
6 | DATA_LANCAMENTO,
7 | DATA_PAGO_RECEBIDO,
8 | MES_ANO,
9 | HISTORICO,
10 | VALOR,
11 | DESCRICAO_DOCUMENTO_ORIGEM,
12 | OPERACAO)
13 | AS
14 | select
15 | CAST( CONCAT(CC.ID,LP.ID,PP.ID) as UNSIGNED) as ID,
16 | CC.ID AS ID_CONTA_CAIXA, CC.NOME AS NOME_CONTA_CAIXA, P.NOME,
17 | LP.DATA_LANCAMENTO, PP.DATA_PAGAMENTO AS DATA_PAGO_RECEBIDO,
18 | DATE_FORMAT(PP.DATA_PAGAMENTO,'%m/%Y') as MES_ANO,
19 | PP.HISTORICO, PP.VALOR_PAGO, DOC.DESCRICAO, 'S' AS OPERACAO
20 |
21 | from
22 | FIN_PARCELA_PAGAR PP
23 | inner join FIN_LANCAMENTO_PAGAR LP on (PP.ID_FIN_LANCAMENTO_PAGAR = LP.ID)
24 | inner join BANCO_CONTA_CAIXA CC on (LP.ID_BANCO_CONTA_CAIXA = CC.ID)
25 | inner join FORNECEDOR F on (LP.ID_FORNECEDOR = F.ID)
26 | inner join PESSOA P on (F.ID_PESSOA = P.ID)
27 | inner join FIN_DOCUMENTO_ORIGEM DOC on (LP.ID_FIN_DOCUMENTO_ORIGEM = DOC.ID)
28 |
29 | union
30 |
31 | select
32 | CAST( CONCAT(CC.ID,LR.ID,PR.ID) as UNSIGNED) as ID,
33 | CC.ID AS ID_CONTA_CAIXA, CC.NOME AS NOME_CONTA_CAIXA, P.NOME,
34 | LR.DATA_LANCAMENTO, PR.DATA_RECEBIMENTO AS DATA_PAGO_RECEBIDO,
35 | DATE_FORMAT(PR.DATA_RECEBIMENTO,'%m/%Y') as MES_ANO,
36 | PR.HISTORICO, PR.VALOR_RECEBIDO, DOC.DESCRICAO, 'E' AS OPERACAO
37 |
38 | from
39 | FIN_PARCELA_RECEBER PR
40 | inner join FIN_LANCAMENTO_RECEBER LR on (PR.ID_FIN_LANCAMENTO_RECEBER = LR.ID)
41 | inner join BANCO_CONTA_CAIXA CC on (LR.ID_BANCO_CONTA_CAIXA = CC.ID)
42 | inner join CLIENTE C on (LR.ID_CLIENTE = C.ID)
43 | inner join PESSOA P on (C.ID_PESSOA = P.ID)
44 | inner join FIN_DOCUMENTO_ORIGEM DOC on (LR.ID_FIN_DOCUMENTO_ORIGEM = DOC.ID)
45 |
46 | ORDER BY 2, 5
47 | ;
--------------------------------------------------------------------------------
/fenix/artefatos/der/apagar tabelas NFe.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS nfe_acesso_xml;
2 | DROP TABLE IF EXISTS nfe_cabecalho;
3 | DROP TABLE IF EXISTS nfe_cana;
4 | DROP TABLE IF EXISTS nfe_cana_deducoes_safra;
5 | DROP TABLE IF EXISTS nfe_cana_fornecimento_diario;
6 | DROP TABLE IF EXISTS nfe_configuracao;
7 | DROP TABLE IF EXISTS nfe_cte_referenciado;
8 | DROP TABLE IF EXISTS nfe_cupom_fiscal_referenciado;
9 | DROP TABLE IF EXISTS nfe_declaracao_importacao;
10 | DROP TABLE IF EXISTS nfe_destinatario;
11 | DROP TABLE IF EXISTS nfe_det_especifico_armamento;
12 | DROP TABLE IF EXISTS nfe_det_especifico_combustivel;
13 | DROP TABLE IF EXISTS nfe_det_especifico_medicamento;
14 | DROP TABLE IF EXISTS nfe_det_especifico_veiculo;
15 | DROP TABLE IF EXISTS nfe_detalhe;
16 | DROP TABLE IF EXISTS nfe_detalhe_imposto_cofins;
17 | DROP TABLE IF EXISTS nfe_detalhe_imposto_cofins_st;
18 | DROP TABLE IF EXISTS nfe_detalhe_imposto_icms;
19 | DROP TABLE IF EXISTS nfe_detalhe_imposto_icms_ufdest;
20 | DROP TABLE IF EXISTS nfe_detalhe_imposto_ii;
21 | DROP TABLE IF EXISTS nfe_detalhe_imposto_ipi;
22 | DROP TABLE IF EXISTS nfe_detalhe_imposto_issqn;
23 | DROP TABLE IF EXISTS nfe_detalhe_imposto_pis;
24 | DROP TABLE IF EXISTS nfe_detalhe_imposto_pis_st;
25 | DROP TABLE IF EXISTS nfe_duplicata;
26 | DROP TABLE IF EXISTS nfe_emitente;
27 | DROP TABLE IF EXISTS nfe_exportacao;
28 | DROP TABLE IF EXISTS nfe_fatura;
29 | DROP TABLE IF EXISTS nfe_importacao_detalhe;
30 | DROP TABLE IF EXISTS nfe_informacao_pagamento;
31 | DROP TABLE IF EXISTS nfe_item_rastreado;
32 | DROP TABLE IF EXISTS nfe_local_entrega;
33 | DROP TABLE IF EXISTS nfe_local_retirada;
34 | DROP TABLE IF EXISTS nfe_nf_referenciada;
35 | DROP TABLE IF EXISTS nfe_numero;
36 | DROP TABLE IF EXISTS nfe_numero_inutilizado;
37 | DROP TABLE IF EXISTS nfe_processo_referenciado;
38 | DROP TABLE IF EXISTS nfe_prod_rural_referenciada;
39 | DROP TABLE IF EXISTS nfe_referenciada;
40 | DROP TABLE IF EXISTS nfe_responsavel_tecnico;
41 | DROP TABLE IF EXISTS nfe_transporte;
42 | DROP TABLE IF EXISTS nfe_transporte_reboque;
43 | DROP TABLE IF EXISTS nfe_transporte_volume;
44 | DROP TABLE IF EXISTS nfe_transporte_volume_lacre;
--------------------------------------------------------------------------------
/fenix/artefatos/views-mysql/sped/VIEW_SPED_NFE_DETALHE.txt:
--------------------------------------------------------------------------------
1 | CREATE
2 | VIEW VIEW_SPED_NFE_DETALHE
3 | AS
4 |
5 | select
6 | NFED.*,
7 | NFEC.ID_TRIBUT_OPERACAO_FISCAL,
8 | P.ID_PRODUTO_UNIDADE,
9 | COFINS.CST_COFINS,
10 | COFINS.QUANTIDADE_VENDIDA AS QUANTIDADE_VENDIDA_COFINS,
11 | COFINS.BASE_CALCULO_COFINS,
12 | COFINS.ALIQUOTA_COFINS_PERCENTUAL,
13 | COFINS.ALIQUOTA_COFINS_REAIS,
14 | COFINS.VALOR_COFINS,
15 | ICMS.ORIGEM_MERCADORIA,
16 | ICMS.CST_ICMS,
17 | ICMS.CSOSN,
18 | ICMS.MODALIDADE_BC_ICMS,
19 | ICMS.PERCENTUAL_REDUCAO_BC_ICMS,
20 | ICMS.VALOR_BC_ICMS,
21 | ICMS.ALIQUOTA_ICMS,
22 | ICMS.VALOR_ICMS,
23 | ICMS.MOTIVO_DESONERACAO_ICMS,
24 | ICMS.MODALIDADE_BC_ICMS_ST,
25 | ICMS.PERCENTUAL_MVA_ICMS_ST,
26 | ICMS.PERCENTUAL_REDUCAO_BC_ICMS_ST,
27 | ICMS.VALOR_BASE_CALCULO_ICMS_ST,
28 | ICMS.ALIQUOTA_ICMS_ST,
29 | ICMS.VALOR_ICMS_ST,
30 | ICMS.VALOR_BC_ICMS_ST_RETIDO,
31 | ICMS.VALOR_ICMS_ST_RETIDO,
32 | ICMS.VALOR_BC_ICMS_ST_DESTINO,
33 | ICMS.VALOR_ICMS_ST_DESTINO,
34 | ICMS.ALIQUOTA_CREDITO_ICMS_SN,
35 | ICMS.VALOR_CREDITO_ICMS_SN,
36 | ICMS.PERCENTUAL_BC_OPERACAO_PROPRIA,
37 | ICMS.UF_ST,
38 | II.VALOR_BC_II,
39 | II.VALOR_DESPESAS_ADUANEIRAS,
40 | II.VALOR_IMPOSTO_IMPORTACAO,
41 | II.VALOR_IOF,
42 | IPI.CNPJ_PRODUTOR,
43 | IPI.CODIGO_SELO_IPI,
44 | IPI.QUANTIDADE_SELO_IPI,
45 | IPI.ENQUADRAMENTO_LEGAL_IPI,
46 | IPI.CST_IPI,
47 | IPI.VALOR_BASE_CALCULO_IPI,
48 | IPI.ALIQUOTA_IPI,
49 | IPI.QUANTIDADE_UNIDADE_TRIBUTAVEL,
50 | IPI.VALOR_UNIDADE_TRIBUTAVEL,
51 | IPI.VALOR_IPI,
52 | ISSQN.BASE_CALCULO_ISSQN,
53 | ISSQN.ALIQUOTA_ISSQN,
54 | ISSQN.VALOR_ISSQN,
55 | ISSQN.MUNICIPIO_ISSQN,
56 | ISSQN.ITEM_LISTA_SERVICOS,
57 | PIS.CST_PIS,
58 | PIS.QUANTIDADE_VENDIDA AS QUANTIDADE_VENDIDA_PIS,
59 | PIS.VALOR_BASE_CALCULO_PIS,
60 | PIS.ALIQUOTA_PIS_PERCENTUAL,
61 | PIS.ALIQUOTA_PIS_REAIS,
62 | PIS.VALOR_PIS
63 | from
64 | NFE_DETALHE NFED
65 | LEFT JOIN NFE_DETALHE_IMPOSTO_COFINS COFINS ON (COFINS.ID_NFE_DETALHE = NFED.ID)
66 | LEFT JOIN NFE_DETALHE_IMPOSTO_ICMS ICMS ON (ICMS.ID_NFE_DETALHE = NFED.ID)
67 | LEFT JOIN NFE_DETALHE_IMPOSTO_II II ON (II.ID_NFE_DETALHE = NFED.ID)
68 | LEFT JOIN NFE_DETALHE_IMPOSTO_IPI IPI ON (IPI.ID_NFE_DETALHE = NFED.ID)
69 | LEFT JOIN NFE_DETALHE_IMPOSTO_ISSQN ISSQN ON (ISSQN.ID_NFE_DETALHE = NFED.ID)
70 | LEFT JOIN NFE_DETALHE_IMPOSTO_PIS PIS ON (PIS.ID_NFE_DETALHE = NFED.ID)
71 | LEFT JOIN PRODUTO P ON (NFED.ID_PRODUTO = P.ID)
72 | LEFT JOIN NFE_CABECALHO NFEC ON (NFED.ID_NFE_CABECALHO = NFEC.ID)
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/menu/menu.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Classe que armazena alguns métodos úteis para as classes da aplicação.
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 |
36 | Based on: Flutter UIKit by Pawan Kumar - https://github.com/iampawan/Flutter-UI-Kit
37 | *******************************************************************************/
38 | import 'package:flutter/material.dart';
39 |
40 | class Menu {
41 | String title;
42 | IconData icon;
43 | String image;
44 | String route;
45 | BuildContext context;
46 | Color menuColor;
47 |
48 | Menu(
49 | {this.title,
50 | this.icon,
51 | this.image,
52 | this.route,
53 | this.context,
54 | this.menuColor = Colors.black});
55 | }
56 |
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/page/afv/visao_vendedor/afv_visao_vendedor_rota_page.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Página AFV - Visão Vendedor - Rotas
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'package:fenix/src/infra/constantes.dart';
37 | import 'package:flutter/material.dart';
38 | import 'package:fenix/src/view/shared/view_util_lib.dart';
39 |
40 | class AfvVisaoVendedorRotaPage extends StatelessWidget {
41 | const AfvVisaoVendedorRotaPage({Key key}) : super(key: key);
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | return Theme(
46 | data: ViewUtilLib.getThemeDataDetalhePage(context),
47 | child: Scaffold(
48 | // appBar: AppBar(title: Text('Será Implementado'), actions:
[]),
49 | body: Image.asset(
50 | Constantes.googleMapFake,
51 | fit: BoxFit.contain,
52 | ),
53 | ));
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fenix
2 | description: T2Ti ERP Fenix
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.3.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | provider: ^3.1.0
23 | http: ^0.12.0+2
24 | get_it: ^1.0.3+2
25 | intl:
26 | flutter_masked_text: ^0.8.0
27 | cpf_cnpj_validator: ^1.0.5
28 | font_awesome_flutter:
29 | recase: ^3.0.0
30 | flutter_html: ^0.11.1
31 | backdrop: ^0.2.14
32 | file_picker: ^1.7.1
33 | #file_picker_web: 1.0.0
34 | xml: ^3.6.1
35 | fluttertoast: ^4.0.0
36 | flutter_plugin_pdf_viewer: ^1.0.7
37 | pdf_viewer_plugin: ^1.0.0+2
38 | path_provider: ^1.6.11
39 | cached_network_image:
40 | flutter_swiper: ^1.1.6
41 | bottomreveal: ^1.0.0
42 |
43 | # The following adds the Cupertino Icons font to your application.
44 | # Use with the CupertinoIcons class for iOS style icons.
45 | cupertino_icons: ^0.1.2
46 |
47 | dev_dependencies:
48 | flutter_test:
49 | sdk: flutter
50 |
51 | # For information on the generic Dart part of this file, see the
52 | # following page: https://dart.dev/tools/pub/pubspec
53 |
54 | # The following section is specific to Flutter.
55 | flutter:
56 |
57 | # The following line ensures that the Material Icons font is
58 | # included with your application, so that you can use the icons in
59 | # the material Icons class.
60 | uses-material-design: true
61 |
62 | # To add assets to your application, add an assets section, like this:
63 | assets:
64 | - assets/images/
65 | # - images/a_dot_burr.jpeg
66 | # - images/a_dot_ham.jpeg
67 |
68 | # An image asset can refer to one or more resolution-specific "variants", see
69 | # https://flutter.dev/assets-and-images/#resolution-aware.
70 |
71 | # For details regarding adding assets from package dependencies, see
72 | # https://flutter.dev/assets-and-images/#from-packages
73 |
74 | # To add custom fonts to your application, add a fonts section here,
75 | # in this "flutter" section. Each entry in this list should have a
76 | # "family" key with the font family name, and a "fonts" key with a
77 | # list giving the asset and other descriptors for the font. For
78 | # example:
79 | # fonts:
80 | # - family: Schyler
81 | # fonts:
82 | # - asset: fonts/Schyler-Regular.ttf
83 | # - asset: fonts/Schyler-Italic.ttf
84 | # style: italic
85 | # - family: Trajan Pro
86 | # fonts:
87 | # - asset: fonts/TrajanPro.ttf
88 | # - asset: fonts/TrajanPro_Bold.ttf
89 | # weight: 700
90 | #
91 | # For details regarding fonts from package dependencies,
92 | # see https://flutter.dev/custom-fonts/#from-packages
93 |
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/retorno_json_erro.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Classe transiente para armazenar o retorno de erros que vem do servidor
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | class RetornoJsonErro {
37 | String status;
38 | String error;
39 | String message;
40 | String trace;
41 | String tipo;
42 |
43 | RetornoJsonErro({this.status, this.error, this.message, this.trace, this.tipo});
44 |
45 | RetornoJsonErro.fromJson(Map jsonDados) {
46 | status = jsonDados['status'];
47 | error = jsonDados['error'];
48 | message = jsonDados['message'];
49 | trace = jsonDados['trace'];
50 | }
51 |
52 | Map get toJson {
53 | Map jsonDados = new Map();
54 | jsonDados['status'] = this.status;
55 | jsonDados['error'] = this.error;
56 | jsonDados['message'] = this.message;
57 | jsonDados['trace'] = this.trace;
58 | return jsonDados;
59 | }
60 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/shared/about_tile.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Janela About - Sobre
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 |
36 | Based on: Flutter UIKit by Pawan Kumar - https://github.com/iampawan/Flutter-UI-Kit
37 | *******************************************************************************/
38 | import 'package:flutter/material.dart';
39 | import 'package:fenix/src/infra/constantes.dart';
40 |
41 | class MyAboutTile extends StatelessWidget {
42 | @override
43 | Widget build(BuildContext context) {
44 | return AboutListTile(
45 | applicationIcon: FlutterLogo(
46 | colors: Colors.yellow,
47 | ),
48 | icon: FlutterLogo(
49 | colors: Colors.yellow,
50 | ),
51 | aboutBoxChildren: [
52 | SizedBox(
53 | height: 10.0,
54 | ),
55 | Text(
56 | "Developed By Team T2Ti",
57 | ),
58 | Text(
59 | "T2Ti.COM",
60 | ),
61 | ],
62 | applicationName: Constantes.appNameString,
63 | applicationVersion: "1.0.0",
64 | applicationLegalese: "MIT",
65 | );
66 | }
67 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/page/afv/visao_vendedor/afv_visao_vendedor_promocao_page.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Página AFV - Visão Vendedor - Promoções
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'package:flutter/material.dart';
37 | import 'package:fenix/src/view/shared/view_util_lib.dart';
38 |
39 | class AfvVisaoVendedorPromocaoPage extends StatelessWidget {
40 |
41 | const AfvVisaoVendedorPromocaoPage({Key key}) : super(key: key);
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 |
46 | return Theme(
47 | data: ViewUtilLib.getThemeDataDetalhePage(context),
48 | child: Scaffold(
49 | appBar: AppBar(title: Text('Exercício: Implemente!'), leading: new Container(), actions: [
50 | ]),
51 | body: SingleChildScrollView(
52 | child: Theme(
53 | data: ThemeData(fontFamily: 'Raleway'),
54 | child: Column(
55 | mainAxisAlignment: MainAxisAlignment.center,
56 | crossAxisAlignment: CrossAxisAlignment.stretch,
57 | children: [
58 | ],
59 | ),
60 | ),
61 | ),
62 | ));
63 |
64 | }
65 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/page/sera_implementado/sera_implementado_page.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Página transiente - será implementado
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'package:flutter/material.dart';
37 | import 'package:fenix/src/view/shared/view_util_lib.dart';
38 |
39 | class SeraImplementadoPage extends StatelessWidget {
40 |
41 | const SeraImplementadoPage({Key key}) : super(key: key);
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 |
46 | return Theme(
47 | data: ViewUtilLib.getThemeDataDetalhePage(context),
48 | child: Scaffold(
49 | appBar: AppBar(title: Text('Será Implementado'), actions: [
50 | ]),
51 | body: SingleChildScrollView(
52 | child: Theme(
53 | data: ThemeData(fontFamily: 'Raleway'),
54 | child: Column(
55 | mainAxisAlignment: MainAxisAlignment.center,
56 | crossAxisAlignment: CrossAxisAlignment.stretch,
57 | children: [
58 | ],
59 | ),
60 | ),
61 | ),
62 | ));
63 |
64 | }
65 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/shared/profile_tile.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Tile de profile padrão
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 |
36 | Based on: Flutter UIKit by Pawan Kumar - https://github.com/iampawan/Flutter-UI-Kit
37 | *******************************************************************************/
38 | import 'package:flutter/material.dart';
39 |
40 | class ProfileTile extends StatelessWidget {
41 | final title;
42 | final subtitle;
43 | final textColor;
44 | ProfileTile({this.title, this.subtitle, this.textColor = Colors.black});
45 | @override
46 | Widget build(BuildContext context) {
47 | return Column(
48 | // crossAxisAlignment: CrossAxisAlignment.start,
49 | mainAxisAlignment: MainAxisAlignment.center,
50 | children: [
51 | Text(
52 | title,
53 | style: TextStyle(
54 | fontSize: 20.0, fontWeight: FontWeight.w700, color: textColor),
55 | ),
56 | SizedBox(
57 | height: 5.0,
58 | ),
59 | Text(
60 | subtitle,
61 | style: TextStyle(
62 | fontSize: 15.0, fontWeight: FontWeight.normal, color: textColor),
63 | ),
64 | ],
65 | );
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/os/os_status.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [OS_STATUS]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class OsStatus {
40 | int id;
41 | String codigo;
42 | String nome;
43 |
44 | OsStatus({
45 | this.id,
46 | this.codigo,
47 | this.nome,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'CODIGO',
53 | 'NOME',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Código',
59 | 'Nome',
60 | ];
61 |
62 | OsStatus.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | codigo = jsonDados['codigo'];
65 | nome = jsonDados['nome'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['codigo'] = this.codigo;
73 | jsonDados['nome'] = this.nome;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(OsStatus objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/papel.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [PAPEL]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Papel {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | Papel({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | Papel.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(Papel objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/setor.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [SETOR]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Setor {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | Setor({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | Setor.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(Setor objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cnae.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CNAE]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Cnae {
40 | int id;
41 | String codigo;
42 | String denominacao;
43 |
44 | Cnae({
45 | this.id,
46 | this.codigo,
47 | this.denominacao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'CODIGO',
53 | 'DENOMINACAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Código',
59 | 'Denominação',
60 | ];
61 |
62 | Cnae.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | codigo = jsonDados['codigo'];
65 | denominacao = jsonDados['denominacao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['codigo'] = this.codigo;
73 | jsonDados['denominacao'] = this.denominacao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(Cnae objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/estado_civil.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [ESTADO_CIVIL]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class EstadoCivil {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | EstadoCivil({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | EstadoCivil.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(EstadoCivil objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/produto_grupo.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [PRODUTO_GRUPO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class ProdutoGrupo {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | ProdutoGrupo({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | ProdutoGrupo.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(ProdutoGrupo objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/produto_marca.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [PRODUTO_MARCA]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class ProdutoMarca {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | ProdutoMarca({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | ProdutoMarca.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(ProdutoMarca objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/os/os_equipamento.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [OS_EQUIPAMENTO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class OsEquipamento {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | OsEquipamento({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | OsEquipamento.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(OsEquipamento objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/shared/arc_clipper.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Monta uma figura customizada
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 |
36 | Based on: Flutter UIKit by Pawan Kumar - https://github.com/iampawan/Flutter-UI-Kit
37 | *******************************************************************************/
38 | import 'package:flutter/material.dart';
39 |
40 | class ArcClipper extends CustomClipper {
41 | @override
42 | Path getClip(Size size) {
43 | var path = new Path();
44 | path.lineTo(0.0, size.height - 30);
45 |
46 | var firstControlPoint = new Offset(size.width / 4, size.height);
47 | var firstPoint = new Offset(size.width / 2, size.height);
48 | path.quadraticBezierTo(firstControlPoint.dx, firstControlPoint.dy,
49 | firstPoint.dx, firstPoint.dy);
50 |
51 | var secondControlPoint =
52 | new Offset(size.width - (size.width / 4), size.height);
53 | var secondPoint = new Offset(size.width, size.height - 30);
54 | path.quadraticBezierTo(secondControlPoint.dx, secondControlPoint.dy,
55 | secondPoint.dx, secondPoint.dy);
56 |
57 | path.lineTo(size.width, 0.0);
58 | path.close();
59 |
60 | return path;
61 | }
62 |
63 | @override
64 | bool shouldReclip(CustomClipper oldClipper) => false;
65 | }
66 |
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/nivel_formacao.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [NIVEL_FORMACAO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class NivelFormacao {
40 | int id;
41 | String nome;
42 | String descricao;
43 |
44 | NivelFormacao({
45 | this.id,
46 | this.nome,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'NOME',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Nome',
59 | 'Descrição',
60 | ];
61 |
62 | NivelFormacao.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | nome = jsonDados['nome'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['nome'] = this.nome;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(NivelFormacao objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/filtro.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Classe transiente para enviar os dados do filtro para o servidor
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 | class Filtro {
39 | String campo;
40 | String valor;
41 | String dataInicial;
42 | String dataFinal;
43 | String condicao;
44 | String where; // será utilizado quando o filtro for múltiplo, ou seja, quando mais de um filtro for enviado para o servidor
45 |
46 | Filtro({this.campo, this.valor, this.dataInicial, this.dataFinal});
47 |
48 | Filtro.fromJson(Map jsonDados) {
49 | campo = jsonDados['campo'];
50 | valor = jsonDados['valor'];
51 | dataInicial = jsonDados['dataInicial'];
52 | dataFinal = jsonDados['dataFinal'];
53 | }
54 |
55 | Map get toJson {
56 | Map jsonDados = new Map();
57 | jsonDados['campo'] = this.campo;
58 | jsonDados['valor'] = this.valor;
59 | jsonDados['dataInicial'] = this.dataInicial;
60 | jsonDados['dataFinal'] = this.dataFinal;
61 | return jsonDados;
62 | }
63 | }
64 |
65 | String filtroEncodeJson(Filtro filtro) {
66 | final jsonDados = filtro.toJson;
67 | return json.encode(jsonDados);
68 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/nfse/nfse_lista_servico.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [NFSE_LISTA_SERVICO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class NfseListaServico {
40 | int id;
41 | String codigo;
42 | String descricao;
43 |
44 | NfseListaServico({
45 | this.id,
46 | this.codigo,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'CODIGO',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Código',
59 | 'Descrição',
60 | ];
61 |
62 | NfseListaServico.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | codigo = jsonDados['codigo'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['codigo'] = this.codigo;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(NfseListaServico objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/view/menu/menu_titulo_grupo_menu_interno.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Monta o título do grupo de botões do menu interno
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'package:flutter/material.dart';
37 |
38 | class MenuTituloGrupoMenuInterno extends StatelessWidget {
39 | final String titulo;
40 |
41 | const MenuTituloGrupoMenuInterno({
42 | Key key,
43 | this.titulo,
44 | }) : super(key: key);
45 | @override
46 | Widget build(BuildContext context) {
47 | return Container(
48 | height: 40,
49 | child: Card(
50 | color: Colors.black54,
51 | elevation: 2.0,
52 | child: Center(
53 | child: Text(titulo,
54 | textAlign: TextAlign.center,
55 | style: TextStyle(
56 | color: Colors.white,
57 | shadows: [
58 | Shadow(
59 | offset: Offset(1.0, 1.0),
60 | blurRadius: 2.0,
61 | color: Color.fromARGB(255, 0, 0, 0),
62 | ),
63 | ],
64 | fontSize: 20.0,
65 | fontWeight: FontWeight.bold,
66 | ))),
67 | ),
68 | );
69 | }
70 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/financeiro/fin_tipo_pagamento.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [FIN_TIPO_PAGAMENTO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class FinTipoPagamento {
40 | int id;
41 | String codigo;
42 | String descricao;
43 |
44 | FinTipoPagamento({
45 | this.id,
46 | this.codigo,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'CODIGO',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Código Pagamento',
59 | 'Descrição',
60 | ];
61 |
62 | FinTipoPagamento.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | codigo = jsonDados['codigo'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['codigo'] = this.codigo;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(FinTipoPagamento objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/banco.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [BANCO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Banco {
40 | int id;
41 | String codigo;
42 | String nome;
43 | String url;
44 |
45 | Banco({
46 | this.id,
47 | this.codigo,
48 | this.nome,
49 | this.url,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'NOME',
56 | 'URL',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Nome',
63 | 'URL',
64 | ];
65 |
66 | Banco.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | nome = jsonDados['nome'];
70 | url = jsonDados['url'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['nome'] = this.nome;
79 | jsonDados['url'] = this.url;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(Banco objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/financeiro/fin_tipo_recebimento.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [FIN_TIPO_RECEBIMENTO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class FinTipoRecebimento {
40 | int id;
41 | String codigo;
42 | String descricao;
43 |
44 | FinTipoRecebimento({
45 | this.id,
46 | this.codigo,
47 | this.descricao,
48 | });
49 |
50 | static List campos = [
51 | 'ID',
52 | 'CODIGO',
53 | 'DESCRICAO',
54 | ];
55 |
56 | static List colunas = [
57 | 'Id',
58 | 'Código Recebimento',
59 | 'Descrição',
60 | ];
61 |
62 | FinTipoRecebimento.fromJson(Map jsonDados) {
63 | id = jsonDados['id'];
64 | codigo = jsonDados['codigo'];
65 | descricao = jsonDados['descricao'];
66 | }
67 |
68 | Map get toJson {
69 | Map jsonDados = new Map();
70 |
71 | jsonDados['id'] = this.id ?? 0;
72 | jsonDados['codigo'] = this.codigo;
73 | jsonDados['descricao'] = this.descricao;
74 |
75 | return jsonDados;
76 | }
77 |
78 |
79 | String objetoEncodeJson(FinTipoRecebimento objeto) {
80 | final jsonDados = objeto.toJson;
81 | return json.encode(jsonDados);
82 | }
83 |
84 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/uf.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [UF]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Uf {
40 | int id;
41 | String sigla;
42 | String nome;
43 | int codigoIbge;
44 |
45 | Uf({
46 | this.id,
47 | this.sigla,
48 | this.nome,
49 | this.codigoIbge,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'SIGLA',
55 | 'NOME',
56 | 'CODIGO_IBGE',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Sigla',
62 | 'Nome',
63 | 'Código IBGE UF',
64 | ];
65 |
66 | Uf.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | sigla = jsonDados['sigla'];
69 | nome = jsonDados['nome'];
70 | codigoIbge = jsonDados['codigoIbge'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['sigla'] = this.sigla;
78 | jsonDados['nome'] = this.nome;
79 | jsonDados['codigoIbge'] = this.codigoIbge ?? 0;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(Uf objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cfop.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CFOP]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Cfop {
40 | int id;
41 | int codigo;
42 | String descricao;
43 | String aplicacao;
44 |
45 | Cfop({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.aplicacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'APLICACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Aplicação',
64 | ];
65 |
66 | Cfop.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | aplicacao = jsonDados['aplicacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo ?? 0;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['aplicacao'] = this.aplicacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(Cfop objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/ncm.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [NCM]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Ncm {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | Ncm({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | Ncm.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(Ncm objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/csosn.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CSOSN]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class Csosn {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | Csosn({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | Csosn.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(Csosn objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cst_ipi.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CST_IPI]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CstIpi {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | CstIpi({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | CstIpi.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CstIpi objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cst_pis.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CST_PIS]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CstPis {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | CstPis({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | CstPis.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CstPis objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cst_icms.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CST_ICMS]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CstIcms {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | CstIcms({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | CstIcms.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CstIcms objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/cst_cofins.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CST_COFINS]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CstCofins {
40 | int id;
41 | String codigo;
42 | String descricao;
43 | String observacao;
44 |
45 | CstCofins({
46 | this.id,
47 | this.codigo,
48 | this.descricao,
49 | this.observacao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'DESCRICAO',
56 | 'OBSERVACAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Descrição',
63 | 'Observação',
64 | ];
65 |
66 | CstCofins.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | descricao = jsonDados['descricao'];
70 | observacao = jsonDados['observacao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['observacao'] = this.observacao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CstCofins objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/compras/compra_tipo_pedido.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [COMPRA_TIPO_PEDIDO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CompraTipoPedido {
40 | int id;
41 | String codigo;
42 | String nome;
43 | String descricao;
44 |
45 | CompraTipoPedido({
46 | this.id,
47 | this.codigo,
48 | this.nome,
49 | this.descricao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'NOME',
56 | 'DESCRICAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código do Pedido',
62 | 'Nome',
63 | 'Descrição',
64 | ];
65 |
66 | CompraTipoPedido.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | nome = jsonDados['nome'];
70 | descricao = jsonDados['descricao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['nome'] = this.nome;
79 | jsonDados['descricao'] = this.descricao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CompraTipoPedido objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/compras/compra_tipo_requisicao.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [COMPRA_TIPO_REQUISICAO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class CompraTipoRequisicao {
40 | int id;
41 | String codigo;
42 | String nome;
43 | String descricao;
44 |
45 | CompraTipoRequisicao({
46 | this.id,
47 | this.codigo,
48 | this.nome,
49 | this.descricao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'NOME',
56 | 'DESCRICAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Nome',
63 | 'Descrição',
64 | ];
65 |
66 | CompraTipoRequisicao.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | nome = jsonDados['nome'];
70 | descricao = jsonDados['descricao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['nome'] = this.nome;
79 | jsonDados['descricao'] = this.descricao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(CompraTipoRequisicao objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/financeiro/fin_documento_origem.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [FIN_DOCUMENTO_ORIGEM]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class FinDocumentoOrigem {
40 | int id;
41 | String codigo;
42 | String sigla;
43 | String descricao;
44 |
45 | FinDocumentoOrigem({
46 | this.id,
47 | this.codigo,
48 | this.sigla,
49 | this.descricao,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'CODIGO',
55 | 'SIGLA',
56 | 'DESCRICAO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Código',
62 | 'Sigla',
63 | 'Descrição',
64 | ];
65 |
66 | FinDocumentoOrigem.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | codigo = jsonDados['codigo'];
69 | sigla = jsonDados['sigla'];
70 | descricao = jsonDados['descricao'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['codigo'] = this.codigo;
78 | jsonDados['sigla'] = this.sigla;
79 | jsonDados['descricao'] = this.descricao;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(FinDocumentoOrigem objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/financeiro/fin_status_parcela.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [FIN_STATUS_PARCELA]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class FinStatusParcela {
40 | int id;
41 | String situacao;
42 | String descricao;
43 | String procedimento;
44 |
45 | FinStatusParcela({
46 | this.id,
47 | this.situacao,
48 | this.descricao,
49 | this.procedimento,
50 | });
51 |
52 | static List campos = [
53 | 'ID',
54 | 'SITUACAO',
55 | 'DESCRICAO',
56 | 'PROCEDIMENTO',
57 | ];
58 |
59 | static List colunas = [
60 | 'Id',
61 | 'Situação',
62 | 'Descrição',
63 | 'Procedimento',
64 | ];
65 |
66 | FinStatusParcela.fromJson(Map jsonDados) {
67 | id = jsonDados['id'];
68 | situacao = jsonDados['situacao'];
69 | descricao = jsonDados['descricao'];
70 | procedimento = jsonDados['procedimento'];
71 | }
72 |
73 | Map get toJson {
74 | Map jsonDados = new Map();
75 |
76 | jsonDados['id'] = this.id ?? 0;
77 | jsonDados['situacao'] = this.situacao;
78 | jsonDados['descricao'] = this.descricao;
79 | jsonDados['procedimento'] = this.procedimento;
80 |
81 | return jsonDados;
82 | }
83 |
84 |
85 | String objetoEncodeJson(FinStatusParcela objeto) {
86 | final jsonDados = objeto.toJson;
87 | return json.encode(jsonDados);
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/pessoa_contato.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [PESSOA_CONTATO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class PessoaContato {
40 | int id;
41 | int idPessoa;
42 | String nome;
43 | String email;
44 | String observacao;
45 |
46 | PessoaContato({
47 | this.id,
48 | this.idPessoa,
49 | this.nome,
50 | this.email,
51 | this.observacao,
52 | });
53 |
54 | static List campos = [
55 | 'ID',
56 | 'NOME',
57 | 'EMAIL',
58 | 'OBSERVACAO',
59 | ];
60 |
61 | static List colunas = [
62 | 'Id',
63 | 'Nome',
64 | 'E-Mail',
65 | 'Observação',
66 | ];
67 |
68 | PessoaContato.fromJson(Map jsonDados) {
69 | id = jsonDados['id'];
70 | idPessoa = jsonDados['idPessoa'];
71 | nome = jsonDados['nome'];
72 | email = jsonDados['email'];
73 | observacao = jsonDados['observacao'];
74 | }
75 |
76 | Map get toJson {
77 | Map jsonDados = new Map();
78 |
79 | jsonDados['id'] = this.id ?? 0;
80 | jsonDados['idPessoa'] = this.idPessoa ?? 0;
81 | jsonDados['nome'] = this.nome;
82 | jsonDados['email'] = this.email;
83 | jsonDados['observacao'] = this.observacao;
84 |
85 | return jsonDados;
86 | }
87 |
88 |
89 | String objetoEncodeJson(PessoaContato objeto) {
90 | final jsonDados = objeto.toJson;
91 | return json.encode(jsonDados);
92 | }
93 |
94 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/cadastros/contador.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [CONTADOR]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 | import 'package:fenix/src/model/model.dart';
39 |
40 | class Contador {
41 | int id;
42 | int idPessoa;
43 | String crcInscricao;
44 | String crcUf;
45 | Pessoa pessoa;
46 |
47 | Contador({
48 | this.id,
49 | this.idPessoa,
50 | this.crcInscricao,
51 | this.crcUf,
52 | this.pessoa,
53 | });
54 |
55 | static List campos = [
56 | 'ID',
57 | 'CRC_INSCRICAO',
58 | 'CRC_UF',
59 | ];
60 |
61 | static List colunas = [
62 | 'Id',
63 | 'Inscrição CRC',
64 | 'UF CRC',
65 | ];
66 |
67 | Contador.fromJson(Map jsonDados) {
68 | id = jsonDados['id'];
69 | idPessoa = jsonDados['idPessoa'];
70 | crcInscricao = jsonDados['crcInscricao'];
71 | crcUf = jsonDados['crcUf'];
72 | pessoa = jsonDados['pessoa'] == null ? null : new Pessoa.fromJson(jsonDados['pessoa']);
73 | }
74 |
75 | Map get toJson {
76 | Map jsonDados = new Map();
77 |
78 | jsonDados['id'] = this.id ?? 0;
79 | jsonDados['idPessoa'] = this.idPessoa ?? 0;
80 | jsonDados['crcInscricao'] = this.crcInscricao;
81 | jsonDados['crcUf'] = this.crcUf;
82 | jsonDados['pessoa'] = this.pessoa == null ? null : this.pessoa.toJson;
83 |
84 | return jsonDados;
85 | }
86 |
87 |
88 | String objetoEncodeJson(Contador objeto) {
89 | final jsonDados = objeto.toJson;
90 | return json.encode(jsonDados);
91 | }
92 |
93 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/tributacao/tribut_operacao_fiscal.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [TRIBUT_OPERACAO_FISCAL]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class TributOperacaoFiscal {
40 | int id;
41 | String descricao;
42 | String descricaoNaNf;
43 | int cfop;
44 | String observacao;
45 |
46 | TributOperacaoFiscal({
47 | this.id,
48 | this.descricao,
49 | this.descricaoNaNf,
50 | this.cfop,
51 | this.observacao,
52 | });
53 |
54 | static List campos = [
55 | 'ID',
56 | 'DESCRICAO',
57 | 'DESCRICAO_NA_NF',
58 | 'CFOP',
59 | 'OBSERVACAO',
60 | ];
61 |
62 | static List colunas = [
63 | 'Id',
64 | 'Descrição',
65 | 'Descrição na NF',
66 | 'CFOP',
67 | 'Observação',
68 | ];
69 |
70 | TributOperacaoFiscal.fromJson(Map jsonDados) {
71 | id = jsonDados['id'];
72 | descricao = jsonDados['descricao'];
73 | descricaoNaNf = jsonDados['descricaoNaNf'];
74 | cfop = jsonDados['cfop'];
75 | observacao = jsonDados['observacao'];
76 | }
77 |
78 | Map get toJson {
79 | Map jsonDados = new Map();
80 |
81 | jsonDados['id'] = this.id ?? 0;
82 | jsonDados['descricao'] = this.descricao;
83 | jsonDados['descricaoNaNf'] = this.descricaoNaNf;
84 | jsonDados['cfop'] = this.cfop ?? 0;
85 | jsonDados['observacao'] = this.observacao;
86 |
87 | return jsonDados;
88 | }
89 |
90 |
91 | String objetoEncodeJson(TributOperacaoFiscal objeto) {
92 | final jsonDados = objeto.toJson;
93 | return json.encode(jsonDados);
94 | }
95 |
96 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/vendas/venda_condicoes_parcelas.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [VENDA_CONDICOES_PARCELAS]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 |
39 | class VendaCondicoesParcelas {
40 | int id;
41 | int idVendaCondicoesPagamento;
42 | int parcela;
43 | int dias;
44 | double taxa;
45 |
46 | VendaCondicoesParcelas({
47 | this.id,
48 | this.idVendaCondicoesPagamento,
49 | this.parcela,
50 | this.dias,
51 | this.taxa,
52 | });
53 |
54 | static List campos = [
55 | 'ID',
56 | 'PARCELA',
57 | 'DIAS',
58 | 'TAXA',
59 | ];
60 |
61 | static List colunas = [
62 | 'Id',
63 | 'Número da Parcela',
64 | 'Dias',
65 | 'Taxa da Parcela',
66 | ];
67 |
68 | VendaCondicoesParcelas.fromJson(Map jsonDados) {
69 | id = jsonDados['id'];
70 | idVendaCondicoesPagamento = jsonDados['idVendaCondicoesPagamento'];
71 | parcela = jsonDados['parcela'];
72 | dias = jsonDados['dias'];
73 | taxa = jsonDados['taxa'] != null ? jsonDados['taxa'].toDouble() : null;
74 | }
75 |
76 | Map get toJson {
77 | Map jsonDados = new Map();
78 |
79 | jsonDados['id'] = this.id ?? 0;
80 | jsonDados['idVendaCondicoesPagamento'] = this.idVendaCondicoesPagamento ?? 0;
81 | jsonDados['parcela'] = this.parcela ?? 0;
82 | jsonDados['dias'] = this.dias ?? 0;
83 | jsonDados['taxa'] = this.taxa;
84 |
85 | return jsonDados;
86 | }
87 |
88 |
89 | String objetoEncodeJson(VendaCondicoesParcelas objeto) {
90 | final jsonDados = objeto.toJson;
91 | return json.encode(jsonDados);
92 | }
93 |
94 | }
--------------------------------------------------------------------------------
/fenix/fontes/frontend/provider/lib/src/model/afv/tabela_preco_produto.dart:
--------------------------------------------------------------------------------
1 | /*
2 | Title: T2Ti ERP Fenix
3 | Description: Model relacionado à tabela [TABELA_PRECO_PRODUTO]
4 |
5 | The MIT License
6 |
7 | Copyright: Copyright (C) 2020 T2Ti.COM
8 |
9 | Permission is hereby granted, free of charge, to any person
10 | obtaining a copy of this software and associated documentation
11 | files (the "Software"), to deal in the Software without
12 | restriction, including without limitation the rights to use,
13 | copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the
15 | Software is furnished to do so, subject to the following
16 | conditions:
17 |
18 | The above copyright notice and this permission notice shall be
19 | included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 | OTHER DEALINGS IN THE SOFTWARE.
29 |
30 | The author may be contacted at:
31 | t2ti.com@gmail.com
32 |
33 | @author Albert Eije (alberteije@gmail.com)
34 | @version 1.0.0
35 | *******************************************************************************/
36 | import 'dart:convert';
37 |
38 | import 'package:fenix/src/model/model.dart';
39 |
40 | class TabelaPrecoProduto {
41 | int id;
42 | int idTabelaPreco;
43 | int idProduto;
44 | double preco;
45 | Produto produto;
46 |
47 | TabelaPrecoProduto({
48 | this.id,
49 | this.idTabelaPreco,
50 | this.idProduto,
51 | this.preco = 0.0,
52 | this.produto,
53 | });
54 |
55 | static List campos = [
56 | 'ID',
57 | 'PRECO',
58 | ];
59 |
60 | static List