private void ActualizarStock_Load(object sender, EventArgs e) { Producto.IniciarTransaccion(); Cargar_grilla(Producto.Todos_los_Productos()); txt_agregar.Enabled = false; txt_cantStock.Enabled = false; txt_codigo.Enabled = false; txt_nombre.Enabled = false; txt_total.Enabled = false; }
private void btn_Buscar_Click(object sender, EventArgs e) { if (chk_Todos.Checked == true) { Cargar_grilla(Producto.Todos_los_Productos()); } else { if (txt_BuscarDoc.Text == "") { MessageBox.Show("No se ingreso parametro de busqueda"); } else { Cargar_grilla(Producto.Buscar_ProductoPorCodigo(txt_BuscarDoc.Text)); } } }
//BOTON MODIFICAR.... private void btn_cancelar_Click(object sender, EventArgs e) { Producto.sumarStock(int.Parse(txt_agregar.Text), txt_codigo.Text); Cargar_grilla(Producto.Todos_los_Productos()); }