Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (!validaciones2())
            {
                return;
            }
            //--

            int cantidad = Int32.Parse(((new ConexionSQL()).cargarTablaSQL("select count(*) from dbas.aeronavesEnServicio() where matricula_aeronave like '" + txtMatricula.Text + "'")).Rows[0][0].ToString());

            if (cantidad != 1)
            {
                MessageBox.Show("Esta Aeronave ya fue eliminada", "Baja Aeronave", MessageBoxButtons.OK);
                return;
            }

            //--
            MotivoDeBaja motivo = new MotivoDeBaja(this);

            this.Hide();
            motivo.Show();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            if (!validaciones2()) return;
            //--

              int cantidad = Int32.Parse(((new ConexionSQL()).cargarTablaSQL("select count(*) from dbas.aeronavesEnServicio() where matricula_aeronave like '" + txtMatricula.Text + "'")).Rows[0][0].ToString());
              if (cantidad != 1)
              {
                  MessageBox.Show("Esta Aeronave ya fue eliminada", "Baja Aeronave", MessageBoxButtons.OK);
                  return;
              }

            //--
            MotivoDeBaja motivo = new MotivoDeBaja(this);
            this.Hide();
            motivo.Show();
        }