private void ReporteAuditoria() { string rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString(); ConfigurarReporte(); rvReporte.LocalReport.ReportPath = string.Format("{0}\\rptAuditoria.rdlc", rutatarget); List <AuditoriaRpt> lbeReporte = ReporteLN.ListaAuditoriaRpt(); ReportDataSource dataSource = new ReportDataSource("DsAuditoria", lbeReporte); rvReporte.LocalReport.DataSources.Clear(); rvReporte.LocalReport.DataSources.Add(dataSource); rvReporte.ServerReport.Refresh(); }
private void ReporteIniciativa() { string rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString(); IniciativaRptBE entidad = new IniciativaRptBE() { ID_INICIATIVA = 0 }; ConfigurarReporte(); rvReporte.LocalReport.ReportPath = string.Format("{0}\\rptIniciativa.rdlc", rutatarget); List <IniciativaRptBE> lbeReporte = ReporteLN.ListaIniciativaRpt(entidad); ReportDataSource dataSource = new ReportDataSource("DtIniciativa", lbeReporte); rvReporte.LocalReport.DataSources.Clear(); rvReporte.LocalReport.DataSources.Add(dataSource); rvReporte.ServerReport.Refresh(); }
//public JsonResult ReporteEscenario(EscenarioRptBE entidad) //{ // ResponseEntity itemRespuesta = new ResponseEntity(); // string Archivo = Guid.NewGuid().ToString(); // entidad.ID_MEDMIT = 0; // string NombreRpt = WebConfigurationManager.AppSettings["RutaTemp"] + "\\" + Archivo + ".pdf"; // if (new Reporte().GenerarPDFReporte(entidad, NombreRpt)) // { // itemRespuesta.success = true; // itemRespuesta.extra = NombreRpt; // } // else // { // itemRespuesta.success = false; // itemRespuesta.extra = ""; // } // return Respuesta(itemRespuesta); //} private void ReporteMedidaMitigacion() { string rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString(); MedMitRptBE entidad = new MedMitRptBE() { ID_MEDMIT = 0 }; ConfigurarReporte(); rvReporte.LocalReport.ReportPath = string.Format("{0}\\rptMedMit.rdlc", rutatarget); List <MedMitRptBE> lbeReporte = ReporteLN.ListaMedMitRpt(entidad); ReportDataSource dataSource = new ReportDataSource("DtMedMit", lbeReporte); rvReporte.LocalReport.DataSources.Clear(); rvReporte.LocalReport.DataSources.Add(dataSource); rvReporte.ServerReport.Refresh(); }
private void ReporteIniciativa() { string rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString(); IniciativaRptBE entidad = new IniciativaRptBE() { ID_INICIATIVA = 0, ID_MEDMIT = int.Parse(ddlMedMit.SelectedValue), ID_SECTOR_INSTITUCION = int.Parse(ddlSector.SelectedValue) }; ConfigurarReporte(); ReportViewer1.LocalReport.ReportPath = string.Format("{0}\\rptIniciativa.rdlc", rutatarget); List <IniciativaRptBE> lbeReporte = ReporteLN.ListaIniciativaRpt(entidad); ReportDataSource dataSource = new ReportDataSource("DtIniciativa", lbeReporte); ReportViewer1.LocalReport.DataSources.Clear(); ReportViewer1.LocalReport.DataSources.Add(dataSource); ReportViewer1.ServerReport.Refresh(); }