private void btnAddArea_Click(object sender, EventArgs e) { String ComandoSQL = "UPDATE areaprocesso SET " + "modelo = '" + txtSigla.Text + "' " + "WHERE sigla = '" + SiglaAreaAtual + "'"; String mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } carregarAreas(); }
private void btnOkButton_Click(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO modelo(sigla,nome,descricao) " + "VALUES('" + txtSigla.Text + "','" + txtNome.Text + "','" + txtDescricao.Text + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { Close(); } }
private void btnConfirmar_Click(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO categoria(nome) " + "VALUES('" + txtNome.Text + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { MessageBox.Show("Categoria cadastrada com sucesso!"); txtNome.Clear(); txtNome.Focus(); } }
private void btnConfirmar_Click(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO praticaespecifica(sigla,nome,descricao,metaespecifica) " + "VALUES('" + txtSigla.Text + "','" + txtNome.Text + "','" + txtDescricao.Text + "','" + cboMeta.SelectedValue + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { MessageBox.Show("Pratica Específica cadastrada com sucesso!"); txtSigla.Clear(); txtDescricao.Clear(); txtNome.Clear(); txtSigla.Focus(); } }
private void btnConfirmar_Click_1(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO areaprocesso(sigla,nome,descricao,nivelmaturidade,categoria) " + "VALUES('" + txtSigla.Text + "','" + txtNome.Text + "','" + txtDescricao.Text + "','" + cboNivel.SelectedValue + "','" + cboCategoria.SelectedValue + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { MessageBox.Show("Área de Processo cadastrada com sucesso!"); txtSigla.Clear(); txtDescricao.Clear(); txtNome.Clear(); txtSigla.Focus(); } }
private void btnConfirmar_Click(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO produtotrabalho(nome,teamplate) " + "VALUES('" + txtNome.Text + "','" + txtTeamplate.Text + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { MessageBox.Show("Produto de Trabalho cadastrado com sucesso!"); txtNome.Clear(); txtTeamplate.Clear(); txtNome.Focus(); } }
private void btnConfirmar_Click(object sender, EventArgs e) { String mensagem = ""; String ComandoSQL = "INSERT INTO nivelcapacidade(sigla,nome,descricao) " + "VALUES('" + txtSigla.Text + "','" + txtNome.Text + "','" + txtDescricao.Text + "');"; PostgreSQL pgSQL = new PostgreSQL(); mensagem = pgSQL.ExecutarComandoSQL(ComandoSQL); if (mensagem != "") { MessageBox.Show(mensagem); } else { MessageBox.Show("Nível de Capacidade cadastrado com sucesso!"); txtSigla.Clear(); txtDescricao.Clear(); txtNome.Clear(); txtSigla.Focus(); } }