public ActionResult ACTF_004(cl_filtros_Info model)
 {
     if (model.mostrar_agrupado)
     {
         ACTF_004_detalle_Rpt report = new ACTF_004_detalle_Rpt();
         report.p_IdEmpresa.Value        = model.IdEmpresa;
         report.p_IdActivoFijoTipo.Value = model.IdActivoFijoTipo;
         report.p_IdCategoriaAF.Value    = model.IdCategoriaAF;
         report.p_Estado_Proceso.Value   = model.Estado_Proceso;
         report.p_IdUsuario.Value        = model.IdUsuario;
         report.p_fecha_corte.Value      = model.fecha_fin;
         report.usuario = SessionFixed.IdUsuario.ToString();
         report.empresa = SessionFixed.NomEmpresa.ToString();
         cargar_combos(model);
         ViewBag.Report = report;
     }
     else
     {
         ACTF_004_resumen_Rpt report = new ACTF_004_resumen_Rpt();
         report.p_IdEmpresa.Value        = model.IdEmpresa;
         report.p_IdActivoFijoTipo.Value = model.IdActivoFijoTipo;
         report.p_IdCategoriaAF.Value    = model.IdCategoriaAF;
         report.p_Estado_Proceso.Value   = model.Estado_Proceso;
         report.p_IdUsuario.Value        = model.IdUsuario;
         report.p_fecha_corte.Value      = model.fecha_fin;
         report.usuario = SessionFixed.IdUsuario.ToString();
         report.empresa = SessionFixed.NomEmpresa.ToString();
         cargar_combos(model);
         ViewBag.Report = report;
     }
     return(View(model));
 }
        public ActionResult ACTF_004()
        {
            cl_filtros_Info model = new cl_filtros_Info
            {
                IdEmpresa      = Convert.ToInt32(SessionFixed.IdEmpresa),
                Estado_Proceso = ""
            };

            if (model.mostrar_agrupado)
            {
                ACTF_004_detalle_Rpt model_detalle = new ACTF_004_detalle_Rpt();
                model_detalle.p_IdEmpresa.Value        = model.IdEmpresa;
                model_detalle.p_IdActivoFijoTipo.Value = model.IdActivoFijoTipo;
                model_detalle.p_IdCategoriaAF.Value    = model.IdCategoriaAF;
                model_detalle.p_fecha_corte.Value      = model.fecha_fin;
                model_detalle.p_Estado_Proceso.Value   = model.Estado_Proceso;
                model_detalle.p_IdUsuario.Value        = SessionFixed.IdUsuario;
                cargar_combos(model);

                model_detalle.usuario = SessionFixed.IdUsuario;
                model_detalle.empresa = SessionFixed.NomEmpresa;
                ViewBag.report        = model_detalle;
            }

            else
            {
                ACTF_004_resumen_Rpt model_resumen = new ACTF_004_resumen_Rpt();
                model_resumen.p_IdEmpresa.Value        = model.IdEmpresa;
                model_resumen.p_IdActivoFijoTipo.Value = model.IdActivoFijoTipo;
                model_resumen.p_IdCategoriaAF.Value    = model.IdCategoriaAF;
                model_resumen.p_fecha_corte.Value      = model.fecha_fin;
                model_resumen.p_Estado_Proceso.Value   = model.Estado_Proceso;
                model_resumen.p_IdUsuario.Value        = SessionFixed.IdUsuario;
                cargar_combos(model);

                model_resumen.usuario = SessionFixed.IdUsuario;
                model_resumen.empresa = SessionFixed.NomEmpresa;
                ViewBag.report        = model_resumen;
            }
            cargar_combos(model);
            return(View(model));
        }