Пример #1
0
        private void BtnReporteMensual_Click(object sender, EventArgs e)
        {
            ControladorSocio       CSocio = new ControladorSocio();
            List <ModelCuponSocio> lista  = CSocio.ListarTodasCuotasSocios()
                                            .AsEnumerable()
                                            .Where(b => b.Estado == EnumEstadoCuotaSocio.Pagado)
                                            .Where(b => b.FechaCobro.Value.Year == dtpAño2.Value.Year)
                                            .Where(b => b.FechaCobro.Value.Month == cbxMes.SelectedIndex + 1)
                                            .ToList();
            ReportDataSource dt  = new ReportDataSource("DataSet1", lista);
            string           dir = "ProjectGimnasiaYEsgrima.Utils.ReporteIngreso.rdlc";

            new InterfazGenerarReporte(dt, dir).ShowDialog();
        }