Exemplo n.º 1
0
        private void listasBusqueda_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                try
                {
                    DataRowView seleccion = (DataRowView)listasBusqueda.SelectedItem;
                    txtnombreP.Text              = seleccion.Row[3].ToString();
                    txtCodigo.Text               = seleccion.Row[2].ToString();
                    listaMarca.SelectedValue     = seleccion.Row[6].ToString();
                    listaCategoria.SelectedValue = seleccion.Row[4].ToString();
                    listaSucursal.SelectedValue  = seleccion.Row[8].ToString();
                    listaEstante.SelectedValue   = seleccion.Row[10].ToString();
                    fecha.Text          = seleccion.Row[12].ToString();
                    idsucursal_producto = seleccion.Row[0].ToString();
                    idproducto          = seleccion.Row[1].ToString();

                    cargarTablaPresentaciones();

                    txtBuscarP.Focus();
                }
                catch
                {
                    if (MessageBox.Show("Deseas crear un producto nuevo", "No exite producto", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        mantenimientos.productos pr = new productos();
                        pr.txtCodigo.Text = listasBusqueda.Text;
                        pr.ShowDialog();
                    }
                }
            }
        }
Exemplo n.º 2
0
 //accesso a productos
 void Btn_productoClick(object sender, EventArgs e)
 {
     if (SWregistrado)
     {
         productos aux = new productos();
         aux.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("ACTIVE EL PRODUCTO!!", "VERSION PRUEBA");
     }
 }
Exemplo n.º 3
0
 private void agregarProducto_Click(object sender, EventArgs e)
 {
     mantenimientos.productos pr = new productos();
     pr.txtCodigo.Text = listasBusqueda.Text;
     pr.ShowDialog();
 }