public v_NovaDistribuicaoFolhaAvulso(int CodigoDist, int Corretor, int Empreendimento, DateTime DataDist, string Folha, decimal ValorFolha, string FormaPagamento, string UsuarioCad, bool AlterarCad)//Alterar Dist { InitializeComponent(); this.c_DistFolhasAvulsas = new c_DistribuicaoFolhasAvulsas(); this.m_DistFolhasAvulsas = new m_DistribuicaoFolhasAvulsas(); this.c_corretor = new c_Corretor(); this.c_Empreendimento = new c_Loteamento(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); this.m_corretor = new m_Corretor(); m_DistFolhasAvulsas.iddistribuicaofolhasavulsas = CodigoDist; cbxCorretor.EditValue = Corretor; cbxEmpreendimento.EditValue = Empreendimento; dtpDataDistribuicao.Value = DataDist; cbxFolha.EditValue = Folha; txtValorFolha.Text = Convert.ToString(ValorFolha); if (FormaPagamento == "Á Vista") { rbtPGAvista.Checked = true; } else if (FormaPagamento == "Á Prazo") { rbtPGAprazo.Checked = true; } _UsuarioCad = UsuarioCad; _AlterarCad = AlterarCad; cbxNotificarCorretorEmail.Checked = false; this.Text = "Alterar Distribuição de Folha Avulso"; btnSalvar.Text = "Alterar"; }
public v_NovaPendencia(int CodigoPendencia, int CodigoLoteamento, int CodigoCorretor, string Quadra, string Lote, string Cliente, string Venda, string NumeroContrato, string Pendencia, DateTime DataVenda, DateTime DataCadVenda, DateTime DataCadPendencia, string UsuarioCad, bool AlterarCad) { InitializeComponent(); this.c_loteamento = new c_Loteamento(); this.m_loteamento = new m_Loteamento(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.c_pendencias = new c_Pendencias(); this.m_pendencias = new m_Pendencias(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); m_pendencias.idpendencias = CodigoPendencia; m_pendencias.usuariocad = UsuarioCad; LookUpEditLoteamento.EditValue = CodigoLoteamento; LookUpEditCorretor.EditValue = CodigoCorretor; txtQuadra.Text = Quadra; txtLote.Text = Lote; txtCliente.Text = Cliente; txtVenda.Text = Venda; txtNumeroContrato.Text = NumeroContrato; txtPendencia.Text = Pendencia; dtpDataVenda.Value = DataVenda; dtpDataCad.Value = DataCadVenda; dteDataCadPendencia.EditValue = DataCadPendencia; this.Text = "Alterar Pendência"; _alterarCad = AlterarCad; cbxAvisarCorretorPendencia.Checked = false; }
//senha = rnd.Next(1,7) vai cria senha entre 1 a 6 public v_RecuperarSenha() { InitializeComponent(); this.c_usuario = new c_Usuario(); this.m_usuario = new m_Usuario(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); }
public v_Pendencias() { InitializeComponent(); this.c_pendencias = new c_Pendencias(); this.m_pendencias = new m_Pendencias(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); }
public v_NovaDistribuicaoFolhaAvulso() { InitializeComponent(); this.c_DistFolhasAvulsas = new c_DistribuicaoFolhasAvulsas(); this.m_DistFolhasAvulsas = new m_DistribuicaoFolhasAvulsas(); this.c_corretor = new c_Corretor(); this.c_Empreendimento = new c_Loteamento(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); this.m_corretor = new m_Corretor(); }
public v_Pendencias(string Usuario, int Permissao) { InitializeComponent(); this.c_pendencias = new c_Pendencias(); this.m_pendencias = new m_Pendencias(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); _usuariocad = Usuario; _permissao = Permissao; }
public v_NovaPendencia() { InitializeComponent(); this.c_loteamento = new c_Loteamento(); this.m_loteamento = new m_Loteamento(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.c_pendencias = new c_Pendencias(); this.m_pendencias = new m_Pendencias(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); }
public v_NovaDistribuicaoContrato(string UsuarioCad) { InitializeComponent(); this.c_distribuicaoContratos = new c_Distribuicaocontratos(); this.m_distribuicaoContratos = new m_Distribuicaocontratos(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.c_loteamento = new c_Loteamento(); this.m_loteamento = new m_Loteamento(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); _usuarioCad = UsuarioCad; }
public v_NovaPendencia(string UsuarioCad, bool AlterarCad) { InitializeComponent(); this.c_loteamento = new c_Loteamento(); this.m_loteamento = new m_Loteamento(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.c_pendencias = new c_Pendencias(); this.m_pendencias = new m_Pendencias(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); dteDataCadPendencia.Text = DateTime.Now.ToShortDateString(); m_pendencias.usuariocad = UsuarioCad; _alterarCad = AlterarCad; }
public void AlterarConfigEmail(m_EmailConfig m_emailConfig) { MySqlConnection conexao = c_ConexaoMySql.GetConexao(); MySqlCommand comando = c_ConexaoMySql.GetComando(conexao); comando.CommandType = System.Data.CommandType.Text; comando.CommandText = "update emailconfig set smtpcredencialpadrao = @smtpcredencialpadrao,smtpemail = @smtpemail, smtphost = @smtphost, smtpporta = @smtpporta, smtpsenhaemail = @smtpsenhaemail, smtpssl = @smtpssl where idemailconfig = 1;"; comando.Parameters.Add(new MySqlParameter("@smtpcredencialpadrao", m_emailConfig.smtpcredencialpadrao)); comando.Parameters.Add(new MySqlParameter("@smtpemail", m_emailConfig.smtpemail)); comando.Parameters.Add(new MySqlParameter("@smtphost", m_emailConfig.smtphost)); comando.Parameters.Add(new MySqlParameter("@smtpporta", m_emailConfig.smtpporta)); comando.Parameters.Add(new MySqlParameter("@smtpsenhaemail", m_emailConfig.smtpsenhaemail)); comando.Parameters.Add(new MySqlParameter("@smtpssl", m_emailConfig.smtpssl)); comando.ExecuteNonQuery(); conexao.Clone(); }
public void PrimeiraConfigEmail(m_EmailConfig m_emailConfig) { MySqlConnection conexao = c_ConexaoMySql.GetConexao(); MySqlCommand comando = c_ConexaoMySql.GetComando(conexao); comando.CommandType = System.Data.CommandType.Text; comando.CommandText = "insert into emailconfig(idemailconfig,smtpcredencialpadrao,smtpemail,smtphost,smtpporta,smtpsenhaemail,smtpssl) values(1,@smtpcredencialpadrao,@smtpemail,@smtphost,@smtpporta,@smtpsenhaemail,@smtpssl);"; comando.Parameters.Add(new MySqlParameter("@smtpcredencialpadrao", m_emailConfig.smtpcredencialpadrao)); comando.Parameters.Add(new MySqlParameter("@smtpemail", m_emailConfig.smtpemail)); comando.Parameters.Add(new MySqlParameter("@smtphost", m_emailConfig.smtphost)); comando.Parameters.Add(new MySqlParameter("@smtpporta", m_emailConfig.smtpporta)); comando.Parameters.Add(new MySqlParameter("@smtpsenhaemail", m_emailConfig.smtpsenhaemail)); comando.Parameters.Add(new MySqlParameter("@smtpssl", m_emailConfig.smtpssl)); comando.ExecuteNonQuery(); conexao.Clone(); }
public v_NovaDistribuicaoContrato(string UsuarioCad, bool Alterar, int CodigoDistribuicao, string Empreendimento, string Corretor, int NumeroContrato, DateTime DataDistribuicao)//Atualizar//Editar Distribuição { this.c_distribuicaoContratos = new c_Distribuicaocontratos(); this.m_distribuicaoContratos = new m_Distribuicaocontratos(); this.c_corretor = new c_Corretor(); this.m_corretor = new m_Corretor(); this.c_loteamento = new c_Loteamento(); this.m_loteamento = new m_Loteamento(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); InitializeComponent(); btnSalvar.Text = "Alterar"; this.Text = "Alterar distribuição de Contrato"; m_distribuicaoContratos.iddistribuicaocontratos = CodigoDistribuicao; _usuarioCad = UsuarioCad; lookUpEditCorretor.EditValue = Corretor; lookUpEditEmpreendimento.EditValue = Empreendimento; txtSqcInicial.Value = NumeroContrato; dtpDataDistribuicao.Value = DataDistribuicao; txtSqcFinal.Value = txtSqcInicial.Value; _Alterar = Alterar; txtSqcFinal.Enabled = false; cbxAvisarPorEmail.Checked = false; }
public v_EmailConfig() { InitializeComponent(); this.c_emailConfig = new c_EmailConfig(); this.m_emailConfig = new m_EmailConfig(); }