From 7882311e7bbb7d9e47f5a50a242cda3d39c58f79 Mon Sep 17 00:00:00 2001 From: levelcode365 Date: Fri, 17 Apr 2026 21:32:22 -0300 Subject: [PATCH] 17/04/2026 - Atualizando projeto --- BLL/BLLEmpresaConfig.cs | 1 + DAL/DALAgenda.cs | 4 +- DAL/DALEmpresaConfig.cs | 1 + DAL/DALLconexao.cs | 75 ++++++ MLL/ModeloAgenda.cs | 6 +- MLL/ModeloBancos.cs | 3 + MLL/ModeloBoletos.cs | 18 ++ MLL/ModeloCalibracao.cs | 11 + MLL/ModeloCalibracaoEnsaio.cs | 11 + MLL/ModeloCalibracaoPadrao.cs | 11 + MLL/ModeloCalibracaoPadraoEnsaios.cs | 11 + MLL/ModeloCartoes.cs | 21 ++ MLL/ModeloChamado.cs | 18 ++ MLL/ModeloChegues.cs | 19 ++ MLL/ModeloCliente.cs | 255 +++++++++++------- MLL/ModeloClientesEnderecos.cs | 17 ++ MLL/ModeloConfig.cs | 107 ++++++++ MLL/ModeloContaPagar.cs | 26 +- MLL/ModeloContaReceber.cs | 27 +- MLL/ModeloContas.cs | 37 +++ MLL/ModeloContasContas.cs | 7 + MLL/ModeloContasDeposito.cs | 10 + MLL/ModeloContrato.cs | 58 ++-- MLL/ModeloContratoEquipamentos.cs | 49 ++-- MLL/ModeloConvenioBoletos.cs | 26 ++ MLL/ModeloConvenioCartoes.cs | 17 +- MLL/ModeloCoordImpres.cs | 13 + MLL/ModeloDespFixa.cs | 12 + MLL/ModeloDespesas.cs | 10 + MLL/ModeloEcfCfg.cs | 10 + MLL/ModeloEmpresa.cs | 56 ++++ MLL/ModeloEmpresaConfig.cs | 121 +++++---- MLL/ModeloEquipContratos.cs | 7 + MLL/ModeloEquipamentos.cs | 20 ++ MLL/ModeloEsquemas.cs | 11 + MLL/ModeloFcaixa.cs | 15 ++ MLL/ModeloFornecedor.cs | 142 ++++++---- MLL/ModeloFornecedores.cs | 28 ++ MLL/ModeloFornecerDE.cs | 8 + MLL/ModeloIBPT.cs | 11 + MLL/ModeloIcmsEmp.cs | 37 +++ MLL/ModeloIcmsUf.cs | 8 + MLL/ModeloItens.cs | 37 +++ MLL/ModeloItensEntrada.cs | 14 + MLL/ModeloItensFabrica.cs | 13 + MLL/ModeloItensFotosML.cs | 7 + MLL/ModeloItensNota.cs | 22 ++ MLL/ModeloItensOrca.cs | 14 + MLL/ModeloItensPedido.cs | 38 ++- MLL/ModeloItensSaida.cs | 15 ++ MLL/ModeloItensSerial.cs | 14 + MLL/ModeloItensVenda.cs | 23 ++ MLL/ModeloLCP116.cs | 9 + MLL/ModeloLogUser.cs | 11 + MLL/ModeloNFEInutilizadas.cs | 12 + MLL/ModeloNFENumeroLote.cs | 8 + MLL/ModeloNFEUfCidade.cs | 8 + MLL/ModeloNotasCCE.cs | 11 + MLL/ModeloNotasCFOP.cs | 12 + MLL/ModeloNotasCompras.cs | 102 ++++++- MLL/ModeloNotasComprasCorel.cs | 8 + MLL/ModeloNotasComprasDFE.cs | 7 + MLL/ModeloNotasComprasFaturas.cs | 9 + MLL/ModeloNotasComprasItens.cs | 50 ++++ MLL/ModeloNotasConsumidorFormas.cs | 17 +- MLL/ModeloNotasConsumidorItens.cs | 87 +++++- MLL/ModeloNotasContador.cs | 11 + MLL/ModeloNotasDeServicos.cs | 67 +++++ MLL/ModeloNotasEnderecos.cs | 44 ++- MLL/ModeloNotasFaturas.cs | 13 + MLL/ModeloNotasFiscais.cs | 150 ++++++++++- MLL/ModeloNotasFiscaisConsumidor.cs | 50 ++++ MLL/ModeloNotasFormas.cs | 24 +- MLL/ModeloNotasItensDetalha.cs | 165 +++++++----- MLL/ModeloNotasItensRastreabilidade.cs | 31 ++- MLL/ModeloNotasRefNFP.cs | 28 +- MLL/ModeloNotasRetencoes.cs | 41 ++- MLL/ModeloNotasXml.cs | 6 + MLL/ModeloOSPecas.cs | 20 ++ MLL/ModeloOSPerson.cs | 124 +++++++++ MLL/ModeloOSServicos.cs | 21 ++ MLL/ModeloOrcaPadrao.cs | 9 + MLL/ModeloOrcaPadraoItens.cs | 9 + MLL/ModeloOrcas.cs | 21 ++ MLL/ModeloOrdens.cs | 54 ++++ MLL/ModeloOrdensContato.cs | 10 + MLL/ModeloOrdensDeslocamento.cs | 19 ++ MLL/ModeloOrdensInsumos.cs | 11 + MLL/ModeloParametros.cs | 11 + MLL/ModeloPedidos.cs | 35 +++ MLL/ModeloPerfil.cs | 43 +-- MLL/ModeloPerfilPermissoes.cs | 6 + MLL/ModeloPerfis.cs | 8 + MLL/ModeloPermissao.cs | 29 +- MLL/ModeloPermissoes.cs | 7 + MLL/ModeloPlanoDeContas.cs | 70 +++-- MLL/ModeloPlanos.cs | 11 + MLL/ModeloSatFiscalConsumidor.cs | 49 ++++ MLL/ModeloSatFiscalConsumidorFormas.cs | 17 +- MLL/ModeloSatFiscalConsumidorItens.cs | 87 +++++- MLL/ModeloServico.cs | 84 +++--- MLL/ModeloServicos.cs | 16 ++ MLL/ModeloSituacoes.cs | 15 ++ MLL/ModeloSituacoesOS.cs | 18 ++ MLL/ModeloTransportadora.cs | 147 ++++++---- MLL/ModeloTransportadoras.cs | 28 ++ MLL/ModeloUsuario.cs | 13 + MLL/ModeloUsuarioPerfis.cs | 6 + MLL/ModeloUsuarios.cs | 13 + MLL/ModeloVendas.cs | 31 +++ TLL/Documentohelper.cs | 69 +++++ TLL/TLL.csproj | 1 + .../Cadastros/AgendaCadastroPanel.cs | 16 +- .../Cadastros/ClienteCadastroPanel.cs | 1 + .../Cadastros/EmpresaConfiguracoesPanel.cs | 1 + .../Consultas/AgendaConsultaPanel.cs | 12 +- 116 files changed, 3091 insertions(+), 584 deletions(-) create mode 100644 DAL/DALLconexao.cs create mode 100644 TLL/Documentohelper.cs diff --git a/BLL/BLLEmpresaConfig.cs b/BLL/BLLEmpresaConfig.cs index 1d2699b..ab308d4 100644 --- a/BLL/BLLEmpresaConfig.cs +++ b/BLL/BLLEmpresaConfig.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using MLL; namespace BLL { diff --git a/DAL/DALAgenda.cs b/DAL/DALAgenda.cs index 86b7c4c..f4f297a 100644 --- a/DAL/DALAgenda.cs +++ b/DAL/DALAgenda.cs @@ -75,7 +75,7 @@ namespace DALL { //cmd.Parameters.AddWithValue("@CODIGO", obj.CODIGO ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@COMPROMISSO", obj.COMPROMISSO ?? (object)DBNull.Value); - cmd.Parameters.AddWithValue("@dDATA", obj.dDATA ?? (object)DBNull.Value); + cmd.Parameters.AddWithValue("@dDATA", obj.DDATA ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@AVISAR", obj.AVISAR ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@FUNC", obj.FUNC ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@DIA", obj.DIA ?? (object)DBNull.Value); @@ -119,7 +119,7 @@ namespace DALL cmd.Parameters.AddWithValue("@ID", obj.ID_AGENDA); cmd.Parameters.AddWithValue("@CODIGO", obj.CODIGO ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@COMPROMISSO", obj.COMPROMISSO ?? (object)DBNull.Value); - cmd.Parameters.AddWithValue("@dDATA", obj.dDATA ?? (object)DBNull.Value); + cmd.Parameters.AddWithValue("@dDATA", obj.DDATA ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@AVISAR", obj.AVISAR ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@FUNC", obj.FUNC ?? (object)DBNull.Value); cmd.Parameters.AddWithValue("@DIA", obj.DIA ?? (object)DBNull.Value); diff --git a/DAL/DALEmpresaConfig.cs b/DAL/DALEmpresaConfig.cs index 3326bed..fe065a4 100644 --- a/DAL/DALEmpresaConfig.cs +++ b/DAL/DALEmpresaConfig.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Data.SqlClient; using Microsoft.Data.SqlClient; +using MLL; public class DALEmpresaConfig { diff --git a/DAL/DALLconexao.cs b/DAL/DALLconexao.cs new file mode 100644 index 0000000..4125c9c --- /dev/null +++ b/DAL/DALLconexao.cs @@ -0,0 +1,75 @@ +using System; +using Microsoft.Data.SqlClient; + +namespace DAL +{ + public class DALLconexao : IDisposable + { + private string _stringConexao; + private SqlConnection _conexao; + private SqlTransaction? _transaction; + public void Dispose() + { + _transaction?.Dispose(); + _conexao?.Dispose(); + } + + public DALLconexao(string dadosConexao) + { + _stringConexao = dadosConexao; + _conexao = new SqlConnection(_stringConexao); + } + + + public string StringConexao + { + get { return _stringConexao; } + set { _stringConexao = value; } + } + + public SqlConnection ObjetoConexao + { + get { return _conexao; } + set { _conexao = value; } + } + + public SqlTransaction? ObjetoTransaction + { + get { return _transaction; } + set { _transaction = value; } + } + + public void Conectar() + { + if (_conexao.State != System.Data.ConnectionState.Open) + _conexao.Open(); + } + + public void Desconectar() + { + if (_conexao.State != System.Data.ConnectionState.Closed) + _conexao.Close(); + } + + public void IniciarTransacao() + { + if (_conexao.State != System.Data.ConnectionState.Open) + _conexao.Open(); + + _transaction = _conexao.BeginTransaction(); + } + + public void TerminarTransacao() + { + _transaction?.Commit(); + _transaction = null; + } + + public void CancelarTransacao() + { + try { _transaction?.Rollback(); } + catch { /* log aqui futuramente */ } + finally { _transaction = null; } + } + } +} \ No newline at end of file diff --git a/MLL/ModeloAgenda.cs b/MLL/ModeloAgenda.cs index df75ea8..47418e0 100644 --- a/MLL/ModeloAgenda.cs +++ b/MLL/ModeloAgenda.cs @@ -9,7 +9,7 @@ namespace MLL this.ID_AGENDA = 0; this.CODIGO = string.Empty; this.COMPROMISSO = string.Empty; - this.dDATA = string.Empty; + this.DDATA = string.Empty; this.AVISAR = string.Empty; this.FUNC = string.Empty; this.DIA = string.Empty; @@ -23,7 +23,7 @@ namespace MLL ID_AGENDA = iD_AGENDA; CODIGO = cODIGO; COMPROMISSO = cOMPROMISSO; - this.dDATA = dDATA; + DDATA = dDATA; AVISAR = aVISAR; FUNC = fUNC; DIA = dIA; @@ -35,7 +35,7 @@ namespace MLL public int ID_AGENDA { get; set; } public string CODIGO { get; set; } public string COMPROMISSO { get; set; } - public string dDATA { get; set; } + public string DDATA { get; set; } public string AVISAR { get; set; } public string FUNC { get; set; } public string DIA { get; set; } diff --git a/MLL/ModeloBancos.cs b/MLL/ModeloBancos.cs index 1d9dbda..05d6737 100644 --- a/MLL/ModeloBancos.cs +++ b/MLL/ModeloBancos.cs @@ -7,6 +7,9 @@ namespace MLL // ✅ Construtor vazio (OBRIGATÓRIO pro seu DAL) public ModeloBancos() { + this.ID_BANCOS = 0; + this.NUMERO = string.Empty; + this.NOME = string.Empty; } // ✅ Construtor completo diff --git a/MLL/ModeloBoletos.cs b/MLL/ModeloBoletos.cs index 29a1124..a912390 100644 --- a/MLL/ModeloBoletos.cs +++ b/MLL/ModeloBoletos.cs @@ -4,6 +4,24 @@ namespace MLL { public class ModeloBoletos { + public ModeloBoletos() + { + this.ID_BOLETO = 0; + this.CODIGO = string.Empty; + this.EMITIDO = string.Empty; + this.VENCE = string.Empty; + this.VALOR = string.Empty; + this.NUMERO = string.Empty; + this.PG = string.Empty; + this.SACADO = string.Empty; + this.CONTA = string.Empty; + this.OBSERVACAO = string.Empty; + this.COD_CONTA = string.Empty; + this.NOSSO_NUMERO = string.Empty; + this.ACEITE = string.Empty; + this.IMPRESSO = string.Empty; + this.IMPORTACAO = string.Empty; + } public ModeloBoletos(int iD_BOLETO, string cODIGO, string eMITIDO, string vENCE, string vALOR, string nUMERO, string pG, string sACADO, string cONTA, string oBSERVACAO, string cOD_CONTA, string nOSSO_NUMERO, string aCEITE, string iMPRESSO, string iMPORTACAO) { ID_BOLETO = iD_BOLETO; diff --git a/MLL/ModeloCalibracao.cs b/MLL/ModeloCalibracao.cs index 1b916f4..9771bb5 100644 --- a/MLL/ModeloCalibracao.cs +++ b/MLL/ModeloCalibracao.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloCalibracao { + public ModeloCalibracao() + { + ID_CALIBRACAO = 0; + CODIGO = string.Empty; + OS_NUMERO = string.Empty; + DATA = string.Empty; + TEMP = string.Empty; + HUMIDADE = string.Empty; + RESPONSABEL = string.Empty; + OBSERV = string.Empty; + } public ModeloCalibracao(int ID_codigo, string cODIGO, string oS_NUMERO, string dATA, string tEMP, string hUMIDADE, string rESPONSABEL, string oBSERV) { ID_CALIBRACAO = ID_codigo; diff --git a/MLL/ModeloCalibracaoEnsaio.cs b/MLL/ModeloCalibracaoEnsaio.cs index 9d382b0..fffebc8 100644 --- a/MLL/ModeloCalibracaoEnsaio.cs +++ b/MLL/ModeloCalibracaoEnsaio.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloCalibracaoEnsaio { + public ModeloCalibracaoEnsaio() + { + ID_CALIBRACAO_ENSAIO = 0; + COD_CALIBRACAO = string.Empty; + DESCRICAO = string.Empty; + MINIMO = string.Empty; + MAXIMO = string.Empty; + OBTIDO = string.Empty; + UNIDADE = string.Empty; + } + public ModeloCalibracaoEnsaio(int iD_CALIBRACAO_ENSAIO, string cOD_CALIBRACAO, string dESCRICAO, string mINIMO, string mAXIMO, string oBTIDO, string uNIDADE) { ID_CALIBRACAO_ENSAIO = iD_CALIBRACAO_ENSAIO; diff --git a/MLL/ModeloCalibracaoPadrao.cs b/MLL/ModeloCalibracaoPadrao.cs index 486e3ec..47ddbd3 100644 --- a/MLL/ModeloCalibracaoPadrao.cs +++ b/MLL/ModeloCalibracaoPadrao.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloCalibracaoPadrao { + public ModeloCalibracaoPadrao() + { + ID_CALIBRACAO_PADRAO = 0; + CODIGO = string.Empty; + OS_NUMERO = string.Empty; + DATA = string.Empty; + TEMP = string.Empty; + HUMIDADE = string.Empty; + RESPONSABEL = string.Empty; + OBSERV = string.Empty; + } public ModeloCalibracaoPadrao(int iD_CALIBRACAO_PADRAO, string cODIGO, string oS_NUMERO, string dATA, string tEMP, string hUMIDADE, string rESPONSABEL, string oBSERV) { ID_CALIBRACAO_PADRAO = iD_CALIBRACAO_PADRAO; diff --git a/MLL/ModeloCalibracaoPadraoEnsaios.cs b/MLL/ModeloCalibracaoPadraoEnsaios.cs index 8e14fa9..9d18569 100644 --- a/MLL/ModeloCalibracaoPadraoEnsaios.cs +++ b/MLL/ModeloCalibracaoPadraoEnsaios.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloCalibracaoPadraoEnsaios { + public ModeloCalibracaoPadraoEnsaios() + { + ID_CAL_PADRAO_ENSAIOS = 0; + CODIGO = string.Empty; + COD_CALIBRACAO = string.Empty; + DESCRICAO = string.Empty; + MINIMO = string.Empty; + MAXIMO = string.Empty; + OBTIDO = string.Empty; + UNIDADE = string.Empty; + } public ModeloCalibracaoPadraoEnsaios(int iD_CAL_PADRAO_ENSAIOS, string cODIGO, string cOD_CALIBRACAO, string dESCRICAO, string mINIMO, string mAXIMO, string oBTIDO, string uNIDADE) { ID_CAL_PADRAO_ENSAIOS = iD_CAL_PADRAO_ENSAIOS; diff --git a/MLL/ModeloCartoes.cs b/MLL/ModeloCartoes.cs index a81e8d5..cc563b1 100644 --- a/MLL/ModeloCartoes.cs +++ b/MLL/ModeloCartoes.cs @@ -1,9 +1,30 @@ using System; +using System.Drawing; +using System.Security.Cryptography; namespace MLL { public class ModeloCartoes { + public ModeloCartoes() + { + ID_COD_CARTAO = 0; + CODIGO = string.Empty; + BANDEIRA = string.Empty; + NUM_CARTAO = string.Empty; + NOME = string.Empty; + VALIDADE = string.Empty; + AUTORIZACAO = string.Empty; + PARCELAS = string.Empty; + VALOR = string.Empty; + COD_CLIENTE = string.Empty; + RESUMO = string.Empty; + DEBITO = string.Empty; + COD_CONTA = string.Empty; + DIA = string.Empty; + COMPENSADO = string.Empty; + OBS_COMP = string.Empty; + } public ModeloCartoes(int iD_COD_CARTAO, string cODIGO, string bANDEIRA, string nUM_CARTAO, string nOME, string vALIDADE, string aUTORIZACAO, string pARCELAS, string vALOR, string cOD_CLIENTE, string rESUMO, string dEBITO, string cOD_CONTA, string dIA, string cOMPENSADO, string oBS_COMP) { ID_COD_CARTAO = iD_COD_CARTAO; diff --git a/MLL/ModeloChamado.cs b/MLL/ModeloChamado.cs index 1764d5e..a0f3a5c 100644 --- a/MLL/ModeloChamado.cs +++ b/MLL/ModeloChamado.cs @@ -1,9 +1,27 @@ using System; +using static System.Net.Mime.MediaTypeNames; namespace MLL { public class ModeloChamado { + public ModeloChamado() + { + ID_CHAMADO = 0; + CODIGO =string.Empty; + TIPO = string.Empty; + COD_CLIENTE = string.Empty; + NOME_AVULSO = string.Empty; + FONES = string.Empty; + EMAIL = string.Empty; + PARA = string.Empty; + PRIORIDADE = string.Empty; + REALIZADO = string.Empty; + DIA_CHAMADO = string.Empty; + OBS = string.Empty; + ENDER_CLI = string.Empty; + } + public ModeloChamado(int iD_CHAMADO, string cODIGO, string tIPO, string cOD_CLIENTE, string nOME_AVULSO, string fONES, string eMAIL, string pARA, string pRIORIDADE, string rEALIZADO, string dIA_CHAMADO, diff --git a/MLL/ModeloChegues.cs b/MLL/ModeloChegues.cs index 1c05418..34890bd 100644 --- a/MLL/ModeloChegues.cs +++ b/MLL/ModeloChegues.cs @@ -4,6 +4,25 @@ namespace MLL { public class ModeloChegues { + public ModeloChegues() + { + ID_CHEGUES = 0; + CODIGO = string.Empty; + BANCO = string.Empty; + AGENCIA = string.Empty; + VALOR = string.Empty; + CLIENTE = string.Empty; + FORNECEDOR = string.Empty; + EMITIDO = string.Empty; + COMPENSAR = string.Empty; + OK = string.Empty; + TIPO = string.Empty; + CONTA = string.Empty; + NUMERO = string.Empty; + OBS = string.Empty; + COD_CONTA = string.Empty; + EMITENTE = string.Empty; + } public ModeloChegues(int iD_CHEGUES, string cODIGO, string bANCO, string aGENCIA, string vALOR, string cLIENTE, string fORNECEDOR, string eMITIDO, string cOMPENSAR, string oK, string tIPO, string cONTA, string nUMERO, string oBS, string cOD_CONTA, string eMITENTE) diff --git a/MLL/ModeloCliente.cs b/MLL/ModeloCliente.cs index 40a9f4a..ba1c28c 100644 --- a/MLL/ModeloCliente.cs +++ b/MLL/ModeloCliente.cs @@ -1,106 +1,155 @@ -public class ModeloCliente +using System.Runtime.ConstrainedExecution; +using System.Text.RegularExpressions; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace MLL { - public ModeloCliente() + public class ModeloCliente { + public ModeloCliente() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + NomeFantasia = string.Empty; + TipoPessoa = string.Empty; + Documento = string.Empty; + RG = string.Empty; + InscricaoMunicipal = string.Empty; + DataNascimento = null; + Contato = string.Empty; + Telefone1 = string.Empty; + Telefone2 = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + EmailNFe = string.Empty; + Site = string.Empty; + Grupo = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = null; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + Pais = string.Empty; + LimiteCredito = 0; + Bloqueado = false; + ObservacoesCobranca = string.Empty; + VendedorPadraoId = null; + TipoConsumidor = string.Empty; + Observacoes = string.Empty; + CampoExtra1 = string.Empty; + CampoExtra2 = string.Empty; + CampoExtra3 = string.Empty; + Bitcoin = string.Empty; + Ethereum = string.Empty; + Litecoin = string.Empty; + Ativo = false; + UltimaCompra = null; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } + public ModeloCliente(int id, int empresaId, string nome, string nomeFantasia, string tipoPessoa, string documento, string rG, string inscricaoMunicipal, DateTime? dataNascimento, string contato, string telefone1, string telefone2, string celular, string whatsapp, string email, string emailNFe, string site, string grupo, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string pais, decimal limiteCredito, bool bloqueado, string observacoesCobranca, int? vendedorPadraoId, string tipoConsumidor, string observacoes, string campoExtra1, string campoExtra2, string campoExtra3, string bitcoin, string ethereum, string litecoin, bool ativo, DateTime? ultimaCompra, DateTime criadoEm, DateTime atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + Nome = nome; + NomeFantasia = nomeFantasia; + TipoPessoa = tipoPessoa; + Documento = documento; + RG = rG; + InscricaoMunicipal = inscricaoMunicipal; + DataNascimento = dataNascimento; + Contato = contato; + Telefone1 = telefone1; + Telefone2 = telefone2; + Celular = celular; + Whatsapp = whatsapp; + Email = email; + EmailNFe = emailNFe; + Site = site; + Grupo = grupo; + Cep = cep; + Endereco = endereco; + Numero = numero; + Complemento = complemento; + Bairro = bairro; + Cidade = cidade; + UF = uF; + Pais = pais; + LimiteCredito = limiteCredito; + Bloqueado = bloqueado; + ObservacoesCobranca = observacoesCobranca; + VendedorPadraoId = vendedorPadraoId; + TipoConsumidor = tipoConsumidor; + Observacoes = observacoes; + CampoExtra1 = campoExtra1; + CampoExtra2 = campoExtra2; + CampoExtra3 = campoExtra3; + Bitcoin = bitcoin; + Ethereum = ethereum; + Litecoin = litecoin; + Ativo = ativo; + UltimaCompra = ultimaCompra; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string Nome { get; set; } + public string NomeFantasia { get; set; } + public string TipoPessoa { get; set; } + public string Documento { get; set; } + + public string RG { get; set; } + public string InscricaoMunicipal { get; set; } + public DateTime? DataNascimento { get; set; } + + public string Contato { get; set; } + public string Telefone1 { get; set; } + public string Telefone2 { get; set; } + public string Celular { get; set; } + public string Whatsapp { get; set; } + public string Email { get; set; } + public string EmailNFe { get; set; } + public string Site { get; set; } + + public string Grupo { get; set; } + + public string Cep { get; set; } + public string Endereco { get; set; } + public int? Numero { get; set; } + public string Complemento { get; set; } + public string Bairro { get; set; } + public string Cidade { get; set; } + public string UF { get; set; } + public string Pais { get; set; } + + public decimal LimiteCredito { get; set; } + public bool Bloqueado { get; set; } + public string ObservacoesCobranca { get; set; } + + public int? VendedorPadraoId { get; set; } + public string TipoConsumidor { get; set; } + + public string Observacoes { get; set; } + + public string CampoExtra1 { get; set; } + public string CampoExtra2 { get; set; } + public string CampoExtra3 { get; set; } + + public string Bitcoin { get; set; } + public string Ethereum { get; set; } + public string Litecoin { get; set; } + + public bool Ativo { get; set; } + public DateTime? UltimaCompra { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - public ModeloCliente(int id, int empresaId, string nome, string nomeFantasia, string tipoPessoa, string documento, string rG, string inscricaoMunicipal, DateTime? dataNascimento, string contato, string telefone1, string telefone2, string celular, string whatsapp, string email, string emailNFe, string site, string grupo, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string pais, decimal limiteCredito, bool bloqueado, string observacoesCobranca, int? vendedorPadraoId, string tipoConsumidor, string observacoes, string campoExtra1, string campoExtra2, string campoExtra3, string bitcoin, string ethereum, string litecoin, bool ativo, DateTime? ultimaCompra, DateTime criadoEm, DateTime atualizadoEm) - { - Id = id; - EmpresaId = empresaId; - Nome = nome; - NomeFantasia = nomeFantasia; - TipoPessoa = tipoPessoa; - Documento = documento; - RG = rG; - InscricaoMunicipal = inscricaoMunicipal; - DataNascimento = dataNascimento; - Contato = contato; - Telefone1 = telefone1; - Telefone2 = telefone2; - Celular = celular; - Whatsapp = whatsapp; - Email = email; - EmailNFe = emailNFe; - Site = site; - Grupo = grupo; - Cep = cep; - Endereco = endereco; - Numero = numero; - Complemento = complemento; - Bairro = bairro; - Cidade = cidade; - UF = uF; - Pais = pais; - LimiteCredito = limiteCredito; - Bloqueado = bloqueado; - ObservacoesCobranca = observacoesCobranca; - VendedorPadraoId = vendedorPadraoId; - TipoConsumidor = tipoConsumidor; - Observacoes = observacoes; - CampoExtra1 = campoExtra1; - CampoExtra2 = campoExtra2; - CampoExtra3 = campoExtra3; - Bitcoin = bitcoin; - Ethereum = ethereum; - Litecoin = litecoin; - Ativo = ativo; - UltimaCompra = ultimaCompra; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; - } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public string Nome { get; set; } - public string NomeFantasia { get; set; } - public string TipoPessoa { get; set; } - public string Documento { get; set; } - - public string RG { get; set; } - public string InscricaoMunicipal { get; set; } - public DateTime? DataNascimento { get; set; } - - public string Contato { get; set; } - public string Telefone1 { get; set; } - public string Telefone2 { get; set; } - public string Celular { get; set; } - public string Whatsapp { get; set; } - public string Email { get; set; } - public string EmailNFe { get; set; } - public string Site { get; set; } - - public string Grupo { get; set; } - - public string Cep { get; set; } - public string Endereco { get; set; } - public int? Numero { get; set; } - public string Complemento { get; set; } - public string Bairro { get; set; } - public string Cidade { get; set; } - public string UF { get; set; } - public string Pais { get; set; } - - public decimal LimiteCredito { get; set; } - public bool Bloqueado { get; set; } - public string ObservacoesCobranca { get; set; } - - public int? VendedorPadraoId { get; set; } - public string TipoConsumidor { get; set; } - - public string Observacoes { get; set; } - - public string CampoExtra1 { get; set; } - public string CampoExtra2 { get; set; } - public string CampoExtra3 { get; set; } - - public string Bitcoin { get; set; } - public string Ethereum { get; set; } - public string Litecoin { get; set; } - - public bool Ativo { get; set; } - public DateTime? UltimaCompra { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } -} \ No newline at end of file +} diff --git a/MLL/ModeloClientesEnderecos.cs b/MLL/ModeloClientesEnderecos.cs index 492172c..3b393a1 100644 --- a/MLL/ModeloClientesEnderecos.cs +++ b/MLL/ModeloClientesEnderecos.cs @@ -1,9 +1,26 @@ using System; +using System.Numerics; +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloClientesEnderecos { + public ModeloClientesEnderecos() + { + ID_COD_CLIENTE_END = 0; + CODIGO = string.Empty; + COD_CLIENTE = string.Empty; + LOGRADOURO = string.Empty; + NUMERO = string.Empty; + COMPLEM = string.Empty; + BAIRRO = string.Empty; + CIDADE = string.Empty; + UF = string.Empty; + CEP = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloClientesEnderecos(int iD_COD_CLIENTE_END, string cODIGO, string cOD_CLIENTE, string lOGRADOURO, string nUMERO, string cOMPLEM, string bAIRRO, string cIDADE, string uF, string cEP, string dATA_CADASTRO) { ID_COD_CLIENTE_END = iD_COD_CLIENTE_END; diff --git a/MLL/ModeloConfig.cs b/MLL/ModeloConfig.cs index a016b19..d0c4e34 100644 --- a/MLL/ModeloConfig.cs +++ b/MLL/ModeloConfig.cs @@ -4,6 +4,113 @@ namespace MLL { public class ModeloConfig { + public ModeloConfig() + { + ID_CONFIG = 0; + ESTOQUE = string.Empty; + OFICINA = string.Empty; + BANCO = string.Empty; + CONTAS = string.Empty; + VENDASL1 = string.Empty; + VENDASL2 = string.Empty; + MODELOVENDA = string.Empty; + PRNPORTVENDA = string.Empty; + COPIASVENDA = string.Empty; + VERSAO = string.Empty; + SERIAL = string.Empty; + SERIAL2 = string.Empty; + SMTP_SERVER = string.Empty; + SMTP_USER = string.Empty; + SMTP_PASS = string.Empty; + SMTP_TIT = string.Empty; + SMTP_EMAIL = string.Empty; + SMTP_CC = string.Empty; + SMTP_PORT = string.Empty; + SMTP_SSL = string.Empty; + SMTP_COK = string.Empty; + OFICINADONO = string.Empty; + NOSSONUMERO = string.Empty; + REVENDA = string.Empty; + COMISS_VENDAS = string.Empty; + MAXDES_VENDAS = string.Empty; + CARTAO_REG_OK = string.Empty; + CARTAO_DEBT_DIRETO = string.Empty; + CARTAO_CRED_DIRETO = string.Empty; + CARTAO_CRED_COMISS = string.Empty; + CARTAO_DEBT_COMISS = string.Empty; + VERSAOP = string.Empty; + SHCompras = string.Empty; + NFE_FORMA_EMISSAO = string.Empty; + CARTAO_CRED_PARCELA = string.Empty; + SMTP_SEMAUTENTICA = string.Empty; + NFE_ENFE = string.Empty; + NFE_EMAIL_OK = string.Empty; + DATA_CADASTRO = string.Empty; + ULTIMA_IMPRESSAO = string.Empty; + DATA_SAIDA = string.Empty; + IMPRESSA = string.Empty; + FRETE_NUMERO = string.Empty; + DESTINATARIO_NOME = string.Empty; + DESTINATARIO_ENDERECO = string.Empty; + DESTINATARIO_BAIRRO = string.Empty; + DESTINATARIO_CIDADE = string.Empty; + DESTINATARIO_UF = string.Empty; + DESTINATARIO_CEP = string.Empty; + DESTINATARIO_COD_PAIS = string.Empty; + DESTINATARIO_TEL = string.Empty; + DESTINATARIO_FAX = string.Empty; + DESTINATARIO_EMAIL = string.Empty; + DESTINATARIO_IE_RG = string.Empty; + DESTINATARIO_CNPJCPF = string.Empty; + VALOR_DESCONTO = string.Empty; + VALOR_IRRF = string.Empty; + VALOR_IRPJ = string.Empty; + VALOR_PIS = string.Empty; + VALOR_COFINS = string.Empty; + VALOR_CSLL = string.Empty; + VALOR_BENEF = string.Empty; + VALOR_INSS = string.Empty; + VALOR_SIMPLES = string.Empty; + TOTAL_DESC = string.Empty; + TOTAL_DEDUCOES = string.Empty; + TOTAL_SERVICOS = string.Empty; + TOTAL_PRODUTOS = string.Empty; + TOTAL_ISS = string.Empty; + TOTAL_IRRF = string.Empty; + TOTAL_IRPJ = string.Empty; + TOTAL_PIS = string.Empty; + TOTAL_COFINS = string.Empty; + TOTAL_CSLL = string.Empty; + TOTAL_INSS = string.Empty; + TOTAL_SIMPLES = string.Empty; + FRETE_NOME = string.Empty; + FRETE_UF = string.Empty; + FRETE_CNPJCPF = string.Empty; + FRETE_IERG = string.Empty; + FRETE_ENDERECO = string.Empty; + FRETE_MUNICIPIO = string.Empty; + FRETE_TUF = string.Empty; + DB_cs_ICMS_S = string.Empty; + DB_cs_FRETE = string.Empty; + DB_cs_SEGURO = string.Empty; + DB_cs_DESPESAS = string.Empty; + DB_cin_FRETE = string.Empty; + DB_cin_SEGURO = string.Empty; + DB_cin_DESPESAS = string.Empty; + DB_cin_DESCONTO = string.Empty; + DB_cs_ISS = string.Empty; + DB_cs_IRRF = string.Empty; + DB_cs_IRPJ = string.Empty; + DB_cs_PIS = string.Empty; + DB_cs_COFINS = string.Empty; + DB_cs_CSLL = string.Empty; + DB_cs_INSS = string.Empty; + DB_cs_SIMPLES = string.Empty; + V_FRETE = string.Empty; + V_SEGURO = string.Empty; + V_OUTROS = string.Empty; + COD_FAB = string.Empty; + } public ModeloConfig(int iD_CONFIG, string eSTOQUE, string oFICINA, string bANCO, string cONTAS, string vENDASL1, string vENDASL2, string mODELOVENDA, string pRNPORTVENDA, string cOPIASVENDA, diff --git a/MLL/ModeloContaPagar.cs b/MLL/ModeloContaPagar.cs index 3cc02b6..aa6b7bb 100644 --- a/MLL/ModeloContaPagar.cs +++ b/MLL/ModeloContaPagar.cs @@ -1,5 +1,29 @@ -public class ModeloContaPagar +using System.Drawing; +using System.Net.NetworkInformation; + +public class ModeloContaPagar { + public ModeloContaPagar() + { + Id = 0; + EmpresaId = 0; + FornecedorId = 0; + PlanoContaId = 0; + Descricao = string.Empty; + Valor = 0; + ValorPago = 0; + Juros = 0; + Multa = 0; + Desconto = 0; + Status = string.Empty; + DataEmissao = null; + DataVencimento = DateTime.MinValue; + DataPagamento = null; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloContaPagar(int id, int empresaId, int fornecedorId, int planoContaId, string descricao, decimal valor, decimal? valorPago, decimal juros, decimal multa, decimal desconto, string status, DateTime? dataEmissao, DateTime dataVencimento, DateTime? dataPagamento, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) { Id = id; diff --git a/MLL/ModeloContaReceber.cs b/MLL/ModeloContaReceber.cs index e14de0e..1d7d171 100644 --- a/MLL/ModeloContaReceber.cs +++ b/MLL/ModeloContaReceber.cs @@ -1,5 +1,30 @@ -public class ModeloContaReceber +using System.Drawing; +using System.Net.NetworkInformation; + +public class ModeloContaReceber { + public ModeloContaReceber() + { + Id = 0; + EmpresaId = 0; + ClienteId = 0; + PlanoContaId = 0; + ContratoId = null; + Descricao = string.Empty; + Valor = 0; + ValorPago = 0; + Juros = 0; + Multa = 0; + Desconto = 0; + Status = string.Empty; + DataEmissao = null; + DataVencimento = DateTime.MinValue; + DataPagamento = null; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloContaReceber(int id, int empresaId, int clienteId, int planoContaId, int? contratoId, string descricao, decimal valor, decimal? valorPago, decimal juros, decimal multa, decimal desconto, string status, DateTime? dataEmissao, DateTime dataVencimento, DateTime? dataPagamento, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) { Id = id; diff --git a/MLL/ModeloContas.cs b/MLL/ModeloContas.cs index fcc5715..8d302d6 100644 --- a/MLL/ModeloContas.cs +++ b/MLL/ModeloContas.cs @@ -1,9 +1,46 @@ using System; +using System.Drawing; namespace MLL { public class ModeloContas { + public ModeloContas() + { + ID_CONTAS = 0; + CODIGO = string.Empty; + TIPO = string.Empty; + CLIENTE = string.Empty; + FORNECEDOR = string.Empty; + COD_CLIENTE = string.Empty; + COD_FORNECEDOR = string.Empty; + VENCIMENTO = string.Empty; + PAGO = string.Empty; + PLANO_CONTAS = string.Empty; + OBSERVACAO = string.Empty; + VALOR = string.Empty; + REFERENCIA = string.Empty; + FCOBRANCA = string.Empty; + PARCELA = string.Empty; + ECF_DINHEIRO = string.Empty; + ECF_CHEQUE = string.Empty; + ECF_CARTAO = string.Empty; + ECF_BOLETO = string.Empty; + ECF_TROCO = string.Empty; + DATA_DOCTO = string.Empty; + JUROS = string.Empty; + DESCONTO = string.Empty; + CFOP = string.Empty; + CLISTSERV = string.Empty; + PMVAST = string.Empty; + PREDBCST = string.Empty; + VBCICMSST = string.Empty; + AICMSST = string.Empty; + VICMSST = string.Empty; + DATA_PGTO = string.Empty; + COD_CORRENTE = string.Empty; + OBS_COB = string.Empty; + } public ModeloContas(int iD_CONTAS, string cODIGO, string tIPO, string cLIENTE, string fORNECEDOR, string cOD_CLIENTE, string cOD_FORNECEDOR, string vENCIMENTO, string pAGO, string pLANO_CONTAS, string oBSERVACAO, string vALOR, string rEFERENCIA, diff --git a/MLL/ModeloContasContas.cs b/MLL/ModeloContasContas.cs index 9ff40b7..e44f8a2 100644 --- a/MLL/ModeloContasContas.cs +++ b/MLL/ModeloContasContas.cs @@ -4,6 +4,13 @@ namespace MLL { public class ModeloContasContas { + public ModeloContasContas() + { + ID_CONTAS_CONTAS = 0; + CODIGO = string.Empty; + DESCRICAO = string.Empty; + SALDO_INI = string.Empty; + } public ModeloContasContas(int iD_CONTAS_CONTAS, string cODIGO, string dESCRICAO, string sALDO_INI) { ID_CONTAS_CONTAS = iD_CONTAS_CONTAS; diff --git a/MLL/ModeloContasDeposito.cs b/MLL/ModeloContasDeposito.cs index b867feb..684730c 100644 --- a/MLL/ModeloContasDeposito.cs +++ b/MLL/ModeloContasDeposito.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -8,6 +9,15 @@ namespace MLL { public class ModeloContasDeposito { + public ModeloContasDeposito() + { + ID_COD_CONTA_DEPO = 0; + CODIGO = string.Empty; + COD_CORRENTE = string.Empty; + COD_LANCTO = string.Empty; + VALOR = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloContasDeposito(int iD_COD_CONTA_DEPO, string? cODIGO, string? cOD_CORRENTE, string? cOD_LANCTO, string? vALOR, string? dATA_CADASTRO) { diff --git a/MLL/ModeloContrato.cs b/MLL/ModeloContrato.cs index b658315..1101cf7 100644 --- a/MLL/ModeloContrato.cs +++ b/MLL/ModeloContrato.cs @@ -4,44 +4,46 @@ using System.ComponentModel.DataAnnotations.Schema; namespace MLL // Ou o namespace de sua preferência { - // Opcional: Para Entity Framework, especifica o nome da tabela e o schema - // [Table("Contratos", Schema = "dbo")] + public class ModeloContrato { - // [Key] // Opcional: Indica que esta é a chave primária - // [DatabaseGenerated(DatabaseGeneratedOption.Identity)] // Opcional: Indica que o DB gera o ID + public ModeloContrato() { } + public ModeloContrato(int id, int empresaId, int clienteId, string? descricao, string? observacoes, decimal valor, DateTime? dataInicio, DateTime? dataValidade, int? franquiaTempo, bool ativo, DateTime? criadoEm, DateTime? atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + ClienteId = clienteId; + Descricao = descricao; + Observacoes = observacoes; + Valor = valor; + DataInicio = dataInicio; + DataValidade = dataValidade; + FranquiaTempo = franquiaTempo; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + public int Id { get; set; } - public int EmpresaId { get; set; } - public int ClienteId { get; set; } - - // [StringLength(255)] // Opcional: Para validação de tamanho em ORMs como EF - public string? Descricao { get; set; } // varchar(255) NULL -> string? - - public string? Observacoes { get; set; } // varchar(max) NULL -> string? - - public decimal Valor { get; set; } // decimal(10, 2) NOT NULL -> decimal - - public DateTime? DataInicio { get; set; } // date NULL -> DateTime? - - public DateTime? DataValidade { get; set; } // date NULL -> DateTime? - - public int? FranquiaTempo { get; set; } // int NULL -> int? - - public bool Ativo { get; set; } = true; // bit NOT NULL com DEFAULT -> bool. Inicializado com o valor padrão. - - public DateTime? CriadoEm { get; set; } // datetime NULL com DEFAULT -> DateTime? - - public DateTime? AtualizadoEm { get; set; } // datetime NULL com DEFAULT -> DateTime? + public int ClienteId { get; set; } + public string? Descricao { get; set; } + public string? Observacoes { get; set; } + public decimal Valor { get; set; } + public DateTime? DataInicio { get; set; } + public DateTime? DataValidade { get; set; } + public int? FranquiaTempo { get; set; } + public bool Ativo { get; set; } = true; + public DateTime? CriadoEm { get; set; } + public DateTime? AtualizadoEm { get; set; } + - // Opcional: Propriedades de navegação para relacionamentos (para ORMs como Entity Framework) - /* [ForeignKey("EmpresaId")] public virtual ModeloEmpresa? Empresa { get; set; } // Assumindo que você tem um modelo ModeloEmpresa [ForeignKey("ClienteId")] public virtual ModeloCliente? Cliente { get; set; } // Assumindo que você tem um modelo ModeloCliente - */ + } } \ No newline at end of file diff --git a/MLL/ModeloContratoEquipamentos.cs b/MLL/ModeloContratoEquipamentos.cs index ebad413..7da995a 100644 --- a/MLL/ModeloContratoEquipamentos.cs +++ b/MLL/ModeloContratoEquipamentos.cs @@ -4,38 +4,35 @@ using System.ComponentModel.DataAnnotations.Schema; namespace MLL // Ou o namespace de sua preferência { - // Opcional: Para Entity Framework, especifica o nome da tabela e o schema - // [Table("ContratoEquipamentos", Schema = "dbo")] + public class ModeloContratoEquipamentos { - // [Key] // Opcional: Indica que esta é a chave primária - // [Column("Id_equipamentos")] // Opcional: Se o nome da propriedade C# for diferente do nome da coluna SQL - // [DatabaseGenerated(DatabaseGeneratedOption.Identity)] // Opcional: Indica que o DB gera o ID + public ModeloContratoEquipamentos() + { + } + public ModeloContratoEquipamentos(int id_equipamentos, int contratoId, string? modelo, string? marca, string? operadora, string? serial, string? numeroPatrimonio, string? observacoes) + { + Id_equipamentos = id_equipamentos; + ContratoId = contratoId; + Modelo = modelo; + Marca = marca; + Operadora = operadora; + Serial = serial; + NumeroPatrimonio = numeroPatrimonio; + Observacoes = observacoes; + } + public int Id_equipamentos { get; set; } - public int ContratoId { get; set; } + public string? Modelo { get; set; } + public string? Marca { get; set; } + public string? Operadora { get; set; } + public string? Serial { get; set; } + public string? NumeroPatrimonio { get; set; } + public string? Observacoes { get; set; } - // [StringLength(255)] // Opcional: Para validação de tamanho em ORMs como EF - public string? Modelo { get; set; } // varchar(255) NULL -> string? - - // [StringLength(255)] - public string? Marca { get; set; } // varchar(255) NULL -> string? - - // [StringLength(100)] - public string? Operadora { get; set; } // varchar(100) NULL -> string? - - // [StringLength(100)] - public string? Serial { get; set; } // varchar(100) NULL -> string? - - // [StringLength(100)] - public string? NumeroPatrimonio { get; set; } // varchar(100) NULL -> string? - - public string? Observacoes { get; set; } // varchar(max) NULL -> string? - - // Opcional: Propriedade de navegação para o relacionamento com Contratos (para ORMs como Entity Framework) - /* [ForeignKey("ContratoId")] public virtual ModeloContrato? Contrato { get; set; } // Assumindo que você tenha um modelo ModeloContrato para a tabela [dbo].[Contratos] - */ + } } \ No newline at end of file diff --git a/MLL/ModeloConvenioBoletos.cs b/MLL/ModeloConvenioBoletos.cs index 2bdc142..5dfb8c0 100644 --- a/MLL/ModeloConvenioBoletos.cs +++ b/MLL/ModeloConvenioBoletos.cs @@ -1,9 +1,35 @@ using System; +using static System.Net.Mime.MediaTypeNames; namespace MLL { public class ModeloConvenioBoletos { + public ModeloConvenioBoletos() + { + ID_CONVENIO_BOLETOS = 0; + CODIGO = string.Empty; + BANCO = string.Empty; + CARTEIRA = string.Empty; + CONVENIO = string.Empty; + AGENCIA = string.Empty; + CONTA = string.Empty; + NOME_CEDENTE = string.Empty; + LOCAL_PGTO = string.Empty; + INSTRU_01 = string.Empty; + INSTRU_02 = string.Empty; + INSTRU_03 = string.Empty; + INSTRU_04 = string.Empty; + INSTRU_05 = string.Empty; + INSTRU_06 = string.Empty; + INSTRU_07 = string.Empty; + INSTRU_08 = string.Empty; + INSTRU_09 = string.Empty; + INSTRU_10 = string.Empty; + DIAS_PROTESTO = string.Empty; + TIPO_DOC_COB = string.Empty; + TIPO_ESP_DOC = string.Empty; + } public ModeloConvenioBoletos(int iD_CONVENIO_BOLETOS, string cODIGO, string bANCO, string cARTEIRA, string cONVENIO, string aGENCIA, string cONTA, string nOME_CEDENTE, string lOCAL_PGTO, string iNSTRU_01, string iNSTRU_02, string iNSTRU_03, string iNSTRU_04, diff --git a/MLL/ModeloConvenioCartoes.cs b/MLL/ModeloConvenioCartoes.cs index 3088a90..e768abe 100644 --- a/MLL/ModeloConvenioCartoes.cs +++ b/MLL/ModeloConvenioCartoes.cs @@ -4,6 +4,19 @@ namespace MLL { public class ModeloConvenioCartoes { + public ModeloConvenioCartoes() + { + ID_CONV_CARTOES = 0; + CODIGO = string.Empty; + NOME = string.Empty; + COMIS_CRED = string.Empty; + COMIS_DEBT = string.Empty; + OP_CRED = string.Empty; + OP_DEBT = string.Empty; + LANCA_30 = string.Empty; + CNPJ_OPERADORA = string.Empty; + this.TBAND = string.Empty; + } public ModeloConvenioCartoes(int iD_CONV_CARTOES, string cODIGO, string nOME, string cOMIS_CRED, string cOMIS_DEBT, string oP_CRED, string oP_DEBT, string lANCA_30, string cNPJ_OPERADORA, string tBand) @@ -17,7 +30,7 @@ namespace MLL OP_DEBT = oP_DEBT; LANCA_30 = lANCA_30; CNPJ_OPERADORA = cNPJ_OPERADORA; - this.tBand = tBand; + this.TBAND = tBand; } public int ID_CONV_CARTOES { get; set; } @@ -33,6 +46,6 @@ namespace MLL public string LANCA_30 { get; set; } public string CNPJ_OPERADORA { get; set; } - public string tBand { get; set; } + public string TBAND { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloCoordImpres.cs b/MLL/ModeloCoordImpres.cs index aeea64d..224fab8 100644 --- a/MLL/ModeloCoordImpres.cs +++ b/MLL/ModeloCoordImpres.cs @@ -4,6 +4,19 @@ namespace MLL { public class ModeloCoordImpres { + public ModeloCoordImpres() + { + ID_COORD_IMPRES = 0; + CODIGO = string.Empty; + COD_MODELO = string.Empty; + NOME_CAMPO = string.Empty; + COD_CAMPO = string.Empty; + TIPO = string.Empty; + CX = string.Empty; + CY = string.Empty; + COMP = string.Empty; + ATIVO = string.Empty; + } public ModeloCoordImpres(int iD_COORD_IMPRES, string cODIGO, string cOD_MODELO, string nOME_CAMPO, string cOD_CAMPO, string tIPO, string cX, string cY, string cOMP, string aTIVO) diff --git a/MLL/ModeloDespFixa.cs b/MLL/ModeloDespFixa.cs index ee24a5a..51127d6 100644 --- a/MLL/ModeloDespFixa.cs +++ b/MLL/ModeloDespFixa.cs @@ -1,9 +1,21 @@ using System; +using System.Drawing; namespace MLL { public class ModeloDespFixa { + public ModeloDespFixa() + { + ID_DESP_FIXA = 0; + CODIGO = string.Empty; + TIPO = string.Empty; + COD_CLIENTE = string.Empty; + VENCIMENTO = string.Empty; + PLANO_CONTAS = string.Empty; + OBSERVACAO = string.Empty; + VALOR = string.Empty; + } public ModeloDespFixa(int iD_DESP_FIXA, string cODIGO, string tIPO, string cOD_CLIENTE, string vENCIMENTO, string pLANO_CONTAS, string oBSERVACAO, string vALOR) { diff --git a/MLL/ModeloDespesas.cs b/MLL/ModeloDespesas.cs index d52a243..30d5a84 100644 --- a/MLL/ModeloDespesas.cs +++ b/MLL/ModeloDespesas.cs @@ -4,6 +4,16 @@ namespace MLL { public class ModeloDespesas { + public ModeloDespesas() + { + ID_DESPESAS = 0; + CODIGO = string.Empty; + PROCESSO = string.Empty; + DESCRICAO = string.Empty; + VALOR = string.Empty; + PAGO = string.Empty; + DIA = string.Empty; + } public ModeloDespesas(int iD_DESPESAS, string cODIGO, string pROCESSO, string dESCRICAO, string vALOR, string pAGO, string dIA) { diff --git a/MLL/ModeloEcfCfg.cs b/MLL/ModeloEcfCfg.cs index 7891880..3ac27d1 100644 --- a/MLL/ModeloEcfCfg.cs +++ b/MLL/ModeloEcfCfg.cs @@ -1,9 +1,19 @@ using System; +using System.Reflection; namespace MLL { public class ModeloEcfCfg { + public ModeloEcfCfg() + { + ID_EFC_CFG = 0; + CODIGO = string.Empty; + MODELO = string.Empty; + PORTA = string.Empty; + TEM_GAVETA = string.Empty; + INDICE_AL_SERV = string.Empty; + } public ModeloEcfCfg(int iD_EFC_CFG, string cODIGO, string mODELO, string pORTA, string tEM_GAVETA, string iNDICE_AL_SERV) { diff --git a/MLL/ModeloEmpresa.cs b/MLL/ModeloEmpresa.cs index f4f9034..5381de9 100644 --- a/MLL/ModeloEmpresa.cs +++ b/MLL/ModeloEmpresa.cs @@ -2,8 +2,64 @@ { public class ModeloEmpresa { + public ModeloEmpresa(int id, string nome, string cNPJ, string tipoEmpresa, string regimeTributario, string cNAE, string cep, string endereco, int numero, string complemento, string bairro, string cidade, string uF, string pais, string telefone1, string telefone2, string celular, string whatsapp, string email, string site, string inscricaoEstadual, string inscricaoMunicipal, string cNPJCPF_Contador, string nome_Contador, string textoParaRecibo) + { + Id = id; + Nome = nome; + CNPJ = cNPJ; + TipoEmpresa = tipoEmpresa; + RegimeTributario = regimeTributario; + CNAE = cNAE; + Cep = cep; + Endereco = endereco; + Numero = numero; + Complemento = complemento; + Bairro = bairro; + Cidade = cidade; + UF = uF; + Pais = pais; + Telefone1 = telefone1; + Telefone2 = telefone2; + Celular = celular; + Whatsapp = whatsapp; + Email = email; + Site = site; + InscricaoEstadual = inscricaoEstadual; + InscricaoMunicipal = inscricaoMunicipal; + CNPJCPF_Contador = cNPJCPF_Contador; + Nome_Contador = nome_Contador; + TextoParaRecibo = textoParaRecibo; + } public ModeloEmpresa() { + Id = 0; + Nome = string.Empty; + CNPJ = string.Empty; + TipoEmpresa = string.Empty; + RegimeTributario = string.Empty; + CNAE = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = 0; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + Pais = string.Empty; + Telefone1 = string.Empty; + Telefone2 = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + Site = string.Empty; + InscricaoEstadual = string.Empty; + InscricaoMunicipal = string.Empty; + CNPJCPF_Contador = string.Empty; + Nome_Contador = string.Empty; + TextoParaRecibo = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; } public ModeloEmpresa(int id, string nome, string cNPJ, string tipoEmpresa, string regimeTributario, string cNAE, string cep, string endereco, int numero, string complemento, string bairro, string cidade, string uF, string pais, string telefone1, string telefone2, string celular, string whatsapp, string email, string site, string inscricaoEstadual, string inscricaoMunicipal, string cNPJCPF_Contador, string nome_Contador, string textoParaRecibo, bool ativo, DateTime criadoEm, DateTime atualizadoEm) { diff --git a/MLL/ModeloEmpresaConfig.cs b/MLL/ModeloEmpresaConfig.cs index 503c147..7698590 100644 --- a/MLL/ModeloEmpresaConfig.cs +++ b/MLL/ModeloEmpresaConfig.cs @@ -1,52 +1,77 @@ -public class ModeloEmpresaConfig +namespace MLL { - public ModeloEmpresaConfig() { } - public ModeloEmpresaConfig(int idEmpresaConfig, int idEmpresa, string nomeSistema, string corPrimaria, string corSecundaria, string logo, string favicon, bool exibirCPFCliente, bool exibirTelefoneCliente, bool exibirGarantia, int diasGarantiaPadrao, bool gerarReciboAutomatico, bool exibirValoresOS, bool enviarEmailAutomatico, bool enviarWhatsappAutomatico, bool modoEscuro, bool permitirEdicaoOSFinalizada, DateTime criadoEm, DateTime atualizadoEm) + public class ModeloEmpresaConfig { - IdEmpresaConfig = idEmpresaConfig; - IdEmpresa = idEmpresa; - NomeSistema = nomeSistema; - CorPrimaria = corPrimaria; - CorSecundaria = corSecundaria; - Logo = logo; - Favicon = favicon; - ExibirCPFCliente = exibirCPFCliente; - ExibirTelefoneCliente = exibirTelefoneCliente; - ExibirGarantia = exibirGarantia; - DiasGarantiaPadrao = diasGarantiaPadrao; - GerarReciboAutomatico = gerarReciboAutomatico; - ExibirValoresOS = exibirValoresOS; - EnviarEmailAutomatico = enviarEmailAutomatico; - EnviarWhatsappAutomatico = enviarWhatsappAutomatico; - ModoEscuro = modoEscuro; - PermitirEdicaoOSFinalizada = permitirEdicaoOSFinalizada; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; + public ModeloEmpresaConfig() + { + IdEmpresaConfig = 0; + IdEmpresa = 0; + NomeSistema = string.Empty; + CorPrimaria = string.Empty; + CorSecundaria = string.Empty; + Logo = string.Empty; + Favicon = string.Empty; + ExibirCPFCliente = false; + ExibirTelefoneCliente = false; + ExibirGarantia = false; + DiasGarantiaPadrao = 0; + GerarReciboAutomatico = false; + ExibirValoresOS = false; + EnviarEmailAutomatico = false; + EnviarWhatsappAutomatico = false; + ModoEscuro = false; + PermitirEdicaoOSFinalizada = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + + } + public ModeloEmpresaConfig(int idEmpresaConfig, int idEmpresa, string nomeSistema, string corPrimaria, string corSecundaria, string logo, string favicon, bool exibirCPFCliente, bool exibirTelefoneCliente, bool exibirGarantia, int diasGarantiaPadrao, bool gerarReciboAutomatico, bool exibirValoresOS, bool enviarEmailAutomatico, bool enviarWhatsappAutomatico, bool modoEscuro, bool permitirEdicaoOSFinalizada, DateTime criadoEm, DateTime atualizadoEm) + { + IdEmpresaConfig = idEmpresaConfig; + IdEmpresa = idEmpresa; + NomeSistema = nomeSistema; + CorPrimaria = corPrimaria; + CorSecundaria = corSecundaria; + Logo = logo; + Favicon = favicon; + ExibirCPFCliente = exibirCPFCliente; + ExibirTelefoneCliente = exibirTelefoneCliente; + ExibirGarantia = exibirGarantia; + DiasGarantiaPadrao = diasGarantiaPadrao; + GerarReciboAutomatico = gerarReciboAutomatico; + ExibirValoresOS = exibirValoresOS; + EnviarEmailAutomatico = enviarEmailAutomatico; + EnviarWhatsappAutomatico = enviarWhatsappAutomatico; + ModoEscuro = modoEscuro; + PermitirEdicaoOSFinalizada = permitirEdicaoOSFinalizada; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int IdEmpresaConfig { get; set; } + public int IdEmpresa { get; set; } + + public string NomeSistema { get; set; } + public string CorPrimaria { get; set; } + public string CorSecundaria { get; set; } + public string Logo { get; set; } + public string Favicon { get; set; } + + public bool ExibirCPFCliente { get; set; } + public bool ExibirTelefoneCliente { get; set; } + public bool ExibirGarantia { get; set; } + public int DiasGarantiaPadrao { get; set; } + + public bool GerarReciboAutomatico { get; set; } + public bool ExibirValoresOS { get; set; } + + public bool EnviarEmailAutomatico { get; set; } + public bool EnviarWhatsappAutomatico { get; set; } + + public bool ModoEscuro { get; set; } + public bool PermitirEdicaoOSFinalizada { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - - public int IdEmpresaConfig { get; set; } - public int IdEmpresa { get; set; } - - public string NomeSistema { get; set; } - public string CorPrimaria { get; set; } - public string CorSecundaria { get; set; } - public string Logo { get; set; } - public string Favicon { get; set; } - - public bool ExibirCPFCliente { get; set; } - public bool ExibirTelefoneCliente { get; set; } - public bool ExibirGarantia { get; set; } - public int DiasGarantiaPadrao { get; set; } - - public bool GerarReciboAutomatico { get; set; } - public bool ExibirValoresOS { get; set; } - - public bool EnviarEmailAutomatico { get; set; } - public bool EnviarWhatsappAutomatico { get; set; } - - public bool ModoEscuro { get; set; } - public bool PermitirEdicaoOSFinalizada { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloEquipContratos.cs b/MLL/ModeloEquipContratos.cs index 39703e4..4678565 100644 --- a/MLL/ModeloEquipContratos.cs +++ b/MLL/ModeloEquipContratos.cs @@ -4,6 +4,13 @@ namespace MLL { public class ModeloEquipContratos { + public ModeloEquipContratos() + { + ID_EQUIP_CONTRATOS = 0; + CODIGO = string.Empty; + COD_EQUIP = string.Empty; + COD_CONTRATO = string.Empty; + } public ModeloEquipContratos(int iD_EQUIP_CONTRATOS, string cODIGO, string cOD_EQUIP, string cOD_CONTRATO) { ID_EQUIP_CONTRATOS = iD_EQUIP_CONTRATOS; diff --git a/MLL/ModeloEquipamentos.cs b/MLL/ModeloEquipamentos.cs index cd3b7c7..591bd52 100644 --- a/MLL/ModeloEquipamentos.cs +++ b/MLL/ModeloEquipamentos.cs @@ -1,9 +1,29 @@ using System; +using System.Reflection; +using System.Text.RegularExpressions; namespace MLL { public class ModeloEquipamentos { + public ModeloEquipamentos() + { + ID_EQUIPAMENTOS = 0; + CODIGO = string.Empty; + COD_CLIENTE = string.Empty; + DESCRICAO = string.Empty; + MARCA = string.Empty; + MODELO = string.Empty; + SERIE = string.Empty; + PAT = string.Empty; + OBSERVACOES = string.Empty; + DATA_COMPRA = string.Empty; + REVENDA = string.Empty; + NUM_NF = string.Empty; + NUM_CERTGAR = string.Empty; + CAMPO_BOOL = string.Empty; + CAMPO_DOUBLE = string.Empty; + } public ModeloEquipamentos(int iD_EQUIPAMENTOS, string cODIGO, string cOD_CLIENTE, string dESCRICAO, string mARCA, string mODELO, string sERIE, string pAT, string oBSERVACOES, string dATA_COMPRA, string rEVENDA, string nUM_NF, string nUM_CERTGAR, string cAMPO_BOOL, diff --git a/MLL/ModeloEsquemas.cs b/MLL/ModeloEsquemas.cs index 0fa9d32..75e37a5 100644 --- a/MLL/ModeloEsquemas.cs +++ b/MLL/ModeloEsquemas.cs @@ -1,9 +1,20 @@ using System; +using System.Text.RegularExpressions; namespace MLL { public class ModeloEsquemas { + public ModeloEsquemas() + { + ID_ESQUEMAS = 0; + CODIGO = string.Empty; + MARCA = string.Empty; + NOME = string.Empty; + LOCAL = string.Empty; + FPATH = string.Empty; + OBS = string.Empty; + } public ModeloEsquemas(int iD_ESQUEMAS, string cODIGO, string mARCA, string nOME, string lOCAL, string fPATH, string oBS) { diff --git a/MLL/ModeloFcaixa.cs b/MLL/ModeloFcaixa.cs index 7b5bc9e..0c913bc 100644 --- a/MLL/ModeloFcaixa.cs +++ b/MLL/ModeloFcaixa.cs @@ -1,9 +1,24 @@ using System; +using System.Runtime.Intrinsics.X86; +using System.Security.Cryptography; namespace MLL { public class ModeloFcaixa { + public ModeloFcaixa() + { + ID_FCAIXA = 0; + CODIGO = string.Empty; + DIA = string.Empty; + RECEITA = string.Empty; + DESPESA = string.Empty; + OBS = string.Empty; + PLANO_CONTAS = string.Empty; + COD_CONTA = string.Empty; + FORMA = string.Empty; + } + public ModeloFcaixa(int iD_FCAIXA, string cODIGO, string dIA, string rECEITA, string dESPESA, string oBS, string pLANO_CONTAS, string cOD_CONTA, string fORMA) { diff --git a/MLL/ModeloFornecedor.cs b/MLL/ModeloFornecedor.cs index 047faed..f5f4951 100644 --- a/MLL/ModeloFornecedor.cs +++ b/MLL/ModeloFornecedor.cs @@ -1,59 +1,91 @@ -public class ModeloFornecedor +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace MLL { - public ModeloFornecedor(int id, int empresaId, string nome, string tipoPessoa, string documento, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string nomeFantasia, string inscricaoEstadual, string site, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + public class ModeloFornecedor { - Id = id; - EmpresaId = empresaId; - Nome = nome; - TipoPessoa = tipoPessoa; - Documento = documento; - Telefone = telefone; - Celular = celular; - Whatsapp = whatsapp; - Email = email; - Cep = cep; - Endereco = endereco; - Numero = numero; - Complemento = complemento; - Bairro = bairro; - Cidade = cidade; - UF = uF; - NomeFantasia = nomeFantasia; - InscricaoEstadual = inscricaoEstadual; - Site = site; - Observacoes = observacoes; - Ativo = ativo; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; + public ModeloFornecedor() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + TipoPessoa = string.Empty; + Documento = string.Empty; + Telefone = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = null; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + NomeFantasia = string.Empty; + InscricaoEstadual = string.Empty; + Site = string.Empty; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } + public ModeloFornecedor(int id, int empresaId, string nome, string tipoPessoa, string documento, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string nomeFantasia, string inscricaoEstadual, string site, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + Nome = nome; + TipoPessoa = tipoPessoa; + Documento = documento; + Telefone = telefone; + Celular = celular; + Whatsapp = whatsapp; + Email = email; + Cep = cep; + Endereco = endereco; + Numero = numero; + Complemento = complemento; + Bairro = bairro; + Cidade = cidade; + UF = uF; + NomeFantasia = nomeFantasia; + InscricaoEstadual = inscricaoEstadual; + Site = site; + Observacoes = observacoes; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string Nome { get; set; } + public string TipoPessoa { get; set; } + public string Documento { get; set; } + + public string Telefone { get; set; } + public string Celular { get; set; } + public string Whatsapp { get; set; } + public string Email { get; set; } + + public string Cep { get; set; } + public string Endereco { get; set; } + public int? Numero { get; set; } + public string Complemento { get; set; } + public string Bairro { get; set; } + public string Cidade { get; set; } + public string UF { get; set; } + + public string NomeFantasia { get; set; } + public string InscricaoEstadual { get; set; } + public string Site { get; set; } + public string Observacoes { get; set; } + + public bool Ativo { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public string Nome { get; set; } - public string TipoPessoa { get; set; } - public string Documento { get; set; } - - public string Telefone { get; set; } - public string Celular { get; set; } - public string Whatsapp { get; set; } - public string Email { get; set; } - - public string Cep { get; set; } - public string Endereco { get; set; } - public int? Numero { get; set; } - public string Complemento { get; set; } - public string Bairro { get; set; } - public string Cidade { get; set; } - public string UF { get; set; } - - public string NomeFantasia { get; set; } - public string InscricaoEstadual { get; set; } - public string Site { get; set; } - public string Observacoes { get; set; } - - public bool Ativo { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloFornecedores.cs b/MLL/ModeloFornecedores.cs index cf85d1a..df9911e 100644 --- a/MLL/ModeloFornecedores.cs +++ b/MLL/ModeloFornecedores.cs @@ -1,9 +1,37 @@ using System; +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloFornecedores { + public ModeloFornecedores() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + TipoPessoa = string.Empty; + Documento = string.Empty; + Telefone = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = null; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + NomeFantasia = string.Empty; + InscricaoEstadual = string.Empty; + Site = string.Empty; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloFornecedores(int id, int empresaId, string nome, string tipoPessoa, string documento, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, diff --git a/MLL/ModeloFornecerDE.cs b/MLL/ModeloFornecerDE.cs index 201082e..22f178c 100644 --- a/MLL/ModeloFornecerDE.cs +++ b/MLL/ModeloFornecerDE.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloFornecerDE { + public ModeloFornecerDE() + { + ID_FORNECER_DE = 0; + CODIGO = string.Empty; + COD_FOR = string.Empty; + COD_ITEM = string.Empty; + ULTIMA = string.Empty; + } public ModeloFornecerDE(int iD_FORNECER_DE, string cODIGO, string cOD_FOR, string cOD_ITEM, string uLTIMA) { ID_FORNECER_DE = iD_FORNECER_DE; diff --git a/MLL/ModeloIBPT.cs b/MLL/ModeloIBPT.cs index d99caaf..f8cd770 100644 --- a/MLL/ModeloIBPT.cs +++ b/MLL/ModeloIBPT.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloIBPT { + public ModeloIBPT() + { + ID_IBPT = 0; + CODIGO = string.Empty; + NCM = string.Empty; + NacionalFederal = string.Empty; + ImportadosFederal = string.Empty; + Estadual = string.Empty; + Municipal = string.Empty; + Tipo = string.Empty; + } public ModeloIBPT(int iD_IBPT, string cODIGO, string nCM, string nacionalFederal, string importadosFederal, string estadual, string municipal, string tipo) { diff --git a/MLL/ModeloIcmsEmp.cs b/MLL/ModeloIcmsEmp.cs index 6eaae87..a1d25c0 100644 --- a/MLL/ModeloIcmsEmp.cs +++ b/MLL/ModeloIcmsEmp.cs @@ -1,9 +1,46 @@ using System; +using System.Runtime.Intrinsics.X86; +using static System.Net.WebRequestMethods; namespace MLL { public class ModeloIcmsEmp { + public ModeloIcmsEmp() + { + ID_ICMS_EMP = 0; + CODIGO = string.Empty; + UF = string.Empty; + ICMS = string.Empty; + UF_AC = string.Empty; + UF_AL = string.Empty; + UF_AM = string.Empty; + UF_AP = string.Empty; + UF_BA = string.Empty; + UF_CE = string.Empty; + UF_DF = string.Empty; + UF_ES = string.Empty; + UF_GO = string.Empty; + UF_MA = string.Empty; + UF_MT = string.Empty; + UF_MS = string.Empty; + UF_MG = string.Empty; + UF_PA = string.Empty; + UF_PB = string.Empty; + UF_PR = string.Empty; + UF_PE = string.Empty; + UF_PI = string.Empty; + UF_RN = string.Empty; + UF_RS = string.Empty; + UF_RJ = string.Empty; + UF_RO = string.Empty; + UF_RR = string.Empty; + UF_SC = string.Empty; + UF_SP = string.Empty; + UF_SE = string.Empty; + UF_TO = string.Empty; + FCP = string.Empty; + } public ModeloIcmsEmp(int iD_ICMS_EMP, string cODIGO, string uF, string iCMS, string uF_AC, string uF_AL, string uF_AM, string uF_AP, string uF_BA, string uF_CE, string uF_DF, string uF_ES, string uF_GO, string uF_MA, string uF_MT, diff --git a/MLL/ModeloIcmsUf.cs b/MLL/ModeloIcmsUf.cs index 0e78e25..7a86627 100644 --- a/MLL/ModeloIcmsUf.cs +++ b/MLL/ModeloIcmsUf.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloIcmsUf { + public ModeloIcmsUf() + { + ID_ICMS_UF = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + UF = string.Empty; + ICMS = string.Empty; + } public ModeloIcmsUf(int iD_ICMS_UF, string cODIGO, string cOD_ITEM, string uF, string iCMS) { ID_ICMS_UF = iD_ICMS_UF; diff --git a/MLL/ModeloItens.cs b/MLL/ModeloItens.cs index 6328fb4..a8e26f1 100644 --- a/MLL/ModeloItens.cs +++ b/MLL/ModeloItens.cs @@ -1,9 +1,46 @@ using System; +using System.Text.RegularExpressions; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloItens { + public ModeloItens() + { + ID_ITENS = 0; + CODIGO = string.Empty; + NUMERO = string.Empty; + NOME = string.Empty; + GRUPO = string.Empty; + SUBGRUPO = string.Empty; + TIPO = string.Empty; + UNIDADE = string.Empty; + NUMERO_FAB = string.Empty; + ESTOQUE_MIN = string.Empty; + ESTOQUE_IDEAL = string.Empty; + ESTOQUE_DISP = string.Empty; + CUSTO = string.Empty; + LUCRO = string.Empty; + VENDA = string.Empty; + FORNECEDOR = string.Empty; + LOCAL = string.Empty; + GAVETA = string.Empty; + FABRICANTE = string.Empty; + NOMECURTO = string.Empty; + P_FOTO = string.Empty; + NC_MERCOSUL = string.Empty; + C_CST = string.Empty; + C_ICMS = string.Empty; + C_IPI = string.Empty; + ULTIMA_VENDA = string.Empty; + ULTIMA_COMPRA = string.Empty; + PRECO_1 = string.Empty; + PRECO_2 = string.Empty; + GTIN = string.Empty; + VALIDADE = string.Empty; + OBSERVACOES = string.Empty; + } public ModeloItens(int iD_ITENS, string cODIGO, string nUMERO, string nOME, string gRUPO, string sUBGRUPO, string tIPO, string uNIDADE, string nUMERO_FAB, string eSTOQUE_MIN, string eSTOQUE_IDEAL, diff --git a/MLL/ModeloItensEntrada.cs b/MLL/ModeloItensEntrada.cs index c80bc8a..d0a243c 100644 --- a/MLL/ModeloItensEntrada.cs +++ b/MLL/ModeloItensEntrada.cs @@ -4,6 +4,20 @@ namespace MLL { public class ModeloItensEntrada { + public ModeloItensEntrada() + { + ID_ITENS_ENTRADA = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + NOVOS = string.Empty; + NOTA = string.Empty; + TOTAL = string.Empty; + DATA_INC = string.Empty; + FUNCIONARIO = string.Empty; + OBSERVACAO = string.Empty; + FORNECEDOR = string.Empty; + PED_NUM = string.Empty; + } public ModeloItensEntrada(int iD_ITENS_ENTRADA, string cODIGO, string cOD_ITEM, string nOVOS, string nOTA, string tOTAL, string dATA_INC, string fUNCIONARIO, string oBSERVACAO, string fORNECEDOR, string pED_NUM) diff --git a/MLL/ModeloItensFabrica.cs b/MLL/ModeloItensFabrica.cs index 8358a7b..b72f14f 100644 --- a/MLL/ModeloItensFabrica.cs +++ b/MLL/ModeloItensFabrica.cs @@ -4,6 +4,19 @@ namespace MLL { public class ModeloItensFabrica { + public ModeloItensFabrica() + { + ID_ITENS_FABRICA = 0; + CODIGO = string.Empty; + KIT_CODIGO = string.Empty; + ITEM_CODIGO = string.Empty; + BARCODE = string.Empty; + DESCRICAO = string.Empty; + QTD = string.Empty; + CUSTO = string.Empty; + VENDA = string.Empty; + SERVICO = string.Empty; + } public ModeloItensFabrica(int iD_ITENS_FABRICA, string cODIGO, string kIT_CODIGO, string iTEM_CODIGO, string bARCODE, string dESCRICAO, string qTD, string cUSTO, string vENDA, string sERVICO) { ID_ITENS_FABRICA = iD_ITENS_FABRICA; diff --git a/MLL/ModeloItensFotosML.cs b/MLL/ModeloItensFotosML.cs index 46d85b5..fc34452 100644 --- a/MLL/ModeloItensFotosML.cs +++ b/MLL/ModeloItensFotosML.cs @@ -4,6 +4,13 @@ namespace MLL { public class ModeloItensFotosML { + public ModeloItensFotosML() + { + ID_ITENS_FOTOS_ML = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + LINK_FOTO = string.Empty; + } public ModeloItensFotosML(int iD_ITENS_FOTOS_ML, string cODIGO, string cOD_ITEM, string lINK_FOTO) { ID_ITENS_FOTOS_ML = iD_ITENS_FOTOS_ML; diff --git a/MLL/ModeloItensNota.cs b/MLL/ModeloItensNota.cs index 1da659d..47c81b2 100644 --- a/MLL/ModeloItensNota.cs +++ b/MLL/ModeloItensNota.cs @@ -4,6 +4,28 @@ namespace MLL { public class ModeloItensNota { + public ModeloItensNota() + { + ID_ITENS_NOTA = 0; + CODIGO = string.Empty; + COD_NOTA = string.Empty; + TIPO = string.Empty; + COD_VENDEDOR = string.Empty; + COD_ITEM = string.Empty; + DESCRICAO = string.Empty; + UNIDADE = string.Empty; + QTD = string.Empty; + PRECO = string.Empty; + ICMS = string.Empty; + IPI = string.Empty; + ISS = string.Empty; + DESCONTO = string.Empty; + TOTAL = string.Empty; + CFOP = string.Empty; + CST = string.Empty; + GTIN = string.Empty; + INF_ADIC = string.Empty; + } public ModeloItensNota(int iD_ITENS_NOTA, string cODIGO, string cOD_NOTA, string tIPO, string cOD_VENDEDOR, string cOD_ITEM, string dESCRICAO, string uNIDADE, string qTD, string pRECO, string iCMS, string iPI, string iSS, string dESCONTO, diff --git a/MLL/ModeloItensOrca.cs b/MLL/ModeloItensOrca.cs index 0fc3252..59f804d 100644 --- a/MLL/ModeloItensOrca.cs +++ b/MLL/ModeloItensOrca.cs @@ -4,6 +4,20 @@ namespace MLL { public class ModeloItensOrca { + public ModeloItensOrca() + { + ID_ITENS = 0; + BARCODE = string.Empty; + DESCRICAO = string.Empty; + SERVICO = string.Empty; + QTD = string.Empty; + VRL_UN = string.Empty; + DESCONTO = string.Empty; + VLR_TOTAL = string.Empty; + UN = string.Empty; + VENDA = string.Empty; + CODIGO = string.Empty; + } public ModeloItensOrca(int iD_ITENS, string bARCODE, string dESCRICAO, string sERVICO, string qTD, string vRL_UN, string dESCONTO, string vLR_TOTAL, string uN, string vENDA, string cODIGO) diff --git a/MLL/ModeloItensPedido.cs b/MLL/ModeloItensPedido.cs index 13b7488..1e4c217 100644 --- a/MLL/ModeloItensPedido.cs +++ b/MLL/ModeloItensPedido.cs @@ -1,9 +1,31 @@ using System; +using System.Drawing; namespace MLL { public class ModeloItensPedido { + public ModeloItensPedido() + { + ID_ITENS_PEDIDO = 0; + CODIGO = string.Empty; + ITEM = string.Empty; + PEDIDO = string.Empty; + COD_ITEM = string.Empty; + NOME = string.Empty; + UN = string.Empty; + QTD = string.Empty; + VLR = string.Empty; + IPI = string.Empty; + ICMS = string.Empty; + VALOR = string.Empty; + COD_FAB = string.Empty; + this.VFrete = string.Empty; + this.VSeguro = string.Empty; + this.VDesconto = string.Empty; + this.VOutros = string.Empty; + SERIAIS_IN = string.Empty; + } public ModeloItensPedido(int iD_ITENS_PEDIDO, string cODIGO, string iTEM, string pEDIDO, string cOD_ITEM, string nOME, string uN, string qTD, string vLR, string iPI, string iCMS, string vALOR, string cOD_FAB, string vFrete, string vSeguro, string vDesconto, string vOutros, @@ -22,10 +44,10 @@ namespace MLL ICMS = iCMS; VALOR = vALOR; COD_FAB = cOD_FAB; - this.vFrete = vFrete; - this.vSeguro = vSeguro; - this.vDesconto = vDesconto; - this.vOutros = vOutros; + this.VFrete = vFrete; + this.VSeguro = vSeguro; + this.VDesconto = vDesconto; + this.VOutros = vOutros; SERIAIS_IN = sERIAIS_IN; } @@ -42,10 +64,10 @@ namespace MLL public string ICMS { get; set; } public string VALOR { get; set; } public string COD_FAB { get; set; } - public string vFrete { get; set; } - public string vSeguro { get; set; } - public string vDesconto { get; set; } - public string vOutros { get; set; } + public string VFrete { get; set; } + public string VSeguro { get; set; } + public string VDesconto { get; set; } + public string VOutros { get; set; } public string SERIAIS_IN { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloItensSaida.cs b/MLL/ModeloItensSaida.cs index 677767f..b715022 100644 --- a/MLL/ModeloItensSaida.cs +++ b/MLL/ModeloItensSaida.cs @@ -4,6 +4,21 @@ namespace MLL { public class ModeloItensSaida { + public ModeloItensSaida() + { + ID_ITENS_SAIDA = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + QTD_SAI = string.Empty; + FUNCIONARIO = string.Empty; + NOTA = string.Empty; + OS = string.Empty; + OP = string.Empty; + OBSERVACAO = string.Empty; + DATA_SAIDA = string.Empty; + NATUREZA = string.Empty; + OV = string.Empty; + } public ModeloItensSaida(int iD_ITENS_SAIDA, string cODIGO, string cOD_ITEM, string qTD_SAI, string fUNCIONARIO, string nOTA, string oS, string oP, string oBSERVACAO, string dATA_SAIDA, string nATUREZA, string oV) { diff --git a/MLL/ModeloItensSerial.cs b/MLL/ModeloItensSerial.cs index d455192..bd51dcb 100644 --- a/MLL/ModeloItensSerial.cs +++ b/MLL/ModeloItensSerial.cs @@ -4,6 +4,20 @@ namespace MLL { public class ModeloItensSerial { + public ModeloItensSerial() + { + ID_ITENS_SERIAL = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + SERIAL = string.Empty; + COD_NF_ENTRADA = string.Empty; + COD_NF_SAIDA = string.Empty; + COD_ENTRADA = string.Empty; + COD_SAIDA = string.Empty; + DATA_MOVIM = string.Empty; + BAIXADO = string.Empty; + OBS = string.Empty; + } public ModeloItensSerial(int iD_ITENS_SERIAL, string cODIGO, string cOD_ITEM, string sERIAL, string cOD_NF_ENTRADA, string cOD_NF_SAIDA, string cOD_ENTRADA, string cOD_SAIDA, string dATA_MOVIM, string bAIXADO, string oBS) { ID_ITENS_SERIAL = iD_ITENS_SERIAL; diff --git a/MLL/ModeloItensVenda.cs b/MLL/ModeloItensVenda.cs index 544fd54..aa244c6 100644 --- a/MLL/ModeloItensVenda.cs +++ b/MLL/ModeloItensVenda.cs @@ -1,9 +1,32 @@ using System; +using System.Security.Cryptography; namespace MLL { public class ModeloItensVenda { + public ModeloItensVenda() + { + ID_ITENS_VENDA = 0; + CODIGO = string.Empty; + ITEM_CODIGO = string.Empty; + BARCODE = string.Empty; + DESCRICAO = string.Empty; + SERVICO = string.Empty; + QTD = string.Empty; + VRL_UN = string.Empty; + DESCONTO = string.Empty; + VLR_TOTAL = string.Empty; + UN = string.Empty; + VENDA = string.Empty; + DIA = string.Empty; + SERIAIS_IN = string.Empty; + XPED = string.Empty; + NITEMPED = string.Empty; + CUSTO = string.Empty; + VINF_ADIC = string.Empty; + LOTES = string.Empty; + } public ModeloItensVenda(int iD_ITENS_VENDA, string cODIGO, string iTEM_CODIGO, string bARCODE, string dESCRICAO, string sERVICO, string qTD, string vRL_UN, string dESCONTO, string vLR_TOTAL, string uN, string vENDA, string dIA, string sERIAIS_IN, string xPED, diff --git a/MLL/ModeloLCP116.cs b/MLL/ModeloLCP116.cs index 2a1a25e..30e5d6d 100644 --- a/MLL/ModeloLCP116.cs +++ b/MLL/ModeloLCP116.cs @@ -4,6 +4,15 @@ namespace MLL { public class ModeloLCP116 { + public ModeloLCP116() + { + ID_LCP116 = 0; + CODIGO = string.Empty; + DESCRICAO = string.Empty; + CODIGO_PAI = string.Empty; + CODIGO_FILHO = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloLCP116(int iD_LCP116, string cODIGO, string dESCRICAO, string cODIGO_PAI, string cODIGO_FILHO, string dATA_CADASTRO) { ID_LCP116 = iD_LCP116; diff --git a/MLL/ModeloLogUser.cs b/MLL/ModeloLogUser.cs index a5e855f..9f7d467 100644 --- a/MLL/ModeloLogUser.cs +++ b/MLL/ModeloLogUser.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloLogUser { + public ModeloLogUser() + { + ID_LOG_USER = 0; + CODIGO = string.Empty; + USUARIO = string.Empty; + MICRO = string.Empty; + ACAO = string.Empty; + RISCO = string.Empty; + DIA_LOG = string.Empty; + ENDER_CLI = string.Empty; + } public ModeloLogUser(int iD_LOG_USER, string cODIGO, string uSUARIO, string mICRO, string aCAO, string rISCO, string dIA_LOG, string eNDER_CLI) { ID_LOG_USER = iD_LOG_USER; diff --git a/MLL/ModeloNFEInutilizadas.cs b/MLL/ModeloNFEInutilizadas.cs index 9317b23..00a479e 100644 --- a/MLL/ModeloNFEInutilizadas.cs +++ b/MLL/ModeloNFEInutilizadas.cs @@ -1,9 +1,21 @@ using System; +using System.Reflection; +using System.Security.Cryptography; namespace MLL { public class ModeloNFEInutilizadas { + public ModeloNFEInutilizadas() + { + ID_NFE_INUTILIZADAS = 0; + CODIGO = string.Empty; + MOTIVO = string.Empty; + NUMERO_INICIAL = string.Empty; + NUMERO_FINAL = string.Empty; + DIA = string.Empty; + MODELO = string.Empty; + } public ModeloNFEInutilizadas(int iD_NFE_INUTILIZADAS, string cODIGO, string mOTIVO, string nUMERO_INICIAL, string nUMERO_FINAL, string dIA, string mODELO) { ID_NFE_INUTILIZADAS = iD_NFE_INUTILIZADAS; diff --git a/MLL/ModeloNFENumeroLote.cs b/MLL/ModeloNFENumeroLote.cs index 035f324..def8991 100644 --- a/MLL/ModeloNFENumeroLote.cs +++ b/MLL/ModeloNFENumeroLote.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloNFENumeroLote { + public ModeloNFENumeroLote() + { + ID_NFE_NUM_LOTE = 0; + CODIGO = string.Empty; + NUM_NF = string.Empty; + DATA_GERADO = string.Empty; + RETORNO = string.Empty; + } public ModeloNFENumeroLote(int iD_NFE_NUM_LOTE, string cODIGO, string nUM_NF, string dATA_GERADO, string rETORNO) { ID_NFE_NUM_LOTE = iD_NFE_NUM_LOTE; diff --git a/MLL/ModeloNFEUfCidade.cs b/MLL/ModeloNFEUfCidade.cs index c451d34..7ca7b55 100644 --- a/MLL/ModeloNFEUfCidade.cs +++ b/MLL/ModeloNFEUfCidade.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloNFEUfCidade { + public ModeloNFEUfCidade() + { + ID_NFE_UF_CIDADE = 0; + UF_COD = string.Empty; + UF_NOME = string.Empty; + CID_COD = string.Empty; + CID_NOME = string.Empty; + }//Modelo public ModeloNFEUfCidade(int iD_NFE_UF_CIDADE, string uF_COD, string uF_NOME, string cID_COD, string cID_NOME) { ID_NFE_UF_CIDADE = iD_NFE_UF_CIDADE; diff --git a/MLL/ModeloNotasCCE.cs b/MLL/ModeloNotasCCE.cs index c313f77..54b8958 100644 --- a/MLL/ModeloNotasCCE.cs +++ b/MLL/ModeloNotasCCE.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloNotasCCE { + public ModeloNotasCCE() + { + ID_NOTAS_CCE = 0; + CODIGO = string.Empty; + COD_NFE = string.Empty; + CORRECAO = string.Empty; + DATA_HORA = string.Empty; + TZD = string.Empty; + EVENTO = string.Empty; + RETORNO = string.Empty; + } public ModeloNotasCCE(int iD_NOTAS_CCE, string cODIGO, string cOD_NFE, string cORRECAO, string dATA_HORA, string tZD, string eVENTO, string rETORNO) { ID_NOTAS_CCE = iD_NOTAS_CCE; diff --git a/MLL/ModeloNotasCFOP.cs b/MLL/ModeloNotasCFOP.cs index 6383df0..f4f7bf9 100644 --- a/MLL/ModeloNotasCFOP.cs +++ b/MLL/ModeloNotasCFOP.cs @@ -4,6 +4,18 @@ namespace MLL { public class ModeloNotasCFOP { + public ModeloNotasCFOP() + { + ID_NOTAS_CFOP = 0; + CODIGO = string.Empty; + CFOP = string.Empty; + DESCRICAO = string.Empty; + BESTOQUE = string.Empty; + BCONTAS = string.Empty; + BICMS = string.Empty; + BICMS_ST = string.Empty; + BASE = string.Empty; + } public ModeloNotasCFOP(int iD_NOTAS_CFOP, string cODIGO, string cFOP, string dESCRICAO, string bESTOQUE, string bCONTAS, string bICMS, string bICMS_ST, string bASE) { ID_NOTAS_CFOP = iD_NOTAS_CFOP; diff --git a/MLL/ModeloNotasCompras.cs b/MLL/ModeloNotasCompras.cs index 830908e..e2b9271 100644 --- a/MLL/ModeloNotasCompras.cs +++ b/MLL/ModeloNotasCompras.cs @@ -4,6 +4,100 @@ namespace MLL { public class ModeloNotasCompras { + public ModeloNotasCompras() + { + ID_NOTAS_COMPRAS = 0; + CODIGO = string.Empty; + CFOP = string.Empty; + IDE_INDPAG = string.Empty; + IDE_MOD = string.Empty; + IDE_SERIE = string.Empty; + IDE_NNF = string.Empty; + IDE_DEMI = string.Empty; + IDE_DSAIENT = string.Empty; + IDE_HSAIENT = string.Empty; + IDE_CMUNFG = string.Empty; + IDE_CHNFE = string.Empty; + IDE_INDEMIT = string.Empty; + IDE_CODCONS = string.Empty; + DESTEMIT_CODIGO = string.Empty; + DESTEMIT_CNPJCPF = string.Empty; + DESTEMIT_XNOME = string.Empty; + DESTEMIT_XFANT = string.Empty; + DESTEMIT_XLGR = string.Empty; + DESTEMIT_NRO = string.Empty; + DESTEMIT_XCLP = string.Empty; + DESTEMIT_XBAIRRO = string.Empty; + DESTEMIT_CMUN = string.Empty; + DESTEMIT_XMUN = string.Empty; + DESTEMIT_UF = string.Empty; + DESTEMIT_CEP = string.Empty; + DESTEMIT_CPAIS = string.Empty; + DESTEMIT_XPAIS = string.Empty; + DESTEMIT_FONE = string.Empty; + DESTEMIT_IE = string.Empty; + DESTEMIT_IEST = string.Empty; + DESTEMIT_IM = string.Empty; + DESTEMIT_CNAE = string.Empty; + DESTEMIT_CRT = string.Empty; + DESTEMIT_ISUF = string.Empty; + DESTEMIT_EMAIL = string.Empty; + TRANSP_CODIGO = string.Empty; + TRANSP_MODFRETE = string.Empty; + TRANSP_CNPJCPF = string.Empty; + TRANSP_XNOME = string.Empty; + TRANSP_IE = string.Empty; + TRANSP_XBAIRRO = string.Empty; + TRANSP_XLGR = string.Empty; + TRANSP_CPAIS = string.Empty; + TRANSP_CMUN = string.Empty; + TRANSP_XMUN = string.Empty; + TRANSP_NRO = string.Empty; + TRANSP_UF = string.Empty; + TRANSP_PLACA = string.Empty; + TRANSP_RNTC = string.Empty; + TRANSP_QVOL = string.Empty; + TRANSP_ESP = string.Empty; + TRANSP_MARCA = string.Empty; + TRANSP_NVOL = string.Empty; + TRANSP_PESOL = string.Empty; + TRANSP_PESOB = string.Empty; + TOTAL_VBC = string.Empty; + TOTAL_VICMS = string.Empty; + TOTAL_VBCST = string.Empty; + TOTAL_VST = string.Empty; + TOTAL_VPROD = string.Empty; + TOTAL_VFRETE = string.Empty; + TOTAL_VSEG = string.Empty; + TOTAL_VDESC = string.Empty; + TOTAL_VII = string.Empty; + TOTAL_VIPI = string.Empty; + TOTAL_VPIS_ST = string.Empty; + TOTAL_VPIS = string.Empty; + TOTAL_VCOFINS = string.Empty; + TOTAL_VCOFINS_ST = string.Empty; + TOTAL_VOUTRO = string.Empty; + TOTAL_ISS = string.Empty; + TOTAL_VNF = string.Empty; + NFREF_REFNF = string.Empty; + REFECF_MOD = string.Empty; + REFECF_NECF = string.Empty; + REFECF_NCOO = string.Empty; + REFECF_TPIMP = string.Empty; + REFECF_TPEMIS = string.Empty; + REFECF_FINNFE = string.Empty; + REFECF_PROCEMI = string.Empty; + REFECF_VERPROC = string.Empty; + REFECF_DHCONT = string.Empty; + REFECF_XJUST = string.Empty; + FAT_INDTIT = string.Empty; + OBS_COMPRADOR = string.Empty; + IDE_NATOP = string.Empty; + MANIFESTO = string.Empty; + IDE_CODSIT = string.Empty; + this.InfCpl = string.Empty; + this.InfAdFisco = string.Empty; + } public ModeloNotasCompras(int iD_NOTAS_COMPRAS, string cODIGO, string cFOP, string iDE_INDPAG, string iDE_MOD, string iDE_SERIE, string iDE_NNF, string iDE_DEMI, string iDE_DSAIENT, string iDE_HSAIENT, string iDE_CMUNFG, string iDE_CHNFE, string iDE_INDEMIT, string iDE_CODCONS, string dESTEMIT_CODIGO, string dESTEMIT_CNPJCPF, string dESTEMIT_XNOME, @@ -103,8 +197,8 @@ namespace MLL IDE_NATOP = iDE_NATOP; MANIFESTO = mANIFESTO; IDE_CODSIT = iDE_CODSIT; - this.infCpl = infCpl; - this.infAdFisco = infAdFisco; + this.InfCpl = infCpl; + this.InfAdFisco = infAdFisco; } public int ID_NOTAS_COMPRAS { get; set; } @@ -204,7 +298,7 @@ namespace MLL public string MANIFESTO { get; set; } public string IDE_CODSIT { get; set; } - public string infCpl { get; set; } - public string infAdFisco { get; set; } + public string InfCpl { get; set; } + public string InfAdFisco { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasComprasCorel.cs b/MLL/ModeloNotasComprasCorel.cs index b4ec4fa..a7f4d14 100644 --- a/MLL/ModeloNotasComprasCorel.cs +++ b/MLL/ModeloNotasComprasCorel.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloNotasComprasCorel { + public ModeloNotasComprasCorel() + { + ID_NOTAS_COMP_COREL = 0; + CODIGO = string.Empty; + FORNEC_CNPJ = string.Empty; + FORNEC_cProd = string.Empty; + MEU_cProd = string.Empty; + } public ModeloNotasComprasCorel(int iD_NOTAS_COMP_COREL, string cODIGO, string fORNEC_CNPJ, string fORNEC_cProd, string mEU_cProd) { ID_NOTAS_COMP_COREL = iD_NOTAS_COMP_COREL; diff --git a/MLL/ModeloNotasComprasDFE.cs b/MLL/ModeloNotasComprasDFE.cs index 78552ac..bc13ea1 100644 --- a/MLL/ModeloNotasComprasDFE.cs +++ b/MLL/ModeloNotasComprasDFE.cs @@ -4,6 +4,13 @@ namespace MLL { public class ModeloNotasComprasDFE { + public ModeloNotasComprasDFE() + { + ID_NOTAS_COMPRAS_DFE = 0; + CODIGO = string.Empty; + CHAVE = string.Empty; + MANIFESTADO = string.Empty; + } public ModeloNotasComprasDFE(int iD_NOTAS_COMPRAS_DFE, string cODIGO, string cHAVE, string mANIFESTADO) { ID_NOTAS_COMPRAS_DFE = iD_NOTAS_COMPRAS_DFE; diff --git a/MLL/ModeloNotasComprasFaturas.cs b/MLL/ModeloNotasComprasFaturas.cs index a22ee98..61aa1db 100644 --- a/MLL/ModeloNotasComprasFaturas.cs +++ b/MLL/ModeloNotasComprasFaturas.cs @@ -4,6 +4,15 @@ namespace MLL { public class ModeloNotasComprasFaturas { + public ModeloNotasComprasFaturas() + { + ID_NOTAS_COMP_FATURAS = 0; + CODIGO = string.Empty; + NOTA_ID = string.Empty; + NPARC = string.Empty; + DVENC = string.Empty; + VPARC = string.Empty; + } public ModeloNotasComprasFaturas(int iD_NOTAS_COMP_FATURAS, string cODIGO, string nOTA_ID, string nPARC, string dVENC, string vPARC) { ID_NOTAS_COMP_FATURAS = iD_NOTAS_COMP_FATURAS; diff --git a/MLL/ModeloNotasComprasItens.cs b/MLL/ModeloNotasComprasItens.cs index b62cea5..bae1972 100644 --- a/MLL/ModeloNotasComprasItens.cs +++ b/MLL/ModeloNotasComprasItens.cs @@ -4,6 +4,56 @@ namespace MLL { public class ModeloNotasComprasItens { + public ModeloNotasComprasItens() + { + ID_NOTAS_COMP_ITENS = 0; + CODIGO = string.Empty; + NOTA_ID = string.Empty; + CPROD = string.Empty; + CEAN = string.Empty; + XPROD = string.Empty; + NCM = string.Empty; + CFOP = string.Empty; + UCOM = string.Empty; + QCOM = string.Empty; + VUNCOM = string.Empty; + VPROD = string.Empty; + VFRETE = string.Empty; + VSEG = string.Empty; + VDESC = string.Empty; + VOUTRO = string.Empty; + ORIG = string.Empty; + CST_ICMS = string.Empty; + CST_PIS = string.Empty; + CST_COFINS = string.Empty; + CST_IPI = string.Empty; + DI_NDI = string.Empty; + DI_DDI = string.Empty; + DI_XLOCDESEMB = string.Empty; + DI_UFDESEMB = string.Empty; + DI_CEXPORTADOR = string.Empty; + COD_NAT = string.Empty; + XPROD_COMPL = string.Empty; + NAT_BC_CRED = string.Empty; + COD_CTA = string.Empty; + COD_CCUS = string.Empty; + EX_IPI = string.Empty; + IND_NAT_FRT = string.Empty; + IPI_VBC = string.Empty; + IPI_PIPI = string.Empty; + IPI_VIPI = string.Empty; + ICMS_VBC = string.Empty; + ICMS_PICMS = string.Empty; + ICMS_VICMS = string.Empty; + ICMS_VBCST = string.Empty; + ICMS_PICMSST = string.Empty; + ICMS_VICMSST = string.Empty; + COD_INTERNO = string.Empty; + XPED = string.Empty; + NITEMPED = string.Empty; + SERIAIS_IN = string.Empty; + EAN = string.Empty; + } public ModeloNotasComprasItens(int iD_NOTAS_COMP_ITENS, string cODIGO, string nOTA_ID, string cPROD, string cEAN, string xPROD, string nCM, string cFOP, string uCOM, string qCOM, string vUNCOM, string vPROD, string vFRETE, string vSEG, string vDESC, string vOUTRO, string oRIG, string cST_ICMS, string cST_PIS, string cST_COFINS, string cST_IPI, diff --git a/MLL/ModeloNotasConsumidorFormas.cs b/MLL/ModeloNotasConsumidorFormas.cs index 61e9290..a16ce6e 100644 --- a/MLL/ModeloNotasConsumidorFormas.cs +++ b/MLL/ModeloNotasConsumidorFormas.cs @@ -1,9 +1,22 @@ using System; +using System.Drawing; +using System.Runtime.Intrinsics.X86; namespace MLL { public class ModeloNotasConsumidorFormas { + public ModeloNotasConsumidorFormas() + { + ID_NOTAS_CONS_FORMAS = 0; + CODIGO = string.Empty; + COD_NFCE = string.Empty; + FORMA = string.Empty; + VALOR = string.Empty; + DATA_CADASTRO = string.Empty; + CNPJ_OPERADORA = string.Empty; + TBAND = string.Empty; + } public ModeloNotasConsumidorFormas(int iD_NOTAS_CONS_FORMAS, string cODIGO, string cOD_NFCE, string fORMA, string vALOR, string dATA_CADASTRO, string cNPJ_OPERADORA, string tBand) { ID_NOTAS_CONS_FORMAS = iD_NOTAS_CONS_FORMAS; @@ -13,7 +26,7 @@ namespace MLL VALOR = vALOR; DATA_CADASTRO = dATA_CADASTRO; CNPJ_OPERADORA = cNPJ_OPERADORA; - this.tBand = tBand; + TBAND = tBand; } public int ID_NOTAS_CONS_FORMAS { get; set; } @@ -23,6 +36,6 @@ namespace MLL public string VALOR { get; set; } public string DATA_CADASTRO { get; set; } public string CNPJ_OPERADORA { get; set; } - public string tBand { get; set; } + public string TBAND { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasConsumidorItens.cs b/MLL/ModeloNotasConsumidorItens.cs index 204815c..1c480d5 100644 --- a/MLL/ModeloNotasConsumidorItens.cs +++ b/MLL/ModeloNotasConsumidorItens.cs @@ -4,6 +4,69 @@ namespace MLL { public class ModeloNotasConsumidorItens { + public ModeloNotasConsumidorItens() + { + ID_NOTAS_CONSU_ITENS = 0; + CODIGO = string.Empty; + COD_NFCE = string.Empty; + ITEM_TIPO = string.Empty; + ITEM_CEAN = string.Empty; + ITEM_CPROD = string.Empty; + ITEM_XPROD = string.Empty; + ITEM_INF_ADIC = string.Empty; + ITEM_CFOP = string.Empty; + ITEM_NCM = string.Empty; + ITEM_UNCOM = string.Empty; + ITEM_QCOM = string.Empty; + ITEM_VPROD = string.Empty; + ITEM_VOUTRO = string.Empty; + ITEM_VFRETE = string.Empty; + ITEM_VSEG = string.Empty; + ITEM_VDESC = string.Empty; + ITEM_vTotTrib = string.Empty; + ITEM_ORIGEM = string.Empty; + ITEM_CST = string.Empty; + DATA_CADASTRO = string.Empty; + ITEM_ICMS_modBC = string.Empty; + ITEM_ICMS_pRedBC = string.Empty; + ITEM_ICMS_vBC = string.Empty; + ITEM_ICMS_pICMS = string.Empty; + ITEM_ICMS_vICMS = string.Empty; + ITEM_ICMS_vICMSDeson = string.Empty; + ITEM_ICMS_motDesICMS = string.Empty; + ITEM_ICMS_modBCST = string.Empty; + ITEM_ICMS_pMVAST = string.Empty; + ITEM_ICMS_pRedBCST = string.Empty; + ITEM_ICMS_vBCST = string.Empty; + ITEM_ICMS_pICMSST = string.Empty; + ITEM_ICMS_vICMSST = string.Empty; + ITEM_cProdANP = string.Empty; + ITEM_CEST = string.Empty; + this.CBenef = string.Empty; + ITEM_pFCP = string.Empty; + ITEM_vFCP = string.Empty; + ITEM_vBCFCP = string.Empty; + ITEM_vBCFCPST = string.Empty; + ITEM_pFCPST = string.Empty; + ITEM_vFCPST = string.Empty; + ITEM_pST = string.Empty; + ITEM_vBCFCPSTRet = string.Empty; + ITEM_pFCPSTRet = string.Empty; + ITEM_vFCPSTRet = string.Empty; + ITEM_PIS_CST = string.Empty; + ITEM_PIS_vBC = string.Empty; + ITEM_PIS_pPIS = string.Empty; + ITEM_PIS_vPIS = string.Empty; + ITEM_COFINS_CST = string.Empty; + ITEM_COFINS_vBC = string.Empty; + ITEM_COFINS_pCOFINS = string.Empty; + ITEM_COFINS_vCOFINS = string.Empty; + this.VICMSSubstituto = string.Empty; + this.PRedBCEfet = string.Empty; + this.VBCEfet = string.Empty; + this.PICMSEfet = string.Empty; + this.VICMSEfet = string.Empty; + } public ModeloNotasConsumidorItens(int iD_NOTAS_CONSU_ITENS, string cODIGO, string cOD_NFCE, string iTEM_TIPO, string iTEM_CEAN, string iTEM_CPROD, string iTEM_XPROD, string iTEM_INF_ADIC, string iTEM_CFOP, string iTEM_NCM, string iTEM_UNCOM, string iTEM_QCOM, string iTEM_VPROD, string iTEM_VOUTRO, string iTEM_VFRETE, @@ -53,7 +116,7 @@ namespace MLL ITEM_ICMS_vICMSST = iTEM_ICMS_vICMSST; ITEM_cProdANP = iTEM_cProdANP; ITEM_CEST = iTEM_CEST; - this.cBenef = cBenef; + this.CBenef = cBenef; ITEM_pFCP = iTEM_pFCP; ITEM_vFCP = iTEM_vFCP; ITEM_vBCFCP = iTEM_vBCFCP; @@ -72,11 +135,11 @@ namespace MLL ITEM_COFINS_vBC = iTEM_COFINS_vBC; ITEM_COFINS_pCOFINS = iTEM_COFINS_pCOFINS; ITEM_COFINS_vCOFINS = iTEM_COFINS_vCOFINS; - this.vICMSSubstituto = vICMSSubstituto; - this.pRedBCEfet = pRedBCEfet; - this.vBCEfet = vBCEfet; - this.pICMSEfet = pICMSEfet; - this.vICMSEfet = vICMSEfet; + this.VICMSSubstituto = vICMSSubstituto; + this.PRedBCEfet = pRedBCEfet; + this.VBCEfet = vBCEfet; + this.PICMSEfet = pICMSEfet; + this.VICMSEfet = vICMSEfet; } public int ID_NOTAS_CONSU_ITENS { get; set; } @@ -117,7 +180,7 @@ namespace MLL public string ITEM_cProdANP { get; set; } public string ITEM_CEST { get; set; } - public string cBenef { get; set; } + public string CBenef { get; set; } public string ITEM_pFCP { get; set; } public string ITEM_vFCP { get; set; } @@ -140,10 +203,10 @@ namespace MLL public string ITEM_COFINS_pCOFINS { get; set; } public string ITEM_COFINS_vCOFINS { get; set; } - public string vICMSSubstituto { get; set; } - public string pRedBCEfet { get; set; } - public string vBCEfet { get; set; } - public string pICMSEfet { get; set; } - public string vICMSEfet { get; set; } + public string VICMSSubstituto { get; set; } + public string PRedBCEfet { get; set; } + public string VBCEfet { get; set; } + public string PICMSEfet { get; set; } + public string VICMSEfet { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasContador.cs b/MLL/ModeloNotasContador.cs index d4f64a9..3ff114d 100644 --- a/MLL/ModeloNotasContador.cs +++ b/MLL/ModeloNotasContador.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloNotasContador { + public ModeloNotasContador() + { + ID_NOTAS_CONTADOR = 0; + CODIGO = string.Empty; + CNPJ_CPF = string.Empty; + NOME = string.Empty; + DATA_CADASTRO = string.Empty; + EMAIL = string.Empty; + TELEFONE = string.Empty; + CONTADOR_ID = string.Empty; + } public ModeloNotasContador(int iD_NOTAS_CONTADOR, string cODIGO, string cNPJ_CPF, string nOME, string dATA_CADASTRO, string eMAIL, string tELEFONE, string cONTADOR_ID) { ID_NOTAS_CONTADOR = iD_NOTAS_CONTADOR; diff --git a/MLL/ModeloNotasDeServicos.cs b/MLL/ModeloNotasDeServicos.cs index 90c6744..6dec0fb 100644 --- a/MLL/ModeloNotasDeServicos.cs +++ b/MLL/ModeloNotasDeServicos.cs @@ -4,6 +4,73 @@ namespace MLL { public class ModeloNotasDeServicos { + public ModeloNotasDeServicos() + { + ID_NOTAS_SERVICOS = 0; + CODIGO = string.Empty; + IDE_RPS = string.Empty; + IDE_SERIE = string.Empty; + IDE_TIPO = string.Empty; + IDE_DT_EMIS = string.Empty; + IDE_CAMPO1 = string.Empty; + IDE_CAMPO2 = string.Empty; + IDE_REG_TRIB = string.Empty; + IDE_SIMPLES = string.Empty; + IDE_IN_CULTURAL = string.Empty; + TOMADOR_CNPJ = string.Empty; + TOMADOR_IMUN = string.Empty; + TOMADOR_RAZAO = string.Empty; + TOMADOR_END = string.Empty; + TOMADOR_NUM = string.Empty; + TOMADOR_CPL = string.Empty; + TOMADOR_BAIRRO = string.Empty; + TOMADOR_COD_MUN = string.Empty; + TOMADOR_UF = string.Empty; + TOMADOR_CEP = string.Empty; + TOMADOR_EMAIL = string.Empty; + TOMADOR_TELEFONE = string.Empty; + RPS_LOTE = string.Empty; + RPS_OBS = string.Empty; + RPS_ETAPA1 = string.Empty; + RPS_ETAPA2 = string.Empty; + RPS_ETAPA3 = string.Empty; + RPS_ETAPA4 = string.Empty; + RPS_ETAPA5 = string.Empty; + NFS_SUBSTITUIDO_RPS = string.Empty; + NFS_SUBSTITUIDO_SERIE = string.Empty; + NFS_SUBSTITUIDO_TIPO = string.Empty; + CODIGO_OBRA = string.Empty; + NUMERO_ART = string.Empty; + INTERMEDIARIO_CNP = string.Empty; + INTERMEDIARIO_IM = string.Empty; + INTERMEDIARIO_RAZAO = string.Empty; + RPS_COD_SERV = string.Empty; + NFS_ValorServicos = string.Empty; + NFS_ValorDeducoes = string.Empty; + NFS_ValorPis = string.Empty; + NFS_ValorCofins = string.Empty; + NFS_ValorInss = string.Empty; + NFS_ValorCredito = string.Empty; + NFS_BaseCalculo = string.Empty; + NFS_ValorLiquidoNfse = string.Empty; + NFS_ValorIr = string.Empty; + NFS_ValorCsll = string.Empty; + NFS_IssRetido = string.Empty; + NFS_ValorIss = string.Empty; + NFS_OutrasRetencoes = string.Empty; + NFS_DescontoIncondicionado = string.Empty; + NFS_DescontoCondicionado = string.Empty; + NFS_Aliquota = string.Empty; + NFS_CodigoServico = string.Empty; + NFS_CNAE = string.Empty; + NFS_CodigoTributacaoMunicipio = string.Empty; + NFS_Discriminacao = string.Empty; + NFS_CodigoMunicipio = string.Empty; + NFS_TributacaoRPS = string.Empty; + NFS_CODPAIS = string.Empty; + NFS_Exigibilidade = string.Empty; + NFS_CodigoMunIncidencia = string.Empty; + } public ModeloNotasDeServicos(int iD_NOTAS_SERVICOS, string cODIGO, string iDE_RPS, string iDE_SERIE, string iDE_TIPO, string iDE_DT_EMIS, string iDE_CAMPO1, string iDE_CAMPO2, string iDE_REG_TRIB, string iDE_SIMPLES, string iDE_IN_CULTURAL, string tOMADOR_CNPJ, string tOMADOR_IMUN, string tOMADOR_RAZAO, string tOMADOR_END, string tOMADOR_NUM, string tOMADOR_CPL, string tOMADOR_BAIRRO, string tOMADOR_COD_MUN, string tOMADOR_UF, string tOMADOR_CEP, string tOMADOR_EMAIL, string tOMADOR_TELEFONE, string rPS_LOTE, string rPS_OBS, string rPS_ETAPA1, string rPS_ETAPA2, string rPS_ETAPA3, string rPS_ETAPA4, string rPS_ETAPA5, string nFS_SUBSTITUIDO_RPS, string nFS_SUBSTITUIDO_SERIE, string nFS_SUBSTITUIDO_TIPO, string cODIGO_OBRA, string nUMERO_ART, string iNTERMEDIARIO_CNP, string iNTERMEDIARIO_IM, string iNTERMEDIARIO_RAZAO, string rPS_COD_SERV, string nFS_ValorServicos, string nFS_ValorDeducoes, string nFS_ValorPis, string nFS_ValorCofins, string nFS_ValorInss, string nFS_ValorCredito, string nFS_BaseCalculo, string nFS_ValorLiquidoNfse, string nFS_ValorIr, string nFS_ValorCsll, string nFS_IssRetido, string nFS_ValorIss, string nFS_OutrasRetencoes, string nFS_DescontoIncondicionado, string nFS_DescontoCondicionado, string nFS_Aliquota, string nFS_CodigoServico, string nFS_CNAE, string nFS_CodigoTributacaoMunicipio, string nFS_Discriminacao, string nFS_CodigoMunicipio, string nFS_TributacaoRPS, string nFS_CODPAIS, string nFS_Exigibilidade, string nFS_CodigoMunIncidencia) { ID_NOTAS_SERVICOS = iD_NOTAS_SERVICOS; diff --git a/MLL/ModeloNotasEnderecos.cs b/MLL/ModeloNotasEnderecos.cs index c1e9afb..2262857 100644 --- a/MLL/ModeloNotasEnderecos.cs +++ b/MLL/ModeloNotasEnderecos.cs @@ -1,9 +1,33 @@ using System; +using System.Runtime.ConstrainedExecution; +using System.Security.Claims; +using static System.Net.Mime.MediaTypeNames; namespace MLL { public class ModeloNotasEnderecos { + public ModeloNotasEnderecos() + { + ID_NOTAS_ENDERECOS = 0; + CODIGO = string.Empty; + COD_NOTA = string.Empty; + CNPJ_CPF = string.Empty; + this.XLgr = string.Empty; + this.Nro = string.Empty; + this.XCpl = string.Empty; + this.XBairro = string.Empty; + this.XMun = string.Empty; + UF = string.Empty; + TIPO = string.Empty; + DATA_CADASTRO = string.Empty; + CEP = string.Empty; + CPAIS = string.Empty; + XPAIS = string.Empty; + FONE = string.Empty; + EMAIL = string.Empty; + IE = string.Empty; + } public ModeloNotasEnderecos(int iD_NOTAS_ENDERECOS, string cODIGO, string cOD_NOTA, string cNPJ_CPF, string xLgr, string nro, string xCpl, string xBairro, string xMun, string uF, string tIPO, string dATA_CADASTRO, string cEP, string cPAIS, string xPAIS, @@ -13,11 +37,11 @@ namespace MLL CODIGO = cODIGO; COD_NOTA = cOD_NOTA; CNPJ_CPF = cNPJ_CPF; - this.xLgr = xLgr; - this.nro = nro; - this.xCpl = xCpl; - this.xBairro = xBairro; - this.xMun = xMun; + this.XLgr = xLgr; + this.Nro = nro; + this.XCpl = xCpl; + this.XBairro = xBairro; + this.XMun = xMun; UF = uF; TIPO = tIPO; DATA_CADASTRO = dATA_CADASTRO; @@ -33,11 +57,11 @@ namespace MLL public string CODIGO { get; set; } public string COD_NOTA { get; set; } public string CNPJ_CPF { get; set; } - public string xLgr { get; set; } - public string nro { get; set; } - public string xCpl { get; set; } - public string xBairro { get; set; } - public string xMun { get; set; } + public string XLgr { get; set; } + public string Nro { get; set; } + public string XCpl { get; set; } + public string XBairro { get; set; } + public string XMun { get; set; } public string UF { get; set; } public string TIPO { get; set; } public string DATA_CADASTRO { get; set; } diff --git a/MLL/ModeloNotasFaturas.cs b/MLL/ModeloNotasFaturas.cs index 74eae4b..60dbc70 100644 --- a/MLL/ModeloNotasFaturas.cs +++ b/MLL/ModeloNotasFaturas.cs @@ -1,9 +1,22 @@ using System; +using System.Drawing; +using System.Numerics; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloNotasFaturas { + public ModeloNotasFaturas() + { + ID_NOTAS_FATURAS = 0; + CODIGO = string.Empty; + COD_NOTA = string.Empty; + INDICE = string.Empty; + NUMERO = string.Empty; + VENCTO = string.Empty; + VALOR = string.Empty; + } public ModeloNotasFaturas(int iD_NOTAS_FATURAS, string cODIGO, string cOD_NOTA, string iNDICE, string nUMERO, string vENCTO, string vALOR) { ID_NOTAS_FATURAS = iD_NOTAS_FATURAS; diff --git a/MLL/ModeloNotasFiscais.cs b/MLL/ModeloNotasFiscais.cs index 2b01f05..7ecc4ab 100644 --- a/MLL/ModeloNotasFiscais.cs +++ b/MLL/ModeloNotasFiscais.cs @@ -1,9 +1,133 @@ using System; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloNotasFiscais { + public ModeloNotasFiscais() + { + ID_NOTAS_FISCAIS = 0; + CODIGO = string.Empty; + SAIDA = string.Empty; + CFOP = string.Empty; + CFOP1 = string.Empty; + NATUREZA = string.Empty; + DESTINATARIO_NOME = string.Empty; + DESTINATARIO_ENDERECO = string.Empty; + DESTINATARIO_BAIRRO = string.Empty; + DESTINATARIO_CIDADE = string.Empty; + DESTINATARIO_UF = string.Empty; + DESTINATARIO_CEP = string.Empty; + DESTINATARIO_TEL = string.Empty; + DESTINATARIO_FAX = string.Empty; + DESTINATARIO_EMAIL = string.Empty; + DESTINATARIO_IE_RG = string.Empty; + DESTINATARIO_CNPJCPF = string.Empty; + DATA = string.Empty; + DATA_SAIDA = string.Empty; + BASE_ICMS = string.Empty; + BASE_ICMS_SUBS = string.Empty; + VALOR_ICMS = string.Empty; + VALOR_ICMS_SUBS = string.Empty; + VALOR_FRETE = string.Empty; + VALOR_SEGURO = string.Empty; + VALOR_DESCONTO = string.Empty; + VALOR_ISS = string.Empty; + VALOR_IPI = string.Empty; + OUTRAS_DESPESAS = string.Empty; + VALOR_IRRF = string.Empty; + VALOR_IRPJ = string.Empty; + VALOR_PIS = string.Empty; + VALOR_COFINS = string.Empty; + VALOR_CSLL = string.Empty; + VALOR_SIMPLES = string.Empty; + VALOR_BENEF = string.Empty; + VALOR_INSS = string.Empty; + TOTAL_ISS = string.Empty; + TOTAL_IRRF = string.Empty; + TOTAL_IRPJ = string.Empty; + TOTAL_PIS = string.Empty; + TOTAL_COFINS = string.Empty; + TOTAL_CSLL = string.Empty; + TOTAL_INSS = string.Empty; + TOTAL_SIMPLES = string.Empty; + TOTAL_DESC = string.Empty; + TOTAL_DEDUCOES = string.Empty; + TOTAL_SERVICOS = string.Empty; + TOTAL_PRODUTOS = string.Empty; + TOTAL = string.Empty; + TRANSPORTADOR = string.Empty; + FRETE_POR = string.Empty; + FRETE_PLACA = string.Empty; + FRETE_QTD = string.Empty; + FRETE_PESO_BRUTO = string.Empty; + FRETE_PESO_LIQUIDO = string.Empty; + FRETE_MARCA = string.Empty; + FRETE_ESPECIME = string.Empty; + FRETE_NUMERO = string.Empty; + FRETE_NOME = string.Empty; + FRETE_UF = string.Empty; + FRETE_CNPJCPF = string.Empty; + FRETE_IERG = string.Empty; + FRETE_ENDERECO = string.Empty; + FRETE_MUNICIPIO = string.Empty; + FRETE_TUF = string.Empty; + OBSERVACOES = string.Empty; + DATA_CADASTRO = string.Empty; + CANCELADA = string.Empty; + DB_cs_ICMS_S = string.Empty; + DB_cs_FRETE = string.Empty; + DB_cs_SEGURO = string.Empty; + DB_cs_DESPESAS = string.Empty; + DB_cin_FRETE = string.Empty; + DB_cin_SEGURO = string.Empty; + DB_cin_DESPESAS = string.Empty; + DB_cs_ISS = string.Empty; + DB_cs_IRRF = string.Empty; + DB_cs_IRPJ = string.Empty; + DB_cs_PIS = string.Empty; + DB_cs_COFINS = string.Empty; + DB_cs_CSLL = string.Empty; + DB_cs_INSS = string.Empty; + DB_cs_SIMPLES = string.Empty; + NFE_ENFE = string.Empty; + IIIgnora = string.Empty; + NFE_ID_CANCEL_DATE = string.Empty; + NFE_ID_CANCEL_PROT = string.Empty; + NFE_ID_AUTOR_DATE = string.Empty; + NFE_ID_AUTOR_PROT = string.Empty; + NFE_ID_CHAVE = string.Empty; + NFE_ARQ_NOTA = string.Empty; + NFE_ARQ_LOTE = string.Empty; + NFE_LOG = string.Empty; + NFE_ENVIADA = string.Empty; + NFE_DANFE_IMP = string.Empty; + NFE_STATUS = string.Empty; + NFE_LAST_ERROR = string.Empty; + MOTIVO_CANCELA = string.Empty; + DESTINATARIO_COD_PAIS = string.Empty; + DESTINATARIO_NUMERO = string.Empty; + DESTINATARIO_COMPLEM = string.Empty; + COD_ANTT = string.Empty; + INFO_FISCO = string.Empty; + COMPRAS_PUBLICAS = string.Empty; + EXPORTA_EMBARQUE = string.Empty; + SERIE = string.Empty; + FINNFE = string.Empty; + REFNFE = string.Empty; + this.IdEstrangeiro = string.Empty; + this.CbindIEDest = string.Empty; + this.IndPres = string.Empty; + this.QAMBIENTE = string.Empty; + this.IndFinal = string.Empty; + this.REFNFE1 = string.Empty; + this.REFNFE2 = string.Empty; + this.REFNFE3 = string.Empty; + this.IdCadIntTran = string.Empty; + this.YB02_CNPJ = string.Empty; + this.YA05_CNPJ = string.Empty; + } public ModeloNotasFiscais(int iD_NOTAS_FISCAIS, string cODIGO, string sAIDA, string cFOP, string cFOP1, string nATUREZA, string dESTINATARIO_NOME, string dESTINATARIO_ENDERECO, string dESTINATARIO_BAIRRO, string dESTINATARIO_CIDADE, string dESTINATARIO_UF, string dESTINATARIO_CEP, string dESTINATARIO_TEL, string dESTINATARIO_FAX, string dESTINATARIO_EMAIL, @@ -131,15 +255,15 @@ namespace MLL SERIE = sERIE; FINNFE = fINNFE; REFNFE = rEFNFE; - this.idEstrangeiro = idEstrangeiro; - this.cbindIEDest = cbindIEDest; - this.indPres = indPres; - QAMBIENTE = qAMBIENTE; - this.indFinal = indFinal; - REFNFE1 = rEFNFE1; - REFNFE2 = rEFNFE2; + this.IdEstrangeiro = idEstrangeiro; + this.CbindIEDest = cbindIEDest; + this.IndPres = indPres; + this.QAMBIENTE = qAMBIENTE; + this.IndFinal = indFinal; + this.REFNFE1 = rEFNFE1; + this.REFNFE2 = rEFNFE2; REFNFE3 = rEFNFE3; - this.idCadIntTran = idCadIntTran; + this.IdCadIntTran = idCadIntTran; YB02_CNPJ = yB02_CNPJ; YA05_CNPJ = yA05_CNPJ; } @@ -265,17 +389,17 @@ namespace MLL public string FINNFE { get; set; } public string REFNFE { get; set; } - public string idEstrangeiro { get; set; } - public string cbindIEDest { get; set; } - public string indPres { get; set; } + public string IdEstrangeiro { get; set; } + public string CbindIEDest { get; set; } + public string IndPres { get; set; } public string QAMBIENTE { get; set; } - public string indFinal { get; set; } + public string IndFinal { get; set; } public string REFNFE1 { get; set; } public string REFNFE2 { get; set; } public string REFNFE3 { get; set; } - public string idCadIntTran { get; set; } + public string IdCadIntTran { get; set; } public string YB02_CNPJ { get; set; } public string YA05_CNPJ { get; set; } } diff --git a/MLL/ModeloNotasFiscaisConsumidor.cs b/MLL/ModeloNotasFiscaisConsumidor.cs index 0a4eb35..0662007 100644 --- a/MLL/ModeloNotasFiscaisConsumidor.cs +++ b/MLL/ModeloNotasFiscaisConsumidor.cs @@ -2,8 +2,58 @@ namespace MLL { + public class ModeloNotasFiscaisConsumidor { + public ModeloNotasFiscaisConsumidor() + { + ID_NOTAS_FISCAIS_CONS = 0; + CODIGO = string.Empty; + PRODUCAO = string.Empty; + SERIE = string.Empty; + NATUREZA = string.Empty; + EMISSAO = string.Empty; + DEST_NOME = string.Empty; + DEST_EMAIL = string.Empty; + DEST_CPF_CNPJ = string.Empty; + DEST_IDESTRANGEIRO = string.Empty; + DEST_xLgr = string.Empty; + DEST_CPL = string.Empty; + DEST_nro = string.Empty; + DEST_xBairro = string.Empty; + DEST_cMun = string.Empty; + DEST_xMun = string.Empty; + DEST_UF = string.Empty; + DEST_CEP = string.Empty; + DEST_cPais = string.Empty; + DEST_xPais = string.Empty; + DEST_fone = string.Empty; + FRETE_MODALIDADE = string.Empty; + FRETE_xCNPJ_CPF = string.Empty; + FRETE_xNome = string.Empty; + NFC_PRONTA = string.Empty; + NFC_infCpl = string.Empty; + TOTAL_vBC = string.Empty; + TOTAL_vICMS = string.Empty; + TOTAL_vBCST = string.Empty; + TOTAL_vST = string.Empty; + TOTAL_vProd = string.Empty; + TOTAL_vFrete = string.Empty; + TOTAL_vSeg = string.Empty; + TOTAL_vDesc = string.Empty; + TOTAL_vII = string.Empty; + TOTAL_vIPI = string.Empty; + TOTAL_vPIS = string.Empty; + TOTAL_vCOFINS = string.Empty; + TOTAL_vOutro = string.Empty; + TOTAL_vNF = string.Empty; + TERMINAL = string.Empty; + CHAVE_NFC = string.Empty; + PROTOCOLO = string.Empty; + PROTOCOLO_CANCELA = string.Empty; + SITUACAO = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloNotasFiscaisConsumidor(int iD_NOTAS_FISCAIS_CONS, string cODIGO, string pRODUCAO, string sERIE, string nATUREZA, string eMISSAO, string dEST_NOME, string dEST_EMAIL, string dEST_CPF_CNPJ, string dEST_IDESTRANGEIRO, string dEST_xLgr, string dEST_CPL, string dEST_nro, string dEST_xBairro, string dEST_cMun, string dEST_xMun, diff --git a/MLL/ModeloNotasFormas.cs b/MLL/ModeloNotasFormas.cs index c4be880..e024680 100644 --- a/MLL/ModeloNotasFormas.cs +++ b/MLL/ModeloNotasFormas.cs @@ -1,32 +1,48 @@ using System; +using System.Drawing; +using System.Numerics; +using System.Runtime.Intrinsics.X86; namespace MLL { public class ModeloNotasFormas { + public ModeloNotasFormas() + { + ID_NOTAS_FORMAS = 0; + CODIGO = string.Empty; + COD_NFE = string.Empty; + this.NDUP = string.Empty; + VENCTO = string.Empty; + FORMA = string.Empty; + VALOR = string.Empty; + DATA_CADASTRO = string.Empty; + CNPJ_OPERADORA = string.Empty; + this.TBAND = string.Empty; + } public ModeloNotasFormas(int iD_NOTAS_FORMAS, string cODIGO, string cOD_NFE, string nDUP, string vENCTO, string fORMA, string vALOR, string dATA_CADASTRO, string cNPJ_OPERADORA, string tBand) { ID_NOTAS_FORMAS = iD_NOTAS_FORMAS; CODIGO = cODIGO; COD_NFE = cOD_NFE; - this.nDUP = nDUP; + this.NDUP = nDUP; VENCTO = vENCTO; FORMA = fORMA; VALOR = vALOR; DATA_CADASTRO = dATA_CADASTRO; CNPJ_OPERADORA = cNPJ_OPERADORA; - this.tBand = tBand; + this.TBAND = tBand; } public int ID_NOTAS_FORMAS { get; set; } public string CODIGO { get; set; } public string COD_NFE { get; set; } - public string nDUP { get; set; } + public string NDUP { get; set; } public string VENCTO { get; set; } public string FORMA { get; set; } public string VALOR { get; set; } public string DATA_CADASTRO { get; set; } public string CNPJ_OPERADORA { get; set; } - public string tBand { get; set; } + public string TBAND { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasItensDetalha.cs b/MLL/ModeloNotasItensDetalha.cs index 7a541ac..4af496d 100644 --- a/MLL/ModeloNotasItensDetalha.cs +++ b/MLL/ModeloNotasItensDetalha.cs @@ -4,6 +4,47 @@ namespace MLL { public class ModeloNotasItensDetalha { + public ModeloNotasItensDetalha() + { + ID_NOTAS_ITENS_DETALHA = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + TIPO = string.Empty; + this.TpOp = string.Empty; + this.Chassi = string.Empty; + this.CCor = string.Empty; + this.XCor = string.Empty; + this.Pot = string.Empty; + this.Cilin = string.Empty; + this.PesoL = string.Empty; + this.PesoB = string.Empty; + this.NSerie = string.Empty; + this.TpComb = string.Empty; + this.NMotor = string.Empty; + CMT = string.Empty; + this.Dist = string.Empty; + this.AnoMod = string.Empty; + this.AnoFab = string.Empty; + this.TpPint = string.Empty; + this.TpVeic = string.Empty; + this.EspVeic = string.Empty; + VIN = string.Empty; + this.CondVeic = string.Empty; + this.CMod = string.Empty; + this.CCorDENATRAN = string.Empty; + this.Lota = string.Empty; + this.TpRest = string.Empty; + this.TpArma = string.Empty; + this.NSerie_arma = string.Empty; + this.NCano = string.Empty; + this.Descr = string.Empty; + this.NLote = string.Empty; + this.QLote = string.Empty; + this.DFab = string.Empty; + this.DVal = string.Empty; + this.VPMC = string.Empty; + this.RECOPI = string.Empty; + } public ModeloNotasItensDetalha(int iD_NOTAS_ITENS_DETALHA, string cODIGO, string cOD_ITEM, string tIPO, string tpOp, string chassi, string cCor, string xCor, string pot, string cilin, string pesoL, string pesoB, string nSerie, string tpComb, string nMotor, string cMT, string dist, string anoMod, string anoFab, @@ -15,39 +56,39 @@ namespace MLL CODIGO = cODIGO; COD_ITEM = cOD_ITEM; TIPO = tIPO; - this.tpOp = tpOp; - this.chassi = chassi; - this.cCor = cCor; - this.xCor = xCor; - this.pot = pot; - this.cilin = cilin; - this.pesoL = pesoL; - this.pesoB = pesoB; - this.nSerie = nSerie; - this.tpComb = tpComb; - this.nMotor = nMotor; + this.TpOp = tpOp; + this.Chassi = chassi; + this.CCor = cCor; + this.XCor = xCor; + this.Pot = pot; + this.Cilin = cilin; + this.PesoL = pesoL; + this.PesoB = pesoB; + this.NSerie = nSerie; + this.TpComb = tpComb; + this.NMotor = nMotor; CMT = cMT; - this.dist = dist; - this.anoMod = anoMod; - this.anoFab = anoFab; - this.tpPint = tpPint; - this.tpVeic = tpVeic; - this.espVeic = espVeic; - VIN = vIN; - this.condVeic = condVeic; - this.cMod = cMod; - this.cCorDENATRAN = cCorDENATRAN; - this.lota = lota; - this.tpRest = tpRest; - this.tpArma = tpArma; - NSerie_arma = nSerie_arma; - this.nCano = nCano; - this.descr = descr; - this.nLote = nLote; - this.qLote = qLote; - this.dFab = dFab; - this.dVal = dVal; - this.vPMC = vPMC; + this.Dist = dist; + this.AnoMod = anoMod; + this.AnoFab = anoFab; + this.TpPint = tpPint; + this.TpVeic = tpVeic; + this.EspVeic = espVeic; + this.VIN = vIN; + this.CondVeic = condVeic; + this.CMod = cMod; + this.CCorDENATRAN = cCorDENATRAN; + this.Lota = lota; + this.TpRest = tpRest; + this.TpArma = tpArma; + this.NSerie_arma = nSerie_arma; + this.NCano = nCano; + this.Descr = descr; + this.NLote = nLote; + this.QLote = qLote; + this.DFab = dFab; + this.DVal = dVal; + this.VPMC = vPMC; RECOPI = rECOPI; } @@ -55,39 +96,39 @@ namespace MLL public string CODIGO { get; set; } public string COD_ITEM { get; set; } public string TIPO { get; set; } - public string tpOp { get; set; } - public string chassi { get; set; } - public string cCor { get; set; } - public string xCor { get; set; } - public string pot { get; set; } - public string cilin { get; set; } - public string pesoL { get; set; } - public string pesoB { get; set; } - public string nSerie { get; set; } - public string tpComb { get; set; } - public string nMotor { get; set; } + public string TpOp { get; set; } + public string Chassi { get; set; } + public string CCor { get; set; } + public string XCor { get; set; } + public string Pot { get; set; } + public string Cilin { get; set; } + public string PesoL { get; set; } + public string PesoB { get; set; } + public string NSerie { get; set; } + public string TpComb { get; set; } + public string NMotor { get; set; } public string CMT { get; set; } - public string dist { get; set; } - public string anoMod { get; set; } - public string anoFab { get; set; } - public string tpPint { get; set; } - public string tpVeic { get; set; } - public string espVeic { get; set; } + public string Dist { get; set; } + public string AnoMod { get; set; } + public string AnoFab { get; set; } + public string TpPint { get; set; } + public string TpVeic { get; set; } + public string EspVeic { get; set; } public string VIN { get; set; } - public string condVeic { get; set; } - public string cMod { get; set; } - public string cCorDENATRAN { get; set; } - public string lota { get; set; } - public string tpRest { get; set; } - public string tpArma { get; set; } + public string CondVeic { get; set; } + public string CMod { get; set; } + public string CCorDENATRAN { get; set; } + public string Lota { get; set; } + public string TpRest { get; set; } + public string TpArma { get; set; } public string NSerie_arma { get; set; } - public string nCano { get; set; } - public string descr { get; set; } - public string nLote { get; set; } - public string qLote { get; set; } - public string dFab { get; set; } - public string dVal { get; set; } - public string vPMC { get; set; } + public string NCano { get; set; } + public string Descr { get; set; } + public string NLote { get; set; } + public string QLote { get; set; } + public string DFab { get; set; } + public string DVal { get; set; } + public string VPMC { get; set; } public string RECOPI { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasItensRastreabilidade.cs b/MLL/ModeloNotasItensRastreabilidade.cs index 681964b..f223a10 100644 --- a/MLL/ModeloNotasItensRastreabilidade.cs +++ b/MLL/ModeloNotasItensRastreabilidade.cs @@ -4,25 +4,36 @@ namespace MLL { public class ModeloNotasItensRastreabilidade { + public ModeloNotasItensRastreabilidade() + { + ID_NOTAS_ITENS_RASTRE = 0; + CODIGO = string.Empty; + COD_ITEM = string.Empty; + this.NLote = string.Empty; + this.QLote = string.Empty; + this.DFab = string.Empty; + this.DVal = string.Empty; + this.CAgreg = string.Empty; + } public ModeloNotasItensRastreabilidade(int iD_NOTAS_ITENS_RASTRE, string cODIGO, string cOD_ITEM, string nLote, string qLote, string dFab, string dVal, string cAgreg) { ID_NOTAS_ITENS_RASTRE = iD_NOTAS_ITENS_RASTRE; CODIGO = cODIGO; COD_ITEM = cOD_ITEM; - this.nLote = nLote; - this.qLote = qLote; - this.dFab = dFab; - this.dVal = dVal; - this.cAgreg = cAgreg; + this.NLote = nLote; + this.QLote = qLote; + this.DFab = dFab; + this.DVal = dVal; + this.CAgreg = cAgreg; } public int ID_NOTAS_ITENS_RASTRE { get; set; } public string CODIGO { get; set; } public string COD_ITEM { get; set; } - public string nLote { get; set; } - public string qLote { get; set; } - public string dFab { get; set; } - public string dVal { get; set; } - public string cAgreg { get; set; } + public string NLote { get; set; } + public string QLote { get; set; } + public string DFab { get; set; } + public string DVal { get; set; } + public string CAgreg { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasRefNFP.cs b/MLL/ModeloNotasRefNFP.cs index b60981b..a1fa5f1 100644 --- a/MLL/ModeloNotasRefNFP.cs +++ b/MLL/ModeloNotasRefNFP.cs @@ -1,21 +1,37 @@ using System; +using System.Reflection; namespace MLL { public class ModeloNotasRefNFP { + public ModeloNotasRefNFP() + { + ID_NOTAS_REF_NFP = 0; + CODIGO = string.Empty; + COD_NOTA = string.Empty; + CUF = string.Empty; + AAMM = string.Empty; + CNPJ_CPF = string.Empty; + IE = string.Empty; + Modelo = string.Empty; + Serie = string.Empty; + NNF = string.Empty; + Produtor = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloNotasRefNFP(int iD_NOTAS_REF_NFP, string cODIGO, string cOD_NOTA, string cUF, string aAMM, string cNPJ_CPF, string iE, string modelo, string serie, string nNF, string produtor, string dATA_CADASTRO) { ID_NOTAS_REF_NFP = iD_NOTAS_REF_NFP; CODIGO = cODIGO; COD_NOTA = cOD_NOTA; - this.cUF = cUF; + CUF = cUF; AAMM = aAMM; CNPJ_CPF = cNPJ_CPF; IE = iE; Modelo = modelo; - this.serie = serie; - this.nNF = nNF; + Serie = serie; + NNF = nNF; Produtor = produtor; DATA_CADASTRO = dATA_CADASTRO; } @@ -23,13 +39,13 @@ namespace MLL public int ID_NOTAS_REF_NFP { get; set; } public string CODIGO { get; set; } public string COD_NOTA { get; set; } - public string cUF { get; set; } + public string CUF { get; set; } public string AAMM { get; set; } public string CNPJ_CPF { get; set; } public string IE { get; set; } public string Modelo { get; set; } - public string serie { get; set; } - public string nNF { get; set; } + public string Serie { get; set; } + public string NNF { get; set; } public string Produtor { get; set; } public string DATA_CADASTRO { get; set; } } diff --git a/MLL/ModeloNotasRetencoes.cs b/MLL/ModeloNotasRetencoes.cs index 53cc0f4..3ac93a9 100644 --- a/MLL/ModeloNotasRetencoes.cs +++ b/MLL/ModeloNotasRetencoes.cs @@ -4,30 +4,43 @@ namespace MLL { public class ModeloNotasRetencoes { + public ModeloNotasRetencoes() + { + ID_NOTAS_RETENCOES = 0; + CODIGO = string.Empty; + COD_NOTA = string.Empty; + this.VIRRF = string.Empty; + this.VBCIRRF = string.Empty; + this.VBCRetPrev = string.Empty; + this.VRetPrev = string.Empty; + this.VRetCOFINS = string.Empty; + this.VRetCSLL = string.Empty; + this.VRetPIS = string.Empty; + } public ModeloNotasRetencoes(int iD_NOTAS_RETENCOES, string cODIGO, string cOD_NOTA, string vIRRF, string vBCIRRF, string vBCRetPrev, string vRetPrev, string vRetCOFINS, string vRetCSLL, string vRetPIS) { ID_NOTAS_RETENCOES = iD_NOTAS_RETENCOES; CODIGO = cODIGO; COD_NOTA = cOD_NOTA; - this.vIRRF = vIRRF; - this.vBCIRRF = vBCIRRF; - this.vBCRetPrev = vBCRetPrev; - this.vRetPrev = vRetPrev; - this.vRetCOFINS = vRetCOFINS; - this.vRetCSLL = vRetCSLL; - this.vRetPIS = vRetPIS; + this.VIRRF = vIRRF; + this.VBCIRRF = vBCIRRF; + this.VBCRetPrev = vBCRetPrev; + this.VRetPrev = vRetPrev; + this.VRetCOFINS = vRetCOFINS; + this.VRetCSLL = vRetCSLL; + this.VRetPIS = vRetPIS; } public int ID_NOTAS_RETENCOES { get; set; } public string CODIGO { get; set; } public string COD_NOTA { get; set; } - public string vIRRF { get; set; } - public string vBCIRRF { get; set; } - public string vBCRetPrev { get; set; } - public string vRetPrev { get; set; } - public string vRetCOFINS { get; set; } - public string vRetCSLL { get; set; } - public string vRetPIS { get; set; } + public string VIRRF { get; set; } + public string VBCIRRF { get; set; } + public string VBCRetPrev { get; set; } + public string VRetPrev { get; set; } + public string VRetCOFINS { get; set; } + public string VRetCSLL { get; set; } + public string VRetPIS { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloNotasXml.cs b/MLL/ModeloNotasXml.cs index a9dcb67..4bfaedb 100644 --- a/MLL/ModeloNotasXml.cs +++ b/MLL/ModeloNotasXml.cs @@ -4,6 +4,12 @@ namespace MLL { public class ModeloNotasXml { + public ModeloNotasXml() + { + ID_NOTAS_XML = 0; + CHAVE = string.Empty; + XML = string.Empty; + } public ModeloNotasXml(int iD_NOTAS_XML, string cHAVE, string xML) { ID_NOTAS_XML = iD_NOTAS_XML; diff --git a/MLL/ModeloOSPecas.cs b/MLL/ModeloOSPecas.cs index ae63d32..b1036bb 100644 --- a/MLL/ModeloOSPecas.cs +++ b/MLL/ModeloOSPecas.cs @@ -1,9 +1,29 @@ using System; +using System.Drawing; +using System.Security.Cryptography; namespace MLL { public class ModeloOSPecas { + public ModeloOSPecas() + { + ID_OS_PECAS = 0; + CODIGO = string.Empty; + DESCRICAO = string.Empty; + COD_PECA = string.Empty; + VALOR = string.Empty; + TECNICO = string.Empty; + QTD = string.Empty; + DIA = string.Empty; + COD_OS = string.Empty; + CUSTO = string.Empty; + SERIAIS_IN = string.Empty; + XPED = string.Empty; + NITEMPED = string.Empty; + COD_BAIXA = string.Empty; + LOTES = string.Empty; + } public ModeloOSPecas(int iD_OS_PECAS, string cODIGO, string dESCRICAO, string cOD_PECA, string vALOR, string tECNICO, string qTD, string dIA, string cOD_OS, string cUSTO, string sERIAIS_IN, string xPED, string nITEMPED, string cOD_BAIXA, string lOTES) diff --git a/MLL/ModeloOSPerson.cs b/MLL/ModeloOSPerson.cs index df7348e..97fbda9 100644 --- a/MLL/ModeloOSPerson.cs +++ b/MLL/ModeloOSPerson.cs @@ -1,9 +1,133 @@ using System; +using static System.Net.Mime.MediaTypeNames; namespace MLL { public class ModeloOSPerson { + public ModeloOSPerson() + { + ID_OS_PERSON = 0; + TX_DESC = string.Empty; + TX_MARCA = string.Empty; + TX_MODELO = string.Empty; + TX_SERIE = string.Empty; + TX_PAT = string.Empty; + TX_DESLOCA = string.Empty; + TX_TERCEIROS = string.Empty; + COBRA_DESLOCA = string.Empty; + COBRA_TERCEIROS = string.Empty; + PRAZO_GARANTIA = string.Empty; + TERMO_GARANTIA = string.Empty; + MODELO_RECEBE = string.Empty; + MODELO_ENTREGA = string.Empty; + TEXTO1 = string.Empty; + TEXTO2 = string.Empty; + TEXTO3 = string.Empty; + TEXTO4 = string.Empty; + TEXTO5 = string.Empty; + COPIAS_REC = string.Empty; + COPIAS_ENT = string.Empty; + OBS_REC1 = string.Empty; + OBS_REC2 = string.Empty; + OBS_REC3 = string.Empty; + OBS_REC4 = string.Empty; + RODAPE_DEV1 = string.Empty; + RODAPE_DEV2 = string.Empty; + RODAPE_ENT1 = string.Empty; + RODAPE_ENT2 = string.Empty; + PORTA_PRN = string.Empty; + COM_PECASERV = string.Empty; + SO_TOTAL = string.Empty; + MYLOGO = string.Empty; + OS_COM_ENDE = string.Empty; + OS_SALTA_NP = string.Empty; + ORCA_POE_SERV = string.Empty; + ORCA_POE_PECA = string.Empty; + ORCA_MAIL_TIPO = string.Empty; + ORCA_MAIL_SOLI = string.Empty; + ORCA_PRINT_GRAF = string.Empty; + MYLOGO_TELA = string.Empty; + OS_ABERTURA = string.Empty; + OS_FINALIZA = string.Empty; + OS_TITULO = string.Empty; + OS_TEXTO_ENTREGA = string.Empty; + OS_TEXTO_ENCERRA = string.Empty; + OS_TEXTO_DEVOLVE = string.Empty; + CARTAS_FORNECE = string.Empty; + CARTAS_CLIENTE = string.Empty; + CARTAS_CONTRATO = string.Empty; + CARTAS_ORCAS = string.Empty; + CARTAS_LAUDO = string.Empty; + OS_POE_OBS = string.Empty; + COM_PECASERV_E = string.Empty; + NO_EPSON = string.Empty; + ORCA_VIDA = string.Empty; + OS_COM_CPF = string.Empty; + ORCA_POE_END = string.Empty; + ORCA_POE_CPF = string.Empty; + ORCA_FORMAS = string.Empty; + OS_COM_DESC = string.Empty; + OS_TEXTO_EQUIPAM = string.Empty; + NF_OS = string.Empty; + VENDA_ORCA_VALIDADE = string.Empty; + VENDA_ORCA_EXCLUI = string.Empty; + VENDA_MAXDESC = string.Empty; + VENDA_TEXTOLIVRE = string.Empty; + VENDA_IMPRAPOS = string.Empty; + VENDA_TEXTOLIVRE_ORCA = string.Empty; + OS_GARANTIA_VAR = string.Empty; + LOGO_VENDA = string.Empty; + OS_CONTROLA3 = string.Empty; + ORCA_MOD_BELO = string.Empty; + OS_DRAFT_SALTOS = string.Empty; + OS_KILOMET = string.Empty; + OS_CONDI_GERAL = string.Empty; + OS_BOLETIM_EMAIL = string.Empty; + OS_BOLETIM_LAST = string.Empty; + VENDA_DRAFT_PORTA = string.Empty; + VENDA_DRAFT_SALTOS = string.Empty; + VENDA_40COLUNAS = string.Empty; + VENDA_COMP_ASSINA = string.Empty; + VENDA_COMP_RECIBO = string.Empty; + VENDA_MAIL_IMG = string.Empty; + ORCA_MAIL_IMG = string.Empty; + ORCA_MOSTRA_UN = string.Empty; + CK_ORCA_MOSTRA_COD = string.Empty; + OS_BOLETIM_FECHADAS = string.Empty; + OS_BOLETIM_SO_DO_DIA = string.Empty; + VENDA_ORCA_OCULTA = string.Empty; + VENDA_40COLUNAS_GRAF = string.Empty; + ORCA_TEXTO_APROVA = string.Empty; + ORCA_PAP_TIMBRADO = string.Empty; + BAIXA_ESTOQUE_NAHORA = string.Empty; + QUERO_FABRICA = string.Empty; + VENDA_CLI_DIRECT = string.Empty; + VENDA_BALCAO_SEPARADO = string.Empty; + VENDA_ORCA_DADOS_CLI = string.Empty; + OS_PRINT_GUIA = string.Empty; + OS_FICHA_SERVICO = string.Empty; + WEB_PC_ENVIO = string.Empty; + WEB_TEXTO_1 = string.Empty; + WEB_TEXTO_2 = string.Empty; + WEB_TEXTO_3 = string.Empty; + WEB_TEXTO_4 = string.Empty; + WEB_TEXTO_5 = string.Empty; + WEB_EMAIL_RETORNO = string.Empty; + WEB_FORMA_PG = string.Empty; + WEB_OPC_OS = string.Empty; + OS_EMAIL_ABRIR = string.Empty; + OS_EMAIL_FECHAR = string.Empty; + OS_CHAVE_WEB_TITULO = string.Empty; + ORCA_CHAVE_WEB_TITULO = string.Empty; + VENDA_OPCOES = string.Empty; + SUPORTECOD = string.Empty; + SUPORTEDTA = string.Empty; + SERIAL_NFE_AMB = string.Empty; + CARTAS_LAUDO1 = string.Empty; + CARTAS_LAUDO2 = string.Empty; + VENDAS_CLIENTE_FIDELIZADO = string.Empty; + } public ModeloOSPerson(int iD_OS_PERSON, string tX_DESC, string tX_MARCA, string tX_MODELO, string tX_SERIE, string tX_PAT, string tX_DESLOCA, string tX_TERCEIROS, string cOBRA_DESLOCA, string cOBRA_TERCEIROS, string pRAZO_GARANTIA, string tERMO_GARANTIA, string mODELO_RECEBE, string mODELO_ENTREGA, string tEXTO1, diff --git a/MLL/ModeloOSServicos.cs b/MLL/ModeloOSServicos.cs index c4cd16d..14455f0 100644 --- a/MLL/ModeloOSServicos.cs +++ b/MLL/ModeloOSServicos.cs @@ -4,6 +4,27 @@ namespace MLL { public class ModeloOSServicos { + public ModeloOSServicos() + { + ID_OS_SEVICOS = 0; + CODIGO = string.Empty; + DESCRICAO = string.Empty; + TOTAL = string.Empty; + INICIO = string.Empty; + FIM = string.Empty; + TECNICO = string.Empty; + TIPO = string.Empty; + OS_NUM = string.Empty; + COD_SERV = string.Empty; + QTD = string.Empty; + V_FRETE = string.Empty; + V_SEGURO = string.Empty; + V_OUTROS = string.Empty; + NUM_NF_PED = string.Empty; + CUSTO = string.Empty; + XPED = string.Empty; + NITEMPED = string.Empty; + } public ModeloOSServicos(int iD_OS_SEVICOS, string cODIGO, string dESCRICAO, string tOTAL, string iNICIO, string fIM, string tECNICO, string tIPO, string oS_NUM, string cOD_SERV, string qTD, string v_FRETE, string v_SEGURO, string v_OUTROS, string nUM_NF_PED, string cUSTO, string xPED, string nITEMPED) { ID_OS_SEVICOS = iD_OS_SEVICOS; diff --git a/MLL/ModeloOrcaPadrao.cs b/MLL/ModeloOrcaPadrao.cs index 4b372f8..fa53662 100644 --- a/MLL/ModeloOrcaPadrao.cs +++ b/MLL/ModeloOrcaPadrao.cs @@ -4,6 +4,15 @@ namespace MLL { public class ModeloOrcaPadrao { + public ModeloOrcaPadrao() + { + ID_ORCA_PADRAO = 0; + CODIGO = string.Empty; + NOME = string.Empty; + OBS = string.Empty; + SHOW_OBS = string.Empty; + USADO = string.Empty; + } public ModeloOrcaPadrao(int iD_ORCA_PADRAO, string cODIGO, string nOME, string oBS, string sHOW_OBS, string uSADO) { ID_ORCA_PADRAO = iD_ORCA_PADRAO; diff --git a/MLL/ModeloOrcaPadraoItens.cs b/MLL/ModeloOrcaPadraoItens.cs index a30d1a7..5d7948b 100644 --- a/MLL/ModeloOrcaPadraoItens.cs +++ b/MLL/ModeloOrcaPadraoItens.cs @@ -4,6 +4,15 @@ namespace MLL { public class ModeloOrcaPadraoItens { + public ModeloOrcaPadraoItens() + { + ID_ORCA_PADRAO_ITENS = 0; + CODIGO = string.Empty; + COD_ORCA = string.Empty; + ITEM_TIPO = string.Empty; + ITEM_COD = string.Empty; + ITEM_QTD = string.Empty; + } public ModeloOrcaPadraoItens(int iD_ORCA_PADRAO_ITENS, string cODIGO, string cOD_ORCA, string iTEM_TIPO, string iTEM_COD, string iTEM_QTD) { ID_ORCA_PADRAO_ITENS = iD_ORCA_PADRAO_ITENS; diff --git a/MLL/ModeloOrcas.cs b/MLL/ModeloOrcas.cs index a40cf38..e87966e 100644 --- a/MLL/ModeloOrcas.cs +++ b/MLL/ModeloOrcas.cs @@ -1,9 +1,30 @@ using System; +using System.Security.Cryptography; namespace MLL { public class ModeloOrcas { + public ModeloOrcas() + { + ID_ORCAS = 0; + CODIGO = string.Empty; + OPERADOR = string.Empty; + TOTAL = string.Empty; + DIA = string.Empty; + COMISSAO = string.Empty; + CLIENTE = string.Empty; + DESCONTO = string.Empty; + TOTAL_SERVICOS = string.Empty; + TOTAL_PECAS = string.Empty; + TOTAL_IMPOSTOS = string.Empty; + VENCIMENTO = string.Empty; + TOTAL_GERAL = string.Empty; + SITUACAO = string.Empty; + CLIENTE_CAD = string.Empty; + CLIENTE_NOME = string.Empty; + OBS = string.Empty; + } public ModeloOrcas(int iD_ORCAS, string cODIGO, string oPERADOR, string tOTAL, string dIA, string cOMISSAO, string cLIENTE, string dESCONTO, string tOTAL_SERVICOS, string tOTAL_PECAS, string tOTAL_IMPOSTOS, string vENCIMENTO, string tOTAL_GERAL, diff --git a/MLL/ModeloOrdens.cs b/MLL/ModeloOrdens.cs index afad194..c1c21f0 100644 --- a/MLL/ModeloOrdens.cs +++ b/MLL/ModeloOrdens.cs @@ -1,9 +1,63 @@ using System; +using System.Reflection; +using System.Text.RegularExpressions; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloOrdens { + public ModeloOrdens() + { + ID_ORDENS = 0; + CODIGO = string.Empty; + COD_CLIENTE = string.Empty; + ENTRADA = string.Empty; + PRONTO = string.Empty; + SAIDA = string.Empty; + GARANTIA = string.Empty; + SITUACAO = string.Empty; + V_MAO = string.Empty; + V_PECAS = string.Empty; + V_DESLOCA = string.Empty; + V_TERCEIRO = string.Empty; + V_OUTROS = string.Empty; + COD_EQUIP = string.Empty; + APARELHO = string.Empty; + MARCA = string.Empty; + MODELO = string.Empty; + SERIE = string.Empty; + PATRIMONIO = string.Empty; + ACESSORIO = string.Empty; + DEFEITO = string.Empty; + OBS_SERVICO = string.Empty; + LAUDO = string.Empty; + OBS_APARELHO = string.Empty; + KILOMET = string.Empty; + EM_USO = string.Empty; + NF_NUMERO = string.Empty; + OS_REABERTA = string.Empty; + OS_OUTROS = string.Empty; + OS_OUTROS_EMIT = string.Empty; + OS_SINAL = string.Empty; + PRIOR = string.Empty; + OS_NF_REMESSA = string.Empty; + OS_NF_VALOR = string.Empty; + OS_NF_EMIT = string.Empty; + OS_GARANTIDOR = string.Empty; + OS_GARANTIDOR_SN = string.Empty; + WEB_CHAVE = string.Empty; + WEB_SENHA = string.Empty; + USER_MICRO = string.Empty; + ORCA_FORMAS = string.Empty; + OS_FABRICANTE = string.Empty; + ALERTA_ABANDONO = string.Empty; + TECNICO_FIXO = string.Empty; + NFC_NUMERO = string.Empty; + PREVISTO = string.Empty; + ATENDENTE = string.Empty; + NFS_NUMERO = string.Empty; + } public ModeloOrdens(int iD_ORDENS, string cODIGO, string cOD_CLIENTE, string eNTRADA, string pRONTO, string sAIDA, string gARANTIA, string sITUACAO, string v_MAO, string v_PECAS, string v_DESLOCA, string v_TERCEIRO, string v_OUTROS, string cOD_EQUIP, string aPARELHO, string mARCA, string mODELO, diff --git a/MLL/ModeloOrdensContato.cs b/MLL/ModeloOrdensContato.cs index a782e9b..c4d35ed 100644 --- a/MLL/ModeloOrdensContato.cs +++ b/MLL/ModeloOrdensContato.cs @@ -4,6 +4,16 @@ namespace MLL { public class ModeloOrdensContato { + public ModeloOrdensContato() + { + ID_ORDENS_CONTATO = 0; + CODIGO = string.Empty; + COD_ORDEM = string.Empty; + DESCRICAO = string.Empty; + QUEM = string.Empty; + USUARIO = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloOrdensContato(int iD_ORDENS_CONTATO, string cODIGO, string cOD_ORDEM, string dESCRICAO, string qUEM, string uSUARIO, string dATA_CADASTRO) { ID_ORDENS_CONTATO = iD_ORDENS_CONTATO; diff --git a/MLL/ModeloOrdensDeslocamento.cs b/MLL/ModeloOrdensDeslocamento.cs index 4e9a2b4..72da47d 100644 --- a/MLL/ModeloOrdensDeslocamento.cs +++ b/MLL/ModeloOrdensDeslocamento.cs @@ -1,9 +1,28 @@ using System; +using System.Security.Cryptography; namespace MLL { public class ModeloOrdensDeslocamento { + public ModeloOrdensDeslocamento() + { + ID_ORDENS_DESLOCAMENTO = 0; + CODIGO = string.Empty; + COD_ORDEM = string.Empty; + DIA = string.Empty; + HORA_SAI = string.Empty; + KM_SAI = string.Empty; + HORA_CHEGA = string.Empty; + KM_CHEGA = string.Empty; + HORA_VOLTA_SAI = string.Empty; + KM_VOLTA_SAI = string.Empty; + HORA_VOLTA = string.Empty; + KM_VOLTA = string.Empty; + ALIMENTA = string.Empty; + HOSPEDA = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloOrdensDeslocamento(int iD_ORDENS_DESLOCAMENTO, string cODIGO, string cOD_ORDEM, string dIA, string hORA_SAI, string kM_SAI, string hORA_CHEGA, string kM_CHEGA, string hORA_VOLTA_SAI, string kM_VOLTA_SAI, string hORA_VOLTA, string kM_VOLTA, string aLIMENTA, string hOSPEDA, string dATA_CADASTRO) { ID_ORDENS_DESLOCAMENTO = iD_ORDENS_DESLOCAMENTO; diff --git a/MLL/ModeloOrdensInsumos.cs b/MLL/ModeloOrdensInsumos.cs index 342825b..f0e6a84 100644 --- a/MLL/ModeloOrdensInsumos.cs +++ b/MLL/ModeloOrdensInsumos.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloOrdensInsumos { + public ModeloOrdensInsumos() + { + ID_ORDENS_INSUMOS = 0; + CODIGO = string.Empty; + COD_OS = string.Empty; + COD_ITEM = string.Empty; + QTD = string.Empty; + CUSTO_UNIT = string.Empty; + CUSTO = string.Empty; + OBSERVACOES = string.Empty; + } public ModeloOrdensInsumos(int iD_ORDENS_INSUMOS, string cODIGO, string cOD_OS, string cOD_ITEM, string qTD, string cUSTO_UNIT, string cUSTO, string oBSERVACOES) { ID_ORDENS_INSUMOS = iD_ORDENS_INSUMOS; diff --git a/MLL/ModeloParametros.cs b/MLL/ModeloParametros.cs index fd4c8fb..c936c5b 100644 --- a/MLL/ModeloParametros.cs +++ b/MLL/ModeloParametros.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloParametros { + public ModeloParametros() + { + ID_PARAMETROS = 0; + CODIGO = string.Empty; + NOME_PAR = string.Empty; + DESCRICAO = string.Empty; + PX = string.Empty; + PY = string.Empty; + CAMPO = string.Empty; + ATIVO = string.Empty; + } public ModeloParametros(int iD_PARAMETROS, string cODIGO, string nOME_PAR, string dESCRICAO, string pX, string pY, string cAMPO, string aTIVO) { ID_PARAMETROS = iD_PARAMETROS; diff --git a/MLL/ModeloPedidos.cs b/MLL/ModeloPedidos.cs index 307547c..213c219 100644 --- a/MLL/ModeloPedidos.cs +++ b/MLL/ModeloPedidos.cs @@ -1,9 +1,44 @@ using System; +using System.Drawing; namespace MLL { public class ModeloPedidos { + public ModeloPedidos() + { + ID_PEDIDOS = 0; + CODIGO = string.Empty; + TIPO = string.Empty; + DATA_PEDIDO = string.Empty; + FORMA_PGTO = string.Empty; + ENTREGA_DIA = string.Empty; + ENTREGA_CONTATO = string.Empty; + ENTREGA_ENDERECO = string.Empty; + ENTREGA_CIDADE = string.Empty; + ENTREGA_UF = string.Empty; + ENTREGA_CEP = string.Empty; + ENTREGA_TELEFONE = string.Empty; + DATA_ENVIO = string.Empty; + OBSERVACOES = string.Empty; + FORNECEDOR = string.Empty; + TRANSPORTADOR = string.Empty; + VENDEDOR = string.Empty; + VALOR = string.Empty; + SITUACAO = string.Empty; + DESCONTO = string.Empty; + NUM_NF_PED = string.Empty; + V_FRETE = string.Empty; + V_SEGURO = string.Empty; + V_OUTROS = string.Empty; + PED_PRAZO = string.Empty; + PED_FORMA = string.Empty; + PED_OBS = string.Empty; + CHAVE_NFE_COMPRA = string.Empty; + PAGAMENTO_PEDIDO = string.Empty; + PAGAMENTO_FRETE = string.Empty; + RASTREIO_FRETE = string.Empty; + } public ModeloPedidos(int iD_PEDIDOS, string cODIGO, string tIPO, string dATA_PEDIDO, string fORMA_PGTO, string eNTREGA_DIA, string eNTREGA_CONTATO, string eNTREGA_ENDERECO, string eNTREGA_CIDADE, string eNTREGA_UF, string eNTREGA_CEP, string eNTREGA_TELEFONE, string dATA_ENVIO, string oBSERVACOES, diff --git a/MLL/ModeloPerfil.cs b/MLL/ModeloPerfil.cs index 3ea0768..09c5a2b 100644 --- a/MLL/ModeloPerfil.cs +++ b/MLL/ModeloPerfil.cs @@ -1,19 +1,30 @@ -public class ModeloPerfil +namespace MLL { - public ModeloPerfil(int id, int empresaId, string nome, string descricao, bool ativo) + public class ModeloPerfil { - Id = id; - EmpresaId = empresaId; - Nome = nome; - Descricao = descricao; - Ativo = ativo; + public ModeloPerfil() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Descricao = string.Empty; + Ativo = false; + } + public ModeloPerfil(int id, int empresaId, string nome, string descricao, bool ativo) + { + Id = id; + EmpresaId = empresaId; + Nome = nome; + Descricao = descricao; + Ativo = ativo; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string Nome { get; set; } + public string Descricao { get; set; } + + public bool Ativo { get; set; } } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public string Nome { get; set; } - public string Descricao { get; set; } - - public bool Ativo { get; set; } -} \ No newline at end of file +} diff --git a/MLL/ModeloPerfilPermissoes.cs b/MLL/ModeloPerfilPermissoes.cs index 0d88ee8..3609b37 100644 --- a/MLL/ModeloPerfilPermissoes.cs +++ b/MLL/ModeloPerfilPermissoes.cs @@ -4,6 +4,12 @@ namespace MLL { public class ModeloPerfilPermissoes { + public ModeloPerfilPermissoes() + { + Id = 0; + PerfilId = 0; + PermissaoId = 0; + } public ModeloPerfilPermissoes(int id, int perfilId, int permissaoId) { Id = id; diff --git a/MLL/ModeloPerfis.cs b/MLL/ModeloPerfis.cs index 8bc55a9..b2929fe 100644 --- a/MLL/ModeloPerfis.cs +++ b/MLL/ModeloPerfis.cs @@ -4,6 +4,14 @@ namespace MLL { public class ModeloPerfis { + public ModeloPerfis() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Descricao = string.Empty; + Ativo = false; + } public ModeloPerfis(int id, int empresaId, string nome, string descricao, bool ativo) { Id = id; diff --git a/MLL/ModeloPermissao.cs b/MLL/ModeloPermissao.cs index 26a5053..4d76405 100644 --- a/MLL/ModeloPermissao.cs +++ b/MLL/ModeloPermissao.cs @@ -1,14 +1,23 @@ -public class ModeloPermissao +namespace MLL { - public ModeloPermissao(int id, string nome, string descricao) + public class ModeloPermissao { - Id = id; - Nome = nome; - Descricao = descricao; + public ModeloPermissao() + { + Id = 0; + Nome = string.Empty; + Descricao = string.Empty; + } + public ModeloPermissao(int id, string nome, string descricao) + { + Id = id; + Nome = nome; + Descricao = descricao; + } + + public int Id { get; set; } + + public string Nome { get; set; } + public string Descricao { get; set; } } - - public int Id { get; set; } - - public string Nome { get; set; } - public string Descricao { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloPermissoes.cs b/MLL/ModeloPermissoes.cs index ac66dc7..20f85ec 100644 --- a/MLL/ModeloPermissoes.cs +++ b/MLL/ModeloPermissoes.cs @@ -2,8 +2,15 @@ namespace MLL { + public class ModeloPermissoes { + public ModeloPermissoes() + { + Id = 0; + Nome = string.Empty; + Descricao = string.Empty; + } public ModeloPermissoes(int id, string nome, string descricao) { Id = id; diff --git a/MLL/ModeloPlanoDeContas.cs b/MLL/ModeloPlanoDeContas.cs index 83d16b0..faac9cd 100644 --- a/MLL/ModeloPlanoDeContas.cs +++ b/MLL/ModeloPlanoDeContas.cs @@ -1,31 +1,47 @@ -public class ModeloPlanoDeContas +namespace MLL { - public ModeloPlanoDeContas(int id, int empresaId, int? contaPaiId, string nome, string codigo, string tipo, bool aceitaLancamento, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + public class ModeloPlanoDeContas { - Id = id; - EmpresaId = empresaId; - ContaPaiId = contaPaiId; - Nome = nome; - Codigo = codigo; - Tipo = tipo; - AceitaLancamento = aceitaLancamento; - Ativo = ativo; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; + public ModeloPlanoDeContas() + { + Id = 0; + EmpresaId = 0; + ContaPaiId = null; + Nome = string.Empty; + Codigo = string.Empty; + Tipo = string.Empty; + AceitaLancamento = false; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } + public ModeloPlanoDeContas(int id, int empresaId, int? contaPaiId, string nome, string codigo, string tipo, bool aceitaLancamento, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + ContaPaiId = contaPaiId; + Nome = nome; + Codigo = codigo; + Tipo = tipo; + AceitaLancamento = aceitaLancamento; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public int? ContaPaiId { get; set; } + + public string Nome { get; set; } + public string Codigo { get; set; } + public string Tipo { get; set; } + + public bool AceitaLancamento { get; set; } + public bool Ativo { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public int? ContaPaiId { get; set; } - - public string Nome { get; set; } - public string Codigo { get; set; } - public string Tipo { get; set; } - - public bool AceitaLancamento { get; set; } - public bool Ativo { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloPlanos.cs b/MLL/ModeloPlanos.cs index 1a213ac..66172f7 100644 --- a/MLL/ModeloPlanos.cs +++ b/MLL/ModeloPlanos.cs @@ -4,6 +4,17 @@ namespace MLL { public class ModeloPlanos { + public ModeloPlanos() + { + ID_PLANOS = 0; + CODIGO = string.Empty; + NOME = string.Empty; + NIVEL = string.Empty; + DEBITO = string.Empty; + CODIGO_PAI = string.Empty; + CODIGO_FILHO = string.Empty; + } + public ModeloPlanos(int iD_PLANOS, string cODIGO, string nOME, string nIVEL, string dEBITO, string cODIGO_PAI, string cODIGO_FILHO) { ID_PLANOS = iD_PLANOS; diff --git a/MLL/ModeloSatFiscalConsumidor.cs b/MLL/ModeloSatFiscalConsumidor.cs index 847e034..898fb03 100644 --- a/MLL/ModeloSatFiscalConsumidor.cs +++ b/MLL/ModeloSatFiscalConsumidor.cs @@ -4,6 +4,55 @@ namespace MLL { public class ModeloSatFiscalConsumidor { + public ModeloSatFiscalConsumidor() + { + ID_SAT_FISCAL_CONSU = 0; + CODIGO = string.Empty; + PRODUCAO = string.Empty; + SERIE = string.Empty; + NATUREZA = string.Empty; + EMISSAO = string.Empty; + DEST_NOME = string.Empty; + DEST_EMAIL = string.Empty; + DEST_CPF_CNPJ = string.Empty; + DEST_IDESTRANGEIRO = string.Empty; + DEST_xLgr = string.Empty; + DEST_CPL = string.Empty; + DEST_nro = string.Empty; + DEST_xBairro = string.Empty; + DEST_cMun = string.Empty; + DEST_xMun = string.Empty; + DEST_UF = string.Empty; + DEST_CEP = string.Empty; + DEST_cPais = string.Empty; + DEST_xPais = string.Empty; + DEST_fone = string.Empty; + FRETE_MODALIDADE = string.Empty; + FRETE_xCNPJ_CPF = string.Empty; + FRETE_xNome = string.Empty; + NFC_PRONTA = string.Empty; + NFC_infCpl = string.Empty; + TOTAL_vBC = string.Empty; + TOTAL_vICMS = string.Empty; + TOTAL_vBCST = string.Empty; + TOTAL_vST = string.Empty; + TOTAL_vProd = string.Empty; + TOTAL_vFrete = string.Empty; + TOTAL_vSeg = string.Empty; + TOTAL_vDesc = string.Empty; + TOTAL_vII = string.Empty; + TOTAL_vIPI = string.Empty; + TOTAL_vPIS = string.Empty; + TOTAL_vCOFINS = string.Empty; + TOTAL_vOutro = string.Empty; + TOTAL_vNF = string.Empty; + TERMINAL = string.Empty; + CHAVE_NFC = string.Empty; + PROTOCOLO = string.Empty; + PROTOCOLO_CANCELA = string.Empty; + SITUACAO = string.Empty; + DATA_CADASTRO = string.Empty; + } public ModeloSatFiscalConsumidor(int iD_SAT_FISCAL_CONSU, string cODIGO, string pRODUCAO, string sERIE, string nATUREZA, string eMISSAO, string dEST_NOME, string dEST_EMAIL, string dEST_CPF_CNPJ, string dEST_IDESTRANGEIRO, string dEST_xLgr, string dEST_CPL, string dEST_nro, string dEST_xBairro, string dEST_cMun, string dEST_xMun, string dEST_UF, string dEST_CEP, string dEST_cPais, string dEST_xPais, string dEST_fone, string fRETE_MODALIDADE, string fRETE_xCNPJ_CPF, string fRETE_xNome, string nFC_PRONTA, string nFC_infCpl, string tOTAL_vBC, string tOTAL_vICMS, string tOTAL_vBCST, string tOTAL_vST, string tOTAL_vProd, string tOTAL_vFrete, string tOTAL_vSeg, string tOTAL_vDesc, string tOTAL_vII, string tOTAL_vIPI, string tOTAL_vPIS, string tOTAL_vCOFINS, string tOTAL_vOutro, string tOTAL_vNF, string tERMINAL, string cHAVE_NFC, string pROTOCOLO, string pROTOCOLO_CANCELA, string sITUACAO, string dATA_CADASTRO) { ID_SAT_FISCAL_CONSU = iD_SAT_FISCAL_CONSU; diff --git a/MLL/ModeloSatFiscalConsumidorFormas.cs b/MLL/ModeloSatFiscalConsumidorFormas.cs index 5dd1c13..df938f5 100644 --- a/MLL/ModeloSatFiscalConsumidorFormas.cs +++ b/MLL/ModeloSatFiscalConsumidorFormas.cs @@ -1,9 +1,22 @@ using System; +using System.Drawing; +using System.Runtime.Intrinsics.X86; namespace MLL { public class ModeloSatFiscalConsumidorFormas { + public ModeloSatFiscalConsumidorFormas() + { + ID_SAT_FISCAL_CONS_FORMAS = 0; + CODIGO = string.Empty; + COD_NFCE = string.Empty; + FORMA = string.Empty; + VALOR = string.Empty; + DATA_CADASTRO = string.Empty; + CNPJ_OPERADORA = string.Empty; + this.TBand = string.Empty; + } public ModeloSatFiscalConsumidorFormas(int iD_SAT_FISCAL_CONS_FORMAS, string cODIGO, string cOD_NFCE, string fORMA, string vALOR, string dATA_CADASTRO, string cNPJ_OPERADORA, string tBand) { ID_SAT_FISCAL_CONS_FORMAS = iD_SAT_FISCAL_CONS_FORMAS; @@ -13,7 +26,7 @@ namespace MLL VALOR = vALOR; DATA_CADASTRO = dATA_CADASTRO; CNPJ_OPERADORA = cNPJ_OPERADORA; - this.tBand = tBand; + this.TBand = tBand; } public int ID_SAT_FISCAL_CONS_FORMAS { get; set; } @@ -23,6 +36,6 @@ namespace MLL public string VALOR { get; set; } public string DATA_CADASTRO { get; set; } public string CNPJ_OPERADORA { get; set; } - public string tBand { get; set; } + public string TBand { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloSatFiscalConsumidorItens.cs b/MLL/ModeloSatFiscalConsumidorItens.cs index 91e41c7..807dfec 100644 --- a/MLL/ModeloSatFiscalConsumidorItens.cs +++ b/MLL/ModeloSatFiscalConsumidorItens.cs @@ -4,6 +4,69 @@ namespace MLL { public class ModeloSatFiscalConsumidorItens { + public ModeloSatFiscalConsumidorItens() + { + ID_SAT_FISCAL_CONS_ITENS = 0; + CODIGO = string.Empty; + COD_NFCE = string.Empty; + ITEM_TIPO = string.Empty; + ITEM_CEAN = string.Empty; + ITEM_CPROD = string.Empty; + ITEM_XPROD = string.Empty; + ITEM_INF_ADIC = string.Empty; + ITEM_CFOP = string.Empty; + ITEM_NCM = string.Empty; + ITEM_UNCOM = string.Empty; + ITEM_QCOM = string.Empty; + ITEM_VPROD = string.Empty; + ITEM_VOUTRO = string.Empty; + ITEM_VFRETE = string.Empty; + ITEM_VSEG = string.Empty; + ITEM_VDESC = string.Empty; + ITEM_vTotTrib = string.Empty; + ITEM_ORIGEM = string.Empty; + ITEM_CST = string.Empty; + DATA_CADASTRO = string.Empty; + ITEM_ICMS_modBC = string.Empty; + ITEM_ICMS_pRedBC = string.Empty; + ITEM_ICMS_vBC = string.Empty; + ITEM_ICMS_pICMS = string.Empty; + ITEM_ICMS_vICMS = string.Empty; + ITEM_ICMS_vICMSDeson = string.Empty; + ITEM_ICMS_motDesICMS = string.Empty; + ITEM_ICMS_modBCST = string.Empty; + ITEM_ICMS_pMVAST = string.Empty; + ITEM_ICMS_pRedBCST = string.Empty; + ITEM_ICMS_vBCST = string.Empty; + ITEM_ICMS_pICMSST = string.Empty; + ITEM_ICMS_vICMSST = string.Empty; + ITEM_cProdANP = string.Empty; + ITEM_CEST = string.Empty; + this.CBenef = string.Empty; + ITEM_pFCP = string.Empty; + ITEM_vFCP = string.Empty; + ITEM_vBCFCP = string.Empty; + ITEM_vBCFCPST = string.Empty; + ITEM_pFCPST = string.Empty; + ITEM_vFCPST = string.Empty; + ITEM_pST = string.Empty; + ITEM_vBCFCPSTRet = string.Empty; + ITEM_pFCPSTRet = string.Empty; + ITEM_vFCPSTRet = string.Empty; + ITEM_PIS_CST = string.Empty; + ITEM_PIS_vBC = string.Empty; + ITEM_PIS_pPIS = string.Empty; + ITEM_PIS_vPIS = string.Empty; + ITEM_COFINS_CST = string.Empty; + ITEM_COFINS_vBC = string.Empty; + ITEM_COFINS_pCOFINS = string.Empty; + ITEM_COFINS_vCOFINS = string.Empty; + this.VICMSSubstituto = string.Empty; + this.PRedBCEfet = string.Empty; + this.VBCEfet = string.Empty; + this.PICMSEfet = string.Empty; + this.VICMSEfet = string.Empty; + } public ModeloSatFiscalConsumidorItens(int iD_SAT_FISCAL_CONS_ITENS, string cODIGO, string cOD_NFCE, string iTEM_TIPO, string iTEM_CEAN, string iTEM_CPROD, string iTEM_XPROD, string iTEM_INF_ADIC, string iTEM_CFOP, string iTEM_NCM, string iTEM_UNCOM, string iTEM_QCOM, string iTEM_VPROD, string iTEM_VOUTRO, @@ -52,7 +115,7 @@ namespace MLL ITEM_ICMS_vICMSST = iTEM_ICMS_vICMSST; ITEM_cProdANP = iTEM_cProdANP; ITEM_CEST = iTEM_CEST; - this.cBenef = cBenef; + this.CBenef = cBenef; ITEM_pFCP = iTEM_pFCP; ITEM_vFCP = iTEM_vFCP; ITEM_vBCFCP = iTEM_vBCFCP; @@ -71,11 +134,11 @@ namespace MLL ITEM_COFINS_vBC = iTEM_COFINS_vBC; ITEM_COFINS_pCOFINS = iTEM_COFINS_pCOFINS; ITEM_COFINS_vCOFINS = iTEM_COFINS_vCOFINS; - this.vICMSSubstituto = vICMSSubstituto; - this.pRedBCEfet = pRedBCEfet; - this.vBCEfet = vBCEfet; - this.pICMSEfet = pICMSEfet; - this.vICMSEfet = vICMSEfet; + this.VICMSSubstituto = vICMSSubstituto; + this.PRedBCEfet = pRedBCEfet; + this.VBCEfet = vBCEfet; + this.PICMSEfet = pICMSEfet; + this.VICMSEfet = vICMSEfet; } public int ID_SAT_FISCAL_CONS_ITENS { get; set; } @@ -116,7 +179,7 @@ namespace MLL public string ITEM_cProdANP { get; set; } public string ITEM_CEST { get; set; } - public string cBenef { get; set; } + public string CBenef { get; set; } public string ITEM_pFCP { get; set; } public string ITEM_vFCP { get; set; } @@ -139,10 +202,10 @@ namespace MLL public string ITEM_COFINS_pCOFINS { get; set; } public string ITEM_COFINS_vCOFINS { get; set; } - public string vICMSSubstituto { get; set; } - public string pRedBCEfet { get; set; } - public string vBCEfet { get; set; } - public string pICMSEfet { get; set; } - public string vICMSEfet { get; set; } + public string VICMSSubstituto { get; set; } + public string PRedBCEfet { get; set; } + public string VBCEfet { get; set; } + public string PICMSEfet { get; set; } + public string VICMSEfet { get; set; } } } \ No newline at end of file diff --git a/MLL/ModeloServico.cs b/MLL/ModeloServico.cs index 43260bf..6a872d1 100644 --- a/MLL/ModeloServico.cs +++ b/MLL/ModeloServico.cs @@ -1,37 +1,55 @@ -public class ModeloServico +namespace MLL { - public ModeloServico(int id, int empresaId, string nome, string descricao, decimal valorPadrao, decimal? custo, string tipoComissao, decimal valorComissao, int? tempoEstimado, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + public class ModeloServico { - Id = id; - EmpresaId = empresaId; - Nome = nome; - Descricao = descricao; - ValorPadrao = valorPadrao; - Custo = custo; - TipoComissao = tipoComissao; - ValorComissao = valorComissao; - TempoEstimado = tempoEstimado; - Ativo = ativo; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; + public ModeloServico() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Descricao = string.Empty; + ValorPadrao = 0; + Custo = 0; + TipoComissao = string.Empty; + ValorComissao = 0; + TempoEstimado = 0; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } + public ModeloServico(int id, int empresaId, string nome, string descricao, decimal valorPadrao, decimal? custo, string tipoComissao, decimal valorComissao, int? tempoEstimado, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + Nome = nome; + Descricao = descricao; + ValorPadrao = valorPadrao; + Custo = custo; + TipoComissao = tipoComissao; + ValorComissao = valorComissao; + TempoEstimado = tempoEstimado; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string Nome { get; set; } + public string Descricao { get; set; } + + public decimal ValorPadrao { get; set; } + public decimal? Custo { get; set; } + + public string TipoComissao { get; set; } + public decimal ValorComissao { get; set; } + + public int? TempoEstimado { get; set; } + + public bool Ativo { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public string Nome { get; set; } - public string Descricao { get; set; } - - public decimal ValorPadrao { get; set; } - public decimal? Custo { get; set; } - - public string TipoComissao { get; set; } - public decimal ValorComissao { get; set; } - - public int? TempoEstimado { get; set; } - - public bool Ativo { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloServicos.cs b/MLL/ModeloServicos.cs index 8527f22..66470cf 100644 --- a/MLL/ModeloServicos.cs +++ b/MLL/ModeloServicos.cs @@ -4,6 +4,22 @@ namespace MLL { public class ModeloServicos { + public ModeloServicos() + { + + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Descricao = string.Empty; + ValorPadrao = 0; + Custo = 0; + TipoComissao = string.Empty; + ValorComissao = 0; + TempoEstimado = 0; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloServicos(int id, int empresaId, string nome, string descricao, decimal valorPadrao, decimal? custo, string tipoComissao, decimal valorComissao, int? tempoEstimado, bool ativo, DateTime? criadoEm, DateTime? atualizadoEm) { Id = id; diff --git a/MLL/ModeloSituacoes.cs b/MLL/ModeloSituacoes.cs index 506657f..1002c4d 100644 --- a/MLL/ModeloSituacoes.cs +++ b/MLL/ModeloSituacoes.cs @@ -4,6 +4,21 @@ namespace MLL { public class ModeloSituacoes { + public ModeloSituacoes() + { + ID_SITUACOES = 0; + CODIGO = string.Empty; + NOME = string.Empty; + ETAPA1 = string.Empty; + ETAPA2 = string.Empty; + ETAPA3 = string.Empty; + ETAPA3_PG = string.Empty; + PRONTO = string.Empty; + SUBGRUPO = string.Empty; + COR_FONTE = string.Empty; + COR_FUNDO = string.Empty; + PLANO_CONTA = string.Empty; + } public ModeloSituacoes(int iD_SITUACOES, string cODIGO, string nOME, string eTAPA1, string eTAPA2, string eTAPA3, string eTAPA3_PG, string pRONTO, string sUBGRUPO, string cOR_FONTE, string cOR_FUNDO, string pLANO_CONTA) { ID_SITUACOES = iD_SITUACOES; diff --git a/MLL/ModeloSituacoesOS.cs b/MLL/ModeloSituacoesOS.cs index 66603d2..f8b7013 100644 --- a/MLL/ModeloSituacoesOS.cs +++ b/MLL/ModeloSituacoesOS.cs @@ -1,9 +1,27 @@ using System; +using System.Runtime.Intrinsics.Arm; namespace MLL { public class ModeloSituacoesOS { + public ModeloSituacoesOS() + { + Id = 0; + EmpresaId = 0; + Descricao = string.Empty; + Tipo = string.Empty; + ConsideraAberta = false; + ConsideraFechada = false; + MarcaComoPronto = false; + CorFundo = string.Empty; + CorFonte = string.Empty; + PlanoContasId = null; + Ordem = null; + Ativo = false; + CriadoEm = null; + AtualizadoEm = null; + } public ModeloSituacoesOS(int id, int empresaId, string descricao, string tipo, bool consideraAberta, bool consideraFechada, bool marcaComoPronto, string corFundo, string corFonte, int? planoContasId, int? ordem, bool ativo, DateTime? criadoEm, DateTime? atualizadoEm) { Id = id; diff --git a/MLL/ModeloTransportadora.cs b/MLL/ModeloTransportadora.cs index 023965f..48b1213 100644 --- a/MLL/ModeloTransportadora.cs +++ b/MLL/ModeloTransportadora.cs @@ -1,60 +1,95 @@ -public class ModeloTransportadora +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace mll { - public ModeloTransportadora(int id, int empresaId, string razaoSocial, string nomeFantasia, string cNPJ, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string tipoFrete, int? prazoEntrega, decimal? valorFretePadrao, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + + + public class ModeloTransportadora { - Id = id; - EmpresaId = empresaId; - RazaoSocial = razaoSocial; - NomeFantasia = nomeFantasia; - CNPJ = cNPJ; - Telefone = telefone; - Celular = celular; - Whatsapp = whatsapp; - Email = email; - Cep = cep; - Endereco = endereco; - Numero = numero; - Complemento = complemento; - Bairro = bairro; - Cidade = cidade; - UF = uF; - TipoFrete = tipoFrete; - PrazoEntrega = prazoEntrega; - ValorFretePadrao = valorFretePadrao; - Observacoes = observacoes; - Ativo = ativo; - CriadoEm = criadoEm; - AtualizadoEm = atualizadoEm; + public ModeloTransportadora() + { + Id = 0; + EmpresaId = 0; + RazaoSocial = string.Empty; + NomeFantasia = string.Empty; + CNPJ = string.Empty; + Telefone = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = null; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + TipoFrete = string.Empty; + PrazoEntrega = null; + ValorFretePadrao = null; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } + + public ModeloTransportadora(int id, int empresaId, string razaoSocial, string nomeFantasia, string cNPJ, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string tipoFrete, int? prazoEntrega, decimal? valorFretePadrao, string observacoes, bool ativo, DateTime criadoEm, DateTime atualizadoEm) + { + Id = id; + EmpresaId = empresaId; + RazaoSocial = razaoSocial; + NomeFantasia = nomeFantasia; + CNPJ = cNPJ; + Telefone = telefone; + Celular = celular; + Whatsapp = whatsapp; + Email = email; + Cep = cep; + Endereco = endereco; + Numero = numero; + Complemento = complemento; + Bairro = bairro; + Cidade = cidade; + UF = uF; + TipoFrete = tipoFrete; + PrazoEntrega = prazoEntrega; + ValorFretePadrao = valorFretePadrao; + Observacoes = observacoes; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string RazaoSocial { get; set; } + public string NomeFantasia { get; set; } + public string CNPJ { get; set; } + + public string Telefone { get; set; } + public string Celular { get; set; } + public string Whatsapp { get; set; } + public string Email { get; set; } + + public string Cep { get; set; } + public string Endereco { get; set; } + public int? Numero { get; set; } + public string Complemento { get; set; } + public string Bairro { get; set; } + public string Cidade { get; set; } + public string UF { get; set; } + + public string TipoFrete { get; set; } + public int? PrazoEntrega { get; set; } + public decimal? ValorFretePadrao { get; set; } + + public string Observacoes { get; set; } + + public bool Ativo { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } } - - public int Id { get; set; } - public int EmpresaId { get; set; } - - public string RazaoSocial { get; set; } - public string NomeFantasia { get; set; } - public string CNPJ { get; set; } - - public string Telefone { get; set; } - public string Celular { get; set; } - public string Whatsapp { get; set; } - public string Email { get; set; } - - public string Cep { get; set; } - public string Endereco { get; set; } - public int? Numero { get; set; } - public string Complemento { get; set; } - public string Bairro { get; set; } - public string Cidade { get; set; } - public string UF { get; set; } - - public string TipoFrete { get; set; } - public int? PrazoEntrega { get; set; } - public decimal? ValorFretePadrao { get; set; } - - public string Observacoes { get; set; } - - public bool Ativo { get; set; } - - public DateTime CriadoEm { get; set; } - public DateTime AtualizadoEm { get; set; } } \ No newline at end of file diff --git a/MLL/ModeloTransportadoras.cs b/MLL/ModeloTransportadoras.cs index 034a711..b661c7f 100644 --- a/MLL/ModeloTransportadoras.cs +++ b/MLL/ModeloTransportadoras.cs @@ -1,9 +1,37 @@ using System; +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; namespace MLL { public class ModeloTransportadoras { + public ModeloTransportadoras() + { + Id = 0; + EmpresaId = 0; + RazaoSocial = string.Empty; + NomeFantasia = string.Empty; + CNPJ = string.Empty; + Telefone = string.Empty; + Celular = string.Empty; + Whatsapp = string.Empty; + Email = string.Empty; + Cep = string.Empty; + Endereco = string.Empty; + Numero = null; + Complemento = string.Empty; + Bairro = string.Empty; + Cidade = string.Empty; + UF = string.Empty; + TipoFrete = string.Empty; + PrazoEntrega = null; + ValorFretePadrao = null; + Observacoes = string.Empty; + Ativo = false; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloTransportadoras(int id, int empresaId, string razaoSocial, string nomeFantasia, string cNPJ, string telefone, string celular, string whatsapp, string email, string cep, string endereco, int? numero, string complemento, string bairro, string cidade, string uF, string tipoFrete, int? prazoEntrega, decimal? valorFretePadrao, string observacoes, bool ativo, DateTime? criadoEm, DateTime? atualizadoEm) { Id = id; diff --git a/MLL/ModeloUsuario.cs b/MLL/ModeloUsuario.cs index 936c7ae..b3782b6 100644 --- a/MLL/ModeloUsuario.cs +++ b/MLL/ModeloUsuario.cs @@ -1,5 +1,18 @@ public class ModeloUsuario { + public ModeloUsuario() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Email = string.Empty; + Usuario = string.Empty; + SenhaHash = string.Empty; + Ativo = false; + UltimoLogin = null; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloUsuario(int id, int empresaId, string nome, string email, string usuario, string senhaHash, bool ativo, DateTime? ultimoLogin, DateTime criadoEm, DateTime atualizadoEm) { Id = id; diff --git a/MLL/ModeloUsuarioPerfis.cs b/MLL/ModeloUsuarioPerfis.cs index ac30763..9602927 100644 --- a/MLL/ModeloUsuarioPerfis.cs +++ b/MLL/ModeloUsuarioPerfis.cs @@ -4,6 +4,12 @@ namespace MLL { public class ModeloUsuarioPerfis { + public ModeloUsuarioPerfis() + { + Id = 0; + UsuarioId = 0; + PerfilId = 0; + } public ModeloUsuarioPerfis(int id, int usuarioId, int perfilId) { Id = id; diff --git a/MLL/ModeloUsuarios.cs b/MLL/ModeloUsuarios.cs index b7b0164..856324e 100644 --- a/MLL/ModeloUsuarios.cs +++ b/MLL/ModeloUsuarios.cs @@ -4,6 +4,19 @@ namespace MLL { public class ModeloUsuarios { + public ModeloUsuarios() + { + Id = 0; + EmpresaId = 0; + Nome = string.Empty; + Email = string.Empty; + Usuario = string.Empty; + SenhaHash = string.Empty; + Ativo = false; + UltimoLogin = null; + CriadoEm = DateTime.MinValue; + AtualizadoEm = DateTime.MinValue; + } public ModeloUsuarios(int id, int empresaId, string nome, string email, string usuario, string senhaHash, bool ativo, DateTime? ultimoLogin, DateTime? criadoEm, DateTime? atualizadoEm) { Id = id; diff --git a/MLL/ModeloVendas.cs b/MLL/ModeloVendas.cs index ceb9ee7..77aaf53 100644 --- a/MLL/ModeloVendas.cs +++ b/MLL/ModeloVendas.cs @@ -1,9 +1,40 @@ using System; +using System.Security.Cryptography; namespace MLL { public class ModeloVendas { + public ModeloVendas() + { + ID_VENDAS = 0; + CODIGO = string.Empty; + OPERADOR = string.Empty; + TOTAL = string.Empty; + DIA = string.Empty; + COMISSAO = string.Empty; + CLIENTE = string.Empty; + DESCONTO = string.Empty; + TOTAL_GERAL = string.Empty; + TOTAL_SERVICOS = string.Empty; + TOTAL_PECAS = string.Empty; + TOTAL_IMPOSTOS = string.Empty; + TOTAL_FRETE = string.Empty; + TRANSPORTADORA = string.Empty; + NF_TIPO = string.Empty; + SITUACAO_V = string.Empty; + NF_NUMERO = string.Empty; + OBS_VENDA = string.Empty; + GEROU_CONTA = string.Empty; + CUPOM_NUM = string.Empty; + OPERADOR2 = string.Empty; + COMISSAO_FIXA = string.Empty; + RASTREIO = string.Empty; + OBS_VENDA_INTERNA = string.Empty; + CANCELADA = string.Empty; + NFC_NUMERO = string.Empty; + NFS_NUMERO = string.Empty; + } public ModeloVendas(int iD_VENDAS, string cODIGO, string oPERADOR, string tOTAL, string dIA, string cOMISSAO, string cLIENTE, string dESCONTO, string tOTAL_GERAL, string tOTAL_SERVICOS, string tOTAL_PECAS, string tOTAL_IMPOSTOS, string tOTAL_FRETE, string tRANSPORTADORA, string nF_TIPO, string sITUACAO_V, string nF_NUMERO, string oBS_VENDA, string gEROU_CONTA, string cUPOM_NUM, string oPERADOR2, string cOMISSAO_FIXA, string rASTREIO, string oBS_VENDA_INTERNA, string cANCELADA, string nFC_NUMERO, string nFS_NUMERO) { ID_VENDAS = iD_VENDAS; diff --git a/TLL/Documentohelper.cs b/TLL/Documentohelper.cs new file mode 100644 index 0000000..21c97c6 --- /dev/null +++ b/TLL/Documentohelper.cs @@ -0,0 +1,69 @@ +using CPM; +using System.Linq; +using System.Windows.Forms; + +namespace LevelOS +{ + /// + /// Formata CPF ou CNPJ automaticamente enquanto o usuário digita. + /// Uso: DocumentoHelper.Registrar(txtDocumento); + /// + public static class DocumentoHelper + { + public static void Registrar(LV_TEXTBOX1 txt) + { + bool formatando = false; + + txt.TextChanged += (_, _) => + { + // Evita loop: TextChanged → altera Text → TextChanged → ... + if (formatando) return; + formatando = true; + + try + { + // 1. Extrai só os dígitos + string digits = new string(txt.Text.Where(char.IsDigit).ToArray()); + + // 2. Limita ao tamanho máximo do CNPJ + if (digits.Length > 14) digits = digits[..14]; + + // 3. Formata conforme o tamanho + string formatado = digits.Length <= 11 + ? FormatarCPF(digits) + : FormatarCNPJ(digits); + + // 4. Só atualiza se realmente mudou + if (txt.Text != formatado) + { + txt.Text = formatado; + txt.SelectionStart = formatado.Length; // cursor no final + } + } + finally + { + formatando = false; + } + }; + } + + // CPF: 000.000.000-00 + private static string FormatarCPF(string d) => d.Length switch + { + <= 3 => d, + <= 6 => $"{d[..3]}.{d[3..]}", + <= 9 => $"{d[..3]}.{d[3..6]}.{d[6..]}", + _ => $"{d[..3]}.{d[3..6]}.{d[6..9]}-{d[9..]}" + }; + + // CNPJ: 00.000.000/0000-00 + private static string FormatarCNPJ(string d) => d.Length switch + { + <= 2 => d, + <= 5 => $"{d[..2]}.{d[2..]}", + <= 8 => $"{d[..2]}.{d[2..5]}.{d[5..]}", + <= 12 => $"{d[..2]}.{d[2..5]}.{d[5..8]}/{d[8..]}", + _ => $"{d[..2]}.{d[2..5]}.{d[5..8]}/{d[8..12]}-{d[12..]}" + }; + } +} \ No newline at end of file diff --git a/TLL/TLL.csproj b/TLL/TLL.csproj index fdf2d6a..b9460e4 100644 --- a/TLL/TLL.csproj +++ b/TLL/TLL.csproj @@ -6,6 +6,7 @@ enable + diff --git a/UI/Dashboards/Cadastros/AgendaCadastroPanel.cs b/UI/Dashboards/Cadastros/AgendaCadastroPanel.cs index d884975..94a1230 100644 --- a/UI/Dashboards/Cadastros/AgendaCadastroPanel.cs +++ b/UI/Dashboards/Cadastros/AgendaCadastroPanel.cs @@ -417,9 +417,9 @@ namespace UI pnlEventList.Controls.Clear(); var filtrados = _selectedDate.HasValue - ? _eventos.Where(e => ParseData(e.dDATA).Date == _selectedDate.Value.Date).ToList() - : _eventos.Where(e => ParseData(e.dDATA).Month == _currentMonth.Month - && ParseData(e.dDATA).Year == _currentMonth.Year).ToList(); + ? _eventos.Where(e => ParseData(e.DDATA).Date == _selectedDate.Value.Date).ToList() + : _eventos.Where(e => ParseData(e.DDATA).Month == _currentMonth.Month + && ParseData(e.DDATA).Year == _currentMonth.Year).ToList(); filtrados = filtrados.OrderBy(e => e.HORA).ToList(); @@ -496,7 +496,7 @@ namespace UI card.Controls.Add(new Label { - Text = $"{ev.HORA} — {ev.dDATA}", + Text = $"{ev.HORA} — {ev.DDATA}", Location = new Point(10, 5), AutoSize = true, Font = new Font("Segoe UI", 7.5f, FontStyle.Bold), @@ -752,17 +752,17 @@ namespace UI txtId.Text = ev.ID_AGENDA.ToString(); txtCodigo.Text = ev.CODIGO; txtCompromisso.Text = ev.COMPROMISSO; - txtData.Text = ev.dDATA; + txtData.Text = ev.DDATA; txtDia.Text = ev.DIA; txtHora.Text = ev.HORA; txtFunc.Text = ev.FUNC; txtAvisar.Text = ev.AVISAR; txtOsVinc.Text = ev.OS_VINC; - txtCriadoEm.Text = ev.dDATA; + txtCriadoEm.Text = ev.DDATA; txtAtualizadoEm.Text = DateTime.Now.ToString("dd/MM/yyyy"); chkRealizado.Checked = ev.REALIZADO?.ToUpper() == "S"; - var dt = ParseData(ev.dDATA); + var dt = ParseData(ev.DDATA); if (dt != DateTime.MinValue) { _selectedDate = dt; @@ -779,7 +779,7 @@ namespace UI var set = new HashSet(); foreach (var ev in _eventos) { - var dt = ParseData(ev.dDATA); + var dt = ParseData(ev.DDATA); if (dt != DateTime.MinValue) set.Add(dt.Date); } return set; diff --git a/UI/Dashboards/Cadastros/ClienteCadastroPanel.cs b/UI/Dashboards/Cadastros/ClienteCadastroPanel.cs index baab19b..e9da1c0 100644 --- a/UI/Dashboards/Cadastros/ClienteCadastroPanel.cs +++ b/UI/Dashboards/Cadastros/ClienteCadastroPanel.cs @@ -3,6 +3,7 @@ using CustomMessageBox; using DAL; using System.Drawing; using System.Windows.Forms; +using MLL; namespace UI { diff --git a/UI/Dashboards/Cadastros/EmpresaConfiguracoesPanel.cs b/UI/Dashboards/Cadastros/EmpresaConfiguracoesPanel.cs index 16f4a1e..1192eb8 100644 --- a/UI/Dashboards/Cadastros/EmpresaConfiguracoesPanel.cs +++ b/UI/Dashboards/Cadastros/EmpresaConfiguracoesPanel.cs @@ -2,6 +2,7 @@ using CCH; using CustomMessageBox; using DAL; +using MLL; using System.Drawing; using System.IO; using System.Windows.Forms; diff --git a/UI/Dashboards/Consultas/AgendaConsultaPanel.cs b/UI/Dashboards/Consultas/AgendaConsultaPanel.cs index b1d23fb..07259f6 100644 --- a/UI/Dashboards/Consultas/AgendaConsultaPanel.cs +++ b/UI/Dashboards/Consultas/AgendaConsultaPanel.cs @@ -297,12 +297,12 @@ namespace UI if (DateTime.TryParseExact(txtDataInicio.Text.Trim(), "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out var dtIni)) - _filtrados = _filtrados.Where(e => ParseData(e.dDATA) >= dtIni).ToList(); + _filtrados = _filtrados.Where(e => ParseData(e.DDATA) >= dtIni).ToList(); if (DateTime.TryParseExact(txtDataFim.Text.Trim(), "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out var dtFim)) - _filtrados = _filtrados.Where(e => ParseData(e.dDATA) <= dtFim).ToList(); + _filtrados = _filtrados.Where(e => ParseData(e.DDATA) <= dtFim).ToList(); var sit = cmbSituacao.SelectedItem?.ToString(); if (sit == "Realizado") _filtrados = _filtrados.Where(e => e.REALIZADO?.ToUpper() == "S").ToList(); @@ -326,11 +326,11 @@ namespace UI { dgvAgenda.Rows.Clear(); - foreach (var ev in _filtrados.OrderBy(e => ParseData(e.dDATA)).ThenBy(e => e.HORA)) + foreach (var ev in _filtrados.OrderBy(e => ParseData(e.DDATA)).ThenBy(e => e.HORA)) { dgvAgenda.Rows.Add( ev.ID_AGENDA, ev.CODIGO, ev.COMPROMISSO, - ev.dDATA, ev.HORA, ev.DIA, ev.FUNC, ev.AVISAR, ev.OS_VINC, + ev.DDATA, ev.HORA, ev.DIA, ev.FUNC, ev.AVISAR, ev.OS_VINC, ev.REALIZADO?.ToUpper() == "S" ? "Realizado" : "Pendente" ); } @@ -374,8 +374,8 @@ namespace UI var sb = new System.Text.StringBuilder(); sb.AppendLine("ID;Código;Compromisso;Data;Hora;Dia;Funcionário;Avisar;OS Vinculada;Situação"); - foreach (var ev in _filtrados.OrderBy(e => ParseData(e.dDATA)).ThenBy(e => e.HORA)) - sb.AppendLine($"{ev.ID_AGENDA};{ev.CODIGO};{ev.COMPROMISSO};{ev.dDATA};" + + foreach (var ev in _filtrados.OrderBy(e => ParseData(e.DDATA)).ThenBy(e => e.HORA)) + sb.AppendLine($"{ev.ID_AGENDA};{ev.CODIGO};{ev.COMPROMISSO};{ev.DDATA};" + $"{ev.HORA};{ev.DIA};{ev.FUNC};{ev.AVISAR};{ev.OS_VINC};" + $"{(ev.REALIZADO?.ToUpper() == "S" ? "Realizado" : "Pendente")}");