// GET: Transaccion/Create public ActionResult Create() { ViewBag.UsuarioId = new SelectList(_usuarioAppService.ObtenerTodo(), "Id", "NombreUsuario"); ViewBag.TerceroId = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido"); ViewBag.FacturaId = new SelectList(_facturaAppService.ObtenerTodo(), "Id", "NumeroFactura"); ViewBag.TipoTransaccionId = new SelectList(_tipoTransaccionAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.FormaPagoId = new SelectList(_formaPagoAppService.ObtenerTodo(), "Id", "Descripcion"); return(View()); }
// GET: Venta public ActionResult Index() { ViewBag.Clientes = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "NombreCompleto"); ViewBag.FormaPago = new SelectList(_formapagoAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.Productos = (List <Item>)Session["cart"]; ViewBag.Fecha = DateTime.Now; var a = Session["User"]; return(View()); }
// GET: /Tercero/ public ActionResult Index() { var terceroViewModel = Mapper.Map <IEnumerable <Tercero>, IEnumerable <TerceroViewModel> >(_terceroAppService.ObtenerTodo()); return(View(terceroViewModel)); }
public void LlenarComboTercero() { this.combo_tercero.DataSource = _terceroAppservice.ObtenerTodo().ToList(); combo_tercero.ValueMember = "Id"; combo_tercero.DisplayMember = "Apellido"; }
// GET: Producto/Create public ActionResult Create() { ViewBag.MarcaId = new SelectList(_marcaAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.CategoriaId = new SelectList(_categoriaAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.TerceroId = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido"); return(View()); }
// GET: Factura/Create public ActionResult Create() { ViewBag.UsuarioId = new SelectList(_usuarioAppService.ObtenerTodo(), "Id", "NombreUsuario"); ViewBag.TerceroId = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido"); return(View()); }