public FacturasVM() { Facturas = new ObservableCollection<Factura>(FacturaQueries.GetFacturaList()); testFactura = FacturaQueries.GetFacturaList(); Productos = new ObservableCollection<ProductoTeminadoParaLista>(ProductQueries.GetPTSimp()); Clientes = new ObservableCollection<IdName>(PersonaQueries.getClientes()); Vendedores = new List<string>(FacturaQueries.getVendedores()); Zonas = new ObservableCollection<string> { "Norte", "Sur", "Este", "Oeste" }; editModal = new EditFacturaModal(this); ProductPairs = new List<IdName>(); NewFacturaCommand = new CreateFacturaCommand(this); NewFacturaGenerarLotes = new CreateFacturaGenerarLotes(this); NewFacturaAddDetalle = new CreateFacturaAddDetalle(this); UpdateBalanceCommand = new UpdateFacturaBalanceCommand(this); //FacturaEditModal = new OpenEditModal(this); IsProductEnabled = true; }
public void buscarPorLoteSal() { FacturaResults = new ObservableCollection <Factura>(FacturaQueries.GetFacturasFromLoteSal(PlaceHolder.EmptyWord)); }
public void buscarPorLotePT() { System.Windows.MessageBox.Show(PlaceHolder.EmptyWord); FacturaResults = new ObservableCollection <Factura>(FacturaQueries.GetFacturasFromLotePt(PlaceHolder.EmptyWord)); }