private void button4_Click(object sender, EventArgs e) { coneccion oper = new coneccion(); oper.insertar(" UPDATE empleado SET nombre='" + tbnombre.Text.ToString() + "', apellido='" + tbapellido.Text.ToString() + "' WHERE codigo_emp='" + tbcodigo.Text + "'"); }
private void btcrear_Click(object sender, EventArgs e) { coneccion oper = new coneccion(); oper.insertar(" INSERT INTO empleado (nombre, apellido, sexo, fecha_nacimiento, fcha_ingreso, fkcod_cargo, fkcod_depart )VALUES('" + tbnombre.Text.ToString() + "','" + tbapellido.Text.ToString() + "','" + cbsexo.Text.ToString() + "','" + dtpfchnc.Text.ToString() + "','" + dtpingreso.Text.ToString() + "','" + tbcargo.Text.ToString() + "','" + tbdepart.Text.ToString() + "')"); }