public void OpenDesempaqueModal(object parameter) { PlaceHolder = new emptyObject(); desempaqueModal = new EditPackageModal(this); desempaqueCommand = new DesmpaqueCommand(this); desempaqueModal.ShowDialog(); }
public void OpenDonateModal(object parameter) { PlaceHolder = new emptyObject(); donarProductoCommand = new DonateProductCommand(this); PlaceHolder.EmptyWord = ""; PlaceHolder.EmptyAmount = 1.00; donateModal = new DonateProductModal(this); donateModal.ShowDialog(); }
public void OpenAmountSelectionModal(object parameter) { NewLotePT = new LotePT(); PlaceHolder = new emptyObject(); PlaceHolder.EmptyWord = "empty"; procesarCantidadAmountCommand = new ProcesarCantidadAmountCommand(this); amountModal = new AmountsForPTModal(this); amountModal.ShowDialog(); }
public ReferenciasVM() { FacturaResults = new ObservableCollection <Factura>(); PlaceHolder = new emptyObject(); getFacturasCommand = new GetFacturasCommand(this); getLotesSalCommand = new GetLotesSalCommand(this); Productos = new ObservableCollection <formulaProduct>(ProductQueries.GetAllMpSimplified()); Lotes = new ObservableCollection <LoteEntrada>(); IsEnabledLotes = false; IsEnabledMP = true; PlaceHolder.EmptyCantidad = 12; PlaceHolder.EmptyAmount = 12.21; SelectedLote = new LoteEntrada(); SelectedProduct = new formulaProduct(); Tipos = new ObservableCollection <string> { "Lote Salida", "Lote Producto Terminado" }; }
public static void AdjustExistingLote(string CodLote, emptyObject placeHolder, string codPT) { cn = DBConnection.MainConnection(); try { cmd = new OleDbCommand("UPDATE lotes_producto_terminado " + "SET existencia = (existencia - " + placeHolder.EmptyCantidad + " ), cantidad_original = (cantidad_original - " + placeHolder.EmptyCantidad + ") " + "where Codigo_Correlativo = '" + CodLote + "'; ", cn); cmd.ExecuteNonQuery(); cn.Close(); InventarioPTRemoveAmount(codPT, placeHolder.EmptyCantidad); } catch (Exception ex) { System.Windows.MessageBox.Show("Error al actualizar Existencia - " + ex); } }