diff --git a/BLL/BLL.csproj b/BLL/BLL.csproj index fa71b7a..9a00b99 100644 --- a/BLL/BLL.csproj +++ b/BLL/BLL.csproj @@ -6,4 +6,9 @@ enable + + + + + diff --git a/CLL/CLL.csproj b/CLL/CLL.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/CLL/CLL.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/DAL/Class1.cs b/CLL/Class1.cs similarity index 70% rename from DAL/Class1.cs rename to CLL/Class1.cs index 4b86c4c..21093c8 100644 --- a/DAL/Class1.cs +++ b/CLL/Class1.cs @@ -1,4 +1,4 @@ -namespace DAL +namespace CLL { public class Class1 { diff --git a/DAL/DAL.csproj b/DAL/DAL.csproj index fa71b7a..7321d5a 100644 --- a/DAL/DAL.csproj +++ b/DAL/DAL.csproj @@ -6,4 +6,12 @@ enable + + + + + + + + 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/DAL/DadosDaConexao.cs b/DAL/DadosDaConexao.cs new file mode 100644 index 0000000..dffbb12 --- /dev/null +++ b/DAL/DadosDaConexao.cs @@ -0,0 +1,62 @@ +using Microsoft.Data.SqlClient; + +namespace DAL +{ + public static class DadosDaConexao + { + // ===== CONFIG ===== + public static string Host { get; set; } = string.Empty; + public static int Port { get; set; } = 1433; + + public static string Banco { get; set; } = string.Empty; + + public static string Usuario { get; set; } = string.Empty; + public static string Senha { get; set; } = string.Empty; + + public static int ConnectTimeout { get; set; } = 3; + public static bool Encrypt { get; set; } = true; + public static bool TrustServerCertificate { get; set; } = true; + + public static readonly string ObjetoStringConexao = ObterConexao(); + + // ===== CONEXÃO ===== + public static string ObterConexao() + { + if (string.IsNullOrWhiteSpace(Host)) + return string.Empty; + + var cs = new SqlConnectionStringBuilder + { + DataSource = $"{Host},{Port}", + InitialCatalog = Banco, + UserID = Usuario, + Password = Senha, + ConnectTimeout = ConnectTimeout, + Encrypt = Encrypt, + TrustServerCertificate = TrustServerCertificate + }; + + return cs.ConnectionString; + } + + // ===== TESTE ===== + public static bool TestarConexao() + { + var cs = ObterConexao(); + + if (string.IsNullOrWhiteSpace(cs)) + return false; + + try + { + using var conn = new SqlConnection(cs); + conn.Open(); + return true; + } + catch + { + return false; + } + } + } +} \ No newline at end of file diff --git a/LevelOS/LevelOS.csproj b/LevelOS/LevelOS.csproj index cd7f89f..18bf373 100644 --- a/LevelOS/LevelOS.csproj +++ b/LevelOS/LevelOS.csproj @@ -15,4 +15,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/LevelOS/LevelOS.slnx b/LevelOS/LevelOS.slnx index 462e7b6..77fd8fb 100644 --- a/LevelOS/LevelOS.slnx +++ b/LevelOS/LevelOS.slnx @@ -1,4 +1,7 @@ + + + @@ -8,6 +11,9 @@ + + + diff --git a/MLL/ModeloAgenda.cs b/MLL/ModeloAgenda.cs new file mode 100644 index 0000000..47418e0 --- /dev/null +++ b/MLL/ModeloAgenda.cs @@ -0,0 +1,46 @@ +using System; + +namespace MLL +{ + public class ModeloAgenda + { + public ModeloAgenda() + { + this.ID_AGENDA = 0; + this.CODIGO = string.Empty; + this.COMPROMISSO = string.Empty; + this.DDATA = string.Empty; + this.AVISAR = string.Empty; + this.FUNC = string.Empty; + this.DIA = string.Empty; + this.HORA = string.Empty; + this.REALIZADO = string.Empty; + this.OS_VINC = string.Empty; + + } + public ModeloAgenda(int iD_AGENDA, string cODIGO, string cOMPROMISSO, string dDATA, string aVISAR, string fUNC, string dIA, string hORA, string rEALIZADO, string oS_VINC) + { + ID_AGENDA = iD_AGENDA; + CODIGO = cODIGO; + COMPROMISSO = cOMPROMISSO; + DDATA = dDATA; + AVISAR = aVISAR; + FUNC = fUNC; + DIA = dIA; + HORA = hORA; + REALIZADO = rEALIZADO; + OS_VINC = oS_VINC; + } + + public int ID_AGENDA { get; set; } + public string CODIGO { get; set; } + public string COMPROMISSO { get; set; } + public string DDATA { get; set; } + public string AVISAR { get; set; } + public string FUNC { get; set; } + public string DIA { get; set; } + public string HORA { get; set; } + public string REALIZADO { get; set; } + public string OS_VINC { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloBancos.cs b/MLL/ModeloBancos.cs new file mode 100644 index 0000000..05d6737 --- /dev/null +++ b/MLL/ModeloBancos.cs @@ -0,0 +1,29 @@ +using System; + +namespace MLL +{ + public class ModeloBancos + { + // ✅ Construtor vazio (OBRIGATÓRIO pro seu DAL) + public ModeloBancos() + { + this.ID_BANCOS = 0; + this.NUMERO = string.Empty; + this.NOME = string.Empty; + } + + // ✅ Construtor completo + public ModeloBancos(int id, string numero, string nome) + { + ID_BANCOS = id; + NUMERO = numero; + NOME = nome; + } + + public int ID_BANCOS { get; set; } + + public string NUMERO { get; set; } + + public string NOME { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloBoletos.cs b/MLL/ModeloBoletos.cs new file mode 100644 index 0000000..a912390 --- /dev/null +++ b/MLL/ModeloBoletos.cs @@ -0,0 +1,74 @@ +using System; + +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; + CODIGO = cODIGO; + EMITIDO = eMITIDO; + VENCE = vENCE; + VALOR = vALOR; + NUMERO = nUMERO; + PG = pG; + SACADO = sACADO; + CONTA = cONTA; + OBSERVACAO = oBSERVACAO; + COD_CONTA = cOD_CONTA; + NOSSO_NUMERO = nOSSO_NUMERO; + ACEITE = aCEITE; + IMPRESSO = iMPRESSO; + IMPORTACAO = iMPORTACAO; + } + + public int ID_BOLETO { get; set; } + + public string CODIGO { get; set; } + + public string EMITIDO { get; set; } + + public string VENCE { get; set; } + + public string VALOR { get; set; } + + public string NUMERO { get; set; } + + public string PG { get; set; } + + public string SACADO { get; set; } + + public string CONTA { get; set; } + + public string OBSERVACAO { get; set; } + + public string COD_CONTA { get; set; } + + public string NOSSO_NUMERO { get; set; } + + public string ACEITE { get; set; } + + public string IMPRESSO { get; set; } + + public string IMPORTACAO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCalibracao.cs b/MLL/ModeloCalibracao.cs new file mode 100644 index 0000000..9771bb5 --- /dev/null +++ b/MLL/ModeloCalibracao.cs @@ -0,0 +1,38 @@ +using System; + +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; + CODIGO = cODIGO; + OS_NUMERO = oS_NUMERO; + DATA = dATA; + TEMP = tEMP; + HUMIDADE = hUMIDADE; + RESPONSABEL = rESPONSABEL; + OBSERV = oBSERV; + } + public int ID_CALIBRACAO { get; set; } + public string CODIGO { get; set; } + public string OS_NUMERO { get; set; } + public string DATA { get; set; } + public string TEMP { get; set; } + public string HUMIDADE { get; set; } + public string RESPONSABEL { get; set; } + public string OBSERV { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCalibracaoEnsaio.cs b/MLL/ModeloCalibracaoEnsaio.cs new file mode 100644 index 0000000..fffebc8 --- /dev/null +++ b/MLL/ModeloCalibracaoEnsaio.cs @@ -0,0 +1,37 @@ +using System; + +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; + COD_CALIBRACAO = cOD_CALIBRACAO; + DESCRICAO = dESCRICAO; + MINIMO = mINIMO; + MAXIMO = mAXIMO; + OBTIDO = oBTIDO; + UNIDADE = uNIDADE; + }//METODO: Construtor para a classe ModeloCalibracaoEnsaio + + public int ID_CALIBRACAO_ENSAIO { get; set; } + public string COD_CALIBRACAO { get; set; } + public string DESCRICAO { get; set; } + public string MINIMO { get; set; } + public string MAXIMO { get; set; } + public string OBTIDO { get; set; } + public string UNIDADE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCalibracaoPadrao.cs b/MLL/ModeloCalibracaoPadrao.cs new file mode 100644 index 0000000..47ddbd3 --- /dev/null +++ b/MLL/ModeloCalibracaoPadrao.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + OS_NUMERO = oS_NUMERO; + DATA = dATA; + TEMP = tEMP; + HUMIDADE = hUMIDADE; + RESPONSABEL = rESPONSABEL; + OBSERV = oBSERV; + } + + public int ID_CALIBRACAO_PADRAO { get; set; } + public string CODIGO { get; set; } + public string OS_NUMERO { get; set; } + public string DATA { get; set; } + public string TEMP { get; set; } + public string HUMIDADE { get; set; } + public string RESPONSABEL { get; set; } + public string OBSERV { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCalibracaoPadraoEnsaios.cs b/MLL/ModeloCalibracaoPadraoEnsaios.cs new file mode 100644 index 0000000..9d18569 --- /dev/null +++ b/MLL/ModeloCalibracaoPadraoEnsaios.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + COD_CALIBRACAO = cOD_CALIBRACAO; + DESCRICAO = dESCRICAO; + MINIMO = mINIMO; + MAXIMO = mAXIMO; + OBTIDO = oBTIDO; + UNIDADE = uNIDADE; + }// Construtor sem parâmetros + + public int ID_CAL_PADRAO_ENSAIOS { get; set; } + public string CODIGO { get; set; } + public string COD_CALIBRACAO { get; set; } + public string DESCRICAO { get; set; } + public string MINIMO { get; set; } + public string MAXIMO { get; set; } + public string OBTIDO { get; set; } + public string UNIDADE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCartoes.cs b/MLL/ModeloCartoes.cs new file mode 100644 index 0000000..cc563b1 --- /dev/null +++ b/MLL/ModeloCartoes.cs @@ -0,0 +1,65 @@ +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; + CODIGO = cODIGO; + BANDEIRA = bANDEIRA; + NUM_CARTAO = nUM_CARTAO; + NOME = nOME; + VALIDADE = vALIDADE; + AUTORIZACAO = aUTORIZACAO; + PARCELAS = pARCELAS; + VALOR = vALOR; + COD_CLIENTE = cOD_CLIENTE; + RESUMO = rESUMO; + DEBITO = dEBITO; + COD_CONTA = cOD_CONTA; + DIA = dIA; + COMPENSADO = cOMPENSADO; + OBS_COMP = oBS_COMP; + } + + public int ID_COD_CARTAO { get; set; } + public string CODIGO { get; set; } + public string BANDEIRA { get; set; } + public string NUM_CARTAO { get; set; } + public string NOME { get; set; } + public string VALIDADE { get; set; } + public string AUTORIZACAO { get; set; } + public string PARCELAS { get; set; } + public string VALOR { get; set; } + public string COD_CLIENTE { get; set; } + public string RESUMO { get; set; } + public string DEBITO { get; set; } + public string COD_CONTA { get; set; } + public string DIA { get; set; } + public string COMPENSADO { get; set; } + public string OBS_COMP { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloChamado.cs b/MLL/ModeloChamado.cs new file mode 100644 index 0000000..a0f3a5c --- /dev/null +++ b/MLL/ModeloChamado.cs @@ -0,0 +1,59 @@ +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, + string oBS, string eNDER_CLI) + { + ID_CHAMADO = iD_CHAMADO; + CODIGO = cODIGO; + TIPO = tIPO; + COD_CLIENTE = cOD_CLIENTE; + NOME_AVULSO = nOME_AVULSO; + FONES = fONES; + EMAIL = eMAIL; + PARA = pARA; + PRIORIDADE = pRIORIDADE; + REALIZADO = rEALIZADO; + DIA_CHAMADO = dIA_CHAMADO; + OBS = oBS; + ENDER_CLI = eNDER_CLI; + } + + public int ID_CHAMADO { get; set; } + public string CODIGO { get; set; } + public string TIPO { get; set; } + public string COD_CLIENTE { get; set; } + public string NOME_AVULSO { get; set; } + public string FONES { get; set; } + public string EMAIL { get; set; } + public string PARA { get; set; } + public string PRIORIDADE { get; set; } + public string REALIZADO { get; set; } + public string DIA_CHAMADO { get; set; } + public string OBS { get; set; } + public string ENDER_CLI { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloChegues.cs b/MLL/ModeloChegues.cs new file mode 100644 index 0000000..34890bd --- /dev/null +++ b/MLL/ModeloChegues.cs @@ -0,0 +1,65 @@ +using System; + +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) + { + ID_CHEGUES = iD_CHEGUES; + CODIGO = cODIGO; + BANCO = bANCO; + AGENCIA = aGENCIA; + VALOR = vALOR; + CLIENTE = cLIENTE; + FORNECEDOR = fORNECEDOR; + EMITIDO = eMITIDO; + COMPENSAR = cOMPENSAR; + OK = oK; + TIPO = tIPO; + CONTA = cONTA; + NUMERO = nUMERO; + OBS = oBS; + COD_CONTA = cOD_CONTA; + EMITENTE = eMITENTE; + } + + public int ID_CHEGUES { get; set; } + public string CODIGO { get; set; } + public string BANCO { get; set; } + public string AGENCIA { get; set; } + public string VALOR { get; set; } + public string CLIENTE { get; set; } + public string FORNECEDOR { get; set; } + public string EMITIDO { get; set; } + public string COMPENSAR { get; set; } + public string OK { get; set; } + public string TIPO { get; set; } + public string CONTA { get; set; } + public string NUMERO { get; set; } + public string OBS { get; set; } + public string COD_CONTA { get; set; } + public string EMITENTE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCliente.cs b/MLL/ModeloCliente.cs new file mode 100644 index 0000000..ba1c28c --- /dev/null +++ b/MLL/ModeloCliente.cs @@ -0,0 +1,155 @@ +using System.Runtime.ConstrainedExecution; +using System.Text.RegularExpressions; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace MLL +{ + 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; } + } +} diff --git a/MLL/ModeloClientesEnderecos.cs b/MLL/ModeloClientesEnderecos.cs new file mode 100644 index 0000000..3b393a1 --- /dev/null +++ b/MLL/ModeloClientesEnderecos.cs @@ -0,0 +1,51 @@ +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; + CODIGO = cODIGO; + COD_CLIENTE = cOD_CLIENTE; + LOGRADOURO = lOGRADOURO; + NUMERO = nUMERO; + COMPLEM = cOMPLEM; + BAIRRO = bAIRRO; + CIDADE = cIDADE; + UF = uF; + CEP = cEP; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_COD_CLIENTE_END { get; set; } + public string CODIGO { get; set; } + public string COD_CLIENTE { get; set; } + public string LOGRADOURO { get; set; } + public string NUMERO { get; set; } + public string COMPLEM { get; set; } + public string BAIRRO { get; set; } + public string CIDADE { get; set; } + public string UF { get; set; } + public string CEP { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloConfig.cs b/MLL/ModeloConfig.cs new file mode 100644 index 0000000..d0c4e34 --- /dev/null +++ b/MLL/ModeloConfig.cs @@ -0,0 +1,371 @@ +using System; + +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, + string vERSAO, string sERIAL, string sERIAL2, string sMTP_SERVER, + string sMTP_USER, string sMTP_PASS, string sMTP_TIT, string sMTP_EMAIL, + string sMTP_CC, string sMTP_PORT, string sMTP_SSL, string sMTP_COK, + string oFICINADONO, string nOSSONUMERO, string rEVENDA, string cOMISS_VENDAS, + string mAXDES_VENDAS, string cARTAO_REG_OK, string cARTAO_DEBT_DIRETO, + string cARTAO_CRED_DIRETO, string cARTAO_CRED_COMISS, string cARTAO_DEBT_COMISS, + string vERSAOP, string sHCompras, string nFE_FORMA_EMISSAO, string cARTAO_CRED_PARCELA, + string sMTP_SEMAUTENTICA, string nFE_ENFE, string nFE_EMAIL_OK, string dATA_CADASTRO, + string uLTIMA_IMPRESSAO, string dATA_SAIDA, string iMPRESSA, string fRETE_NUMERO, + string dESTINATARIO_NOME, string dESTINATARIO_ENDERECO, string dESTINATARIO_BAIRRO, + string dESTINATARIO_CIDADE, string dESTINATARIO_UF, string dESTINATARIO_CEP, + string dESTINATARIO_COD_PAIS, string dESTINATARIO_TEL, string dESTINATARIO_FAX, + string dESTINATARIO_EMAIL, string dESTINATARIO_IE_RG, string dESTINATARIO_CNPJCPF, + string vALOR_DESCONTO, string vALOR_IRRF, string vALOR_IRPJ, string vALOR_PIS, + string vALOR_COFINS, string vALOR_CSLL, string vALOR_BENEF, string vALOR_INSS, + string vALOR_SIMPLES, string tOTAL_DESC, string tOTAL_DEDUCOES, string tOTAL_SERVICOS, + string tOTAL_PRODUTOS, string tOTAL_ISS, string tOTAL_IRRF, string tOTAL_IRPJ, + string tOTAL_PIS, string tOTAL_COFINS, string tOTAL_CSLL, string tOTAL_INSS, + string tOTAL_SIMPLES, string fRETE_NOME, string fRETE_UF, string fRETE_CNPJCPF, + string fRETE_IERG, string fRETE_ENDERECO, string fRETE_MUNICIPIO, string fRETE_TUF, + string dB_cs_ICMS_S, string dB_cs_FRETE, string dB_cs_SEGURO, string dB_cs_DESPESAS, + string dB_cin_FRETE, string dB_cin_SEGURO, string dB_cin_DESPESAS, string dB_cin_DESCONTO, + string dB_cs_ISS, string dB_cs_IRRF, string dB_cs_IRPJ, string dB_cs_PIS, string dB_cs_COFINS, + string dB_cs_CSLL, string dB_cs_INSS, string dB_cs_SIMPLES, string v_FRETE, string v_SEGURO, + string v_OUTROS, string cOD_FAB) + { + ID_CONFIG = iD_CONFIG; + ESTOQUE = eSTOQUE; + OFICINA = oFICINA; + BANCO = bANCO; + CONTAS = cONTAS; + VENDASL1 = vENDASL1; + VENDASL2 = vENDASL2; + MODELOVENDA = mODELOVENDA; + PRNPORTVENDA = pRNPORTVENDA; + COPIASVENDA = cOPIASVENDA; + VERSAO = vERSAO; + SERIAL = sERIAL; + SERIAL2 = sERIAL2; + SMTP_SERVER = sMTP_SERVER; + SMTP_USER = sMTP_USER; + SMTP_PASS = sMTP_PASS; + SMTP_TIT = sMTP_TIT; + SMTP_EMAIL = sMTP_EMAIL; + SMTP_CC = sMTP_CC; + SMTP_PORT = sMTP_PORT; + SMTP_SSL = sMTP_SSL; + SMTP_COK = sMTP_COK; + OFICINADONO = oFICINADONO; + NOSSONUMERO = nOSSONUMERO; + REVENDA = rEVENDA; + COMISS_VENDAS = cOMISS_VENDAS; + MAXDES_VENDAS = mAXDES_VENDAS; + CARTAO_REG_OK = cARTAO_REG_OK; + CARTAO_DEBT_DIRETO = cARTAO_DEBT_DIRETO; + CARTAO_CRED_DIRETO = cARTAO_CRED_DIRETO; + CARTAO_CRED_COMISS = cARTAO_CRED_COMISS; + CARTAO_DEBT_COMISS = cARTAO_DEBT_COMISS; + VERSAOP = vERSAOP; + SHCompras = sHCompras; + NFE_FORMA_EMISSAO = nFE_FORMA_EMISSAO; + CARTAO_CRED_PARCELA = cARTAO_CRED_PARCELA; + SMTP_SEMAUTENTICA = sMTP_SEMAUTENTICA; + NFE_ENFE = nFE_ENFE; + NFE_EMAIL_OK = nFE_EMAIL_OK; + DATA_CADASTRO = dATA_CADASTRO; + ULTIMA_IMPRESSAO = uLTIMA_IMPRESSAO; + DATA_SAIDA = dATA_SAIDA; + IMPRESSA = iMPRESSA; + FRETE_NUMERO = fRETE_NUMERO; + DESTINATARIO_NOME = dESTINATARIO_NOME; + DESTINATARIO_ENDERECO = dESTINATARIO_ENDERECO; + DESTINATARIO_BAIRRO = dESTINATARIO_BAIRRO; + DESTINATARIO_CIDADE = dESTINATARIO_CIDADE; + DESTINATARIO_UF = dESTINATARIO_UF; + DESTINATARIO_CEP = dESTINATARIO_CEP; + DESTINATARIO_COD_PAIS = dESTINATARIO_COD_PAIS; + DESTINATARIO_TEL = dESTINATARIO_TEL; + DESTINATARIO_FAX = dESTINATARIO_FAX; + DESTINATARIO_EMAIL = dESTINATARIO_EMAIL; + DESTINATARIO_IE_RG = dESTINATARIO_IE_RG; + DESTINATARIO_CNPJCPF = dESTINATARIO_CNPJCPF; + VALOR_DESCONTO = vALOR_DESCONTO; + VALOR_IRRF = vALOR_IRRF; + VALOR_IRPJ = vALOR_IRPJ; + VALOR_PIS = vALOR_PIS; + VALOR_COFINS = vALOR_COFINS; + VALOR_CSLL = vALOR_CSLL; + VALOR_BENEF = vALOR_BENEF; + VALOR_INSS = vALOR_INSS; + VALOR_SIMPLES = vALOR_SIMPLES; + TOTAL_DESC = tOTAL_DESC; + TOTAL_DEDUCOES = tOTAL_DEDUCOES; + TOTAL_SERVICOS = tOTAL_SERVICOS; + TOTAL_PRODUTOS = tOTAL_PRODUTOS; + TOTAL_ISS = tOTAL_ISS; + TOTAL_IRRF = tOTAL_IRRF; + TOTAL_IRPJ = tOTAL_IRPJ; + TOTAL_PIS = tOTAL_PIS; + TOTAL_COFINS = tOTAL_COFINS; + TOTAL_CSLL = tOTAL_CSLL; + TOTAL_INSS = tOTAL_INSS; + TOTAL_SIMPLES = tOTAL_SIMPLES; + FRETE_NOME = fRETE_NOME; + FRETE_UF = fRETE_UF; + FRETE_CNPJCPF = fRETE_CNPJCPF; + FRETE_IERG = fRETE_IERG; + FRETE_ENDERECO = fRETE_ENDERECO; + FRETE_MUNICIPIO = fRETE_MUNICIPIO; + FRETE_TUF = fRETE_TUF; + DB_cs_ICMS_S = dB_cs_ICMS_S; + DB_cs_FRETE = dB_cs_FRETE; + DB_cs_SEGURO = dB_cs_SEGURO; + DB_cs_DESPESAS = dB_cs_DESPESAS; + DB_cin_FRETE = dB_cin_FRETE; + DB_cin_SEGURO = dB_cin_SEGURO; + DB_cin_DESPESAS = dB_cin_DESPESAS; + DB_cin_DESCONTO = dB_cin_DESCONTO; + DB_cs_ISS = dB_cs_ISS; + DB_cs_IRRF = dB_cs_IRRF; + DB_cs_IRPJ = dB_cs_IRPJ; + DB_cs_PIS = dB_cs_PIS; + DB_cs_COFINS = dB_cs_COFINS; + DB_cs_CSLL = dB_cs_CSLL; + DB_cs_INSS = dB_cs_INSS; + DB_cs_SIMPLES = dB_cs_SIMPLES; + V_FRETE = v_FRETE; + V_SEGURO = v_SEGURO; + V_OUTROS = v_OUTROS; + COD_FAB = cOD_FAB; + } + + public int ID_CONFIG { get; set; } + public string ESTOQUE { get; set; } + public string OFICINA { get; set; } + public string BANCO { get; set; } + public string CONTAS { get; set; } + public string VENDASL1 { get; set; } + public string VENDASL2 { get; set; } + public string MODELOVENDA { get; set; } + public string PRNPORTVENDA { get; set; } + public string COPIASVENDA { get; set; } + public string VERSAO { get; set; } + public string SERIAL { get; set; } + public string SERIAL2 { get; set; } + + public string SMTP_SERVER { get; set; } + public string SMTP_USER { get; set; } + public string SMTP_PASS { get; set; } + public string SMTP_TIT { get; set; } + public string SMTP_EMAIL { get; set; } + public string SMTP_CC { get; set; } + public string SMTP_PORT { get; set; } + public string SMTP_SSL { get; set; } + public string SMTP_COK { get; set; } + + public string OFICINADONO { get; set; } + public string NOSSONUMERO { get; set; } + public string REVENDA { get; set; } + + public string COMISS_VENDAS { get; set; } + public string MAXDES_VENDAS { get; set; } + + public string CARTAO_REG_OK { get; set; } + public string CARTAO_DEBT_DIRETO { get; set; } + public string CARTAO_CRED_DIRETO { get; set; } + public string CARTAO_CRED_COMISS { get; set; } + public string CARTAO_DEBT_COMISS { get; set; } + + public string VERSAOP { get; set; } + public string SHCompras { get; set; } + public string NFE_FORMA_EMISSAO { get; set; } + public string CARTAO_CRED_PARCELA { get; set; } + public string SMTP_SEMAUTENTICA { get; set; } + + public string NFE_ENFE { get; set; } + public string NFE_EMAIL_OK { get; set; } + + public string DATA_CADASTRO { get; set; } + public string ULTIMA_IMPRESSAO { get; set; } + public string DATA_SAIDA { get; set; } + public string IMPRESSA { get; set; } + + public string FRETE_NUMERO { get; set; } + + public string DESTINATARIO_NOME { get; set; } + public string DESTINATARIO_ENDERECO { get; set; } + public string DESTINATARIO_BAIRRO { get; set; } + public string DESTINATARIO_CIDADE { get; set; } + public string DESTINATARIO_UF { get; set; } + public string DESTINATARIO_CEP { get; set; } + public string DESTINATARIO_COD_PAIS { get; set; } + public string DESTINATARIO_TEL { get; set; } + public string DESTINATARIO_FAX { get; set; } + public string DESTINATARIO_EMAIL { get; set; } + public string DESTINATARIO_IE_RG { get; set; } + public string DESTINATARIO_CNPJCPF { get; set; } + + public string VALOR_DESCONTO { get; set; } + public string VALOR_IRRF { get; set; } + public string VALOR_IRPJ { get; set; } + public string VALOR_PIS { get; set; } + public string VALOR_COFINS { get; set; } + public string VALOR_CSLL { get; set; } + public string VALOR_BENEF { get; set; } + public string VALOR_INSS { get; set; } + public string VALOR_SIMPLES { get; set; } + + public string TOTAL_DESC { get; set; } + public string TOTAL_DEDUCOES { get; set; } + public string TOTAL_SERVICOS { get; set; } + public string TOTAL_PRODUTOS { get; set; } + public string TOTAL_ISS { get; set; } + public string TOTAL_IRRF { get; set; } + public string TOTAL_IRPJ { get; set; } + public string TOTAL_PIS { get; set; } + public string TOTAL_COFINS { get; set; } + public string TOTAL_CSLL { get; set; } + public string TOTAL_INSS { get; set; } + public string TOTAL_SIMPLES { get; set; } + + public string FRETE_NOME { get; set; } + public string FRETE_UF { get; set; } + public string FRETE_CNPJCPF { get; set; } + public string FRETE_IERG { get; set; } + public string FRETE_ENDERECO { get; set; } + public string FRETE_MUNICIPIO { get; set; } + public string FRETE_TUF { get; set; } + + public string DB_cs_ICMS_S { get; set; } + public string DB_cs_FRETE { get; set; } + public string DB_cs_SEGURO { get; set; } + public string DB_cs_DESPESAS { get; set; } + + public string DB_cin_FRETE { get; set; } + public string DB_cin_SEGURO { get; set; } + public string DB_cin_DESPESAS { get; set; } + public string DB_cin_DESCONTO { get; set; } + + public string DB_cs_ISS { get; set; } + public string DB_cs_IRRF { get; set; } + public string DB_cs_IRPJ { get; set; } + public string DB_cs_PIS { get; set; } + public string DB_cs_COFINS { get; set; } + public string DB_cs_CSLL { get; set; } + public string DB_cs_INSS { get; set; } + public string DB_cs_SIMPLES { get; set; } + + public string V_FRETE { get; set; } + public string V_SEGURO { get; set; } + public string V_OUTROS { get; set; } + + public string COD_FAB { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloContaPagar.cs b/MLL/ModeloContaPagar.cs new file mode 100644 index 0000000..aa6b7bb --- /dev/null +++ b/MLL/ModeloContaPagar.cs @@ -0,0 +1,75 @@ +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; + EmpresaId = empresaId; + FornecedorId = fornecedorId; + PlanoContaId = planoContaId; + Descricao = descricao; + Valor = valor; + ValorPago = valorPago; + Juros = juros; + Multa = multa; + Desconto = desconto; + Status = status; + DataEmissao = dataEmissao; + DataVencimento = dataVencimento; + DataPagamento = dataPagamento; + Observacoes = observacoes; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + public int FornecedorId { get; set; } + public int PlanoContaId { get; set; } + + public string Descricao { get; set; } + + public decimal Valor { get; set; } + public decimal? ValorPago { get; set; } + + public decimal Juros { get; set; } + public decimal Multa { get; set; } + public decimal Desconto { get; set; } + + public string Status { get; set; } + + public DateTime? DataEmissao { get; set; } + public DateTime DataVencimento { get; set; } + public DateTime? DataPagamento { 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/ModeloContaReceber.cs b/MLL/ModeloContaReceber.cs new file mode 100644 index 0000000..1d7d171 --- /dev/null +++ b/MLL/ModeloContaReceber.cs @@ -0,0 +1,79 @@ +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; + EmpresaId = empresaId; + ClienteId = clienteId; + PlanoContaId = planoContaId; + ContratoId = contratoId; + Descricao = descricao; + Valor = valor; + ValorPago = valorPago; + Juros = juros; + Multa = multa; + Desconto = desconto; + Status = status; + DataEmissao = dataEmissao; + DataVencimento = dataVencimento; + DataPagamento = dataPagamento; + Observacoes = observacoes; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + public int ClienteId { get; set; } + public int PlanoContaId { get; set; } + + public int? ContratoId { get; set; } + + public string Descricao { get; set; } + + public decimal Valor { get; set; } + public decimal? ValorPago { get; set; } + + public decimal Juros { get; set; } + public decimal Multa { get; set; } + public decimal Desconto { get; set; } + + public string Status { get; set; } + + public DateTime? DataEmissao { get; set; } + public DateTime DataVencimento { get; set; } + public DateTime? DataPagamento { 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/ModeloContas.cs b/MLL/ModeloContas.cs new file mode 100644 index 0000000..8d302d6 --- /dev/null +++ b/MLL/ModeloContas.cs @@ -0,0 +1,127 @@ +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, + string fCOBRANCA, string pARCELA, string eCF_DINHEIRO, string eCF_CHEQUE, + string eCF_CARTAO, string eCF_BOLETO, string eCF_TROCO, string dATA_DOCTO, + string jUROS, string dESCONTO, string cFOP, string cLISTSERV, string pMVAST, + string pREDBCST, string vBCICMSST, string aICMSST, string vICMSST, string dATA_PGTO, + string cOD_CORRENTE, string oBS_COB) + { + ID_CONTAS = iD_CONTAS; + CODIGO = cODIGO; + TIPO = tIPO; + CLIENTE = cLIENTE; + FORNECEDOR = fORNECEDOR; + COD_CLIENTE = cOD_CLIENTE; + COD_FORNECEDOR = cOD_FORNECEDOR; + VENCIMENTO = vENCIMENTO; + PAGO = pAGO; + PLANO_CONTAS = pLANO_CONTAS; + OBSERVACAO = oBSERVACAO; + VALOR = vALOR; + REFERENCIA = rEFERENCIA; + FCOBRANCA = fCOBRANCA; + PARCELA = pARCELA; + ECF_DINHEIRO = eCF_DINHEIRO; + ECF_CHEQUE = eCF_CHEQUE; + ECF_CARTAO = eCF_CARTAO; + ECF_BOLETO = eCF_BOLETO; + ECF_TROCO = eCF_TROCO; + DATA_DOCTO = dATA_DOCTO; + JUROS = jUROS; + DESCONTO = dESCONTO; + CFOP = cFOP; + CLISTSERV = cLISTSERV; + PMVAST = pMVAST; + PREDBCST = pREDBCST; + VBCICMSST = vBCICMSST; + AICMSST = aICMSST; + VICMSST = vICMSST; + DATA_PGTO = dATA_PGTO; + COD_CORRENTE = cOD_CORRENTE; + OBS_COB = oBS_COB; + } + + public int ID_CONTAS { get; set; } + public string CODIGO { get; set; } + public string TIPO { get; set; } + public string CLIENTE { get; set; } + public string FORNECEDOR { get; set; } + public string COD_CLIENTE { get; set; } + public string COD_FORNECEDOR { get; set; } + public string VENCIMENTO { get; set; } + public string PAGO { get; set; } + public string PLANO_CONTAS { get; set; } + public string OBSERVACAO { get; set; } + public string VALOR { get; set; } + public string REFERENCIA { get; set; } + public string FCOBRANCA { get; set; } + public string PARCELA { get; set; } + + public string ECF_DINHEIRO { get; set; } + public string ECF_CHEQUE { get; set; } + public string ECF_CARTAO { get; set; } + public string ECF_BOLETO { get; set; } + public string ECF_TROCO { get; set; } + + public string DATA_DOCTO { get; set; } + public string JUROS { get; set; } + public string DESCONTO { get; set; } + + public string CFOP { get; set; } + public string CLISTSERV { get; set; } + + public string PMVAST { get; set; } + public string PREDBCST { get; set; } + public string VBCICMSST { get; set; } + public string AICMSST { get; set; } + public string VICMSST { get; set; } + + public string DATA_PGTO { get; set; } + public string COD_CORRENTE { get; set; } + public string OBS_COB { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloContasContas.cs b/MLL/ModeloContasContas.cs new file mode 100644 index 0000000..e44f8a2 --- /dev/null +++ b/MLL/ModeloContasContas.cs @@ -0,0 +1,27 @@ +using System; + +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; + CODIGO = cODIGO; + DESCRICAO = dESCRICAO; + SALDO_INI = sALDO_INI; + } + + public int ID_CONTAS_CONTAS { get; set; } + public string CODIGO { get; set; } + public string DESCRICAO { get; set; } + public string SALDO_INI { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloContasDeposito.cs b/MLL/ModeloContasDeposito.cs new file mode 100644 index 0000000..684730c --- /dev/null +++ b/MLL/ModeloContasDeposito.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +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) + { + ID_COD_CONTA_DEPO = iD_COD_CONTA_DEPO; + CODIGO = cODIGO; + COD_CORRENTE = cOD_CORRENTE; + COD_LANCTO = cOD_LANCTO; + VALOR = vALOR; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_COD_CONTA_DEPO { get; set; } + public string? CODIGO { get; set; } + public string? COD_CORRENTE { get; set; } + public string? COD_LANCTO { get; set; } + public string? VALOR { get; set; } + public string? DATA_CADASTRO { get; set; } + } +} diff --git a/MLL/ModeloContasPagar.cs b/MLL/ModeloContasPagar.cs new file mode 100644 index 0000000..2e91a95 --- /dev/null +++ b/MLL/ModeloContasPagar.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel.DataAnnotations; +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("ContasPagar", Schema = "dbo")] + public class ModeloContasPagar + { + // [Key] // Opcional: Indica que esta é a chave primária + // [DatabaseGenerated(DatabaseGeneratedOption.Identity)] // Opcional: Indica que o DB gera o ID + public int Id { get; set; } + + public int EmpresaId { get; set; } + public int FornecedorId { get; set; } + public int PlanoContaId { get; set; } + + // [StringLength(255)] // Opcional: Para validação de tamanho em ORMs como EF + public string? Descricao { get; set; } // varchar(255) NULL -> string? + + public decimal Valor { get; set; } // decimal(10, 2) NOT NULL -> decimal + + public DateTime? DataEmissao { get; set; } // date NULL -> DateTime? + + public DateTime DataVencimento { get; set; } // date NOT NULL -> DateTime + + public DateTime? DataPagamento { get; set; } // date NULL -> DateTime? + + // [StringLength(20)] // Opcional: Para validação de tamanho + public string Status { get; set; } = "Pendente"; // varchar(20) NOT NULL com DEFAULT -> string. Inicializado com o valor padrão. + + public decimal? ValorPago { get; set; } // decimal(10, 2) NULL -> decimal? + + public decimal? Juros { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public decimal? Multa { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public decimal? Desconto { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public string? Observacoes { get; set; } // varchar(max) NULL -> string? + + 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? + + + // 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("FornecedorId")] + public virtual ModeloFornecedor? Fornecedor { get; set; } // Assumindo que você tem um modelo ModeloFornecedor + + [ForeignKey("PlanoContaId")] + public virtual ModeloPlanoDeContas? PlanoDeContas { get; set; } // Assumindo que você tem um modelo ModeloPlanoDeContas + */ + } +} \ No newline at end of file diff --git a/MLL/ModeloContasReceber.cs b/MLL/ModeloContasReceber.cs new file mode 100644 index 0000000..e8a226c --- /dev/null +++ b/MLL/ModeloContasReceber.cs @@ -0,0 +1,66 @@ +using System; +using System.ComponentModel.DataAnnotations; +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("ContasReceber", Schema = "dbo")] + public class ModeloContasReceber + { + // [Key] // Opcional: Indica que esta é a chave primária + // [DatabaseGenerated(DatabaseGeneratedOption.Identity)] // Opcional: Indica que o DB gera o ID + public int Id { get; set; } + + public int EmpresaId { get; set; } + public int ClienteId { get; set; } + public int PlanoContaId { get; set; } + public int? ContratoId { get; set; } // int NULL -> int? + + // [StringLength(255)] // Opcional: Para validação de tamanho em ORMs como EF + public string? Descricao { get; set; } // varchar(255) NULL -> string? + + public decimal Valor { get; set; } // decimal(10, 2) NOT NULL -> decimal + + public DateTime? DataEmissao { get; set; } // date NULL -> DateTime? + + public DateTime DataVencimento { get; set; } // date NOT NULL -> DateTime + + public DateTime? DataPagamento { get; set; } // date NULL -> DateTime? + + // [StringLength(20)] // Opcional: Para validação de tamanho + public string Status { get; set; } = "Pendente"; // varchar(20) NOT NULL com DEFAULT -> string. Inicializado com o valor padrão. + + public decimal? ValorPago { get; set; } // decimal(10, 2) NULL -> decimal? + + public decimal? Juros { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public decimal? Multa { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public decimal? Desconto { get; set; } = 0; // decimal(10, 2) NULL com DEFAULT -> decimal?. Inicializado com o valor padrão. + + public string? Observacoes { get; set; } // varchar(max) NULL -> string? + + 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? + + + // 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 + + [ForeignKey("PlanoContaId")] + public virtual ModeloPlanoDeContas? PlanoDeContas { get; set; } // Assumindo que você tem um modelo ModeloPlanoDeContas + + [ForeignKey("ContratoId")] + public virtual ModeloContrato? Contrato { get; set; } // Assumindo que você tem um modelo ModeloContrato + */ + } +} \ No newline at end of file diff --git a/MLL/ModeloContrato.cs b/MLL/ModeloContrato.cs new file mode 100644 index 0000000..1101cf7 --- /dev/null +++ b/MLL/ModeloContrato.cs @@ -0,0 +1,49 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace MLL // Ou o namespace de sua preferência +{ + + public class ModeloContrato + { + 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; } + 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; } + + + + [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 new file mode 100644 index 0000000..7da995a --- /dev/null +++ b/MLL/ModeloContratoEquipamentos.cs @@ -0,0 +1,38 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace MLL // Ou o namespace de sua preferência +{ + + public class ModeloContratoEquipamentos + { + 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; } + + [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 new file mode 100644 index 0000000..5dfb8c0 --- /dev/null +++ b/MLL/ModeloConvenioBoletos.cs @@ -0,0 +1,88 @@ +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, + string iNSTRU_05, string iNSTRU_06, string iNSTRU_07, string iNSTRU_08, string iNSTRU_09, + string iNSTRU_10, string dIAS_PROTESTO, string tIPO_DOC_COB, string tIPO_ESP_DOC) + { + ID_CONVENIO_BOLETOS = iD_CONVENIO_BOLETOS; + CODIGO = cODIGO; + BANCO = bANCO; + CARTEIRA = cARTEIRA; + CONVENIO = cONVENIO; + AGENCIA = aGENCIA; + CONTA = cONTA; + NOME_CEDENTE = nOME_CEDENTE; + LOCAL_PGTO = lOCAL_PGTO; + INSTRU_01 = iNSTRU_01; + INSTRU_02 = iNSTRU_02; + INSTRU_03 = iNSTRU_03; + INSTRU_04 = iNSTRU_04; + INSTRU_05 = iNSTRU_05; + INSTRU_06 = iNSTRU_06; + INSTRU_07 = iNSTRU_07; + INSTRU_08 = iNSTRU_08; + INSTRU_09 = iNSTRU_09; + INSTRU_10 = iNSTRU_10; + DIAS_PROTESTO = dIAS_PROTESTO; + TIPO_DOC_COB = tIPO_DOC_COB; + TIPO_ESP_DOC = tIPO_ESP_DOC; + } + + public int ID_CONVENIO_BOLETOS { get; set; } + public string CODIGO { get; set; } + public string BANCO { get; set; } + public string CARTEIRA { get; set; } + public string CONVENIO { get; set; } + public string AGENCIA { get; set; } + public string CONTA { get; set; } + public string NOME_CEDENTE { get; set; } + public string LOCAL_PGTO { get; set; } + + public string INSTRU_01 { get; set; } + public string INSTRU_02 { get; set; } + public string INSTRU_03 { get; set; } + public string INSTRU_04 { get; set; } + public string INSTRU_05 { get; set; } + public string INSTRU_06 { get; set; } + public string INSTRU_07 { get; set; } + public string INSTRU_08 { get; set; } + public string INSTRU_09 { get; set; } + public string INSTRU_10 { get; set; } + + public string DIAS_PROTESTO { get; set; } + public string TIPO_DOC_COB { get; set; } + public string TIPO_ESP_DOC { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloConvenioCartoes.cs b/MLL/ModeloConvenioCartoes.cs new file mode 100644 index 0000000..e768abe --- /dev/null +++ b/MLL/ModeloConvenioCartoes.cs @@ -0,0 +1,51 @@ +using System; + +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) + { + ID_CONV_CARTOES = iD_CONV_CARTOES; + CODIGO = cODIGO; + NOME = nOME; + COMIS_CRED = cOMIS_CRED; + COMIS_DEBT = cOMIS_DEBT; + OP_CRED = oP_CRED; + OP_DEBT = oP_DEBT; + LANCA_30 = lANCA_30; + CNPJ_OPERADORA = cNPJ_OPERADORA; + this.TBAND = tBand; + } + + public int ID_CONV_CARTOES { get; set; } + public string CODIGO { get; set; } + public string NOME { get; set; } + + public string COMIS_CRED { get; set; } + public string COMIS_DEBT { get; set; } + + public string OP_CRED { get; set; } + public string OP_DEBT { get; set; } + + public string LANCA_30 { get; set; } + + public string CNPJ_OPERADORA { get; set; } + public string TBAND { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloCoordImpres.cs b/MLL/ModeloCoordImpres.cs new file mode 100644 index 0000000..224fab8 --- /dev/null +++ b/MLL/ModeloCoordImpres.cs @@ -0,0 +1,47 @@ +using System; + +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) + { + ID_COORD_IMPRES = iD_COORD_IMPRES; + CODIGO = cODIGO; + COD_MODELO = cOD_MODELO; + NOME_CAMPO = nOME_CAMPO; + COD_CAMPO = cOD_CAMPO; + TIPO = tIPO; + CX = cX; + CY = cY; + COMP = cOMP; + ATIVO = aTIVO; + } + + public int ID_COORD_IMPRES { get; set; } + public string CODIGO { get; set; } + public string COD_MODELO { get; set; } + public string NOME_CAMPO { get; set; } + public string COD_CAMPO { get; set; } + public string TIPO { get; set; } + public string CX { get; set; } + public string CY { get; set; } + public string COMP { get; set; } + public string ATIVO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloDespFixa.cs b/MLL/ModeloDespFixa.cs new file mode 100644 index 0000000..51127d6 --- /dev/null +++ b/MLL/ModeloDespFixa.cs @@ -0,0 +1,41 @@ +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) + { + ID_DESP_FIXA = iD_DESP_FIXA; + CODIGO = cODIGO; + TIPO = tIPO; + COD_CLIENTE = cOD_CLIENTE; + VENCIMENTO = vENCIMENTO; + PLANO_CONTAS = pLANO_CONTAS; + OBSERVACAO = oBSERVACAO; + VALOR = vALOR; + } + + public int ID_DESP_FIXA { get; set; } + public string CODIGO { get; set; } + public string TIPO { get; set; } + public string COD_CLIENTE { get; set; } + public string VENCIMENTO { get; set; } + public string PLANO_CONTAS { get; set; } + public string OBSERVACAO { get; set; } + public string VALOR { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloDespesas.cs b/MLL/ModeloDespesas.cs new file mode 100644 index 0000000..30d5a84 --- /dev/null +++ b/MLL/ModeloDespesas.cs @@ -0,0 +1,37 @@ +using System; + +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) + { + ID_DESPESAS = iD_DESPESAS; + CODIGO = cODIGO; + PROCESSO = pROCESSO; + DESCRICAO = dESCRICAO; + VALOR = vALOR; + PAGO = pAGO; + DIA = dIA; + } + + public int ID_DESPESAS { get; set; } + public string CODIGO { get; set; } + public string PROCESSO { get; set; } + public string DESCRICAO { get; set; } + public string VALOR { get; set; } + public string PAGO { get; set; } + public string DIA { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEcfCfg.cs b/MLL/ModeloEcfCfg.cs new file mode 100644 index 0000000..3ac27d1 --- /dev/null +++ b/MLL/ModeloEcfCfg.cs @@ -0,0 +1,35 @@ +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) + { + ID_EFC_CFG = iD_EFC_CFG; + CODIGO = cODIGO; + MODELO = mODELO; + PORTA = pORTA; + TEM_GAVETA = tEM_GAVETA; + INDICE_AL_SERV = iNDICE_AL_SERV; + } + + public int ID_EFC_CFG { get; set; } + public string CODIGO { get; set; } + public string MODELO { get; set; } + public string PORTA { get; set; } + public string TEM_GAVETA { get; set; } + public string INDICE_AL_SERV { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEmpresa.cs b/MLL/ModeloEmpresa.cs new file mode 100644 index 0000000..5381de9 --- /dev/null +++ b/MLL/ModeloEmpresa.cs @@ -0,0 +1,133 @@ +namespace MLL +{ + 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) + { + 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; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + + public string Nome { get; set; } + public string CNPJ { get; set; } + public string TipoEmpresa { get; set; } + public string RegimeTributario { get; set; } + public string CNAE { 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 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 Site { get; set; } + + public string InscricaoEstadual { get; set; } + public string InscricaoMunicipal { get; set; } + + public string CNPJCPF_Contador { get; set; } + public string Nome_Contador { get; set; } + + public string TextoParaRecibo { 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/ModeloEmpresaConfig.cs b/MLL/ModeloEmpresaConfig.cs new file mode 100644 index 0000000..7698590 --- /dev/null +++ b/MLL/ModeloEmpresaConfig.cs @@ -0,0 +1,77 @@ +namespace MLL +{ + public class ModeloEmpresaConfig + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEmpresas.cs b/MLL/ModeloEmpresas.cs new file mode 100644 index 0000000..6ea3dc8 --- /dev/null +++ b/MLL/ModeloEmpresas.cs @@ -0,0 +1,147 @@ +using System; + +namespace MLL +{ + public class ModeloEmpresas + { + public ModeloEmpresas(int iD_EMPRESAS, string cODIGO, string nOME, string fANTASIA, + string eNDERECO, string nUMERO, string cOMPLEM, string bAIRRO, string cIDADE, + string uF, string cEP, string cNPJ_CPF, string rG_IE, string eMAIL, string sITE, + string tELEFONE, string fAX, string mOVEL, string cONTATOS, string cNAE, string cOD_MUNICIPIO, + string i_IRRF, string i_IRPJ, string i_CSLL, string i_INSS, string i_ISS, string i_COFINS, + string i_ICMSF, string i_PISPASEP, string i_RETEM, string oBS_NOTA_PADR, string iNS_MUNICIPAL, + string nF_ICMS_S, string nF_FRETE, string nF_SEGURO, string nF_DESPESAS, string nF_cin_FRETE, + string nF_cin_SEGURO, string nF_cin_DESPESAS, string nF_cin_DESCONTO, string nF_ISS, string nF_IRRF, + string nF_IRPJ, string nF_PIS, string nF_COFINS, string nF_CSLL, string nF_INSS, string lCP116, string cFOP_SERV, + string rEGIME, string mYLOGO_NFE, string mYLOGO_RECIBOS, string cARTEIRA_CRYPTOMOEDA1, string cARTEIRA_CRYPTOMOEDA2, + string cARTEIRA_CRYPTOMOEDA3) + { + ID_EMPRESAS = iD_EMPRESAS; + CODIGO = cODIGO; + NOME = nOME; + FANTASIA = fANTASIA; + ENDERECO = eNDERECO; + NUMERO = nUMERO; + COMPLEM = cOMPLEM; + BAIRRO = bAIRRO; + CIDADE = cIDADE; + UF = uF; + CEP = cEP; + CNPJ_CPF = cNPJ_CPF; + RG_IE = rG_IE; + EMAIL = eMAIL; + SITE = sITE; + TELEFONE = tELEFONE; + FAX = fAX; + MOVEL = mOVEL; + CONTATOS = cONTATOS; + CNAE = cNAE; + COD_MUNICIPIO = cOD_MUNICIPIO; + I_IRRF = i_IRRF; + I_IRPJ = i_IRPJ; + I_CSLL = i_CSLL; + I_INSS = i_INSS; + I_ISS = i_ISS; + I_COFINS = i_COFINS; + I_ICMSF = i_ICMSF; + I_PISPASEP = i_PISPASEP; + I_RETEM = i_RETEM; + OBS_NOTA_PADR = oBS_NOTA_PADR; + INS_MUNICIPAL = iNS_MUNICIPAL; + NF_ICMS_S = nF_ICMS_S; + NF_FRETE = nF_FRETE; + NF_SEGURO = nF_SEGURO; + NF_DESPESAS = nF_DESPESAS; + NF_cin_FRETE = nF_cin_FRETE; + NF_cin_SEGURO = nF_cin_SEGURO; + NF_cin_DESPESAS = nF_cin_DESPESAS; + NF_cin_DESCONTO = nF_cin_DESCONTO; + NF_ISS = nF_ISS; + NF_IRRF = nF_IRRF; + NF_IRPJ = nF_IRPJ; + NF_PIS = nF_PIS; + NF_COFINS = nF_COFINS; + NF_CSLL = nF_CSLL; + NF_INSS = nF_INSS; + LCP116 = lCP116; + CFOP_SERV = cFOP_SERV; + REGIME = rEGIME; + MYLOGO_NFE = mYLOGO_NFE; + MYLOGO_RECIBOS = mYLOGO_RECIBOS; + CARTEIRA_CRYPTOMOEDA1 = cARTEIRA_CRYPTOMOEDA1; + CARTEIRA_CRYPTOMOEDA2 = cARTEIRA_CRYPTOMOEDA2; + CARTEIRA_CRYPTOMOEDA3 = cARTEIRA_CRYPTOMOEDA3; + } + + public int ID_EMPRESAS { get; set; } + + public string CODIGO { get; set; } + public string NOME { get; set; } + public string FANTASIA { get; set; } + + public string ENDERECO { get; set; } + public string NUMERO { get; set; } + public string COMPLEM { get; set; } + public string BAIRRO { get; set; } + public string CIDADE { get; set; } + public string UF { get; set; } + public string CEP { get; set; } + + public string CNPJ_CPF { get; set; } + public string RG_IE { get; set; } + + public string EMAIL { get; set; } + public string SITE { get; set; } + + public string TELEFONE { get; set; } + public string FAX { get; set; } + public string MOVEL { get; set; } + public string CONTATOS { get; set; } + + public string CNAE { get; set; } + public string COD_MUNICIPIO { get; set; } + + public string I_IRRF { get; set; } + public string I_IRPJ { get; set; } + public string I_CSLL { get; set; } + public string I_INSS { get; set; } + public string I_ISS { get; set; } + public string I_COFINS { get; set; } + public string I_ICMSF { get; set; } + public string I_PISPASEP { get; set; } + public string I_RETEM { get; set; } + + public string OBS_NOTA_PADR { get; set; } + public string INS_MUNICIPAL { get; set; } + + public string NF_ICMS_S { get; set; } + public string NF_FRETE { get; set; } + public string NF_SEGURO { get; set; } + public string NF_DESPESAS { get; set; } + + public string NF_cin_FRETE { get; set; } + public string NF_cin_SEGURO { get; set; } + public string NF_cin_DESPESAS { get; set; } + public string NF_cin_DESCONTO { get; set; } + + public string NF_ISS { get; set; } + public string NF_IRRF { get; set; } + public string NF_IRPJ { get; set; } + public string NF_PIS { get; set; } + public string NF_COFINS { get; set; } + public string NF_CSLL { get; set; } + public string NF_INSS { get; set; } + + public string LCP116 { get; set; } + public string CFOP_SERV { get; set; } + + public string REGIME { get; set; } + + public string MYLOGO_NFE { get; set; } + public string MYLOGO_RECIBOS { get; set; } + + public string CARTEIRA_CRYPTOMOEDA1 { get; set; } + public string CARTEIRA_CRYPTOMOEDA2 { get; set; } + public string CARTEIRA_CRYPTOMOEDA3 { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEquipContratos.cs b/MLL/ModeloEquipContratos.cs new file mode 100644 index 0000000..4678565 --- /dev/null +++ b/MLL/ModeloEquipContratos.cs @@ -0,0 +1,27 @@ +using System; + +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; + CODIGO = cODIGO; + COD_EQUIP = cOD_EQUIP; + COD_CONTRATO = cOD_CONTRATO; + } + + public int ID_EQUIP_CONTRATOS { get; set; } + public string CODIGO { get; set; } + public string COD_EQUIP { get; set; } + public string COD_CONTRATO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEquipamentos.cs b/MLL/ModeloEquipamentos.cs new file mode 100644 index 0000000..591bd52 --- /dev/null +++ b/MLL/ModeloEquipamentos.cs @@ -0,0 +1,72 @@ +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, + string cAMPO_DOUBLE) + { + ID_EQUIPAMENTOS = iD_EQUIPAMENTOS; + CODIGO = cODIGO; + COD_CLIENTE = cOD_CLIENTE; + DESCRICAO = dESCRICAO; + MARCA = mARCA; + MODELO = mODELO; + SERIE = sERIE; + PAT = pAT; + OBSERVACOES = oBSERVACOES; + DATA_COMPRA = dATA_COMPRA; + REVENDA = rEVENDA; + NUM_NF = nUM_NF; + NUM_CERTGAR = nUM_CERTGAR; + CAMPO_BOOL = cAMPO_BOOL; + CAMPO_DOUBLE = cAMPO_DOUBLE; + } + + public int ID_EQUIPAMENTOS { get; set; } + + public string CODIGO { get; set; } + public string COD_CLIENTE { get; set; } + + public string DESCRICAO { get; set; } + public string MARCA { get; set; } + public string MODELO { get; set; } + + public string SERIE { get; set; } + public string PAT { get; set; } + + public string OBSERVACOES { get; set; } + + public string DATA_COMPRA { get; set; } + public string REVENDA { get; set; } + + public string NUM_NF { get; set; } + public string NUM_CERTGAR { get; set; } + + public string CAMPO_BOOL { get; set; } + public string CAMPO_DOUBLE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloEsquemas.cs b/MLL/ModeloEsquemas.cs new file mode 100644 index 0000000..75e37a5 --- /dev/null +++ b/MLL/ModeloEsquemas.cs @@ -0,0 +1,41 @@ +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) + { + ID_ESQUEMAS = iD_ESQUEMAS; + CODIGO = cODIGO; + MARCA = mARCA; + NOME = nOME; + LOCAL = lOCAL; + FPATH = fPATH; + OBS = oBS; + } + + public int ID_ESQUEMAS { get; set; } + + public string CODIGO { get; set; } + public string MARCA { get; set; } + public string NOME { get; set; } + + public string LOCAL { get; set; } + public string FPATH { get; set; } + + public string OBS { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloFcaixa.cs b/MLL/ModeloFcaixa.cs new file mode 100644 index 0000000..0c913bc --- /dev/null +++ b/MLL/ModeloFcaixa.cs @@ -0,0 +1,51 @@ +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) + { + ID_FCAIXA = iD_FCAIXA; + CODIGO = cODIGO; + DIA = dIA; + RECEITA = rECEITA; + DESPESA = dESPESA; + OBS = oBS; + PLANO_CONTAS = pLANO_CONTAS; + COD_CONTA = cOD_CONTA; + FORMA = fORMA; + } + + public int ID_FCAIXA { get; set; } + + public string CODIGO { get; set; } + public string DIA { get; set; } + + public string RECEITA { get; set; } + public string DESPESA { get; set; } + + public string OBS { get; set; } + + public string PLANO_CONTAS { get; set; } + public string COD_CONTA { get; set; } + + public string FORMA { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloFornecedor.cs b/MLL/ModeloFornecedor.cs new file mode 100644 index 0000000..f5f4951 --- /dev/null +++ b/MLL/ModeloFornecedor.cs @@ -0,0 +1,91 @@ +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace MLL +{ + public class ModeloFornecedor + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloFornecedores.cs b/MLL/ModeloFornecedores.cs new file mode 100644 index 0000000..df9911e --- /dev/null +++ b/MLL/ModeloFornecedores.cs @@ -0,0 +1,98 @@ +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, + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloFornecerDE.cs b/MLL/ModeloFornecerDE.cs new file mode 100644 index 0000000..22f178c --- /dev/null +++ b/MLL/ModeloFornecerDE.cs @@ -0,0 +1,31 @@ +using System; + +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; + CODIGO = cODIGO; + COD_FOR = cOD_FOR; + COD_ITEM = cOD_ITEM; + ULTIMA = uLTIMA; + } + + public int ID_FORNECER_DE { get; set; } + + public string CODIGO { get; set; } + public string COD_FOR { get; set; } + public string COD_ITEM { get; set; } + public string ULTIMA { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloFuncionarios.cs b/MLL/ModeloFuncionarios.cs new file mode 100644 index 0000000..7e48275 --- /dev/null +++ b/MLL/ModeloFuncionarios.cs @@ -0,0 +1,176 @@ +using System; +using System.Data; +using System.Runtime.ConstrainedExecution; +using System.Text.RegularExpressions; +using static System.Net.Mime.MediaTypeNames; + +namespace MLL +{ + public class ModeloFuncionarios + { + public int ID_FUNCIONARIO { get; set; } + + public string CODIGO { get; set; } + public string NOME { get; set; } + + public string PAI { get; set; } + public string MAE { get; set; } + + public string CPF { get; set; } + public string CI { get; set; } + public string CTPS { get; set; } + + public string CNH { get; set; } + public string CAT_CNH { get; set; } + + public string ECIVIL { get; set; } + public string REGIME { get; set; } + + public string CEP { get; set; } + public string ENDERECO { get; set; } + public string ENDNUMERO { get; set; } + public string BAIRRO { get; set; } + public string CIDADE { get; set; } + public string UF { get; set; } + + public string BANCO { get; set; } + public string AGENCIA { get; set; } + public string CONTA { get; set; } + + public string TELEFONE { get; set; } + + public string PASS { get; set; } + + public bool MASTERUSER { get; set; } + public bool VENDEDOR { get; set; } + public bool TECNICO { get; set; } + public bool DEMITIDO { get; set; } + + public string FTECNICO { get; set; } + public string FVENDEDOR { get; set; } + public string FPATH { get; set; } + + public string OBSERV { get; set; } + + public DateTime? DATA_ADM { get; set; } + public DateTime? DATA_DEM { get; set; } + public DateTime? ANIVER { get; set; } + + #region CONSTRUTORES + + // Construtor vazio + public ModeloFuncionarios() + { + ID_FUNCIONARIO = 0; + CODIGO = ""; + NOME = ""; + PAI = ""; + MAE = ""; + CPF = ""; + CI = ""; + CTPS = ""; + CNH = ""; + CAT_CNH = ""; + ECIVIL = ""; + REGIME = ""; + CEP = ""; + ENDERECO = ""; + ENDNUMERO = ""; + BAIRRO = ""; + CIDADE = ""; + UF = ""; + BANCO = ""; + AGENCIA = ""; + CONTA = ""; + TELEFONE = ""; + PASS = ""; + MASTERUSER = false; + VENDEDOR = false; + TECNICO = false; + DEMITIDO = false; + FTECNICO = ""; + FVENDEDOR = ""; + FPATH = ""; + OBSERV = ""; + DATA_ADM = DateTime.Now; + DATA_DEM = DateTime.Now; + ANIVER = DateTime.Now; + } + + // Construtor completo + public ModeloFuncionarios( + int id, + string codigo, + string nome, + string pai, + string mae, + string cpf, + string ci, + string ctps, + string cnh, + string catCnh, + string ecivil, + string regime, + string cep, + string endereco, + string endNumero, + string bairro, + string cidade, + string uf, + string banco, + string agencia, + string conta, + string telefone, + string pass, + bool masterUser, + bool vendedor, + bool tecnico, + bool demitido, + string fTecnico, + string fVendedor, + string fPath, + string observ, + DateTime? dataAdm, + DateTime? dataDem, + DateTime? aniver + ) + { + ID_FUNCIONARIO = id; + CODIGO = codigo; + NOME = nome; + PAI = pai; + MAE = mae; + CPF = cpf; + CI = ci; + CTPS = ctps; + CNH = cnh; + CAT_CNH = catCnh; + ECIVIL = ecivil; + REGIME = regime; + CEP = cep; + ENDERECO = endereco; + ENDNUMERO = endNumero; + BAIRRO = bairro; + CIDADE = cidade; + UF = uf; + BANCO = banco; + AGENCIA = agencia; + CONTA = conta; + TELEFONE = telefone; + PASS = pass; + MASTERUSER = masterUser; + VENDEDOR = vendedor; + TECNICO = tecnico; + DEMITIDO = demitido; + FTECNICO = fTecnico; + FVENDEDOR = fVendedor; + FPATH = fPath; + OBSERV = observ; + DATA_ADM = dataAdm; + DATA_DEM = dataDem; + ANIVER = aniver; + } + + #endregion + } +} \ No newline at end of file diff --git a/MLL/ModeloIBPT.cs b/MLL/ModeloIBPT.cs new file mode 100644 index 0000000..f8cd770 --- /dev/null +++ b/MLL/ModeloIBPT.cs @@ -0,0 +1,44 @@ +using System; + +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) + { + ID_IBPT = iD_IBPT; + CODIGO = cODIGO; + NCM = nCM; + NacionalFederal = nacionalFederal; + ImportadosFederal = importadosFederal; + Estadual = estadual; + Municipal = municipal; + Tipo = tipo; + } + + public int ID_IBPT { get; set; } + + public string CODIGO { get; set; } + public string NCM { get; set; } + + public string NacionalFederal { get; set; } + public string ImportadosFederal { get; set; } + + public string Estadual { get; set; } + public string Municipal { get; set; } + + public string Tipo { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloIcmsEmp.cs b/MLL/ModeloIcmsEmp.cs new file mode 100644 index 0000000..a1d25c0 --- /dev/null +++ b/MLL/ModeloIcmsEmp.cs @@ -0,0 +1,120 @@ +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, + string uF_MS, string uF_MG, string uF_PA, string uF_PB, string uF_PR, + string uF_PE, string uF_PI, string uF_RN, string uF_RS, string uF_RJ, + string uF_RO, string uF_RR, string uF_SC, string uF_SP, string uF_SE, + string uF_TO, string fCP) + { + ID_ICMS_EMP = iD_ICMS_EMP; + CODIGO = cODIGO; + UF = uF; + ICMS = iCMS; + UF_AC = uF_AC; + UF_AL = uF_AL; + UF_AM = uF_AM; + UF_AP = uF_AP; + UF_BA = uF_BA; + UF_CE = uF_CE; + UF_DF = uF_DF; + UF_ES = uF_ES; + UF_GO = uF_GO; + UF_MA = uF_MA; + UF_MT = uF_MT; + UF_MS = uF_MS; + UF_MG = uF_MG; + UF_PA = uF_PA; + UF_PB = uF_PB; + UF_PR = uF_PR; + UF_PE = uF_PE; + UF_PI = uF_PI; + UF_RN = uF_RN; + UF_RS = uF_RS; + UF_RJ = uF_RJ; + UF_RO = uF_RO; + UF_RR = uF_RR; + UF_SC = uF_SC; + UF_SP = uF_SP; + UF_SE = uF_SE; + UF_TO = uF_TO; + FCP = fCP; + } + + public int ID_ICMS_EMP { get; set; } + public string CODIGO { get; set; } + public string UF { get; set; } + public string ICMS { get; set; } + public string UF_AC { get; set; } + public string UF_AL { get; set; } + public string UF_AM { get; set; } + public string UF_AP { get; set; } + public string UF_BA { get; set; } + public string UF_CE { get; set; } + public string UF_DF { get; set; } + public string UF_ES { get; set; } + public string UF_GO { get; set; } + public string UF_MA { get; set; } + public string UF_MT { get; set; } + public string UF_MS { get; set; } + public string UF_MG { get; set; } + public string UF_PA { get; set; } + public string UF_PB { get; set; } + public string UF_PR { get; set; } + public string UF_PE { get; set; } + public string UF_PI { get; set; } + public string UF_RN { get; set; } + public string UF_RS { get; set; } + public string UF_RJ { get; set; } + public string UF_RO { get; set; } + public string UF_RR { get; set; } + public string UF_SC { get; set; } + public string UF_SP { get; set; } + public string UF_SE { get; set; } + public string UF_TO { get; set; } + + public string FCP { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloIcmsUf.cs b/MLL/ModeloIcmsUf.cs new file mode 100644 index 0000000..7a86627 --- /dev/null +++ b/MLL/ModeloIcmsUf.cs @@ -0,0 +1,32 @@ +using System; + +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; + CODIGO = cODIGO; + COD_ITEM = cOD_ITEM; + UF = uF; + ICMS = iCMS; + } + + public int ID_ICMS_UF { get; set; } + + public string CODIGO { get; set; } + public string COD_ITEM { get; set; } + + public string UF { get; set; } + public string ICMS { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItens.cs b/MLL/ModeloItens.cs new file mode 100644 index 0000000..a8e26f1 --- /dev/null +++ b/MLL/ModeloItens.cs @@ -0,0 +1,134 @@ +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, + string eSTOQUE_DISP, string cUSTO, string lUCRO, string vENDA, string fORNECEDOR, string lOCAL, string gAVETA, string fABRICANTE, string nOMECURTO, string p_FOTO, string nC_MERCOSUL, string c_CST, string c_ICMS, string c_IPI, string uLTIMA_VENDA, string uLTIMA_COMPRA, string pRECO_1, string pRECO_2, string gTIN, string vALIDADE, string oBSERVACOES) + { + ID_ITENS = iD_ITENS; + CODIGO = cODIGO; + NUMERO = nUMERO; + NOME = nOME; + GRUPO = gRUPO; + SUBGRUPO = sUBGRUPO; + TIPO = tIPO; + UNIDADE = uNIDADE; + NUMERO_FAB = nUMERO_FAB; + ESTOQUE_MIN = eSTOQUE_MIN; + ESTOQUE_IDEAL = eSTOQUE_IDEAL; + ESTOQUE_DISP = eSTOQUE_DISP; + CUSTO = cUSTO; + LUCRO = lUCRO; + VENDA = vENDA; + FORNECEDOR = fORNECEDOR; + LOCAL = lOCAL; + GAVETA = gAVETA; + FABRICANTE = fABRICANTE; + NOMECURTO = nOMECURTO; + P_FOTO = p_FOTO; + NC_MERCOSUL = nC_MERCOSUL; + C_CST = c_CST; + C_ICMS = c_ICMS; + C_IPI = c_IPI; + ULTIMA_VENDA = uLTIMA_VENDA; + ULTIMA_COMPRA = uLTIMA_COMPRA; + PRECO_1 = pRECO_1; + PRECO_2 = pRECO_2; + GTIN = gTIN; + VALIDADE = vALIDADE; + OBSERVACOES = oBSERVACOES; + } + + public int ID_ITENS { get; set; } + public string CODIGO { get; set; } + public string NUMERO { get; set; } + public string NOME { get; set; } + + public string GRUPO { get; set; } + public string SUBGRUPO { get; set; } + + public string TIPO { get; set; } + + public string UNIDADE { get; set; } + + public string NUMERO_FAB { get; set; } + + public string ESTOQUE_MIN { get; set; } + public string ESTOQUE_IDEAL { get; set; } + public string ESTOQUE_DISP { get; set; } + + public string CUSTO { get; set; } + public string LUCRO { get; set; } + public string VENDA { get; set; } + + public string FORNECEDOR { get; set; } + + public string LOCAL { get; set; } + public string GAVETA { get; set; } + + public string FABRICANTE { get; set; } + + public string NOMECURTO { get; set; } + + public string P_FOTO { get; set; } + + public string NC_MERCOSUL { get; set; } + + public string C_CST { get; set; } + public string C_ICMS { get; set; } + public string C_IPI { get; set; } + + public string ULTIMA_VENDA { get; set; } + public string ULTIMA_COMPRA { get; set; } + + public string PRECO_1 { get; set; } + public string PRECO_2 { get; set; } + + public string GTIN { get; set; } + + public string VALIDADE { get; set; } + + public string OBSERVACOES { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensEntrada.cs b/MLL/ModeloItensEntrada.cs new file mode 100644 index 0000000..d0a243c --- /dev/null +++ b/MLL/ModeloItensEntrada.cs @@ -0,0 +1,50 @@ +using System; + +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) + { + ID_ITENS_ENTRADA = iD_ITENS_ENTRADA; + CODIGO = cODIGO; + COD_ITEM = cOD_ITEM; + NOVOS = nOVOS; + NOTA = nOTA; + TOTAL = tOTAL; + DATA_INC = dATA_INC; + FUNCIONARIO = fUNCIONARIO; + OBSERVACAO = oBSERVACAO; + FORNECEDOR = fORNECEDOR; + PED_NUM = pED_NUM; + } + + public int ID_ITENS_ENTRADA { get; set; } + public string CODIGO { get; set; } + public string COD_ITEM { get; set; } + public string NOVOS { get; set; } + public string NOTA { get; set; } + public string TOTAL { get; set; } + public string DATA_INC { get; set; } + public string FUNCIONARIO { get; set; } + public string OBSERVACAO { get; set; } + public string FORNECEDOR { get; set; } + public string PED_NUM { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensFabrica.cs b/MLL/ModeloItensFabrica.cs new file mode 100644 index 0000000..b72f14f --- /dev/null +++ b/MLL/ModeloItensFabrica.cs @@ -0,0 +1,45 @@ +using System; + +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; + CODIGO = cODIGO; + KIT_CODIGO = kIT_CODIGO; + ITEM_CODIGO = iTEM_CODIGO; + BARCODE = bARCODE; + DESCRICAO = dESCRICAO; + QTD = qTD; + CUSTO = cUSTO; + VENDA = vENDA; + SERVICO = sERVICO; + } + + public int ID_ITENS_FABRICA { get; set; } + public string CODIGO { get; set; } + public string KIT_CODIGO { get; set; } + public string ITEM_CODIGO { get; set; } + public string BARCODE { get; set; } + public string DESCRICAO { get; set; } + public string QTD { get; set; } + public string CUSTO { get; set; } + public string VENDA { get; set; } + public string SERVICO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensFotosML.cs b/MLL/ModeloItensFotosML.cs new file mode 100644 index 0000000..fc34452 --- /dev/null +++ b/MLL/ModeloItensFotosML.cs @@ -0,0 +1,28 @@ +using System; + +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; + CODIGO = cODIGO; + COD_ITEM = cOD_ITEM; + LINK_FOTO = lINK_FOTO; + } + + public int ID_ITENS_FOTOS_ML { get; set; } + public string CODIGO { get; set; } + public string COD_ITEM { get; set; } + + public string LINK_FOTO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensNota.cs b/MLL/ModeloItensNota.cs new file mode 100644 index 0000000..47c81b2 --- /dev/null +++ b/MLL/ModeloItensNota.cs @@ -0,0 +1,85 @@ +using System; + +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, + string tOTAL, string cFOP, string cST, string gTIN, string iNF_ADIC) + { + ID_ITENS_NOTA = iD_ITENS_NOTA; + CODIGO = cODIGO; + COD_NOTA = cOD_NOTA; + TIPO = tIPO; + COD_VENDEDOR = cOD_VENDEDOR; + COD_ITEM = cOD_ITEM; + DESCRICAO = dESCRICAO; + UNIDADE = uNIDADE; + QTD = qTD; + PRECO = pRECO; + ICMS = iCMS; + IPI = iPI; + ISS = iSS; + DESCONTO = dESCONTO; + TOTAL = tOTAL; + CFOP = cFOP; + CST = cST; + GTIN = gTIN; + INF_ADIC = iNF_ADIC; + } + + public int ID_ITENS_NOTA { get; set; } + + public string CODIGO { get; set; } + public string COD_NOTA { get; set; } + + public string TIPO { get; set; } + + public string COD_VENDEDOR { get; set; } + public string COD_ITEM { get; set; } + + public string DESCRICAO { get; set; } + public string UNIDADE { get; set; } + + public string QTD { get; set; } + public string PRECO { get; set; } + + public string ICMS { get; set; } + public string IPI { get; set; } + public string ISS { get; set; } + + public string DESCONTO { get; set; } + public string TOTAL { get; set; } + + public string CFOP { get; set; } + public string CST { get; set; } + + public string GTIN { get; set; } + + public string INF_ADIC { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensOrca.cs b/MLL/ModeloItensOrca.cs new file mode 100644 index 0000000..59f804d --- /dev/null +++ b/MLL/ModeloItensOrca.cs @@ -0,0 +1,56 @@ +using System; + +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) + { + ID_ITENS = iD_ITENS; + BARCODE = bARCODE; + DESCRICAO = dESCRICAO; + SERVICO = sERVICO; + QTD = qTD; + VRL_UN = vRL_UN; + DESCONTO = dESCONTO; + VLR_TOTAL = vLR_TOTAL; + UN = uN; + VENDA = vENDA; + CODIGO = cODIGO; + } + + public int ID_ITENS { get; set; } + + public string BARCODE { get; set; } + public string DESCRICAO { get; set; } + + public string SERVICO { get; set; } + + public string QTD { get; set; } + public string VRL_UN { get; set; } + public string DESCONTO { get; set; } + public string VLR_TOTAL { get; set; } + + public string UN { get; set; } + + public string VENDA { get; set; } + + public string CODIGO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensPedido.cs b/MLL/ModeloItensPedido.cs new file mode 100644 index 0000000..1e4c217 --- /dev/null +++ b/MLL/ModeloItensPedido.cs @@ -0,0 +1,73 @@ +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, + string sERIAIS_IN) + { + ID_ITENS_PEDIDO = iD_ITENS_PEDIDO; + CODIGO = cODIGO; + ITEM = iTEM; + PEDIDO = pEDIDO; + COD_ITEM = cOD_ITEM; + NOME = nOME; + UN = uN; + QTD = qTD; + VLR = vLR; + IPI = iPI; + ICMS = iCMS; + VALOR = vALOR; + COD_FAB = cOD_FAB; + this.VFrete = vFrete; + this.VSeguro = vSeguro; + this.VDesconto = vDesconto; + this.VOutros = vOutros; + SERIAIS_IN = sERIAIS_IN; + } + + public int ID_ITENS_PEDIDO { get; set; } + public string CODIGO { get; set; } + public string ITEM { get; set; } + public string PEDIDO { get; set; } + public string COD_ITEM { get; set; } + public string NOME { get; set; } + public string UN { get; set; } + public string QTD { get; set; } + public string VLR { get; set; } + public string IPI { get; set; } + 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 SERIAIS_IN { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensSaida.cs b/MLL/ModeloItensSaida.cs new file mode 100644 index 0000000..b715022 --- /dev/null +++ b/MLL/ModeloItensSaida.cs @@ -0,0 +1,52 @@ +using System; + +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) + { + ID_ITENS_SAIDA = iD_ITENS_SAIDA; + CODIGO = cODIGO; + COD_ITEM = cOD_ITEM; + QTD_SAI = qTD_SAI; + FUNCIONARIO = fUNCIONARIO; + NOTA = nOTA; + OS = oS; + OP = oP; + OBSERVACAO = oBSERVACAO; + DATA_SAIDA = dATA_SAIDA; + NATUREZA = nATUREZA; + OV = oV; + } + + public int ID_ITENS_SAIDA { get; set; } + public string CODIGO { get; set; } + public string COD_ITEM { get; set; } + public string QTD_SAI { get; set; } + public string FUNCIONARIO { get; set; } + public string NOTA { get; set; } + public string OS { get; set; } + public string OP { get; set; } + public string OBSERVACAO { get; set; } + public string DATA_SAIDA { get; set; } + public string NATUREZA { get; set; } + public string OV { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensSerial.cs b/MLL/ModeloItensSerial.cs new file mode 100644 index 0000000..bd51dcb --- /dev/null +++ b/MLL/ModeloItensSerial.cs @@ -0,0 +1,48 @@ +using System; + +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; + CODIGO = cODIGO; + COD_ITEM = cOD_ITEM; + SERIAL = sERIAL; + COD_NF_ENTRADA = cOD_NF_ENTRADA; + COD_NF_SAIDA = cOD_NF_SAIDA; + COD_ENTRADA = cOD_ENTRADA; + COD_SAIDA = cOD_SAIDA; + DATA_MOVIM = dATA_MOVIM; + BAIXADO = bAIXADO; + OBS = oBS; + } + + public int ID_ITENS_SERIAL { get; set; } + public string CODIGO { get; set; } + public string COD_ITEM { get; set; } + public string SERIAL { get; set; } + public string COD_NF_ENTRADA { get; set; } + public string COD_NF_SAIDA { get; set; } + public string COD_ENTRADA { get; set; } + public string COD_SAIDA { get; set; } + public string DATA_MOVIM { get; set; } + public string BAIXADO { get; set; } + public string OBS { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloItensVenda.cs b/MLL/ModeloItensVenda.cs new file mode 100644 index 0000000..aa244c6 --- /dev/null +++ b/MLL/ModeloItensVenda.cs @@ -0,0 +1,76 @@ +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, + string nITEMPED, string cUSTO, string vINF_ADIC, string lOTES) + { + ID_ITENS_VENDA = iD_ITENS_VENDA; + CODIGO = cODIGO; + ITEM_CODIGO = iTEM_CODIGO; + BARCODE = bARCODE; + DESCRICAO = dESCRICAO; + SERVICO = sERVICO; + QTD = qTD; + VRL_UN = vRL_UN; + DESCONTO = dESCONTO; + VLR_TOTAL = vLR_TOTAL; + UN = uN; + VENDA = vENDA; + DIA = dIA; + SERIAIS_IN = sERIAIS_IN; + XPED = xPED; + NITEMPED = nITEMPED; + CUSTO = cUSTO; + VINF_ADIC = vINF_ADIC; + LOTES = lOTES; + } + + public int ID_ITENS_VENDA { get; set; } + public string CODIGO { get; set; } + public string ITEM_CODIGO { get; set; } + public string BARCODE { get; set; } + public string DESCRICAO { get; set; } + public string SERVICO { get; set; } + public string QTD { get; set; } + public string VRL_UN { get; set; } + public string DESCONTO { get; set; } + public string VLR_TOTAL { get; set; } + public string UN { get; set; } + public string VENDA { get; set; } + public string DIA { get; set; } + public string SERIAIS_IN { get; set; } + public string XPED { get; set; } + public string NITEMPED { get; set; } + public string CUSTO { get; set; } + public string VINF_ADIC { get; set; } + public string LOTES { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloLCP116.cs b/MLL/ModeloLCP116.cs new file mode 100644 index 0000000..30e5d6d --- /dev/null +++ b/MLL/ModeloLCP116.cs @@ -0,0 +1,33 @@ +using System; + +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; + CODIGO = cODIGO; + DESCRICAO = dESCRICAO; + CODIGO_PAI = cODIGO_PAI; + CODIGO_FILHO = cODIGO_FILHO; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_LCP116 { get; set; } + public string CODIGO { get; set; } + public string DESCRICAO { get; set; } + public string CODIGO_PAI { get; set; } + public string CODIGO_FILHO { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloLogUser.cs b/MLL/ModeloLogUser.cs new file mode 100644 index 0000000..9f7d467 --- /dev/null +++ b/MLL/ModeloLogUser.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + USUARIO = uSUARIO; + MICRO = mICRO; + ACAO = aCAO; + RISCO = rISCO; + DIA_LOG = dIA_LOG; + ENDER_CLI = eNDER_CLI; + } + + public int ID_LOG_USER { get; set; } + public string CODIGO { get; set; } + public string USUARIO { get; set; } + public string MICRO { get; set; } + public string ACAO { get; set; } + public string RISCO { get; set; } + public string DIA_LOG { get; set; } + public string ENDER_CLI { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNFEInutilizadas.cs b/MLL/ModeloNFEInutilizadas.cs new file mode 100644 index 0000000..00a479e --- /dev/null +++ b/MLL/ModeloNFEInutilizadas.cs @@ -0,0 +1,38 @@ +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; + CODIGO = cODIGO; + MOTIVO = mOTIVO; + NUMERO_INICIAL = nUMERO_INICIAL; + NUMERO_FINAL = nUMERO_FINAL; + DIA = dIA; + MODELO = mODELO; + } + + public int ID_NFE_INUTILIZADAS { get; set; } + public string CODIGO { get; set; } + public string MOTIVO { get; set; } + public string NUMERO_INICIAL { get; set; } + public string NUMERO_FINAL { get; set; } + public string DIA { get; set; } + public string MODELO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNFENumeroLote.cs b/MLL/ModeloNFENumeroLote.cs new file mode 100644 index 0000000..def8991 --- /dev/null +++ b/MLL/ModeloNFENumeroLote.cs @@ -0,0 +1,30 @@ +using System; + +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; + CODIGO = cODIGO; + NUM_NF = nUM_NF; + DATA_GERADO = dATA_GERADO; + RETORNO = rETORNO; + } + + public int ID_NFE_NUM_LOTE { get; set; } + public string CODIGO { get; set; } + public string NUM_NF { get; set; } + public string DATA_GERADO { get; set; } + public string RETORNO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNFEUfCidade.cs b/MLL/ModeloNFEUfCidade.cs new file mode 100644 index 0000000..7ca7b55 --- /dev/null +++ b/MLL/ModeloNFEUfCidade.cs @@ -0,0 +1,30 @@ +using System; + +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; + UF_COD = uF_COD; + UF_NOME = uF_NOME; + CID_COD = cID_COD; + CID_NOME = cID_NOME; + }//Modelo + + public int ID_NFE_UF_CIDADE { get; set; } + public string UF_COD { get; set; } + public string UF_NOME { get; set; } + public string CID_COD { get; set; } + public string CID_NOME { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasCCE.cs b/MLL/ModeloNotasCCE.cs new file mode 100644 index 0000000..54b8958 --- /dev/null +++ b/MLL/ModeloNotasCCE.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + COD_NFE = cOD_NFE; + CORRECAO = cORRECAO; + DATA_HORA = dATA_HORA; + TZD = tZD; + EVENTO = eVENTO; + RETORNO = rETORNO; + } + + public int ID_NOTAS_CCE { get; set; } + public string CODIGO { get; set; } + public string COD_NFE { get; set; } + public string CORRECAO { get; set; } + public string DATA_HORA { get; set; } + public string TZD { get; set; } + public string EVENTO { get; set; } + public string RETORNO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasCFOP.cs b/MLL/ModeloNotasCFOP.cs new file mode 100644 index 0000000..f4f7bf9 --- /dev/null +++ b/MLL/ModeloNotasCFOP.cs @@ -0,0 +1,42 @@ +using System; + +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; + CODIGO = cODIGO; + CFOP = cFOP; + DESCRICAO = dESCRICAO; + BESTOQUE = bESTOQUE; + BCONTAS = bCONTAS; + BICMS = bICMS; + BICMS_ST = bICMS_ST; + BASE = bASE; + } + + public int ID_NOTAS_CFOP { get; set; } + public string CODIGO { get; set; } + public string CFOP { get; set; } + public string DESCRICAO { get; set; } + public string BESTOQUE { get; set; } + public string BCONTAS { get; set; } + public string BICMS { get; set; } + public string BICMS_ST { get; set; } + public string BASE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasCompras.cs b/MLL/ModeloNotasCompras.cs new file mode 100644 index 0000000..e2b9271 --- /dev/null +++ b/MLL/ModeloNotasCompras.cs @@ -0,0 +1,304 @@ +using System; + +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, + string dESTEMIT_XFANT, string dESTEMIT_XLGR, string dESTEMIT_NRO, string dESTEMIT_XCLP, string dESTEMIT_XBAIRRO, string dESTEMIT_CMUN, + string dESTEMIT_XMUN, string dESTEMIT_UF, string dESTEMIT_CEP, string dESTEMIT_CPAIS, string dESTEMIT_XPAIS, string dESTEMIT_FONE, string dESTEMIT_IE, + string dESTEMIT_IEST, string dESTEMIT_IM, string dESTEMIT_CNAE, string dESTEMIT_CRT, string dESTEMIT_ISUF, string dESTEMIT_EMAIL, string tRANSP_CODIGO, + string tRANSP_MODFRETE, string tRANSP_CNPJCPF, string tRANSP_XNOME, string tRANSP_IE, string tRANSP_XBAIRRO, string tRANSP_XLGR, string tRANSP_CPAIS, + string tRANSP_CMUN, string tRANSP_XMUN, string tRANSP_NRO, string tRANSP_UF, string tRANSP_PLACA, string tRANSP_RNTC, string tRANSP_QVOL, string tRANSP_ESP, + string tRANSP_MARCA, string tRANSP_NVOL, string tRANSP_PESOL, string tRANSP_PESOB, 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_ST, string tOTAL_VPIS, string tOTAL_VCOFINS, string tOTAL_VCOFINS_ST, string tOTAL_VOUTRO, string tOTAL_ISS, string tOTAL_VNF, string nFREF_REFNF, string rEFECF_MOD, string rEFECF_NECF, string rEFECF_NCOO, string rEFECF_TPIMP, string rEFECF_TPEMIS, string rEFECF_FINNFE, string rEFECF_PROCEMI, string rEFECF_VERPROC, string rEFECF_DHCONT, string rEFECF_XJUST, string fAT_INDTIT, string oBS_COMPRADOR, string iDE_NATOP, string mANIFESTO, string iDE_CODSIT, string infCpl, string infAdFisco) + { + ID_NOTAS_COMPRAS = iD_NOTAS_COMPRAS; + CODIGO = cODIGO; + CFOP = cFOP; + IDE_INDPAG = iDE_INDPAG; + IDE_MOD = iDE_MOD; + IDE_SERIE = iDE_SERIE; + IDE_NNF = iDE_NNF; + IDE_DEMI = iDE_DEMI; + IDE_DSAIENT = iDE_DSAIENT; + IDE_HSAIENT = iDE_HSAIENT; + IDE_CMUNFG = iDE_CMUNFG; + IDE_CHNFE = iDE_CHNFE; + IDE_INDEMIT = iDE_INDEMIT; + IDE_CODCONS = iDE_CODCONS; + DESTEMIT_CODIGO = dESTEMIT_CODIGO; + DESTEMIT_CNPJCPF = dESTEMIT_CNPJCPF; + DESTEMIT_XNOME = dESTEMIT_XNOME; + DESTEMIT_XFANT = dESTEMIT_XFANT; + DESTEMIT_XLGR = dESTEMIT_XLGR; + DESTEMIT_NRO = dESTEMIT_NRO; + DESTEMIT_XCLP = dESTEMIT_XCLP; + DESTEMIT_XBAIRRO = dESTEMIT_XBAIRRO; + DESTEMIT_CMUN = dESTEMIT_CMUN; + DESTEMIT_XMUN = dESTEMIT_XMUN; + DESTEMIT_UF = dESTEMIT_UF; + DESTEMIT_CEP = dESTEMIT_CEP; + DESTEMIT_CPAIS = dESTEMIT_CPAIS; + DESTEMIT_XPAIS = dESTEMIT_XPAIS; + DESTEMIT_FONE = dESTEMIT_FONE; + DESTEMIT_IE = dESTEMIT_IE; + DESTEMIT_IEST = dESTEMIT_IEST; + DESTEMIT_IM = dESTEMIT_IM; + DESTEMIT_CNAE = dESTEMIT_CNAE; + DESTEMIT_CRT = dESTEMIT_CRT; + DESTEMIT_ISUF = dESTEMIT_ISUF; + DESTEMIT_EMAIL = dESTEMIT_EMAIL; + TRANSP_CODIGO = tRANSP_CODIGO; + TRANSP_MODFRETE = tRANSP_MODFRETE; + TRANSP_CNPJCPF = tRANSP_CNPJCPF; + TRANSP_XNOME = tRANSP_XNOME; + TRANSP_IE = tRANSP_IE; + TRANSP_XBAIRRO = tRANSP_XBAIRRO; + TRANSP_XLGR = tRANSP_XLGR; + TRANSP_CPAIS = tRANSP_CPAIS; + TRANSP_CMUN = tRANSP_CMUN; + TRANSP_XMUN = tRANSP_XMUN; + TRANSP_NRO = tRANSP_NRO; + TRANSP_UF = tRANSP_UF; + TRANSP_PLACA = tRANSP_PLACA; + TRANSP_RNTC = tRANSP_RNTC; + TRANSP_QVOL = tRANSP_QVOL; + TRANSP_ESP = tRANSP_ESP; + TRANSP_MARCA = tRANSP_MARCA; + TRANSP_NVOL = tRANSP_NVOL; + TRANSP_PESOL = tRANSP_PESOL; + TRANSP_PESOB = tRANSP_PESOB; + TOTAL_VBC = tOTAL_VBC; + TOTAL_VICMS = tOTAL_VICMS; + TOTAL_VBCST = tOTAL_VBCST; + TOTAL_VST = tOTAL_VST; + TOTAL_VPROD = tOTAL_VPROD; + TOTAL_VFRETE = tOTAL_VFRETE; + TOTAL_VSEG = tOTAL_VSEG; + TOTAL_VDESC = tOTAL_VDESC; + TOTAL_VII = tOTAL_VII; + TOTAL_VIPI = tOTAL_VIPI; + TOTAL_VPIS_ST = tOTAL_VPIS_ST; + TOTAL_VPIS = tOTAL_VPIS; + TOTAL_VCOFINS = tOTAL_VCOFINS; + TOTAL_VCOFINS_ST = tOTAL_VCOFINS_ST; + TOTAL_VOUTRO = tOTAL_VOUTRO; + TOTAL_ISS = tOTAL_ISS; + TOTAL_VNF = tOTAL_VNF; + NFREF_REFNF = nFREF_REFNF; + REFECF_MOD = rEFECF_MOD; + REFECF_NECF = rEFECF_NECF; + REFECF_NCOO = rEFECF_NCOO; + REFECF_TPIMP = rEFECF_TPIMP; + REFECF_TPEMIS = rEFECF_TPEMIS; + REFECF_FINNFE = rEFECF_FINNFE; + REFECF_PROCEMI = rEFECF_PROCEMI; + REFECF_VERPROC = rEFECF_VERPROC; + REFECF_DHCONT = rEFECF_DHCONT; + REFECF_XJUST = rEFECF_XJUST; + FAT_INDTIT = fAT_INDTIT; + OBS_COMPRADOR = oBS_COMPRADOR; + IDE_NATOP = iDE_NATOP; + MANIFESTO = mANIFESTO; + IDE_CODSIT = iDE_CODSIT; + this.InfCpl = infCpl; + this.InfAdFisco = infAdFisco; + } + + public int ID_NOTAS_COMPRAS { get; set; } + public string CODIGO { get; set; } + public string CFOP { get; set; } + + public string IDE_INDPAG { get; set; } + public string IDE_MOD { get; set; } + public string IDE_SERIE { get; set; } + public string IDE_NNF { get; set; } + public string IDE_DEMI { get; set; } + public string IDE_DSAIENT { get; set; } + public string IDE_HSAIENT { get; set; } + public string IDE_CMUNFG { get; set; } + public string IDE_CHNFE { get; set; } + public string IDE_INDEMIT { get; set; } + public string IDE_CODCONS { get; set; } + + public string DESTEMIT_CODIGO { get; set; } + public string DESTEMIT_CNPJCPF { get; set; } + public string DESTEMIT_XNOME { get; set; } + public string DESTEMIT_XFANT { get; set; } + public string DESTEMIT_XLGR { get; set; } + public string DESTEMIT_NRO { get; set; } + public string DESTEMIT_XCLP { get; set; } + public string DESTEMIT_XBAIRRO { get; set; } + public string DESTEMIT_CMUN { get; set; } + public string DESTEMIT_XMUN { get; set; } + public string DESTEMIT_UF { get; set; } + public string DESTEMIT_CEP { get; set; } + public string DESTEMIT_CPAIS { get; set; } + public string DESTEMIT_XPAIS { get; set; } + public string DESTEMIT_FONE { get; set; } + public string DESTEMIT_IE { get; set; } + public string DESTEMIT_IEST { get; set; } + public string DESTEMIT_IM { get; set; } + public string DESTEMIT_CNAE { get; set; } + public string DESTEMIT_CRT { get; set; } + public string DESTEMIT_ISUF { get; set; } + public string DESTEMIT_EMAIL { get; set; } + + public string TRANSP_CODIGO { get; set; } + public string TRANSP_MODFRETE { get; set; } + public string TRANSP_CNPJCPF { get; set; } + public string TRANSP_XNOME { get; set; } + public string TRANSP_IE { get; set; } + public string TRANSP_XBAIRRO { get; set; } + public string TRANSP_XLGR { get; set; } + public string TRANSP_CPAIS { get; set; } + public string TRANSP_CMUN { get; set; } + public string TRANSP_XMUN { get; set; } + public string TRANSP_NRO { get; set; } + public string TRANSP_UF { get; set; } + public string TRANSP_PLACA { get; set; } + public string TRANSP_RNTC { get; set; } + public string TRANSP_QVOL { get; set; } + public string TRANSP_ESP { get; set; } + public string TRANSP_MARCA { get; set; } + public string TRANSP_NVOL { get; set; } + public string TRANSP_PESOL { get; set; } + public string TRANSP_PESOB { get; set; } + + public string TOTAL_VBC { get; set; } + public string TOTAL_VICMS { get; set; } + public string TOTAL_VBCST { get; set; } + public string TOTAL_VST { get; set; } + public string TOTAL_VPROD { get; set; } + public string TOTAL_VFRETE { get; set; } + public string TOTAL_VSEG { get; set; } + public string TOTAL_VDESC { get; set; } + public string TOTAL_VII { get; set; } + public string TOTAL_VIPI { get; set; } + public string TOTAL_VPIS_ST { get; set; } + public string TOTAL_VPIS { get; set; } + public string TOTAL_VCOFINS { get; set; } + public string TOTAL_VCOFINS_ST { get; set; } + public string TOTAL_VOUTRO { get; set; } + public string TOTAL_ISS { get; set; } + public string TOTAL_VNF { get; set; } + + public string NFREF_REFNF { get; set; } + + public string REFECF_MOD { get; set; } + public string REFECF_NECF { get; set; } + public string REFECF_NCOO { get; set; } + public string REFECF_TPIMP { get; set; } + public string REFECF_TPEMIS { get; set; } + public string REFECF_FINNFE { get; set; } + public string REFECF_PROCEMI { get; set; } + public string REFECF_VERPROC { get; set; } + public string REFECF_DHCONT { get; set; } + public string REFECF_XJUST { get; set; } + + public string FAT_INDTIT { get; set; } + public string OBS_COMPRADOR { get; set; } + public string IDE_NATOP { get; set; } + public string MANIFESTO { get; set; } + public string IDE_CODSIT { 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 new file mode 100644 index 0000000..a7f4d14 --- /dev/null +++ b/MLL/ModeloNotasComprasCorel.cs @@ -0,0 +1,30 @@ +using System; + +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; + CODIGO = cODIGO; + FORNEC_CNPJ = fORNEC_CNPJ; + FORNEC_cProd = fORNEC_cProd; + MEU_cProd = mEU_cProd; + } + + public int ID_NOTAS_COMP_COREL { get; set; } + public string CODIGO { get; set; } + public string FORNEC_CNPJ { get; set; } + public string FORNEC_cProd { get; set; } + public string MEU_cProd { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasComprasDFE.cs b/MLL/ModeloNotasComprasDFE.cs new file mode 100644 index 0000000..bc13ea1 --- /dev/null +++ b/MLL/ModeloNotasComprasDFE.cs @@ -0,0 +1,27 @@ +using System; + +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; + CODIGO = cODIGO; + CHAVE = cHAVE; + MANIFESTADO = mANIFESTADO; + } + + public int ID_NOTAS_COMPRAS_DFE { get; set; } + public string CODIGO { get; set; } + public string CHAVE { get; set; } + public string MANIFESTADO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasComprasFaturas.cs b/MLL/ModeloNotasComprasFaturas.cs new file mode 100644 index 0000000..61aa1db --- /dev/null +++ b/MLL/ModeloNotasComprasFaturas.cs @@ -0,0 +1,33 @@ +using System; + +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; + CODIGO = cODIGO; + NOTA_ID = nOTA_ID; + NPARC = nPARC; + DVENC = dVENC; + VPARC = vPARC; + } + + public int ID_NOTAS_COMP_FATURAS { get; set; } + public string CODIGO { get; set; } + public string NOTA_ID { get; set; } + public string NPARC { get; set; } + public string DVENC { get; set; } + public string VPARC { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasComprasItens.cs b/MLL/ModeloNotasComprasItens.cs new file mode 100644 index 0000000..bae1972 --- /dev/null +++ b/MLL/ModeloNotasComprasItens.cs @@ -0,0 +1,162 @@ +using System; + +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, + string dI_NDI, string dI_DDI, string dI_XLOCDESEMB, string dI_UFDESEMB, string dI_CEXPORTADOR, string cOD_NAT, + string xPROD_COMPL, string nAT_BC_CRED, string cOD_CTA, string cOD_CCUS, string eX_IPI, string iND_NAT_FRT, string iPI_VBC, + string iPI_PIPI, string iPI_VIPI, string iCMS_VBC, string iCMS_PICMS, string iCMS_VICMS, string iCMS_VBCST, string iCMS_PICMSST, + string iCMS_VICMSST, string cOD_INTERNO, string xPED, string nITEMPED, string sERIAIS_IN, string eAN) + { + ID_NOTAS_COMP_ITENS = iD_NOTAS_COMP_ITENS; + CODIGO = cODIGO; + NOTA_ID = nOTA_ID; + CPROD = cPROD; + CEAN = cEAN; + XPROD = xPROD; + NCM = nCM; + CFOP = cFOP; + UCOM = uCOM; + QCOM = qCOM; + VUNCOM = vUNCOM; + VPROD = vPROD; + VFRETE = vFRETE; + VSEG = vSEG; + VDESC = vDESC; + VOUTRO = vOUTRO; + ORIG = oRIG; + CST_ICMS = cST_ICMS; + CST_PIS = cST_PIS; + CST_COFINS = cST_COFINS; + CST_IPI = cST_IPI; + DI_NDI = dI_NDI; + DI_DDI = dI_DDI; + DI_XLOCDESEMB = dI_XLOCDESEMB; + DI_UFDESEMB = dI_UFDESEMB; + DI_CEXPORTADOR = dI_CEXPORTADOR; + COD_NAT = cOD_NAT; + XPROD_COMPL = xPROD_COMPL; + NAT_BC_CRED = nAT_BC_CRED; + COD_CTA = cOD_CTA; + COD_CCUS = cOD_CCUS; + EX_IPI = eX_IPI; + IND_NAT_FRT = iND_NAT_FRT; + IPI_VBC = iPI_VBC; + IPI_PIPI = iPI_PIPI; + IPI_VIPI = iPI_VIPI; + ICMS_VBC = iCMS_VBC; + ICMS_PICMS = iCMS_PICMS; + ICMS_VICMS = iCMS_VICMS; + ICMS_VBCST = iCMS_VBCST; + ICMS_PICMSST = iCMS_PICMSST; + ICMS_VICMSST = iCMS_VICMSST; + COD_INTERNO = cOD_INTERNO; + XPED = xPED; + NITEMPED = nITEMPED; + SERIAIS_IN = sERIAIS_IN; + EAN = eAN; + } + + public int ID_NOTAS_COMP_ITENS { get; set; } + public string CODIGO { get; set; } + public string NOTA_ID { get; set; } + public string CPROD { get; set; } + public string CEAN { get; set; } + public string XPROD { get; set; } + public string NCM { get; set; } + public string CFOP { get; set; } + public string UCOM { get; set; } + public string QCOM { get; set; } + public string VUNCOM { get; set; } + public string VPROD { get; set; } + public string VFRETE { get; set; } + public string VSEG { get; set; } + public string VDESC { get; set; } + public string VOUTRO { get; set; } + public string ORIG { get; set; } + public string CST_ICMS { get; set; } + public string CST_PIS { get; set; } + public string CST_COFINS { get; set; } + public string CST_IPI { get; set; } + public string DI_NDI { get; set; } + public string DI_DDI { get; set; } + public string DI_XLOCDESEMB { get; set; } + public string DI_UFDESEMB { get; set; } + public string DI_CEXPORTADOR { get; set; } + public string COD_NAT { get; set; } + public string XPROD_COMPL { get; set; } + public string NAT_BC_CRED { get; set; } + public string COD_CTA { get; set; } + public string COD_CCUS { get; set; } + public string EX_IPI { get; set; } + public string IND_NAT_FRT { get; set; } + public string IPI_VBC { get; set; } + public string IPI_PIPI { get; set; } + public string IPI_VIPI { get; set; } + public string ICMS_VBC { get; set; } + public string ICMS_PICMS { get; set; } + public string ICMS_VICMS { get; set; } + public string ICMS_VBCST { get; set; } + public string ICMS_PICMSST { get; set; } + public string ICMS_VICMSST { get; set; } + public string COD_INTERNO { get; set; } + public string XPED { get; set; } + public string NITEMPED { get; set; } + public string SERIAIS_IN { get; set; } + public string EAN { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasConsumidorFormas.cs b/MLL/ModeloNotasConsumidorFormas.cs new file mode 100644 index 0000000..a16ce6e --- /dev/null +++ b/MLL/ModeloNotasConsumidorFormas.cs @@ -0,0 +1,41 @@ +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; + CODIGO = cODIGO; + COD_NFCE = cOD_NFCE; + FORMA = fORMA; + VALOR = vALOR; + DATA_CADASTRO = dATA_CADASTRO; + CNPJ_OPERADORA = cNPJ_OPERADORA; + TBAND = tBand; + } + + public int ID_NOTAS_CONS_FORMAS { get; set; } + public string CODIGO { get; set; } + public string COD_NFCE { 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasConsumidorItens.cs b/MLL/ModeloNotasConsumidorItens.cs new file mode 100644 index 0000000..1c480d5 --- /dev/null +++ b/MLL/ModeloNotasConsumidorItens.cs @@ -0,0 +1,212 @@ +using System; + +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, + string iTEM_VSEG, string iTEM_VDESC, string iTEM_vTotTrib, string iTEM_ORIGEM, string iTEM_CST, + string dATA_CADASTRO, string iTEM_ICMS_modBC, string iTEM_ICMS_pRedBC, string iTEM_ICMS_vBC, + string iTEM_ICMS_pICMS, string iTEM_ICMS_vICMS, string iTEM_ICMS_vICMSDeson, string iTEM_ICMS_motDesICMS, + string iTEM_ICMS_modBCST, string iTEM_ICMS_pMVAST, string iTEM_ICMS_pRedBCST, string iTEM_ICMS_vBCST, + string iTEM_ICMS_pICMSST, string iTEM_ICMS_vICMSST, string iTEM_cProdANP, string iTEM_CEST, string cBenef, + string iTEM_pFCP, string iTEM_vFCP, string iTEM_vBCFCP, string iTEM_vBCFCPST, string iTEM_pFCPST, string iTEM_vFCPST, + string iTEM_pST, string iTEM_vBCFCPSTRet, string iTEM_pFCPSTRet, string iTEM_vFCPSTRet, string iTEM_PIS_CST, string iTEM_PIS_vBC, + string iTEM_PIS_pPIS, string iTEM_PIS_vPIS, string iTEM_COFINS_CST, string iTEM_COFINS_vBC, string iTEM_COFINS_pCOFINS, string iTEM_COFINS_vCOFINS, + string vICMSSubstituto, string pRedBCEfet, string vBCEfet, string pICMSEfet, string vICMSEfet) + { + ID_NOTAS_CONSU_ITENS = iD_NOTAS_CONSU_ITENS; + CODIGO = cODIGO; + COD_NFCE = cOD_NFCE; + ITEM_TIPO = iTEM_TIPO; + ITEM_CEAN = iTEM_CEAN; + ITEM_CPROD = iTEM_CPROD; + ITEM_XPROD = iTEM_XPROD; + ITEM_INF_ADIC = iTEM_INF_ADIC; + ITEM_CFOP = iTEM_CFOP; + ITEM_NCM = iTEM_NCM; + ITEM_UNCOM = iTEM_UNCOM; + ITEM_QCOM = iTEM_QCOM; + ITEM_VPROD = iTEM_VPROD; + ITEM_VOUTRO = iTEM_VOUTRO; + ITEM_VFRETE = iTEM_VFRETE; + ITEM_VSEG = iTEM_VSEG; + ITEM_VDESC = iTEM_VDESC; + ITEM_vTotTrib = iTEM_vTotTrib; + ITEM_ORIGEM = iTEM_ORIGEM; + ITEM_CST = iTEM_CST; + DATA_CADASTRO = dATA_CADASTRO; + ITEM_ICMS_modBC = iTEM_ICMS_modBC; + ITEM_ICMS_pRedBC = iTEM_ICMS_pRedBC; + ITEM_ICMS_vBC = iTEM_ICMS_vBC; + ITEM_ICMS_pICMS = iTEM_ICMS_pICMS; + ITEM_ICMS_vICMS = iTEM_ICMS_vICMS; + ITEM_ICMS_vICMSDeson = iTEM_ICMS_vICMSDeson; + ITEM_ICMS_motDesICMS = iTEM_ICMS_motDesICMS; + ITEM_ICMS_modBCST = iTEM_ICMS_modBCST; + ITEM_ICMS_pMVAST = iTEM_ICMS_pMVAST; + ITEM_ICMS_pRedBCST = iTEM_ICMS_pRedBCST; + ITEM_ICMS_vBCST = iTEM_ICMS_vBCST; + ITEM_ICMS_pICMSST = iTEM_ICMS_pICMSST; + ITEM_ICMS_vICMSST = iTEM_ICMS_vICMSST; + ITEM_cProdANP = iTEM_cProdANP; + ITEM_CEST = iTEM_CEST; + this.CBenef = cBenef; + ITEM_pFCP = iTEM_pFCP; + ITEM_vFCP = iTEM_vFCP; + ITEM_vBCFCP = iTEM_vBCFCP; + ITEM_vBCFCPST = iTEM_vBCFCPST; + ITEM_pFCPST = iTEM_pFCPST; + ITEM_vFCPST = iTEM_vFCPST; + ITEM_pST = iTEM_pST; + ITEM_vBCFCPSTRet = iTEM_vBCFCPSTRet; + ITEM_pFCPSTRet = iTEM_pFCPSTRet; + ITEM_vFCPSTRet = iTEM_vFCPSTRet; + ITEM_PIS_CST = iTEM_PIS_CST; + ITEM_PIS_vBC = iTEM_PIS_vBC; + ITEM_PIS_pPIS = iTEM_PIS_pPIS; + ITEM_PIS_vPIS = iTEM_PIS_vPIS; + ITEM_COFINS_CST = iTEM_COFINS_CST; + 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; + } + + public int ID_NOTAS_CONSU_ITENS { get; set; } + public string CODIGO { get; set; } + public string COD_NFCE { get; set; } + public string ITEM_TIPO { get; set; } + public string ITEM_CEAN { get; set; } + public string ITEM_CPROD { get; set; } + public string ITEM_XPROD { get; set; } + public string ITEM_INF_ADIC { get; set; } + public string ITEM_CFOP { get; set; } + public string ITEM_NCM { get; set; } + public string ITEM_UNCOM { get; set; } + public string ITEM_QCOM { get; set; } + public string ITEM_VPROD { get; set; } + public string ITEM_VOUTRO { get; set; } + public string ITEM_VFRETE { get; set; } + public string ITEM_VSEG { get; set; } + public string ITEM_VDESC { get; set; } + public string ITEM_vTotTrib { get; set; } + public string ITEM_ORIGEM { get; set; } + public string ITEM_CST { get; set; } + public string DATA_CADASTRO { get; set; } + + public string ITEM_ICMS_modBC { get; set; } + public string ITEM_ICMS_pRedBC { get; set; } + public string ITEM_ICMS_vBC { get; set; } + public string ITEM_ICMS_pICMS { get; set; } + public string ITEM_ICMS_vICMS { get; set; } + public string ITEM_ICMS_vICMSDeson { get; set; } + public string ITEM_ICMS_motDesICMS { get; set; } + public string ITEM_ICMS_modBCST { get; set; } + public string ITEM_ICMS_pMVAST { get; set; } + public string ITEM_ICMS_pRedBCST { get; set; } + public string ITEM_ICMS_vBCST { get; set; } + public string ITEM_ICMS_pICMSST { get; set; } + public string ITEM_ICMS_vICMSST { get; set; } + + public string ITEM_cProdANP { get; set; } + public string ITEM_CEST { get; set; } + public string CBenef { get; set; } + + public string ITEM_pFCP { get; set; } + public string ITEM_vFCP { get; set; } + public string ITEM_vBCFCP { get; set; } + public string ITEM_vBCFCPST { get; set; } + public string ITEM_pFCPST { get; set; } + public string ITEM_vFCPST { get; set; } + public string ITEM_pST { get; set; } + public string ITEM_vBCFCPSTRet { get; set; } + public string ITEM_pFCPSTRet { get; set; } + public string ITEM_vFCPSTRet { get; set; } + + public string ITEM_PIS_CST { get; set; } + public string ITEM_PIS_vBC { get; set; } + public string ITEM_PIS_pPIS { get; set; } + public string ITEM_PIS_vPIS { get; set; } + + public string ITEM_COFINS_CST { get; set; } + public string ITEM_COFINS_vBC { get; set; } + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasContador.cs b/MLL/ModeloNotasContador.cs new file mode 100644 index 0000000..3ff114d --- /dev/null +++ b/MLL/ModeloNotasContador.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + CNPJ_CPF = cNPJ_CPF; + NOME = nOME; + DATA_CADASTRO = dATA_CADASTRO; + EMAIL = eMAIL; + TELEFONE = tELEFONE; + CONTADOR_ID = cONTADOR_ID; + } + + public int ID_NOTAS_CONTADOR { get; set; } + public string CODIGO { get; set; } + public string CNPJ_CPF { get; set; } + public string NOME { get; set; } + public string DATA_CADASTRO { get; set; } + public string EMAIL { get; set; } + public string TELEFONE { get; set; } + public string CONTADOR_ID { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasDeServicos.cs b/MLL/ModeloNotasDeServicos.cs new file mode 100644 index 0000000..6dec0fb --- /dev/null +++ b/MLL/ModeloNotasDeServicos.cs @@ -0,0 +1,216 @@ +using System; + +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; + CODIGO = cODIGO; + IDE_RPS = iDE_RPS; + IDE_SERIE = iDE_SERIE; + IDE_TIPO = iDE_TIPO; + IDE_DT_EMIS = iDE_DT_EMIS; + IDE_CAMPO1 = iDE_CAMPO1; + IDE_CAMPO2 = iDE_CAMPO2; + IDE_REG_TRIB = iDE_REG_TRIB; + IDE_SIMPLES = iDE_SIMPLES; + IDE_IN_CULTURAL = iDE_IN_CULTURAL; + TOMADOR_CNPJ = tOMADOR_CNPJ; + TOMADOR_IMUN = tOMADOR_IMUN; + TOMADOR_RAZAO = tOMADOR_RAZAO; + TOMADOR_END = tOMADOR_END; + TOMADOR_NUM = tOMADOR_NUM; + TOMADOR_CPL = tOMADOR_CPL; + TOMADOR_BAIRRO = tOMADOR_BAIRRO; + TOMADOR_COD_MUN = tOMADOR_COD_MUN; + TOMADOR_UF = tOMADOR_UF; + TOMADOR_CEP = tOMADOR_CEP; + TOMADOR_EMAIL = tOMADOR_EMAIL; + TOMADOR_TELEFONE = tOMADOR_TELEFONE; + RPS_LOTE = rPS_LOTE; + RPS_OBS = rPS_OBS; + RPS_ETAPA1 = rPS_ETAPA1; + RPS_ETAPA2 = rPS_ETAPA2; + RPS_ETAPA3 = rPS_ETAPA3; + RPS_ETAPA4 = rPS_ETAPA4; + RPS_ETAPA5 = rPS_ETAPA5; + NFS_SUBSTITUIDO_RPS = nFS_SUBSTITUIDO_RPS; + NFS_SUBSTITUIDO_SERIE = nFS_SUBSTITUIDO_SERIE; + NFS_SUBSTITUIDO_TIPO = nFS_SUBSTITUIDO_TIPO; + CODIGO_OBRA = cODIGO_OBRA; + NUMERO_ART = nUMERO_ART; + INTERMEDIARIO_CNP = iNTERMEDIARIO_CNP; + INTERMEDIARIO_IM = iNTERMEDIARIO_IM; + INTERMEDIARIO_RAZAO = iNTERMEDIARIO_RAZAO; + RPS_COD_SERV = rPS_COD_SERV; + NFS_ValorServicos = nFS_ValorServicos; + NFS_ValorDeducoes = nFS_ValorDeducoes; + NFS_ValorPis = nFS_ValorPis; + NFS_ValorCofins = nFS_ValorCofins; + NFS_ValorInss = nFS_ValorInss; + NFS_ValorCredito = nFS_ValorCredito; + NFS_BaseCalculo = nFS_BaseCalculo; + NFS_ValorLiquidoNfse = nFS_ValorLiquidoNfse; + NFS_ValorIr = nFS_ValorIr; + NFS_ValorCsll = nFS_ValorCsll; + NFS_IssRetido = nFS_IssRetido; + NFS_ValorIss = nFS_ValorIss; + NFS_OutrasRetencoes = nFS_OutrasRetencoes; + NFS_DescontoIncondicionado = nFS_DescontoIncondicionado; + NFS_DescontoCondicionado = nFS_DescontoCondicionado; + NFS_Aliquota = nFS_Aliquota; + NFS_CodigoServico = nFS_CodigoServico; + NFS_CNAE = nFS_CNAE; + NFS_CodigoTributacaoMunicipio = nFS_CodigoTributacaoMunicipio; + NFS_Discriminacao = nFS_Discriminacao; + NFS_CodigoMunicipio = nFS_CodigoMunicipio; + NFS_TributacaoRPS = nFS_TributacaoRPS; + NFS_CODPAIS = nFS_CODPAIS; + NFS_Exigibilidade = nFS_Exigibilidade; + NFS_CodigoMunIncidencia = nFS_CodigoMunIncidencia; + } + + public int ID_NOTAS_SERVICOS { get; set; } + public string CODIGO { get; set; } + + public string IDE_RPS { get; set; } + public string IDE_SERIE { get; set; } + public string IDE_TIPO { get; set; } + public string IDE_DT_EMIS { get; set; } + public string IDE_CAMPO1 { get; set; } + public string IDE_CAMPO2 { get; set; } + public string IDE_REG_TRIB { get; set; } + public string IDE_SIMPLES { get; set; } + public string IDE_IN_CULTURAL { get; set; } + + public string TOMADOR_CNPJ { get; set; } + public string TOMADOR_IMUN { get; set; } + public string TOMADOR_RAZAO { get; set; } + public string TOMADOR_END { get; set; } + public string TOMADOR_NUM { get; set; } + public string TOMADOR_CPL { get; set; } + public string TOMADOR_BAIRRO { get; set; } + public string TOMADOR_COD_MUN { get; set; } + public string TOMADOR_UF { get; set; } + public string TOMADOR_CEP { get; set; } + public string TOMADOR_EMAIL { get; set; } + public string TOMADOR_TELEFONE { get; set; } + + public string RPS_LOTE { get; set; } + public string RPS_OBS { get; set; } + public string RPS_ETAPA1 { get; set; } + public string RPS_ETAPA2 { get; set; } + public string RPS_ETAPA3 { get; set; } + public string RPS_ETAPA4 { get; set; } + public string RPS_ETAPA5 { get; set; } + + public string NFS_SUBSTITUIDO_RPS { get; set; } + public string NFS_SUBSTITUIDO_SERIE { get; set; } + public string NFS_SUBSTITUIDO_TIPO { get; set; } + + public string CODIGO_OBRA { get; set; } + public string NUMERO_ART { get; set; } + + public string INTERMEDIARIO_CNP { get; set; } + public string INTERMEDIARIO_IM { get; set; } + public string INTERMEDIARIO_RAZAO { get; set; } + + public string RPS_COD_SERV { get; set; } + + public string NFS_ValorServicos { get; set; } + public string NFS_ValorDeducoes { get; set; } + public string NFS_ValorPis { get; set; } + public string NFS_ValorCofins { get; set; } + public string NFS_ValorInss { get; set; } + public string NFS_ValorCredito { get; set; } + public string NFS_BaseCalculo { get; set; } + public string NFS_ValorLiquidoNfse { get; set; } + public string NFS_ValorIr { get; set; } + public string NFS_ValorCsll { get; set; } + public string NFS_IssRetido { get; set; } + public string NFS_ValorIss { get; set; } + public string NFS_OutrasRetencoes { get; set; } + public string NFS_DescontoIncondicionado { get; set; } + public string NFS_DescontoCondicionado { get; set; } + public string NFS_Aliquota { get; set; } + + public string NFS_CodigoServico { get; set; } + public string NFS_CNAE { get; set; } + public string NFS_CodigoTributacaoMunicipio { get; set; } + public string NFS_Discriminacao { get; set; } + public string NFS_CodigoMunicipio { get; set; } + public string NFS_TributacaoRPS { get; set; } + public string NFS_CODPAIS { get; set; } + public string NFS_Exigibilidade { get; set; } + public string NFS_CodigoMunIncidencia { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasEnderecos.cs b/MLL/ModeloNotasEnderecos.cs new file mode 100644 index 0000000..2262857 --- /dev/null +++ b/MLL/ModeloNotasEnderecos.cs @@ -0,0 +1,75 @@ +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, + string fONE, string eMAIL, string iE) + { + ID_NOTAS_ENDERECOS = iD_NOTAS_ENDERECOS; + 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; + UF = uF; + TIPO = tIPO; + DATA_CADASTRO = dATA_CADASTRO; + CEP = cEP; + CPAIS = cPAIS; + XPAIS = xPAIS; + FONE = fONE; + EMAIL = eMAIL; + IE = iE; + } + + public int ID_NOTAS_ENDERECOS { get; set; } + 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 UF { get; set; } + public string TIPO { get; set; } + public string DATA_CADASTRO { get; set; } + public string CEP { get; set; } + public string CPAIS { get; set; } + public string XPAIS { get; set; } + public string FONE { get; set; } + public string EMAIL { get; set; } + public string IE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasFaturas.cs b/MLL/ModeloNotasFaturas.cs new file mode 100644 index 0000000..60dbc70 --- /dev/null +++ b/MLL/ModeloNotasFaturas.cs @@ -0,0 +1,39 @@ +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; + CODIGO = cODIGO; + COD_NOTA = cOD_NOTA; + INDICE = iNDICE; + NUMERO = nUMERO; + VENCTO = vENCTO; + VALOR = vALOR; + } + + public int ID_NOTAS_FATURAS { get; set; } + public string CODIGO { get; set; } + public string COD_NOTA { get; set; } + public string INDICE { get; set; } + public string NUMERO { get; set; } + public string VENCTO { get; set; } + public string VALOR { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasFiscais.cs b/MLL/ModeloNotasFiscais.cs new file mode 100644 index 0000000..7ecc4ab --- /dev/null +++ b/MLL/ModeloNotasFiscais.cs @@ -0,0 +1,406 @@ +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, + string dESTINATARIO_IE_RG, string dESTINATARIO_CNPJCPF, string dATA, string dATA_SAIDA, string bASE_ICMS, string bASE_ICMS_SUBS, + string vALOR_ICMS, string vALOR_ICMS_SUBS, string vALOR_FRETE, string vALOR_SEGURO, string vALOR_DESCONTO, string vALOR_ISS, string vALOR_IPI, + string oUTRAS_DESPESAS, string vALOR_IRRF, string vALOR_IRPJ, string vALOR_PIS, string vALOR_COFINS, string vALOR_CSLL, string vALOR_SIMPLES, + string vALOR_BENEF, string vALOR_INSS, string tOTAL_ISS, string tOTAL_IRRF, string tOTAL_IRPJ, string tOTAL_PIS, string tOTAL_COFINS, string tOTAL_CSLL, + string tOTAL_INSS, string tOTAL_SIMPLES, string tOTAL_DESC, string tOTAL_DEDUCOES, string tOTAL_SERVICOS, string tOTAL_PRODUTOS, string tOTAL, + string tRANSPORTADOR, string fRETE_POR, string fRETE_PLACA, string fRETE_QTD, string fRETE_PESO_BRUTO, string fRETE_PESO_LIQUIDO, string fRETE_MARCA, + string fRETE_ESPECIME, string fRETE_NUMERO, string fRETE_NOME, string fRETE_UF, string fRETE_CNPJCPF, string fRETE_IERG, string fRETE_ENDERECO, + string fRETE_MUNICIPIO, string fRETE_TUF, string oBSERVACOES, string dATA_CADASTRO, string cANCELADA, string dB_cs_ICMS_S, string dB_cs_FRETE, + string dB_cs_SEGURO, string dB_cs_DESPESAS, string dB_cin_FRETE, string dB_cin_SEGURO, string dB_cin_DESPESAS, string dB_cs_ISS, string dB_cs_IRRF, + string dB_cs_IRPJ, string dB_cs_PIS, string dB_cs_COFINS, string dB_cs_CSLL, string dB_cs_INSS, string dB_cs_SIMPLES, string nFE_ENFE, string iIIgnora, + string nFE_ID_CANCEL_DATE, string nFE_ID_CANCEL_PROT, string nFE_ID_AUTOR_DATE, string nFE_ID_AUTOR_PROT, string nFE_ID_CHAVE, string nFE_ARQ_NOTA, string nFE_ARQ_LOTE, + string nFE_LOG, string nFE_ENVIADA, string nFE_DANFE_IMP, string nFE_STATUS, string nFE_LAST_ERROR, string mOTIVO_CANCELA, string dESTINATARIO_COD_PAIS, string dESTINATARIO_NUMERO, + string dESTINATARIO_COMPLEM, string cOD_ANTT, string iNFO_FISCO, string cOMPRAS_PUBLICAS, string eXPORTA_EMBARQUE, string sERIE, string fINNFE, string rEFNFE, string idEstrangeiro, + string cbindIEDest, string indPres, string qAMBIENTE, string indFinal, string rEFNFE1, string rEFNFE2, string rEFNFE3, string idCadIntTran, string yB02_CNPJ, string yA05_CNPJ) + { + ID_NOTAS_FISCAIS = iD_NOTAS_FISCAIS; + CODIGO = cODIGO; + SAIDA = sAIDA; + CFOP = cFOP; + CFOP1 = cFOP1; + NATUREZA = nATUREZA; + DESTINATARIO_NOME = dESTINATARIO_NOME; + DESTINATARIO_ENDERECO = dESTINATARIO_ENDERECO; + DESTINATARIO_BAIRRO = dESTINATARIO_BAIRRO; + DESTINATARIO_CIDADE = dESTINATARIO_CIDADE; + DESTINATARIO_UF = dESTINATARIO_UF; + DESTINATARIO_CEP = dESTINATARIO_CEP; + DESTINATARIO_TEL = dESTINATARIO_TEL; + DESTINATARIO_FAX = dESTINATARIO_FAX; + DESTINATARIO_EMAIL = dESTINATARIO_EMAIL; + DESTINATARIO_IE_RG = dESTINATARIO_IE_RG; + DESTINATARIO_CNPJCPF = dESTINATARIO_CNPJCPF; + DATA = dATA; + DATA_SAIDA = dATA_SAIDA; + BASE_ICMS = bASE_ICMS; + BASE_ICMS_SUBS = bASE_ICMS_SUBS; + VALOR_ICMS = vALOR_ICMS; + VALOR_ICMS_SUBS = vALOR_ICMS_SUBS; + VALOR_FRETE = vALOR_FRETE; + VALOR_SEGURO = vALOR_SEGURO; + VALOR_DESCONTO = vALOR_DESCONTO; + VALOR_ISS = vALOR_ISS; + VALOR_IPI = vALOR_IPI; + OUTRAS_DESPESAS = oUTRAS_DESPESAS; + VALOR_IRRF = vALOR_IRRF; + VALOR_IRPJ = vALOR_IRPJ; + VALOR_PIS = vALOR_PIS; + VALOR_COFINS = vALOR_COFINS; + VALOR_CSLL = vALOR_CSLL; + VALOR_SIMPLES = vALOR_SIMPLES; + VALOR_BENEF = vALOR_BENEF; + VALOR_INSS = vALOR_INSS; + TOTAL_ISS = tOTAL_ISS; + TOTAL_IRRF = tOTAL_IRRF; + TOTAL_IRPJ = tOTAL_IRPJ; + TOTAL_PIS = tOTAL_PIS; + TOTAL_COFINS = tOTAL_COFINS; + TOTAL_CSLL = tOTAL_CSLL; + TOTAL_INSS = tOTAL_INSS; + TOTAL_SIMPLES = tOTAL_SIMPLES; + TOTAL_DESC = tOTAL_DESC; + TOTAL_DEDUCOES = tOTAL_DEDUCOES; + TOTAL_SERVICOS = tOTAL_SERVICOS; + TOTAL_PRODUTOS = tOTAL_PRODUTOS; + TOTAL = tOTAL; + TRANSPORTADOR = tRANSPORTADOR; + FRETE_POR = fRETE_POR; + FRETE_PLACA = fRETE_PLACA; + FRETE_QTD = fRETE_QTD; + FRETE_PESO_BRUTO = fRETE_PESO_BRUTO; + FRETE_PESO_LIQUIDO = fRETE_PESO_LIQUIDO; + FRETE_MARCA = fRETE_MARCA; + FRETE_ESPECIME = fRETE_ESPECIME; + FRETE_NUMERO = fRETE_NUMERO; + FRETE_NOME = fRETE_NOME; + FRETE_UF = fRETE_UF; + FRETE_CNPJCPF = fRETE_CNPJCPF; + FRETE_IERG = fRETE_IERG; + FRETE_ENDERECO = fRETE_ENDERECO; + FRETE_MUNICIPIO = fRETE_MUNICIPIO; + FRETE_TUF = fRETE_TUF; + OBSERVACOES = oBSERVACOES; + DATA_CADASTRO = dATA_CADASTRO; + CANCELADA = cANCELADA; + DB_cs_ICMS_S = dB_cs_ICMS_S; + DB_cs_FRETE = dB_cs_FRETE; + DB_cs_SEGURO = dB_cs_SEGURO; + DB_cs_DESPESAS = dB_cs_DESPESAS; + DB_cin_FRETE = dB_cin_FRETE; + DB_cin_SEGURO = dB_cin_SEGURO; + DB_cin_DESPESAS = dB_cin_DESPESAS; + DB_cs_ISS = dB_cs_ISS; + DB_cs_IRRF = dB_cs_IRRF; + DB_cs_IRPJ = dB_cs_IRPJ; + DB_cs_PIS = dB_cs_PIS; + DB_cs_COFINS = dB_cs_COFINS; + DB_cs_CSLL = dB_cs_CSLL; + DB_cs_INSS = dB_cs_INSS; + DB_cs_SIMPLES = dB_cs_SIMPLES; + NFE_ENFE = nFE_ENFE; + IIIgnora = iIIgnora; + NFE_ID_CANCEL_DATE = nFE_ID_CANCEL_DATE; + NFE_ID_CANCEL_PROT = nFE_ID_CANCEL_PROT; + NFE_ID_AUTOR_DATE = nFE_ID_AUTOR_DATE; + NFE_ID_AUTOR_PROT = nFE_ID_AUTOR_PROT; + NFE_ID_CHAVE = nFE_ID_CHAVE; + NFE_ARQ_NOTA = nFE_ARQ_NOTA; + NFE_ARQ_LOTE = nFE_ARQ_LOTE; + NFE_LOG = nFE_LOG; + NFE_ENVIADA = nFE_ENVIADA; + NFE_DANFE_IMP = nFE_DANFE_IMP; + NFE_STATUS = nFE_STATUS; + NFE_LAST_ERROR = nFE_LAST_ERROR; + MOTIVO_CANCELA = mOTIVO_CANCELA; + DESTINATARIO_COD_PAIS = dESTINATARIO_COD_PAIS; + DESTINATARIO_NUMERO = dESTINATARIO_NUMERO; + DESTINATARIO_COMPLEM = dESTINATARIO_COMPLEM; + COD_ANTT = cOD_ANTT; + INFO_FISCO = iNFO_FISCO; + COMPRAS_PUBLICAS = cOMPRAS_PUBLICAS; + EXPORTA_EMBARQUE = eXPORTA_EMBARQUE; + SERIE = sERIE; + FINNFE = fINNFE; + REFNFE = rEFNFE; + 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; + YB02_CNPJ = yB02_CNPJ; + YA05_CNPJ = yA05_CNPJ; + } + + public int ID_NOTAS_FISCAIS { get; set; } + public string CODIGO { get; set; } + public string SAIDA { get; set; } + public string CFOP { get; set; } + public string CFOP1 { get; set; } + public string NATUREZA { get; set; } + + public string DESTINATARIO_NOME { get; set; } + public string DESTINATARIO_ENDERECO { get; set; } + public string DESTINATARIO_BAIRRO { get; set; } + public string DESTINATARIO_CIDADE { get; set; } + public string DESTINATARIO_UF { get; set; } + public string DESTINATARIO_CEP { get; set; } + public string DESTINATARIO_TEL { get; set; } + public string DESTINATARIO_FAX { get; set; } + public string DESTINATARIO_EMAIL { get; set; } + public string DESTINATARIO_IE_RG { get; set; } + public string DESTINATARIO_CNPJCPF { get; set; } + + public string DATA { get; set; } + public string DATA_SAIDA { get; set; } + + public string BASE_ICMS { get; set; } + public string BASE_ICMS_SUBS { get; set; } + public string VALOR_ICMS { get; set; } + public string VALOR_ICMS_SUBS { get; set; } + public string VALOR_FRETE { get; set; } + public string VALOR_SEGURO { get; set; } + public string VALOR_DESCONTO { get; set; } + public string VALOR_ISS { get; set; } + public string VALOR_IPI { get; set; } + public string OUTRAS_DESPESAS { get; set; } + public string VALOR_IRRF { get; set; } + public string VALOR_IRPJ { get; set; } + public string VALOR_PIS { get; set; } + public string VALOR_COFINS { get; set; } + public string VALOR_CSLL { get; set; } + public string VALOR_SIMPLES { get; set; } + public string VALOR_BENEF { get; set; } + public string VALOR_INSS { get; set; } + + public string TOTAL_ISS { get; set; } + public string TOTAL_IRRF { get; set; } + public string TOTAL_IRPJ { get; set; } + public string TOTAL_PIS { get; set; } + public string TOTAL_COFINS { get; set; } + public string TOTAL_CSLL { get; set; } + public string TOTAL_INSS { get; set; } + public string TOTAL_SIMPLES { get; set; } + public string TOTAL_DESC { get; set; } + public string TOTAL_DEDUCOES { get; set; } + public string TOTAL_SERVICOS { get; set; } + public string TOTAL_PRODUTOS { get; set; } + public string TOTAL { get; set; } + + public string TRANSPORTADOR { get; set; } + public string FRETE_POR { get; set; } + public string FRETE_PLACA { get; set; } + public string FRETE_QTD { get; set; } + public string FRETE_PESO_BRUTO { get; set; } + public string FRETE_PESO_LIQUIDO { get; set; } + public string FRETE_MARCA { get; set; } + public string FRETE_ESPECIME { get; set; } + public string FRETE_NUMERO { get; set; } + public string FRETE_NOME { get; set; } + public string FRETE_UF { get; set; } + public string FRETE_CNPJCPF { get; set; } + public string FRETE_IERG { get; set; } + public string FRETE_ENDERECO { get; set; } + public string FRETE_MUNICIPIO { get; set; } + public string FRETE_TUF { get; set; } + + public string OBSERVACOES { get; set; } + public string DATA_CADASTRO { get; set; } + public string CANCELADA { get; set; } + + public string DB_cs_ICMS_S { get; set; } + public string DB_cs_FRETE { get; set; } + public string DB_cs_SEGURO { get; set; } + public string DB_cs_DESPESAS { get; set; } + public string DB_cin_FRETE { get; set; } + public string DB_cin_SEGURO { get; set; } + public string DB_cin_DESPESAS { get; set; } + public string DB_cs_ISS { get; set; } + public string DB_cs_IRRF { get; set; } + public string DB_cs_IRPJ { get; set; } + public string DB_cs_PIS { get; set; } + public string DB_cs_COFINS { get; set; } + public string DB_cs_CSLL { get; set; } + public string DB_cs_INSS { get; set; } + public string DB_cs_SIMPLES { get; set; } + + public string NFE_ENFE { get; set; } + public string IIIgnora { get; set; } + public string NFE_ID_CANCEL_DATE { get; set; } + public string NFE_ID_CANCEL_PROT { get; set; } + public string NFE_ID_AUTOR_DATE { get; set; } + public string NFE_ID_AUTOR_PROT { get; set; } + public string NFE_ID_CHAVE { get; set; } + public string NFE_ARQ_NOTA { get; set; } + public string NFE_ARQ_LOTE { get; set; } + public string NFE_LOG { get; set; } + public string NFE_ENVIADA { get; set; } + public string NFE_DANFE_IMP { get; set; } + public string NFE_STATUS { get; set; } + public string NFE_LAST_ERROR { get; set; } + public string MOTIVO_CANCELA { get; set; } + + public string DESTINATARIO_COD_PAIS { get; set; } + public string DESTINATARIO_NUMERO { get; set; } + public string DESTINATARIO_COMPLEM { get; set; } + + public string COD_ANTT { get; set; } + public string INFO_FISCO { get; set; } + public string COMPRAS_PUBLICAS { get; set; } + public string EXPORTA_EMBARQUE { get; set; } + + public string SERIE { get; set; } + 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 QAMBIENTE { 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 YB02_CNPJ { get; set; } + public string YA05_CNPJ { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasFiscaisConsumidor.cs b/MLL/ModeloNotasFiscaisConsumidor.cs new file mode 100644 index 0000000..0662007 --- /dev/null +++ b/MLL/ModeloNotasFiscaisConsumidor.cs @@ -0,0 +1,166 @@ +using System; + +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, + 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_NOTAS_FISCAIS_CONS = iD_NOTAS_FISCAIS_CONS; + CODIGO = cODIGO; + PRODUCAO = pRODUCAO; + SERIE = sERIE; + NATUREZA = nATUREZA; + EMISSAO = eMISSAO; + DEST_NOME = dEST_NOME; + DEST_EMAIL = dEST_EMAIL; + DEST_CPF_CNPJ = dEST_CPF_CNPJ; + DEST_IDESTRANGEIRO = dEST_IDESTRANGEIRO; + DEST_xLgr = dEST_xLgr; + DEST_CPL = dEST_CPL; + DEST_nro = dEST_nro; + DEST_xBairro = dEST_xBairro; + DEST_cMun = dEST_cMun; + DEST_xMun = dEST_xMun; + DEST_UF = dEST_UF; + DEST_CEP = dEST_CEP; + DEST_cPais = dEST_cPais; + DEST_xPais = dEST_xPais; + DEST_fone = dEST_fone; + FRETE_MODALIDADE = fRETE_MODALIDADE; + FRETE_xCNPJ_CPF = fRETE_xCNPJ_CPF; + FRETE_xNome = fRETE_xNome; + NFC_PRONTA = nFC_PRONTA; + NFC_infCpl = nFC_infCpl; + TOTAL_vBC = tOTAL_vBC; + TOTAL_vICMS = tOTAL_vICMS; + TOTAL_vBCST = tOTAL_vBCST; + TOTAL_vST = tOTAL_vST; + TOTAL_vProd = tOTAL_vProd; + TOTAL_vFrete = tOTAL_vFrete; + TOTAL_vSeg = tOTAL_vSeg; + TOTAL_vDesc = tOTAL_vDesc; + TOTAL_vII = tOTAL_vII; + TOTAL_vIPI = tOTAL_vIPI; + TOTAL_vPIS = tOTAL_vPIS; + TOTAL_vCOFINS = tOTAL_vCOFINS; + TOTAL_vOutro = tOTAL_vOutro; + TOTAL_vNF = tOTAL_vNF; + TERMINAL = tERMINAL; + CHAVE_NFC = cHAVE_NFC; + PROTOCOLO = pROTOCOLO; + PROTOCOLO_CANCELA = pROTOCOLO_CANCELA; + SITUACAO = sITUACAO; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_NOTAS_FISCAIS_CONS { get; set; } + public string CODIGO { get; set; } + public string PRODUCAO { get; set; } + public string SERIE { get; set; } + public string NATUREZA { get; set; } + public string EMISSAO { get; set; } + + public string DEST_NOME { get; set; } + public string DEST_EMAIL { get; set; } + public string DEST_CPF_CNPJ { get; set; } + public string DEST_IDESTRANGEIRO { get; set; } + public string DEST_xLgr { get; set; } + public string DEST_CPL { get; set; } + public string DEST_nro { get; set; } + public string DEST_xBairro { get; set; } + public string DEST_cMun { get; set; } + public string DEST_xMun { get; set; } + public string DEST_UF { get; set; } + public string DEST_CEP { get; set; } + public string DEST_cPais { get; set; } + public string DEST_xPais { get; set; } + public string DEST_fone { get; set; } + + public string FRETE_MODALIDADE { get; set; } + public string FRETE_xCNPJ_CPF { get; set; } + public string FRETE_xNome { get; set; } + + public string NFC_PRONTA { get; set; } + public string NFC_infCpl { get; set; } + + public string TOTAL_vBC { get; set; } + public string TOTAL_vICMS { get; set; } + public string TOTAL_vBCST { get; set; } + public string TOTAL_vST { get; set; } + public string TOTAL_vProd { get; set; } + public string TOTAL_vFrete { get; set; } + public string TOTAL_vSeg { get; set; } + public string TOTAL_vDesc { get; set; } + public string TOTAL_vII { get; set; } + public string TOTAL_vIPI { get; set; } + public string TOTAL_vPIS { get; set; } + public string TOTAL_vCOFINS { get; set; } + public string TOTAL_vOutro { get; set; } + public string TOTAL_vNF { get; set; } + + public string TERMINAL { get; set; } + public string CHAVE_NFC { get; set; } + public string PROTOCOLO { get; set; } + public string PROTOCOLO_CANCELA { get; set; } + public string SITUACAO { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasFormas.cs b/MLL/ModeloNotasFormas.cs new file mode 100644 index 0000000..e024680 --- /dev/null +++ b/MLL/ModeloNotasFormas.cs @@ -0,0 +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; + VENCTO = vENCTO; + FORMA = fORMA; + VALOR = vALOR; + DATA_CADASTRO = dATA_CADASTRO; + CNPJ_OPERADORA = cNPJ_OPERADORA; + 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 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasItensDetalha.cs b/MLL/ModeloNotasItensDetalha.cs new file mode 100644 index 0000000..4af496d --- /dev/null +++ b/MLL/ModeloNotasItensDetalha.cs @@ -0,0 +1,134 @@ +using System; + +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, + string tpPint, string tpVeic, string espVeic, string vIN, string condVeic, string cMod, string cCorDENATRAN, + string lota, string tpRest, string tpArma, string nSerie_arma, string nCano, string descr, string nLote, string qLote, + string dFab, string dVal, string vPMC, string rECOPI) + { + ID_NOTAS_ITENS_DETALHA = iD_NOTAS_ITENS_DETALHA; + 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; + CMT = cMT; + 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; + } + + public int ID_NOTAS_ITENS_DETALHA { get; set; } + 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 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 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 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 RECOPI { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasItensRastreabilidade.cs b/MLL/ModeloNotasItensRastreabilidade.cs new file mode 100644 index 0000000..f223a10 --- /dev/null +++ b/MLL/ModeloNotasItensRastreabilidade.cs @@ -0,0 +1,39 @@ +using System; + +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; + } + + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasRefNFP.cs b/MLL/ModeloNotasRefNFP.cs new file mode 100644 index 0000000..a1fa5f1 --- /dev/null +++ b/MLL/ModeloNotasRefNFP.cs @@ -0,0 +1,52 @@ +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; + CUF = cUF; + AAMM = aAMM; + CNPJ_CPF = cNPJ_CPF; + IE = iE; + Modelo = modelo; + Serie = serie; + NNF = nNF; + Produtor = produtor; + DATA_CADASTRO = dATA_CADASTRO; + } + + 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 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 Produtor { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasRetencoes.cs b/MLL/ModeloNotasRetencoes.cs new file mode 100644 index 0000000..3ac93a9 --- /dev/null +++ b/MLL/ModeloNotasRetencoes.cs @@ -0,0 +1,46 @@ +using System; + +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; + } + + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloNotasXml.cs b/MLL/ModeloNotasXml.cs new file mode 100644 index 0000000..4bfaedb --- /dev/null +++ b/MLL/ModeloNotasXml.cs @@ -0,0 +1,24 @@ +using System; + +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; + CHAVE = cHAVE; + XML = xML; + } + + public int ID_NOTAS_XML { get; set; } + public string CHAVE { get; set; } + public string XML { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOSPecas.cs b/MLL/ModeloOSPecas.cs new file mode 100644 index 0000000..b1036bb --- /dev/null +++ b/MLL/ModeloOSPecas.cs @@ -0,0 +1,64 @@ +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) + { + ID_OS_PECAS = iD_OS_PECAS; + CODIGO = cODIGO; + DESCRICAO = dESCRICAO; + COD_PECA = cOD_PECA; + VALOR = vALOR; + TECNICO = tECNICO; + QTD = qTD; + DIA = dIA; + COD_OS = cOD_OS; + CUSTO = cUSTO; + SERIAIS_IN = sERIAIS_IN; + XPED = xPED; + NITEMPED = nITEMPED; + COD_BAIXA = cOD_BAIXA; + LOTES = lOTES; + } + + public int ID_OS_PECAS { get; set; } + public string CODIGO { get; set; } + public string DESCRICAO { get; set; } + public string COD_PECA { get; set; } + public string VALOR { get; set; } + public string TECNICO { get; set; } + public string QTD { get; set; } + public string DIA { get; set; } + public string COD_OS { get; set; } + public string CUSTO { get; set; } + public string SERIAIS_IN { get; set; } + public string XPED { get; set; } + public string NITEMPED { get; set; } + public string COD_BAIXA { get; set; } + public string LOTES { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOSPerson.cs b/MLL/ModeloOSPerson.cs new file mode 100644 index 0000000..97fbda9 --- /dev/null +++ b/MLL/ModeloOSPerson.cs @@ -0,0 +1,419 @@ +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, + string tEXTO2, string tEXTO3, string tEXTO4, string tEXTO5, string cOPIAS_REC, string cOPIAS_ENT, string oBS_REC1, + string oBS_REC2, string oBS_REC3, string oBS_REC4, string rODAPE_DEV1, string rODAPE_DEV2, string rODAPE_ENT1, string rODAPE_ENT2, + string pORTA_PRN, string cOM_PECASERV, string sO_TOTAL, string mYLOGO, string oS_COM_ENDE, string oS_SALTA_NP, string oRCA_POE_SERV, + string oRCA_POE_PECA, string oRCA_MAIL_TIPO, string oRCA_MAIL_SOLI, string oRCA_PRINT_GRAF, string mYLOGO_TELA, string oS_ABERTURA, + string oS_FINALIZA, string oS_TITULO, string oS_TEXTO_ENTREGA, string oS_TEXTO_ENCERRA, string oS_TEXTO_DEVOLVE, string cARTAS_FORNECE, + string cARTAS_CLIENTE, string cARTAS_CONTRATO, string cARTAS_ORCAS, string cARTAS_LAUDO, string oS_POE_OBS, string cOM_PECASERV_E, string nO_EPSON, + string oRCA_VIDA, string oS_COM_CPF, string oRCA_POE_END, string oRCA_POE_CPF, string oRCA_FORMAS, string oS_COM_DESC, string oS_TEXTO_EQUIPAM, string nF_OS, + string vENDA_ORCA_VALIDADE, string vENDA_ORCA_EXCLUI, string vENDA_MAXDESC, string vENDA_TEXTOLIVRE, string vENDA_IMPRAPOS, string vENDA_TEXTOLIVRE_ORCA, + string oS_GARANTIA_VAR, string lOGO_VENDA, string oS_CONTROLA3, string oRCA_MOD_BELO, string oS_DRAFT_SALTOS, string oS_KILOMET, string oS_CONDI_GERAL, + string oS_BOLETIM_EMAIL, string oS_BOLETIM_LAST, string vENDA_DRAFT_PORTA, string vENDA_DRAFT_SALTOS, string vENDA_40COLUNAS, string vENDA_COMP_ASSINA, + string vENDA_COMP_RECIBO, string vENDA_MAIL_IMG, string oRCA_MAIL_IMG, string oRCA_MOSTRA_UN, string cK_ORCA_MOSTRA_COD, string oS_BOLETIM_FECHADAS, + string oS_BOLETIM_SO_DO_DIA, string vENDA_ORCA_OCULTA, string vENDA_40COLUNAS_GRAF, string oRCA_TEXTO_APROVA, string oRCA_PAP_TIMBRADO, string bAIXA_ESTOQUE_NAHORA, + string qUERO_FABRICA, string vENDA_CLI_DIRECT, string vENDA_BALCAO_SEPARADO, string vENDA_ORCA_DADOS_CLI, string oS_PRINT_GUIA, string oS_FICHA_SERVICO, string wEB_PC_ENVIO, + string wEB_TEXTO_1, string wEB_TEXTO_2, string wEB_TEXTO_3, string wEB_TEXTO_4, string wEB_TEXTO_5, string wEB_EMAIL_RETORNO, string wEB_FORMA_PG, string wEB_OPC_OS, + string oS_EMAIL_ABRIR, string oS_EMAIL_FECHAR, string oS_CHAVE_WEB_TITULO, string oRCA_CHAVE_WEB_TITULO, string vENDA_OPCOES, string sUPORTECOD, string sUPORTEDTA, + string sERIAL_NFE_AMB, string cARTAS_LAUDO1, string cARTAS_LAUDO2, string vENDAS_CLIENTE_FIDELIZADO) + { + ID_OS_PERSON = iD_OS_PERSON; + TX_DESC = tX_DESC; + TX_MARCA = tX_MARCA; + TX_MODELO = tX_MODELO; + TX_SERIE = tX_SERIE; + TX_PAT = tX_PAT; + TX_DESLOCA = tX_DESLOCA; + TX_TERCEIROS = tX_TERCEIROS; + COBRA_DESLOCA = cOBRA_DESLOCA; + COBRA_TERCEIROS = cOBRA_TERCEIROS; + PRAZO_GARANTIA = pRAZO_GARANTIA; + TERMO_GARANTIA = tERMO_GARANTIA; + MODELO_RECEBE = mODELO_RECEBE; + MODELO_ENTREGA = mODELO_ENTREGA; + TEXTO1 = tEXTO1; + TEXTO2 = tEXTO2; + TEXTO3 = tEXTO3; + TEXTO4 = tEXTO4; + TEXTO5 = tEXTO5; + COPIAS_REC = cOPIAS_REC; + COPIAS_ENT = cOPIAS_ENT; + OBS_REC1 = oBS_REC1; + OBS_REC2 = oBS_REC2; + OBS_REC3 = oBS_REC3; + OBS_REC4 = oBS_REC4; + RODAPE_DEV1 = rODAPE_DEV1; + RODAPE_DEV2 = rODAPE_DEV2; + RODAPE_ENT1 = rODAPE_ENT1; + RODAPE_ENT2 = rODAPE_ENT2; + PORTA_PRN = pORTA_PRN; + COM_PECASERV = cOM_PECASERV; + SO_TOTAL = sO_TOTAL; + MYLOGO = mYLOGO; + OS_COM_ENDE = oS_COM_ENDE; + OS_SALTA_NP = oS_SALTA_NP; + ORCA_POE_SERV = oRCA_POE_SERV; + ORCA_POE_PECA = oRCA_POE_PECA; + ORCA_MAIL_TIPO = oRCA_MAIL_TIPO; + ORCA_MAIL_SOLI = oRCA_MAIL_SOLI; + ORCA_PRINT_GRAF = oRCA_PRINT_GRAF; + MYLOGO_TELA = mYLOGO_TELA; + OS_ABERTURA = oS_ABERTURA; + OS_FINALIZA = oS_FINALIZA; + OS_TITULO = oS_TITULO; + OS_TEXTO_ENTREGA = oS_TEXTO_ENTREGA; + OS_TEXTO_ENCERRA = oS_TEXTO_ENCERRA; + OS_TEXTO_DEVOLVE = oS_TEXTO_DEVOLVE; + CARTAS_FORNECE = cARTAS_FORNECE; + CARTAS_CLIENTE = cARTAS_CLIENTE; + CARTAS_CONTRATO = cARTAS_CONTRATO; + CARTAS_ORCAS = cARTAS_ORCAS; + CARTAS_LAUDO = cARTAS_LAUDO; + OS_POE_OBS = oS_POE_OBS; + COM_PECASERV_E = cOM_PECASERV_E; + NO_EPSON = nO_EPSON; + ORCA_VIDA = oRCA_VIDA; + OS_COM_CPF = oS_COM_CPF; + ORCA_POE_END = oRCA_POE_END; + ORCA_POE_CPF = oRCA_POE_CPF; + ORCA_FORMAS = oRCA_FORMAS; + OS_COM_DESC = oS_COM_DESC; + OS_TEXTO_EQUIPAM = oS_TEXTO_EQUIPAM; + NF_OS = nF_OS; + VENDA_ORCA_VALIDADE = vENDA_ORCA_VALIDADE; + VENDA_ORCA_EXCLUI = vENDA_ORCA_EXCLUI; + VENDA_MAXDESC = vENDA_MAXDESC; + VENDA_TEXTOLIVRE = vENDA_TEXTOLIVRE; + VENDA_IMPRAPOS = vENDA_IMPRAPOS; + VENDA_TEXTOLIVRE_ORCA = vENDA_TEXTOLIVRE_ORCA; + OS_GARANTIA_VAR = oS_GARANTIA_VAR; + LOGO_VENDA = lOGO_VENDA; + OS_CONTROLA3 = oS_CONTROLA3; + ORCA_MOD_BELO = oRCA_MOD_BELO; + OS_DRAFT_SALTOS = oS_DRAFT_SALTOS; + OS_KILOMET = oS_KILOMET; + OS_CONDI_GERAL = oS_CONDI_GERAL; + OS_BOLETIM_EMAIL = oS_BOLETIM_EMAIL; + OS_BOLETIM_LAST = oS_BOLETIM_LAST; + VENDA_DRAFT_PORTA = vENDA_DRAFT_PORTA; + VENDA_DRAFT_SALTOS = vENDA_DRAFT_SALTOS; + VENDA_40COLUNAS = vENDA_40COLUNAS; + VENDA_COMP_ASSINA = vENDA_COMP_ASSINA; + VENDA_COMP_RECIBO = vENDA_COMP_RECIBO; + VENDA_MAIL_IMG = vENDA_MAIL_IMG; + ORCA_MAIL_IMG = oRCA_MAIL_IMG; + ORCA_MOSTRA_UN = oRCA_MOSTRA_UN; + CK_ORCA_MOSTRA_COD = cK_ORCA_MOSTRA_COD; + OS_BOLETIM_FECHADAS = oS_BOLETIM_FECHADAS; + OS_BOLETIM_SO_DO_DIA = oS_BOLETIM_SO_DO_DIA; + VENDA_ORCA_OCULTA = vENDA_ORCA_OCULTA; + VENDA_40COLUNAS_GRAF = vENDA_40COLUNAS_GRAF; + ORCA_TEXTO_APROVA = oRCA_TEXTO_APROVA; + ORCA_PAP_TIMBRADO = oRCA_PAP_TIMBRADO; + BAIXA_ESTOQUE_NAHORA = bAIXA_ESTOQUE_NAHORA; + QUERO_FABRICA = qUERO_FABRICA; + VENDA_CLI_DIRECT = vENDA_CLI_DIRECT; + VENDA_BALCAO_SEPARADO = vENDA_BALCAO_SEPARADO; + VENDA_ORCA_DADOS_CLI = vENDA_ORCA_DADOS_CLI; + OS_PRINT_GUIA = oS_PRINT_GUIA; + OS_FICHA_SERVICO = oS_FICHA_SERVICO; + WEB_PC_ENVIO = wEB_PC_ENVIO; + WEB_TEXTO_1 = wEB_TEXTO_1; + WEB_TEXTO_2 = wEB_TEXTO_2; + WEB_TEXTO_3 = wEB_TEXTO_3; + WEB_TEXTO_4 = wEB_TEXTO_4; + WEB_TEXTO_5 = wEB_TEXTO_5; + WEB_EMAIL_RETORNO = wEB_EMAIL_RETORNO; + WEB_FORMA_PG = wEB_FORMA_PG; + WEB_OPC_OS = wEB_OPC_OS; + OS_EMAIL_ABRIR = oS_EMAIL_ABRIR; + OS_EMAIL_FECHAR = oS_EMAIL_FECHAR; + OS_CHAVE_WEB_TITULO = oS_CHAVE_WEB_TITULO; + ORCA_CHAVE_WEB_TITULO = oRCA_CHAVE_WEB_TITULO; + VENDA_OPCOES = vENDA_OPCOES; + SUPORTECOD = sUPORTECOD; + SUPORTEDTA = sUPORTEDTA; + SERIAL_NFE_AMB = sERIAL_NFE_AMB; + CARTAS_LAUDO1 = cARTAS_LAUDO1; + CARTAS_LAUDO2 = cARTAS_LAUDO2; + VENDAS_CLIENTE_FIDELIZADO = vENDAS_CLIENTE_FIDELIZADO; + } + + public int ID_OS_PERSON { get; set; } + public string TX_DESC { get; set; } + public string TX_MARCA { get; set; } + public string TX_MODELO { get; set; } + public string TX_SERIE { get; set; } + public string TX_PAT { get; set; } + public string TX_DESLOCA { get; set; } + public string TX_TERCEIROS { get; set; } + public string COBRA_DESLOCA { get; set; } + public string COBRA_TERCEIROS { get; set; } + public string PRAZO_GARANTIA { get; set; } + public string TERMO_GARANTIA { get; set; } + public string MODELO_RECEBE { get; set; } + public string MODELO_ENTREGA { get; set; } + + public string TEXTO1 { get; set; } + public string TEXTO2 { get; set; } + public string TEXTO3 { get; set; } + public string TEXTO4 { get; set; } + public string TEXTO5 { get; set; } + + public string COPIAS_REC { get; set; } + public string COPIAS_ENT { get; set; } + + public string OBS_REC1 { get; set; } + public string OBS_REC2 { get; set; } + public string OBS_REC3 { get; set; } + public string OBS_REC4 { get; set; } + + public string RODAPE_DEV1 { get; set; } + public string RODAPE_DEV2 { get; set; } + public string RODAPE_ENT1 { get; set; } + public string RODAPE_ENT2 { get; set; } + + public string PORTA_PRN { get; set; } + public string COM_PECASERV { get; set; } + public string SO_TOTAL { get; set; } + public string MYLOGO { get; set; } + public string OS_COM_ENDE { get; set; } + public string OS_SALTA_NP { get; set; } + + public string ORCA_POE_SERV { get; set; } + public string ORCA_POE_PECA { get; set; } + public string ORCA_MAIL_TIPO { get; set; } + public string ORCA_MAIL_SOLI { get; set; } + public string ORCA_PRINT_GRAF { get; set; } + public string MYLOGO_TELA { get; set; } + + public string OS_ABERTURA { get; set; } + public string OS_FINALIZA { get; set; } + public string OS_TITULO { get; set; } + public string OS_TEXTO_ENTREGA { get; set; } + public string OS_TEXTO_ENCERRA { get; set; } + public string OS_TEXTO_DEVOLVE { get; set; } + + public string CARTAS_FORNECE { get; set; } + public string CARTAS_CLIENTE { get; set; } + public string CARTAS_CONTRATO { get; set; } + public string CARTAS_ORCAS { get; set; } + public string CARTAS_LAUDO { get; set; } + + public string OS_POE_OBS { get; set; } + public string COM_PECASERV_E { get; set; } + public string NO_EPSON { get; set; } + public string ORCA_VIDA { get; set; } + public string OS_COM_CPF { get; set; } + public string ORCA_POE_END { get; set; } + public string ORCA_POE_CPF { get; set; } + public string ORCA_FORMAS { get; set; } + public string OS_COM_DESC { get; set; } + public string OS_TEXTO_EQUIPAM { get; set; } + + public string NF_OS { get; set; } + public string VENDA_ORCA_VALIDADE { get; set; } + public string VENDA_ORCA_EXCLUI { get; set; } + public string VENDA_MAXDESC { get; set; } + public string VENDA_TEXTOLIVRE { get; set; } + public string VENDA_IMPRAPOS { get; set; } + public string VENDA_TEXTOLIVRE_ORCA { get; set; } + + public string OS_GARANTIA_VAR { get; set; } + public string LOGO_VENDA { get; set; } + public string OS_CONTROLA3 { get; set; } + public string ORCA_MOD_BELO { get; set; } + public string OS_DRAFT_SALTOS { get; set; } + public string OS_KILOMET { get; set; } + public string OS_CONDI_GERAL { get; set; } + + public string OS_BOLETIM_EMAIL { get; set; } + public string OS_BOLETIM_LAST { get; set; } + + public string VENDA_DRAFT_PORTA { get; set; } + public string VENDA_DRAFT_SALTOS { get; set; } + public string VENDA_40COLUNAS { get; set; } + public string VENDA_COMP_ASSINA { get; set; } + public string VENDA_COMP_RECIBO { get; set; } + public string VENDA_MAIL_IMG { get; set; } + + public string ORCA_MAIL_IMG { get; set; } + public string ORCA_MOSTRA_UN { get; set; } + public string CK_ORCA_MOSTRA_COD { get; set; } + + public string OS_BOLETIM_FECHADAS { get; set; } + public string OS_BOLETIM_SO_DO_DIA { get; set; } + + public string VENDA_ORCA_OCULTA { get; set; } + public string VENDA_40COLUNAS_GRAF { get; set; } + public string ORCA_TEXTO_APROVA { get; set; } + public string ORCA_PAP_TIMBRADO { get; set; } + + public string BAIXA_ESTOQUE_NAHORA { get; set; } + public string QUERO_FABRICA { get; set; } + public string VENDA_CLI_DIRECT { get; set; } + public string VENDA_BALCAO_SEPARADO { get; set; } + public string VENDA_ORCA_DADOS_CLI { get; set; } + + public string OS_PRINT_GUIA { get; set; } + public string OS_FICHA_SERVICO { get; set; } + + public string WEB_PC_ENVIO { get; set; } + public string WEB_TEXTO_1 { get; set; } + public string WEB_TEXTO_2 { get; set; } + public string WEB_TEXTO_3 { get; set; } + public string WEB_TEXTO_4 { get; set; } + public string WEB_TEXTO_5 { get; set; } + + public string WEB_EMAIL_RETORNO { get; set; } + public string WEB_FORMA_PG { get; set; } + public string WEB_OPC_OS { get; set; } + + public string OS_EMAIL_ABRIR { get; set; } + public string OS_EMAIL_FECHAR { get; set; } + + public string OS_CHAVE_WEB_TITULO { get; set; } + public string ORCA_CHAVE_WEB_TITULO { get; set; } + + public string VENDA_OPCOES { get; set; } + public string SUPORTECOD { get; set; } + public string SUPORTEDTA { get; set; } + public string SERIAL_NFE_AMB { get; set; } + + public string CARTAS_LAUDO1 { get; set; } + public string CARTAS_LAUDO2 { get; set; } + + public string VENDAS_CLIENTE_FIDELIZADO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOSServicos.cs b/MLL/ModeloOSServicos.cs new file mode 100644 index 0000000..14455f0 --- /dev/null +++ b/MLL/ModeloOSServicos.cs @@ -0,0 +1,69 @@ +using System; + +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; + CODIGO = cODIGO; + DESCRICAO = dESCRICAO; + TOTAL = tOTAL; + INICIO = iNICIO; + FIM = fIM; + TECNICO = tECNICO; + TIPO = tIPO; + OS_NUM = oS_NUM; + COD_SERV = cOD_SERV; + QTD = qTD; + V_FRETE = v_FRETE; + V_SEGURO = v_SEGURO; + V_OUTROS = v_OUTROS; + NUM_NF_PED = nUM_NF_PED; + CUSTO = cUSTO; + XPED = xPED; + NITEMPED = nITEMPED; + } + + public int ID_OS_SEVICOS { get; set; } + public string CODIGO { get; set; } + public string DESCRICAO { get; set; } + public string TOTAL { get; set; } + public string INICIO { get; set; } + public string FIM { get; set; } + public string TECNICO { get; set; } + public string TIPO { get; set; } + public string OS_NUM { get; set; } + public string COD_SERV { get; set; } + public string QTD { get; set; } + public string V_FRETE { get; set; } + public string V_SEGURO { get; set; } + public string V_OUTROS { get; set; } + public string NUM_NF_PED { get; set; } + public string CUSTO { get; set; } + public string XPED { get; set; } + public string NITEMPED { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrcaPadrao.cs b/MLL/ModeloOrcaPadrao.cs new file mode 100644 index 0000000..fa53662 --- /dev/null +++ b/MLL/ModeloOrcaPadrao.cs @@ -0,0 +1,34 @@ +using System; + +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; + CODIGO = cODIGO; + NOME = nOME; + OBS = oBS; + SHOW_OBS = sHOW_OBS; + USADO = uSADO; + } + + + public int ID_ORCA_PADRAO { get; set; } + public string CODIGO { get; set; } + public string NOME { get; set; } + public string OBS { get; set; } + public string SHOW_OBS { get; set; } + public string USADO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrcaPadraoItens.cs b/MLL/ModeloOrcaPadraoItens.cs new file mode 100644 index 0000000..5d7948b --- /dev/null +++ b/MLL/ModeloOrcaPadraoItens.cs @@ -0,0 +1,33 @@ +using System; + +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; + CODIGO = cODIGO; + COD_ORCA = cOD_ORCA; + ITEM_TIPO = iTEM_TIPO; + ITEM_COD = iTEM_COD; + ITEM_QTD = iTEM_QTD; + } + + public int ID_ORCA_PADRAO_ITENS { get; set; } + public string CODIGO { get; set; } + public string COD_ORCA { get; set; } + public string ITEM_TIPO { get; set; } + public string ITEM_COD { get; set; } + public string ITEM_QTD { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrcas.cs b/MLL/ModeloOrcas.cs new file mode 100644 index 0000000..e87966e --- /dev/null +++ b/MLL/ModeloOrcas.cs @@ -0,0 +1,70 @@ +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, + string sITUACAO, string cLIENTE_CAD, string cLIENTE_NOME, string oBS) + { + ID_ORCAS = iD_ORCAS; + CODIGO = cODIGO; + OPERADOR = oPERADOR; + TOTAL = tOTAL; + DIA = dIA; + COMISSAO = cOMISSAO; + CLIENTE = cLIENTE; + DESCONTO = dESCONTO; + TOTAL_SERVICOS = tOTAL_SERVICOS; + TOTAL_PECAS = tOTAL_PECAS; + TOTAL_IMPOSTOS = tOTAL_IMPOSTOS; + VENCIMENTO = vENCIMENTO; + TOTAL_GERAL = tOTAL_GERAL; + SITUACAO = sITUACAO; + CLIENTE_CAD = cLIENTE_CAD; + CLIENTE_NOME = cLIENTE_NOME; + OBS = oBS; + } + + public int ID_ORCAS { get; set; } + public string CODIGO { get; set; } + public string OPERADOR { get; set; } + public string TOTAL { get; set; } + public string DIA { get; set; } + public string COMISSAO { get; set; } + public string CLIENTE { get; set; } + public string DESCONTO { get; set; } + public string TOTAL_SERVICOS { get; set; } + public string TOTAL_PECAS { get; set; } + public string TOTAL_IMPOSTOS { get; set; } + public string VENCIMENTO { get; set; } + public string TOTAL_GERAL { get; set; } + public string SITUACAO { get; set; } + public string CLIENTE_CAD { get; set; } + public string CLIENTE_NOME { get; set; } + public string OBS { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrdens.cs b/MLL/ModeloOrdens.cs new file mode 100644 index 0000000..c1c21f0 --- /dev/null +++ b/MLL/ModeloOrdens.cs @@ -0,0 +1,180 @@ +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, + string sERIE, string pATRIMONIO, string aCESSORIO, string dEFEITO, string oBS_SERVICO, string lAUDO, + string oBS_APARELHO, string kILOMET, string eM_USO, string nF_NUMERO, string oS_REABERTA, string oS_OUTROS, + string oS_OUTROS_EMIT, string oS_SINAL, string pRIOR, string oS_NF_REMESSA, string oS_NF_VALOR, string oS_NF_EMIT, + string oS_GARANTIDOR, string oS_GARANTIDOR_SN, string wEB_CHAVE, string wEB_SENHA, string uSER_MICRO, string oRCA_FORMAS, + string oS_FABRICANTE, string aLERTA_ABANDONO, string tECNICO_FIXO, string nFC_NUMERO, string pREVISTO, string aTENDENTE, string nFS_NUMERO) + { + ID_ORDENS = iD_ORDENS; + CODIGO = cODIGO; + COD_CLIENTE = cOD_CLIENTE; + ENTRADA = eNTRADA; + PRONTO = pRONTO; + SAIDA = sAIDA; + GARANTIA = gARANTIA; + SITUACAO = sITUACAO; + V_MAO = v_MAO; + V_PECAS = v_PECAS; + V_DESLOCA = v_DESLOCA; + V_TERCEIRO = v_TERCEIRO; + V_OUTROS = v_OUTROS; + COD_EQUIP = cOD_EQUIP; + APARELHO = aPARELHO; + MARCA = mARCA; + MODELO = mODELO; + SERIE = sERIE; + PATRIMONIO = pATRIMONIO; + ACESSORIO = aCESSORIO; + DEFEITO = dEFEITO; + OBS_SERVICO = oBS_SERVICO; + LAUDO = lAUDO; + OBS_APARELHO = oBS_APARELHO; + KILOMET = kILOMET; + EM_USO = eM_USO; + NF_NUMERO = nF_NUMERO; + OS_REABERTA = oS_REABERTA; + OS_OUTROS = oS_OUTROS; + OS_OUTROS_EMIT = oS_OUTROS_EMIT; + OS_SINAL = oS_SINAL; + PRIOR = pRIOR; + OS_NF_REMESSA = oS_NF_REMESSA; + OS_NF_VALOR = oS_NF_VALOR; + OS_NF_EMIT = oS_NF_EMIT; + OS_GARANTIDOR = oS_GARANTIDOR; + OS_GARANTIDOR_SN = oS_GARANTIDOR_SN; + WEB_CHAVE = wEB_CHAVE; + WEB_SENHA = wEB_SENHA; + USER_MICRO = uSER_MICRO; + ORCA_FORMAS = oRCA_FORMAS; + OS_FABRICANTE = oS_FABRICANTE; + ALERTA_ABANDONO = aLERTA_ABANDONO; + TECNICO_FIXO = tECNICO_FIXO; + NFC_NUMERO = nFC_NUMERO; + PREVISTO = pREVISTO; + ATENDENTE = aTENDENTE; + NFS_NUMERO = nFS_NUMERO; + } + + public int ID_ORDENS { get; set; } + public string CODIGO { get; set; } + public string COD_CLIENTE { get; set; } + public string ENTRADA { get; set; } + public string PRONTO { get; set; } + public string SAIDA { get; set; } + public string GARANTIA { get; set; } + public string SITUACAO { get; set; } + + public string V_MAO { get; set; } + public string V_PECAS { get; set; } + public string V_DESLOCA { get; set; } + public string V_TERCEIRO { get; set; } + public string V_OUTROS { get; set; } + + public string COD_EQUIP { get; set; } + public string APARELHO { get; set; } + public string MARCA { get; set; } + public string MODELO { get; set; } + public string SERIE { get; set; } + public string PATRIMONIO { get; set; } + public string ACESSORIO { get; set; } + + public string DEFEITO { get; set; } + public string OBS_SERVICO { get; set; } + public string LAUDO { get; set; } + public string OBS_APARELHO { get; set; } + + public string KILOMET { get; set; } + public string EM_USO { get; set; } + + public string NF_NUMERO { get; set; } + public string OS_REABERTA { get; set; } + public string OS_OUTROS { get; set; } + public string OS_OUTROS_EMIT { get; set; } + public string OS_SINAL { get; set; } + + public string PRIOR { get; set; } + public string OS_NF_REMESSA { get; set; } + public string OS_NF_VALOR { get; set; } + public string OS_NF_EMIT { get; set; } + + public string OS_GARANTIDOR { get; set; } + public string OS_GARANTIDOR_SN { get; set; } + + public string WEB_CHAVE { get; set; } + public string WEB_SENHA { get; set; } + + public string USER_MICRO { get; set; } + public string ORCA_FORMAS { get; set; } + + public string OS_FABRICANTE { get; set; } + public string ALERTA_ABANDONO { get; set; } + public string TECNICO_FIXO { get; set; } + + public string NFC_NUMERO { get; set; } + public string PREVISTO { get; set; } + public string ATENDENTE { get; set; } + public string NFS_NUMERO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrdensContato.cs b/MLL/ModeloOrdensContato.cs new file mode 100644 index 0000000..c4d35ed --- /dev/null +++ b/MLL/ModeloOrdensContato.cs @@ -0,0 +1,36 @@ +using System; + +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; + CODIGO = cODIGO; + COD_ORDEM = cOD_ORDEM; + DESCRICAO = dESCRICAO; + QUEM = qUEM; + USUARIO = uSUARIO; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_ORDENS_CONTATO { get; set; } + public string CODIGO { get; set; } + public string COD_ORDEM { get; set; } + public string DESCRICAO { get; set; } + public string QUEM { get; set; } + public string USUARIO { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrdensDeslocamento.cs b/MLL/ModeloOrdensDeslocamento.cs new file mode 100644 index 0000000..72da47d --- /dev/null +++ b/MLL/ModeloOrdensDeslocamento.cs @@ -0,0 +1,61 @@ +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; + CODIGO = cODIGO; + COD_ORDEM = cOD_ORDEM; + DIA = dIA; + HORA_SAI = hORA_SAI; + KM_SAI = kM_SAI; + HORA_CHEGA = hORA_CHEGA; + KM_CHEGA = kM_CHEGA; + HORA_VOLTA_SAI = hORA_VOLTA_SAI; + KM_VOLTA_SAI = kM_VOLTA_SAI; + HORA_VOLTA = hORA_VOLTA; + KM_VOLTA = kM_VOLTA; + ALIMENTA = aLIMENTA; + HOSPEDA = hOSPEDA; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_ORDENS_DESLOCAMENTO { get; set; } + public string CODIGO { get; set; } + public string COD_ORDEM { get; set; } + public string DIA { get; set; } + public string HORA_SAI { get; set; } + public string KM_SAI { get; set; } + public string HORA_CHEGA { get; set; } + public string KM_CHEGA { get; set; } + public string HORA_VOLTA_SAI { get; set; } + public string KM_VOLTA_SAI { get; set; } + public string HORA_VOLTA { get; set; } + public string KM_VOLTA { get; set; } + public string ALIMENTA { get; set; } + public string HOSPEDA { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloOrdensInsumos.cs b/MLL/ModeloOrdensInsumos.cs new file mode 100644 index 0000000..f0e6a84 --- /dev/null +++ b/MLL/ModeloOrdensInsumos.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + COD_OS = cOD_OS; + COD_ITEM = cOD_ITEM; + QTD = qTD; + CUSTO_UNIT = cUSTO_UNIT; + CUSTO = cUSTO; + OBSERVACOES = oBSERVACOES; + } + + public int ID_ORDENS_INSUMOS { get; set; } + public string CODIGO { get; set; } + public string COD_OS { get; set; } + public string COD_ITEM { get; set; } + public string QTD { get; set; } + public string CUSTO_UNIT { get; set; } + public string CUSTO { get; set; } + public string OBSERVACOES { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloParametros.cs b/MLL/ModeloParametros.cs new file mode 100644 index 0000000..c936c5b --- /dev/null +++ b/MLL/ModeloParametros.cs @@ -0,0 +1,39 @@ +using System; + +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; + CODIGO = cODIGO; + NOME_PAR = nOME_PAR; + DESCRICAO = dESCRICAO; + PX = pX; + PY = pY; + CAMPO = cAMPO; + ATIVO = aTIVO; + } + + public int ID_PARAMETROS { get; set; } + public string CODIGO { get; set; } + public string NOME_PAR { get; set; } + public string DESCRICAO { get; set; } + public string PX { get; set; } + public string PY { get; set; } + public string CAMPO { get; set; } + public string ATIVO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPedidos.cs b/MLL/ModeloPedidos.cs new file mode 100644 index 0000000..213c219 --- /dev/null +++ b/MLL/ModeloPedidos.cs @@ -0,0 +1,120 @@ +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, + string fORNECEDOR, string tRANSPORTADOR, string vENDEDOR, string vALOR, string sITUACAO, string dESCONTO, + string nUM_NF_PED, string v_FRETE, string v_SEGURO, string v_OUTROS, string pED_PRAZO, string pED_FORMA, + string pED_OBS, string cHAVE_NFE_COMPRA, string pAGAMENTO_PEDIDO, string pAGAMENTO_FRETE, string rASTREIO_FRETE) + { + ID_PEDIDOS = iD_PEDIDOS; + CODIGO = cODIGO; + TIPO = tIPO; + DATA_PEDIDO = dATA_PEDIDO; + FORMA_PGTO = fORMA_PGTO; + ENTREGA_DIA = eNTREGA_DIA; + ENTREGA_CONTATO = eNTREGA_CONTATO; + ENTREGA_ENDERECO = eNTREGA_ENDERECO; + ENTREGA_CIDADE = eNTREGA_CIDADE; + ENTREGA_UF = eNTREGA_UF; + ENTREGA_CEP = eNTREGA_CEP; + ENTREGA_TELEFONE = eNTREGA_TELEFONE; + DATA_ENVIO = dATA_ENVIO; + OBSERVACOES = oBSERVACOES; + FORNECEDOR = fORNECEDOR; + TRANSPORTADOR = tRANSPORTADOR; + VENDEDOR = vENDEDOR; + VALOR = vALOR; + SITUACAO = sITUACAO; + DESCONTO = dESCONTO; + NUM_NF_PED = nUM_NF_PED; + V_FRETE = v_FRETE; + V_SEGURO = v_SEGURO; + V_OUTROS = v_OUTROS; + PED_PRAZO = pED_PRAZO; + PED_FORMA = pED_FORMA; + PED_OBS = pED_OBS; + CHAVE_NFE_COMPRA = cHAVE_NFE_COMPRA; + PAGAMENTO_PEDIDO = pAGAMENTO_PEDIDO; + PAGAMENTO_FRETE = pAGAMENTO_FRETE; + RASTREIO_FRETE = rASTREIO_FRETE; + } + + public int ID_PEDIDOS { get; set; } + public string CODIGO { get; set; } + public string TIPO { get; set; } + public string DATA_PEDIDO { get; set; } + public string FORMA_PGTO { get; set; } + + public string ENTREGA_DIA { get; set; } + public string ENTREGA_CONTATO { get; set; } + public string ENTREGA_ENDERECO { get; set; } + public string ENTREGA_CIDADE { get; set; } + public string ENTREGA_UF { get; set; } + public string ENTREGA_CEP { get; set; } + public string ENTREGA_TELEFONE { get; set; } + + public string DATA_ENVIO { get; set; } + public string OBSERVACOES { get; set; } + public string FORNECEDOR { get; set; } + public string TRANSPORTADOR { get; set; } + public string VENDEDOR { get; set; } + + public string VALOR { get; set; } + public string SITUACAO { get; set; } + public string DESCONTO { get; set; } + public string NUM_NF_PED { get; set; } + + public string V_FRETE { get; set; } + public string V_SEGURO { get; set; } + public string V_OUTROS { get; set; } + + public string PED_PRAZO { get; set; } + public string PED_FORMA { get; set; } + public string PED_OBS { get; set; } + + public string CHAVE_NFE_COMPRA { get; set; } + public string PAGAMENTO_PEDIDO { get; set; } + public string PAGAMENTO_FRETE { get; set; } + public string RASTREIO_FRETE { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPerfil.cs b/MLL/ModeloPerfil.cs new file mode 100644 index 0000000..09c5a2b --- /dev/null +++ b/MLL/ModeloPerfil.cs @@ -0,0 +1,30 @@ +namespace MLL +{ + public class ModeloPerfil + { + 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; } + } +} diff --git a/MLL/ModeloPerfilPermissoes.cs b/MLL/ModeloPerfilPermissoes.cs new file mode 100644 index 0000000..3609b37 --- /dev/null +++ b/MLL/ModeloPerfilPermissoes.cs @@ -0,0 +1,24 @@ +using System; + +namespace MLL +{ + public class ModeloPerfilPermissoes + { + public ModeloPerfilPermissoes() + { + Id = 0; + PerfilId = 0; + PermissaoId = 0; + } + public ModeloPerfilPermissoes(int id, int perfilId, int permissaoId) + { + Id = id; + PerfilId = perfilId; + PermissaoId = permissaoId; + } + + public int Id { get; set; } + public int PerfilId { get; set; } + public int PermissaoId { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPerfis.cs b/MLL/ModeloPerfis.cs new file mode 100644 index 0000000..b2929fe --- /dev/null +++ b/MLL/ModeloPerfis.cs @@ -0,0 +1,30 @@ +using System; + +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; + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPermissao.cs b/MLL/ModeloPermissao.cs new file mode 100644 index 0000000..4d76405 --- /dev/null +++ b/MLL/ModeloPermissao.cs @@ -0,0 +1,23 @@ +namespace MLL +{ + public class ModeloPermissao + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPermissoes.cs b/MLL/ModeloPermissoes.cs new file mode 100644 index 0000000..20f85ec --- /dev/null +++ b/MLL/ModeloPermissoes.cs @@ -0,0 +1,25 @@ +using System; + +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; + Nome = nome; + Descricao = descricao; + } + + 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/ModeloPlanoDeContas.cs b/MLL/ModeloPlanoDeContas.cs new file mode 100644 index 0000000..faac9cd --- /dev/null +++ b/MLL/ModeloPlanoDeContas.cs @@ -0,0 +1,47 @@ +namespace MLL +{ + public class ModeloPlanoDeContas + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloPlanos.cs b/MLL/ModeloPlanos.cs new file mode 100644 index 0000000..66172f7 --- /dev/null +++ b/MLL/ModeloPlanos.cs @@ -0,0 +1,37 @@ +using System; + +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; + CODIGO = cODIGO; + NOME = nOME; + NIVEL = nIVEL; + DEBITO = dEBITO; + CODIGO_PAI = cODIGO_PAI; + CODIGO_FILHO = cODIGO_FILHO; + } + + public int ID_PLANOS { get; set; } + public string CODIGO { get; set; } + public string NOME { get; set; } + public string NIVEL { get; set; } + public string DEBITO { get; set; } + public string CODIGO_PAI { get; set; } + public string CODIGO_FILHO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloSatFiscalConsumidor.cs b/MLL/ModeloSatFiscalConsumidor.cs new file mode 100644 index 0000000..898fb03 --- /dev/null +++ b/MLL/ModeloSatFiscalConsumidor.cs @@ -0,0 +1,158 @@ +using System; + +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; + CODIGO = cODIGO; + PRODUCAO = pRODUCAO; + SERIE = sERIE; + NATUREZA = nATUREZA; + EMISSAO = eMISSAO; + DEST_NOME = dEST_NOME; + DEST_EMAIL = dEST_EMAIL; + DEST_CPF_CNPJ = dEST_CPF_CNPJ; + DEST_IDESTRANGEIRO = dEST_IDESTRANGEIRO; + DEST_xLgr = dEST_xLgr; + DEST_CPL = dEST_CPL; + DEST_nro = dEST_nro; + DEST_xBairro = dEST_xBairro; + DEST_cMun = dEST_cMun; + DEST_xMun = dEST_xMun; + DEST_UF = dEST_UF; + DEST_CEP = dEST_CEP; + DEST_cPais = dEST_cPais; + DEST_xPais = dEST_xPais; + DEST_fone = dEST_fone; + FRETE_MODALIDADE = fRETE_MODALIDADE; + FRETE_xCNPJ_CPF = fRETE_xCNPJ_CPF; + FRETE_xNome = fRETE_xNome; + NFC_PRONTA = nFC_PRONTA; + NFC_infCpl = nFC_infCpl; + TOTAL_vBC = tOTAL_vBC; + TOTAL_vICMS = tOTAL_vICMS; + TOTAL_vBCST = tOTAL_vBCST; + TOTAL_vST = tOTAL_vST; + TOTAL_vProd = tOTAL_vProd; + TOTAL_vFrete = tOTAL_vFrete; + TOTAL_vSeg = tOTAL_vSeg; + TOTAL_vDesc = tOTAL_vDesc; + TOTAL_vII = tOTAL_vII; + TOTAL_vIPI = tOTAL_vIPI; + TOTAL_vPIS = tOTAL_vPIS; + TOTAL_vCOFINS = tOTAL_vCOFINS; + TOTAL_vOutro = tOTAL_vOutro; + TOTAL_vNF = tOTAL_vNF; + TERMINAL = tERMINAL; + CHAVE_NFC = cHAVE_NFC; + PROTOCOLO = pROTOCOLO; + PROTOCOLO_CANCELA = pROTOCOLO_CANCELA; + SITUACAO = sITUACAO; + DATA_CADASTRO = dATA_CADASTRO; + } + + public int ID_SAT_FISCAL_CONSU { get; set; } + public string CODIGO { get; set; } + public string PRODUCAO { get; set; } + public string SERIE { get; set; } + public string NATUREZA { get; set; } + public string EMISSAO { get; set; } + + public string DEST_NOME { get; set; } + public string DEST_EMAIL { get; set; } + public string DEST_CPF_CNPJ { get; set; } + public string DEST_IDESTRANGEIRO { get; set; } + public string DEST_xLgr { get; set; } + public string DEST_CPL { get; set; } + public string DEST_nro { get; set; } + public string DEST_xBairro { get; set; } + public string DEST_cMun { get; set; } + public string DEST_xMun { get; set; } + public string DEST_UF { get; set; } + public string DEST_CEP { get; set; } + public string DEST_cPais { get; set; } + public string DEST_xPais { get; set; } + public string DEST_fone { get; set; } + + public string FRETE_MODALIDADE { get; set; } + public string FRETE_xCNPJ_CPF { get; set; } + public string FRETE_xNome { get; set; } + + public string NFC_PRONTA { get; set; } + public string NFC_infCpl { get; set; } + + public string TOTAL_vBC { get; set; } + public string TOTAL_vICMS { get; set; } + public string TOTAL_vBCST { get; set; } + public string TOTAL_vST { get; set; } + public string TOTAL_vProd { get; set; } + public string TOTAL_vFrete { get; set; } + public string TOTAL_vSeg { get; set; } + public string TOTAL_vDesc { get; set; } + public string TOTAL_vII { get; set; } + public string TOTAL_vIPI { get; set; } + public string TOTAL_vPIS { get; set; } + public string TOTAL_vCOFINS { get; set; } + public string TOTAL_vOutro { get; set; } + public string TOTAL_vNF { get; set; } + + public string TERMINAL { get; set; } + public string CHAVE_NFC { get; set; } + public string PROTOCOLO { get; set; } + public string PROTOCOLO_CANCELA { get; set; } + public string SITUACAO { get; set; } + public string DATA_CADASTRO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloSatFiscalConsumidorFormas.cs b/MLL/ModeloSatFiscalConsumidorFormas.cs new file mode 100644 index 0000000..df938f5 --- /dev/null +++ b/MLL/ModeloSatFiscalConsumidorFormas.cs @@ -0,0 +1,41 @@ +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; + CODIGO = cODIGO; + COD_NFCE = cOD_NFCE; + FORMA = fORMA; + VALOR = vALOR; + DATA_CADASTRO = dATA_CADASTRO; + CNPJ_OPERADORA = cNPJ_OPERADORA; + this.TBand = tBand; + } + + public int ID_SAT_FISCAL_CONS_FORMAS { get; set; } + public string CODIGO { get; set; } + public string COD_NFCE { 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloSatFiscalConsumidorItens.cs b/MLL/ModeloSatFiscalConsumidorItens.cs new file mode 100644 index 0000000..807dfec --- /dev/null +++ b/MLL/ModeloSatFiscalConsumidorItens.cs @@ -0,0 +1,211 @@ +using System; + +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, + string iTEM_VFRETE, string iTEM_VSEG, string iTEM_VDESC, string iTEM_vTotTrib, string iTEM_ORIGEM, + string iTEM_CST, string dATA_CADASTRO, string iTEM_ICMS_modBC, string iTEM_ICMS_pRedBC, string iTEM_ICMS_vBC, + string iTEM_ICMS_pICMS, string iTEM_ICMS_vICMS, string iTEM_ICMS_vICMSDeson, string iTEM_ICMS_motDesICMS, + string iTEM_ICMS_modBCST, string iTEM_ICMS_pMVAST, string iTEM_ICMS_pRedBCST, string iTEM_ICMS_vBCST, string iTEM_ICMS_pICMSST, + string iTEM_ICMS_vICMSST, string iTEM_cProdANP, string iTEM_CEST, string cBenef, string iTEM_pFCP, string iTEM_vFCP, string iTEM_vBCFCP, + string iTEM_vBCFCPST, string iTEM_pFCPST, string iTEM_vFCPST, string iTEM_pST, string iTEM_vBCFCPSTRet, string iTEM_pFCPSTRet, string iTEM_vFCPSTRet, + string iTEM_PIS_CST, string iTEM_PIS_vBC, string iTEM_PIS_pPIS, string iTEM_PIS_vPIS, string iTEM_COFINS_CST, string iTEM_COFINS_vBC, + string iTEM_COFINS_pCOFINS, string iTEM_COFINS_vCOFINS, string vICMSSubstituto, string pRedBCEfet, string vBCEfet, string pICMSEfet, string vICMSEfet) + { + ID_SAT_FISCAL_CONS_ITENS = iD_SAT_FISCAL_CONS_ITENS; + CODIGO = cODIGO; + COD_NFCE = cOD_NFCE; + ITEM_TIPO = iTEM_TIPO; + ITEM_CEAN = iTEM_CEAN; + ITEM_CPROD = iTEM_CPROD; + ITEM_XPROD = iTEM_XPROD; + ITEM_INF_ADIC = iTEM_INF_ADIC; + ITEM_CFOP = iTEM_CFOP; + ITEM_NCM = iTEM_NCM; + ITEM_UNCOM = iTEM_UNCOM; + ITEM_QCOM = iTEM_QCOM; + ITEM_VPROD = iTEM_VPROD; + ITEM_VOUTRO = iTEM_VOUTRO; + ITEM_VFRETE = iTEM_VFRETE; + ITEM_VSEG = iTEM_VSEG; + ITEM_VDESC = iTEM_VDESC; + ITEM_vTotTrib = iTEM_vTotTrib; + ITEM_ORIGEM = iTEM_ORIGEM; + ITEM_CST = iTEM_CST; + DATA_CADASTRO = dATA_CADASTRO; + ITEM_ICMS_modBC = iTEM_ICMS_modBC; + ITEM_ICMS_pRedBC = iTEM_ICMS_pRedBC; + ITEM_ICMS_vBC = iTEM_ICMS_vBC; + ITEM_ICMS_pICMS = iTEM_ICMS_pICMS; + ITEM_ICMS_vICMS = iTEM_ICMS_vICMS; + ITEM_ICMS_vICMSDeson = iTEM_ICMS_vICMSDeson; + ITEM_ICMS_motDesICMS = iTEM_ICMS_motDesICMS; + ITEM_ICMS_modBCST = iTEM_ICMS_modBCST; + ITEM_ICMS_pMVAST = iTEM_ICMS_pMVAST; + ITEM_ICMS_pRedBCST = iTEM_ICMS_pRedBCST; + ITEM_ICMS_vBCST = iTEM_ICMS_vBCST; + ITEM_ICMS_pICMSST = iTEM_ICMS_pICMSST; + ITEM_ICMS_vICMSST = iTEM_ICMS_vICMSST; + ITEM_cProdANP = iTEM_cProdANP; + ITEM_CEST = iTEM_CEST; + this.CBenef = cBenef; + ITEM_pFCP = iTEM_pFCP; + ITEM_vFCP = iTEM_vFCP; + ITEM_vBCFCP = iTEM_vBCFCP; + ITEM_vBCFCPST = iTEM_vBCFCPST; + ITEM_pFCPST = iTEM_pFCPST; + ITEM_vFCPST = iTEM_vFCPST; + ITEM_pST = iTEM_pST; + ITEM_vBCFCPSTRet = iTEM_vBCFCPSTRet; + ITEM_pFCPSTRet = iTEM_pFCPSTRet; + ITEM_vFCPSTRet = iTEM_vFCPSTRet; + ITEM_PIS_CST = iTEM_PIS_CST; + ITEM_PIS_vBC = iTEM_PIS_vBC; + ITEM_PIS_pPIS = iTEM_PIS_pPIS; + ITEM_PIS_vPIS = iTEM_PIS_vPIS; + ITEM_COFINS_CST = iTEM_COFINS_CST; + 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; + } + + public int ID_SAT_FISCAL_CONS_ITENS { get; set; } + public string CODIGO { get; set; } + public string COD_NFCE { get; set; } + public string ITEM_TIPO { get; set; } + public string ITEM_CEAN { get; set; } + public string ITEM_CPROD { get; set; } + public string ITEM_XPROD { get; set; } + public string ITEM_INF_ADIC { get; set; } + public string ITEM_CFOP { get; set; } + public string ITEM_NCM { get; set; } + public string ITEM_UNCOM { get; set; } + public string ITEM_QCOM { get; set; } + public string ITEM_VPROD { get; set; } + public string ITEM_VOUTRO { get; set; } + public string ITEM_VFRETE { get; set; } + public string ITEM_VSEG { get; set; } + public string ITEM_VDESC { get; set; } + public string ITEM_vTotTrib { get; set; } + public string ITEM_ORIGEM { get; set; } + public string ITEM_CST { get; set; } + public string DATA_CADASTRO { get; set; } + + public string ITEM_ICMS_modBC { get; set; } + public string ITEM_ICMS_pRedBC { get; set; } + public string ITEM_ICMS_vBC { get; set; } + public string ITEM_ICMS_pICMS { get; set; } + public string ITEM_ICMS_vICMS { get; set; } + public string ITEM_ICMS_vICMSDeson { get; set; } + public string ITEM_ICMS_motDesICMS { get; set; } + public string ITEM_ICMS_modBCST { get; set; } + public string ITEM_ICMS_pMVAST { get; set; } + public string ITEM_ICMS_pRedBCST { get; set; } + public string ITEM_ICMS_vBCST { get; set; } + public string ITEM_ICMS_pICMSST { get; set; } + public string ITEM_ICMS_vICMSST { get; set; } + + public string ITEM_cProdANP { get; set; } + public string ITEM_CEST { get; set; } + public string CBenef { get; set; } + + public string ITEM_pFCP { get; set; } + public string ITEM_vFCP { get; set; } + public string ITEM_vBCFCP { get; set; } + public string ITEM_vBCFCPST { get; set; } + public string ITEM_pFCPST { get; set; } + public string ITEM_vFCPST { get; set; } + public string ITEM_pST { get; set; } + public string ITEM_vBCFCPSTRet { get; set; } + public string ITEM_pFCPSTRet { get; set; } + public string ITEM_vFCPSTRet { get; set; } + + public string ITEM_PIS_CST { get; set; } + public string ITEM_PIS_vBC { get; set; } + public string ITEM_PIS_pPIS { get; set; } + public string ITEM_PIS_vPIS { get; set; } + + public string ITEM_COFINS_CST { get; set; } + public string ITEM_COFINS_vBC { get; set; } + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloServico.cs b/MLL/ModeloServico.cs new file mode 100644 index 0000000..6a872d1 --- /dev/null +++ b/MLL/ModeloServico.cs @@ -0,0 +1,55 @@ +namespace MLL +{ + public class ModeloServico + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloServicos.cs b/MLL/ModeloServicos.cs new file mode 100644 index 0000000..66470cf --- /dev/null +++ b/MLL/ModeloServicos.cs @@ -0,0 +1,52 @@ +using System; + +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; + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloSituacoes.cs b/MLL/ModeloSituacoes.cs new file mode 100644 index 0000000..1002c4d --- /dev/null +++ b/MLL/ModeloSituacoes.cs @@ -0,0 +1,51 @@ +using System; + +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; + CODIGO = cODIGO; + NOME = nOME; + ETAPA1 = eTAPA1; + ETAPA2 = eTAPA2; + ETAPA3 = eTAPA3; + ETAPA3_PG = eTAPA3_PG; + PRONTO = pRONTO; + SUBGRUPO = sUBGRUPO; + COR_FONTE = cOR_FONTE; + COR_FUNDO = cOR_FUNDO; + PLANO_CONTA = pLANO_CONTA; + } + + public int ID_SITUACOES { get; set; } + public string CODIGO { get; set; } + public string NOME { get; set; } + public string ETAPA1 { get; set; } + public string ETAPA2 { get; set; } + public string ETAPA3 { get; set; } + public string ETAPA3_PG { get; set; } + public string PRONTO { get; set; } + public string SUBGRUPO { get; set; } + public string COR_FONTE { get; set; } + public string COR_FUNDO { get; set; } + public string PLANO_CONTA { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloSituacoesOS.cs b/MLL/ModeloSituacoesOS.cs new file mode 100644 index 0000000..f8b7013 --- /dev/null +++ b/MLL/ModeloSituacoesOS.cs @@ -0,0 +1,58 @@ +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; + EmpresaId = empresaId; + Descricao = descricao; + Tipo = tipo; + ConsideraAberta = consideraAberta; + ConsideraFechada = consideraFechada; + MarcaComoPronto = marcaComoPronto; + CorFundo = corFundo; + CorFonte = corFonte; + PlanoContasId = planoContasId; + Ordem = ordem; + Ativo = ativo; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + public string Descricao { get; set; } + public string Tipo { get; set; } + public bool ConsideraAberta { get; set; } + public bool ConsideraFechada { get; set; } + public bool MarcaComoPronto { get; set; } + public string CorFundo { get; set; } + public string CorFonte { get; set; } + public int? PlanoContasId { get; set; } + public int? Ordem { 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/ModeloTransportadora.cs b/MLL/ModeloTransportadora.cs new file mode 100644 index 0000000..48b1213 --- /dev/null +++ b/MLL/ModeloTransportadora.cs @@ -0,0 +1,95 @@ +using System.Runtime.ConstrainedExecution; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace mll +{ + + + public class ModeloTransportadora + { + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloTransportadoras.cs b/MLL/ModeloTransportadoras.cs new file mode 100644 index 0000000..b661c7f --- /dev/null +++ b/MLL/ModeloTransportadoras.cs @@ -0,0 +1,89 @@ +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; + 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; } + } +} \ No newline at end of file diff --git a/MLL/ModeloUsuario.cs b/MLL/ModeloUsuario.cs new file mode 100644 index 0000000..b3782b6 --- /dev/null +++ b/MLL/ModeloUsuario.cs @@ -0,0 +1,43 @@ +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; + EmpresaId = empresaId; + Nome = nome; + Email = email; + Usuario = usuario; + SenhaHash = senhaHash; + Ativo = ativo; + UltimoLogin = ultimoLogin; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + + public string Nome { get; set; } + public string Email { get; set; } + public string Usuario { get; set; } + public string SenhaHash { get; set; } + + public bool Ativo { get; set; } + public DateTime? UltimoLogin { get; set; } + + public DateTime CriadoEm { get; set; } + public DateTime AtualizadoEm { get; set; } +} \ No newline at end of file diff --git a/MLL/ModeloUsuarioPerfis.cs b/MLL/ModeloUsuarioPerfis.cs new file mode 100644 index 0000000..9602927 --- /dev/null +++ b/MLL/ModeloUsuarioPerfis.cs @@ -0,0 +1,24 @@ +using System; + +namespace MLL +{ + public class ModeloUsuarioPerfis + { + public ModeloUsuarioPerfis() + { + Id = 0; + UsuarioId = 0; + PerfilId = 0; + } + public ModeloUsuarioPerfis(int id, int usuarioId, int perfilId) + { + Id = id; + UsuarioId = usuarioId; + PerfilId = perfilId; + } + + public int Id { get; set; } + public int UsuarioId { get; set; } + public int PerfilId { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloUsuarios.cs b/MLL/ModeloUsuarios.cs new file mode 100644 index 0000000..856324e --- /dev/null +++ b/MLL/ModeloUsuarios.cs @@ -0,0 +1,45 @@ +using System; + +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; + EmpresaId = empresaId; + Nome = nome; + Email = email; + Usuario = usuario; + SenhaHash = senhaHash; + Ativo = ativo; + UltimoLogin = ultimoLogin; + CriadoEm = criadoEm; + AtualizadoEm = atualizadoEm; + } + + public int Id { get; set; } + public int EmpresaId { get; set; } + public string Nome { get; set; } + public string Email { get; set; } + public string Usuario { get; set; } + public string SenhaHash { get; set; } + public bool Ativo { get; set; } + public DateTime? UltimoLogin { get; set; } + public DateTime? CriadoEm { get; set; } + public DateTime? AtualizadoEm { get; set; } + } +} \ No newline at end of file diff --git a/MLL/ModeloVendas.cs b/MLL/ModeloVendas.cs new file mode 100644 index 0000000..77aaf53 --- /dev/null +++ b/MLL/ModeloVendas.cs @@ -0,0 +1,97 @@ +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; + CODIGO = cODIGO; + OPERADOR = oPERADOR; + TOTAL = tOTAL; + DIA = dIA; + COMISSAO = cOMISSAO; + CLIENTE = cLIENTE; + DESCONTO = dESCONTO; + TOTAL_GERAL = tOTAL_GERAL; + TOTAL_SERVICOS = tOTAL_SERVICOS; + TOTAL_PECAS = tOTAL_PECAS; + TOTAL_IMPOSTOS = tOTAL_IMPOSTOS; + TOTAL_FRETE = tOTAL_FRETE; + TRANSPORTADORA = tRANSPORTADORA; + NF_TIPO = nF_TIPO; + SITUACAO_V = sITUACAO_V; + NF_NUMERO = nF_NUMERO; + OBS_VENDA = oBS_VENDA; + GEROU_CONTA = gEROU_CONTA; + CUPOM_NUM = cUPOM_NUM; + OPERADOR2 = oPERADOR2; + COMISSAO_FIXA = cOMISSAO_FIXA; + RASTREIO = rASTREIO; + OBS_VENDA_INTERNA = oBS_VENDA_INTERNA; + CANCELADA = cANCELADA; + NFC_NUMERO = nFC_NUMERO; + NFS_NUMERO = nFS_NUMERO; + } + + public int ID_VENDAS { get; set; } + public string CODIGO { get; set; } + public string OPERADOR { get; set; } + public string TOTAL { get; set; } + public string DIA { get; set; } + public string COMISSAO { get; set; } + public string CLIENTE { get; set; } + public string DESCONTO { get; set; } + public string TOTAL_GERAL { get; set; } + public string TOTAL_SERVICOS { get; set; } + public string TOTAL_PECAS { get; set; } + public string TOTAL_IMPOSTOS { get; set; } + public string TOTAL_FRETE { get; set; } + public string TRANSPORTADORA { get; set; } + public string NF_TIPO { get; set; } + public string SITUACAO_V { get; set; } + public string NF_NUMERO { get; set; } + public string OBS_VENDA { get; set; } + public string GEROU_CONTA { get; set; } + public string CUPOM_NUM { get; set; } + public string OPERADOR2 { get; set; } + public string COMISSAO_FIXA { get; set; } + public string RASTREIO { get; set; } + public string OBS_VENDA_INTERNA { get; set; } + public string CANCELADA { get; set; } + public string NFC_NUMERO { get; set; } + public string NFS_NUMERO { get; set; } + } +} \ No newline at end of file diff --git a/MLL/Class1.cs b/NotificationServices/Class1.cs similarity index 54% rename from MLL/Class1.cs rename to NotificationServices/Class1.cs index 02f7b67..10c2674 100644 --- a/MLL/Class1.cs +++ b/NotificationServices/Class1.cs @@ -1,4 +1,4 @@ -namespace MLL +namespace NotificationServices { public class Class1 { diff --git a/NotificationServices/NotificationServices.csproj b/NotificationServices/NotificationServices.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/NotificationServices/NotificationServices.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + +