public ActionResult ROl_012(cl_filtros_Info model) { ROL_012_Rpt report = new ROL_012_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha_inicio.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 ROL_012( ) { cl_filtros_Info model = new cl_filtros_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa) }; ROL_012_Rpt report = new ROL_012_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha_inicio.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_IdRubro.Value = model.IdRubro; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }