private void inserta()
{
using (clasconexion.funobtenerConexion())
{
try
{
String estado = "reservado";
//string insertaReserva = "INSERT INTO MaReservacion (ncodreservacion,dfecha,nanticipo, vdescripcionreserv, vextranombre , nextratelefono ,vestadoreserv , ncodvuelo ,ncodpasajero)values('" + conversionRecibe + ",'" + txtFechaReserva.Text + "','" + recibeMonto + "','" + cbRequerimiento.Text + "','" + txtNombreExtra.Text + "','" + txtTelefonoExtra.Text + "','" + estado + "','" + "56" + "','" + svalorSeleccionado2 + ");";
string insertaReserva = "INSERT INTO MaRESERVACION (ncodreservacion,dfecha,nanticipo, vdescripcionreserv, vextranombre , nextratelefono ,vestadoreserv , ncodvuelo ,ncodpasajero)values('" + conversionRecibe + "','" + txtFechaReserva.Text + "', '" + "600" + "', '" + cbRequerimiento.Text + "','" + txtNombreExtra.Text + "','" + txtTelefonoExtra.Text + "','" + estado + "','" + txtCodDestino.Text + "' , '" + svalorSeleccionado2 + "');";
MySqlCommand cmdInsertaFinal = new MySqlCommand(insertaReserva, clasconexion.funobtenerConexion());
MySqlDataReader MyReaderReservacion;
MyReaderReservacion = cmdInsertaFinal.ExecuteReader();
MessageBox.Show("inserta exitosamente");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
MessageBox.Show("FALLO AL GENERAR LA CONSULTA: " + ex);
}
}
}