Example #1
0
 private void lblBuscar_Click(object sender, EventArgs e)
 {
     lblOperacion.Text = "Consulta";
     if (!string.IsNullOrWhiteSpace(txtCodigo.Text))
     {
         buscarActivo();
     }
     else
     {
         Aplicacion.Inventario.FrmSelActivos frm = new Inventario.FrmSelActivos();
         frm.ShowDialog(this);
     }
 }
Example #2
0
 protected void buscarActivo()
 {
     if (!string.IsNullOrWhiteSpace(txtCodigo.Text))
     {
         activo = bllAct.buscar(txtCodigo.Text);
         if (activo != null)
         {
             txtDescripcion.Text     = activo.descripcion.ToString();
             txtValCompra.Text       = UtilSystem.fMoneda(activo.valComercial);
             txtValLibros.Text       = UtilSystem.fMoneda(activo.valLibros);
             txtDepreciacion.Text    = UtilSystem.fMoneda(activo.depAcumulada);
             lblCtaActivo.Text       = activo.ctaActivo;
             lblCtaDepreciacion.Text = activo.ctaDepreciacion;
         }
         else
         {
             MessageBox.Show("El Activo no Se Encuentra registrado Verifique.. !!", "Control de Informacion", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             limpiar();
             Aplicacion.Inventario.FrmSelActivos frm = new Inventario.FrmSelActivos();
             frm.ShowDialog();
         }
     }
 }
Example #3
0
 private void txtCodActivo_DoubleClick(object sender, EventArgs e)
 {
     texto = (TextBox)sender;
     Inventario.FrmSelActivos frmS = new Inventario.FrmSelActivos();
     frmS.ShowDialog(this);
 }
Example #4
0
        private void txtCodigo_DoubleClick(object sender, EventArgs e)
        {
            var frmSA = new Inventario.FrmSelActivos();

            frmSA.ShowDialog(this);
        }