コード例 #1
0
        public JsonResult GenerarAcumuladoEdoRes(EjercicioMesModel model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    using (FTPresupuestoEntities _db = new FTPresupuestoEntities())
                    {
                        _db.Database.CommandTimeout = 0;

                        _db.EdoRes_GenerarMes(model.Ejercicio, model.Mes);
                        //_db.SaveChanges();
                    }
                    return(Json("Proceso Correctamente Finalizado"));
                }
                catch (Exception ex)
                {
                    if (ex.InnerException != null)
                    {
                        return(Json(ex.InnerException.Message));
                    }
                    else
                    {
                        return(Json(ex.Message));
                    }
                }
            }
            return(Json("Informacion Incompleta"));
        }
コード例 #2
0
        public ActionResult GenerarPeriodo()
        {
            ViewBag.Message = "ESTADO DE RESULTADOS ACUMULADO ";

            ViewBag.Title = "Generar periodo ";

            var model = new EjercicioMesModel();

            return(View(model));
        }