コード例 #1
0
 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;
 }
コード例 #2
0
 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));
         }
     }
 }
コード例 #3
0
 //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());
 }