private void button2_Click_1(object sender, EventArgs e) { frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); }
private void btnLogin_Click(object sender, EventArgs e) { try { string username = txtLogin.Text; string password = txtSenha.Text; FuncionarioBusiness business = new FuncionarioBusiness(); FuncionarioDTO funcionario = business.Logar(username, password); if (funcionario != null) { UserSession.UsuarioLogado = funcionario; frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); } } catch (ArgumentException ex) { MessageBox.Show(ex.Message, "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnLogin_Click(object sender, EventArgs e) { try { FuncionarioDTO Funcionario = new FuncionarioDTO(); Funcionario.Nome = textBox1.Text; Funcionario.Login = textBox2.Text; Funcionario.Senha = textBox3.Text; Funcionario.PermissaoADM = false; Funcionario.PermissaoEvento = true; Funcionario.PermissaoRelatorio = true; FuncionarioBusiness business = new FuncionarioBusiness(); int a = business.Salvar(Funcionario); MessageBox.Show("Funcionario Salvo com sucesso.", "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Information); frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); } catch (ArgumentException ex) { MessageBox.Show(ex.Message, "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnLogin_Click(object sender, EventArgs e) { try { ClienteDTO Cliente = new ClienteDTO(); Cliente.Nome = textBox1.Text; if (textBox2.Text != String.Empty) { Cliente.CPF = Convert.ToInt32(textBox2.Text); } Cliente.Sexo = Convert.ToString(comboBox1.SelectedItem); Cliente.Email = textBox3.Text; Cliente.Telefone = Convert.ToInt32(textBox4.Text); ClienteBusiness business = new ClienteBusiness(); business.Salvar(Cliente); MessageBox.Show("Cliente Salvo com sucesso.", "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Information); frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); } catch (ArgumentException ex) { MessageBox.Show(ex.Message, "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnLogin_Click(object sender, EventArgs e) { try { FornecedorDTO Fornecedor = new FornecedorDTO(); Fornecedor.Nome = textBox1.Text; Fornecedor.Produto = textBox2.Text; Fornecedor.Telefone = Convert.ToInt32(textBox3.Text); Fornecedor.Email = textBox5.Text; Fornecedor.Descricao = textBox4.Text; FornecedorBusiness business = new FornecedorBusiness(); business.Salvar(Fornecedor); MessageBox.Show("Fornecedor Salvo com sucesso.", "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Information); frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); } catch (ArgumentException ex) { MessageBox.Show(ex.Message, "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void button1_Click(object sender, EventArgs e) { frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Close(); }
private void pagamentoToolStripMenuItem_Click(object sender, EventArgs e) { frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); }
private void btnLogin_Click(object sender, EventArgs e) { try { string evento = textBox1.Text; string Local = textBox2.Text; string Data = dateTimePicker1.Text; string Hora = txtHorario.Text; string valor = textBox5.Text; DateTime solic = DateTime.Now; EventoDTO Evento = new EventoDTO(); Evento.Nome = textBox1.Text; Evento.Local = textBox2.Text; Evento.Data = Convert.ToDateTime(dateTimePicker1.Text); Evento.Horario = txtHorario.Text; Evento.Valor = Convert.ToDecimal(textBox5.Text); Evento.Descricao = textBox3.Text; Evento.Quantidade = Convert.ToInt32(numericUpDown1.Value); Evento.Estoque = Convert.ToInt32(comboBox1.SelectedItem); Evento.Cliente = Convert.ToInt32(comboBox2.SelectedItem); Evento.Funcionario = Convert.ToInt32(comboBox3.SelectedItem); EventoBusiness business = new EventoBusiness(); business.Salvar(Evento); MessageBox.Show("Pedido Salvo com sucesso.", "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Information); frmFolhaPagamento tela = new frmFolhaPagamento(); tela.Show(); this.Hide(); } catch (ArgumentException ex) { MessageBox.Show(ex.Message, "Best Moments", MessageBoxButtons.OK, MessageBoxIcon.Error); } }