コード例 #1
0
        public ActionResult Lista(int id)
        {
            ViewBag.Familia = id;

            var beneficiariosDAO = new BeneficiariosDAO();
            var beneficiarios    = beneficiariosDAO.Lista();

            ViewBag.Beneficiarios = beneficiarios;

            return(View(beneficiarios));
        }
コード例 #2
0
        // GET: Beneficiarios
        public ActionResult Formulario(int id)
        {
            var familiaDAO = new FamiliaDAO();
            var familia    = familiaDAO.BuscaPorId(id);

            ViewBag.Familia = familia;

            var beneficiariosDAO = new BeneficiariosDAO();
            var beneficiarios    = beneficiariosDAO.Lista();

            ViewBag.Beneficiarios = beneficiarios;

            return(View());
        }
コード例 #3
0
        // GET: Recibo

        public ActionResult Gerar(int id)
        {
            ViewBag.FamiliaId = id;

            var beneficiariosDAO = new BeneficiariosDAO();
            var beneficiarios    = beneficiariosDAO.Lista();

            ViewBag.Beneficiarios = beneficiarios;

            var listaRecibo = new Recibo().CalcularPorFamiliaPorContrato(id);
            var soma        = listaRecibo.Sum(x => x._tabelaDeValores.Valor);

            ViewBag.Soma = soma;

            return(View(beneficiarios));
        }
コード例 #4
0
        public ActionResult Finalizar(int id)
        {
            var familiadao = new FamiliaDAO();
            var familia    = familiadao.BuscaPorId(id);

            ViewBag.Familia = familia;

            var beneficiariosDAO = new BeneficiariosDAO();
            var beneficiarios    = beneficiariosDAO.Lista();

            ViewBag.Beneficiarios = beneficiarios;

            var listaRecibo = new Recibo().CalcularPorFamiliaPorContrato(id);
            var soma        = listaRecibo.Sum(x => x._tabelaDeValores.Valor);

            ViewBag.Soma = soma;

            return(View(beneficiarios));
        }