private void mostrarTodos()
        {
            DataTable tabla = new DataTable();

            tabla = AD_HistorialInscripcion.obtenerGraficoTodos();
            ReportDataSource ds = new ReportDataSource("graficoActividadesInscripciones", tabla);

            this.reportAI.LocalReport.DataSources.Clear();
            this.reportAI.LocalReport.DataSources.Add(ds);
            this.reportAI.RefreshReport();
        }
        private void btnFiltrar_Click(object sender, EventArgs e)
        {
            DataTable tabla = new DataTable();

            tabla = AD_HistorialInscripcion.obtenerGrafico(fechaDesde.Value, fechaHasta.Value);
            ReportDataSource ds = new ReportDataSource("graficoActividadesInscripciones", tabla);

            this.reportAI.LocalReport.DataSources.Clear();
            this.reportAI.LocalReport.DataSources.Add(ds);
            this.reportAI.RefreshReport();
        }
Exemplo n.º 3
0
        private void btnMostrarTodos_Click(object sender, EventArgs e)
        {
            verificarCampos(cbCursos, cbInscriptos, cbResponsables);
            DataTable tabla = new DataTable();

            tabla = AD_HistorialInscripcion.obtenerListadoReporte(DateTime.Parse("01/01/1900"), DateTime.Parse("1/01/2100"), -1, -1, -1);
            ReportDataSource ds = new ReportDataSource("listadoInscripciones", tabla);

            this.repIns.LocalReport.DataSources.Clear();
            this.repIns.LocalReport.DataSources.Add(ds);
            this.repIns.RefreshReport();
            lblCantidad.Text = "Cantidad de registros:" + tabla.Rows.Count;
        }
Exemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            verificarCampos(cbCursos, cbInscriptos, cbResponsables);

            DataTable tabla = new DataTable();

            tabla = AD_HistorialInscripcion.obtenerListadoReporte(fechaInicio.Value, fechaFin.Value, (int)cbCursos.SelectedValue, (int)cbInscriptos.SelectedValue, (int)cbResponsables.SelectedValue);
            ReportDataSource ds = new ReportDataSource("listadoInscripciones", tabla);

            this.repIns.LocalReport.DataSources.Clear();
            this.repIns.LocalReport.DataSources.Add(ds);
            this.repIns.RefreshReport();
            lblCantidad.Text = "Cantidad de registros:" + tabla.Rows.Count;
        }
Exemplo n.º 5
0
 private void CargarGrilla()
 {
     dgvHistorial.DataSource = AD_HistorialInscripcion.obtenerListado();
 }