Exemplo n.º 1
0
 public void OpenDesempaqueModal(object parameter)
 {
     PlaceHolder       = new emptyObject();
     desempaqueModal   = new EditPackageModal(this);
     desempaqueCommand = new DesmpaqueCommand(this);
     desempaqueModal.ShowDialog();
 }
Exemplo n.º 2
0
 public void OpenDonateModal(object parameter)
 {
     PlaceHolder             = new emptyObject();
     donarProductoCommand    = new DonateProductCommand(this);
     PlaceHolder.EmptyWord   = "";
     PlaceHolder.EmptyAmount = 1.00;
     donateModal             = new DonateProductModal(this);
     donateModal.ShowDialog();
 }
Exemplo n.º 3
0
        public void OpenAmountSelectionModal(object parameter)
        {
            NewLotePT                     = new LotePT();
            PlaceHolder                   = new emptyObject();
            PlaceHolder.EmptyWord         = "empty";
            procesarCantidadAmountCommand = new ProcesarCantidadAmountCommand(this);

            amountModal = new AmountsForPTModal(this);
            amountModal.ShowDialog();
        }
Exemplo n.º 4
0
        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"
            };
        }
Exemplo n.º 5
0
        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);
            }
        }