Exemplo n.º 1
0
        private void buscarComision()
        {
            Negocio.Comisiones oComisiones = new Negocio.Comisiones();

            if ((txtIdComision.Text != "") && (oComisiones.ExisteComision(Convert.ToInt32(txtIdComision.Text))))
            {
                try
                {
                    Entidades.Comision oComision = oComisiones.RecuperarUno(int.Parse(txtIdComision.Text))[0];
                    txtNroComision.Text = oComision.NroComision.ToString();
                    txtTurno.Text = oComision.Turno;
                    this.id_buscado = txtIdComision.Text;
                }

                finally
                {
                    oComisiones = null;
                }

            }
            else
            {
                MessageBox.Show("IdComision incorrecto", "Error");
            }
        }