public ActionResult BAN_008() { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); cl_filtros_banco_Info model = new cl_filtros_banco_Info { IdEmpresa = IdEmpresa, IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal) }; cargar_banco(model.IdEmpresa); BAN_008_Rpt report = new BAN_008_Rpt(); #region Cargo diseƱo desde base var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_008"); 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.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult BAN_008(cl_filtros_banco_Info model) { BAN_008_Rpt report = new BAN_008_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.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); cargar_banco(model.IdEmpresa); ViewBag.Report = report; return(View(model)); }