public SolicitudAbAtenderViewModel(IWindowManager windowmanager, SolicitudAbRegistrarViewModel window, int idSolicitud) { _windowManager = windowmanager; this.idSolicitud = idSolicitud; this.window = window; AbastecimientoSQL abSQL = new AbastecimientoSQL(); TiendaSQL tiendaSQL = new TiendaSQL(); idTienda = tiendaSQL.obtenerTienda(Int32.Parse(Thread.CurrentPrincipal.Identity.Name)); Productos = abSQL.buscarProductosAbastecimiento(idSolicitud,idTienda); }
public VentaRegistrarViewModel() { lstVenta = new List<DetalleVenta>(); lstPagos = new List<VentaPago>(); lstVentaServicios = new List<DetalleVentaServicio>(); prod = new Producto(); IGV = 0.18; PUNTO = 30; subt = 0; desc = 0; igv_total = 0; montopago = 0; TiendaSQL tiendSQL = new TiendaSQL(); this.idTienda = tiendSQL.obtenerTienda(Int32.Parse(Thread.CurrentPrincipal.Identity.Name)); ModoPagoSQL mpsql = new ModoPagoSQL(); LstModosPago = mpsql.BuscarModosPago(); }