// GET: Acumulado public ActionResult Index() { _Acumulado ac = new _Acumulado(); ViewBag.ejercicio = ac.ejercicios(); ViewBag.empresas = ac.empresas(); ViewBag.sucursales = ac.GetClientes(); return(PartialView()); }
public ActionResult periodoEjercicio(int idEjercicio, int IdBimestre, int IdEmpresa, int IdSucursal) { _Acumulado ac = new _Acumulado(); if (idEjercicio == 0 && IdBimestre == 0 && IdEmpresa == 0 && IdSucursal == 0) { var datos = ac.periodos(); return(PartialView(datos)); } else if (IdBimestre == 0 && idEjercicio != 0 && IdEmpresa == 0 && IdSucursal == 0) { var datos = ac.periodoByEjercicio(idEjercicio); return(PartialView(datos)); } else if (IdBimestre != 0 && idEjercicio != 0 && IdEmpresa == 0 && IdSucursal == 0) { var datos = ac.periodoByEjercicioByBimestre(idEjercicio, IdBimestre); return(PartialView(datos)); } else if (idEjercicio == 0 && IdEmpresa == 0 && IdSucursal == 0) { var datos = ac.periodoByBimestre(IdBimestre); return(PartialView(datos)); } else if (IdBimestre == 0 && idEjercicio == 0 && IdEmpresa != 0 && IdSucursal == 0) { var datos = ac.periodoByEmpresa(IdEmpresa); return(PartialView(datos)); } else if (IdSucursal != 0) { var datos = ac.periodoBySucursal(IdSucursal); return(PartialView(datos)); } else { return(null); } }