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