public ActionResult Crear() { var nuevaCita = new Cita(); var pacientes = _pacientesBL.ObtenerPaciente(); ViewBag.PacienteId = new SelectList(pacientes, "Id", "Nombre"); return(View(nuevaCita)); }
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(); }
// GET: Pacientes public ActionResult Index() { var pacientesBL = new PacientesBL(); var listaPacientes = pacientesBL.ObtenerPaciente(); return(View(listaPacientes)); }
public Form1() { InitializeComponent(); var pacientesBL = new PacientesBL(); var listadePacientes = pacientesBL.ObtenerPaciente(); listadePacientesBindingSource.DataSource = listadePacientes; }
public FormFactura() { InitializeComponent(); _facturaBL = new FacturaBL(); listaFacturaBindingSource.DataSource = _facturaBL.ObtenerFacturas(); _doctoresBL = new DoctoresBL(); listaDoctoresBindingSource.DataSource = _doctoresBL.ObtenerDoctores(); _pacientesBL = new PacientesBL(); listaPacienteBindingSource.DataSource = _pacientesBL.ObtenerPaciente(); }
public FormPacientes() { InitializeComponent(); _pacientes = new PacientesBL(); listaPacienteBindingSource.DataSource = _pacientes.ObtenerPaciente(); _categorias = new CategoriasBL(); listaCategoriasBindingSource.DataSource = _categorias.ObtenerCategorias(); _tiposBL = new TiposBL(); listaTiposBindingSource.DataSource = _tiposBL.ObtenerTipos(); }
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(); }
public FormReportePacientes() { InitializeComponent(); var _pacienteBL = new PacientesBL(); var bindingSource = new BindingSource(); bindingSource.DataSource = _pacienteBL.ObtenerPaciente(); var reporte = new ReportePacientes(); reporte.SetDataSource(bindingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }
// GET: Pacientes public ActionResult Index() { var listadePacientes = _pacientesBL.ObtenerPaciente(); return(View(listadePacientes)); }