public ActionResult BAN_009(cl_filtros_banco_Info model) { if (!model.mostrar_agrupado) { BAN_009_Rpt report = new BAN_009_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_agrupado.Value = model.mostrar_agrupado; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); cargar_banco(model.IdEmpresa); ViewBag.Report = report; } else { BAN_009_Flujo_Rpt report_flujo = new BAN_009_Flujo_Rpt(); report_flujo.p_IdEmpresa.Value = model.IdEmpresa; report_flujo.p_IdSucursal.Value = model.IdSucursal; report_flujo.p_fecha_fin.Value = model.fecha_fin; report_flujo.p_mostrar_agrupado.Value = model.mostrar_agrupado; report_flujo.usuario = SessionFixed.IdUsuario.ToString(); report_flujo.empresa = SessionFixed.NomEmpresa.ToString(); cargar_banco(model.IdEmpresa); ViewBag.Report = report_flujo; } return(View(model)); }
public ActionResult BAN_009(bool mostrar_agrupado = false) { cl_filtros_banco_Info model = new cl_filtros_banco_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal) }; cargar_banco(model.IdEmpresa); if (!mostrar_agrupado) { BAN_009_Rpt report = new BAN_009_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_009"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_agrupado.Value = model.mostrar_agrupado; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; } else { BAN_009_Flujo_Rpt report_flujo = new BAN_009_Flujo_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_009"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report_flujo.LoadLayout(RootReporte); } #endregion report_flujo.p_IdEmpresa.Value = model.IdEmpresa; report_flujo.p_IdSucursal.Value = model.IdSucursal; report_flujo.p_fecha_ini.Value = model.fecha_ini; report_flujo.p_fecha_fin.Value = model.fecha_fin; report_flujo.p_mostrar_agrupado.Value = model.mostrar_agrupado; report_flujo.usuario = SessionFixed.IdUsuario.ToString(); report_flujo.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report_flujo; } return(View(model)); }