예제 #1
0
 // 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());
 }
예제 #2
0
        // 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());
        }
예제 #3
0
        // GET: /Tercero/
        public ActionResult Index()
        {
            var terceroViewModel = Mapper.Map <IEnumerable <Tercero>,
                                               IEnumerable <TerceroViewModel> >(_terceroAppService.ObtenerTodo());

            return(View(terceroViewModel));
        }
예제 #4
0
        public void LlenarComboTercero()
        {
            this.combo_tercero.DataSource = _terceroAppservice.ObtenerTodo().ToList();

            combo_tercero.ValueMember   = "Id";
            combo_tercero.DisplayMember = "Apellido";
        }
예제 #5
0
        // 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());
        }
예제 #6
0
 // GET: Factura/Create
 public ActionResult Create()
 {
     ViewBag.UsuarioId = new SelectList(_usuarioAppService.ObtenerTodo(), "Id", "NombreUsuario");
     ViewBag.TerceroId = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido");
     return(View());
 }