示例#1
0
        public FormDoctores()
        {
            InitializeComponent();

            _doctores = new DoctoresBL();
            listaDoctoresBindingSource.DataSource = _doctores.ObtenerDoctores();
        }
示例#2
0
        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 FormFactura()
        {
            InitializeComponent();

            _facturaBL = new FacturaBL();
            listaFacturaBindingSource.DataSource = _facturaBL.ObtenerFacturas();

            _doctoresBL = new DoctoresBL();
            listaDoctoresBindingSource.DataSource = _doctoresBL.ObtenerDoctores();

            _pacientesBL = new PacientesBL();
            listaPacienteBindingSource.DataSource = _pacientesBL.ObtenerPaciente();
        }
示例#4
0
        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();
        }