Esempio n. 1
0
        public LoteEntVM()
        {
            LotesActivos           = new ObservableCollection <LoteEntrada>(InventoryQueries.GetLotesEntradaActivos());
            LotesPaquetes          = new ObservableCollection <LoteEntrada>(InventoryQueries.GetAllContainerLotes());
            LotesInactivos         = new ObservableCollection <LoteEntrada>(InventoryQueries.GetLotesEntradaInActivos());
            LotesPaquetesInactivos = new ObservableCollection <LoteEntrada>(InventoryQueries.GetAllContainerLotesInactivos());
            MateriaPrima           = new ObservableCollection <formulaProduct>(ProductQueries.GetAllMpSimplifiedNoWater());
            Proveedores            = new ObservableCollection <DisplayProveedor>(PersonaQueries.GetDisplayProveedores());
            PaquetesMP             = new ObservableCollection <formulaProduct>(ProductQueries.GetAllContainersMP());
            newLoteCommand         = new NewLoteEntCommand(this);
            newLotePacakgeCommand  = new NewLotePackageCommand(this);
            NewLote = new LoteEntrada();

            SelectedLoteActivo = new LoteEntrada();
        }
Esempio n. 2
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"
            };
        }
Esempio n. 3
0
 public void EditLoteModal(object parameter)
 {
     NewLote       = new LoteEntrada(SelectedLoteActivo);
     editModalLote = new EditLoteEntradaModal(this);
     editModalLote.ShowDialog();
 }
Esempio n. 4
0
 public void reset(object parameter)
 {
     NewLote = new LoteEntrada();
 }