예제 #1
0
        private void btnCargar_Click(object sender, EventArgs e)
        {
            String numero            = this.txtNumero.Text.Trim();
            NegocioOrdenTrabajo negO = new NegocioOrdenTrabajo();

            if (numero.Equals(""))
            {
                MessageBox.Show(this, "Ingrese el numero de orden a cargar", "Error!, Falta informacion");
                return;
            }

            if (negO.existeOrden(numero) == false)
            {
                MessageBox.Show(this, "¡No se encuentra la orden con ese numero!", "Error de duplicacion");
                return;
            }

            this.cargarSolicitud(numero);
            this.rellenarGrillaSolicitudes();
            this.btnGenerar.Enabled = true;
        }