public ActionResult DetalleVenta(string idVenta, string userName) { DetalleVentaService dvs = new DetalleVentaService(); List <DetalleVenta> list = new List <DetalleVenta>(); list = dvs.GetDetailSale(idVenta, userName); ViewBag.IdVenta = idVenta; ViewBag.userName = userName; return(View(list)); }
public FrmVenta() { vendedorService = new VendedorService(ConfigConnection.connectionString); vendedores = new List <Vendedor>(); productoService = new ProductoService(ConfigConnection.connectionString); productos = new List <Producto>(); detalleVentaService = new DetalleVentaService(ConfigConnection.connectionString); detallesVentas = new List <DetalleVenta>(); ventaService = new VentaService(ConfigConnection.connectionString); compuestoProductoService = new CompuestoProductoService(ConfigConnection.connectionString); materiaPrimaService = new MateriaPrimaService(ConfigConnection.connectionString); materiaPrimas = new List <MateriaPrima>(); InitializeComponent(); LlenarVendedor(); LlenarProducto(); Limpiar(); }