private void btnRepTurn_Click(object sender, EventArgs e) { if (tur.Count > 0) { if (rbMedicos.Checked) { crTurnosMedico reporte = new crTurnosMedico(); reporte.SetDataSource(tur); frmReporteTurnosMedico ofrm = new frmReporteTurnosMedico(reporte); ofrm.ShowDialog(); } } else { MessageBox.Show("No se registran turnos para realizar el reporte", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } //rptTurnosMedico rep = new rptTurnosMedico(); //rep.SetDataSource(turnos); //frmReporteTurnosMedico rtm = new frmReporteTurnosMedico(rep); //rtm.ShowDialog(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crTurnosMedico rpt = new crTurnosMedico(); rpt.Site = this.Site; return rpt; }