示例#1
0
 public async Task <ResponseStock> modificarStockCombinacion(CombinacioneGuaradar param)
 {
     try
     {
         // localhost:8080/admeli/xcore2/xcore/services.php/calternativa/herramienta
         return(await webService.POST <CombinacioneGuaradar, ResponseStock>("calternativa", "herramienta", param));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        private async void btnAceptar_Click(object sender, EventArgs e)
        {
            Bloqueo.bloquear(this, true);
            try
            {
                BindingSource bindingSource = dgvCombinacion.DataSource as BindingSource;
                list = bindingSource.DataSource as List <CombinacionStock>;
                CombinacioneGuaradar combinacioneGuaradar = new CombinacioneGuaradar();
                combinacioneGuaradar.datos      = list;
                combinacioneGuaradar.idAlmacen  = productoData.idAlmacen;
                combinacioneGuaradar.idProducto = productoData.idProducto;
                ResponseStock response = await varianteModel.modificarStockCombinacion(combinacioneGuaradar);

                MessageBox.Show("Mensaje: " + response.msj, "Stock Combinaciones", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Bloqueo.bloquear(this, false);
                this.Close();
            }

            catch (Exception ex)
            {
                MessageBox.Show("Mensaje: " + ex.Message, "Stock Combinaciones", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Bloqueo.bloquear(this, false);
            }
        }