public FormReporteCitas() { InitializeComponent(); var _citasBL = new CitasBL(); var _doctorBL = new DoctoresBL(); var _pacientesBL = new PacientesBL(); var _horasBL = new HoraBL(); var bindingSource1 = new BindingSource(); bindingSource1.DataSource = _citasBL.ObtenerCitas(); var bindingSource2 = new BindingSource(); bindingSource2.DataSource = _doctorBL.ObtenerDoctores(); var bindingSource3 = new BindingSource(); bindingSource3.DataSource = _pacientesBL.ObtenerPaciente(); var bindingSource4 = new BindingSource(); bindingSource4.DataSource = _horasBL.ObtenerHoras(); var reporte = new ReporteCitas(); reporte.Database.Tables["Cita"].SetDataSource(bindingSource1); reporte.Database.Tables["Doctor"].SetDataSource(bindingSource2); reporte.Database.Tables["Paciente"].SetDataSource(bindingSource3); reporte.Database.Tables["Hora"].SetDataSource(bindingSource4); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }
public FormReporteCitas() { InitializeComponent(); var _citasBL = new CitasBL(); var bindingSource1 = new BindingSource(); bindingSource1.DataSource = _citasBL.ObtenerCitas(); var _pacientesBL = new PacientesBL(); var bindingSource2 = new BindingSource(); bindingSource2.DataSource = _pacientesBL.ObtenerPacientes(); var _medicosBL = new MedicosBL(); var bindingSource3 = new BindingSource(); bindingSource3.DataSource = _medicosBL.ObtenerMedicos(); var reporte = new ReportedeCitas(); reporte.Database.Tables["Cita"].SetDataSource(bindingSource1); reporte.Database.Tables["Paciente"].SetDataSource(bindingSource2); reporte.Database.Tables["Medico"].SetDataSource(bindingSource3); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }
public FormCitas() { InitializeComponent(); _pacientesBL = new PacientesBL(); listaPacientesBindingSource.DataSource = _pacientesBL.ObtenerPacientes(); _medicosBL = new MedicosBL(); listaMedicosBindingSource.DataSource = _medicosBL.ObtenerMedicos(); _citasBL = new CitasBL(); listaCitasBindingSource.DataSource = _citasBL.ObtenerCitas(); }
public FormCitas() { InitializeComponent(); _horasBL = new HoraBL(); listaHorasBindingSource.DataSource = _horasBL.ObtenerHoras(); _pacientesBL = new PacientesBL(); listaPacienteBindingSource.DataSource = _pacientesBL.ObtenerPaciente(); _doctoresBL = new DoctoresBL(); listaDoctoresBindingSource.DataSource = _doctoresBL.ObtenerDoctores(); _citasBL = new CitasBL(); listaCitaBindingSource.DataSource = _citasBL.ObtenerCitas(); }
// GET: Citas public ActionResult Index() { var listadeCitas = _citasBL.ObtenerCitas(); return(View(listadeCitas)); }