Exemplo n.º 1
0
        public FormReportePacientes()
        {
            InitializeComponent();

            var _pacientesBL   = new PacientesBL();
            var bindingSource1 = new BindingSource();

            bindingSource1.DataSource = _pacientesBL.ObtenerPacientes();

            var _estadosBL     = new EstadosBL();
            var bindingSource2 = new BindingSource();

            bindingSource2.DataSource = _estadosBL.ObtenerEstados();

            var _tiposBL       = new TiposBL();
            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _tiposBL.ObtenerTipos();

            var reporte = new ReportePacientes();

            reporte.Database.Tables["Paciente"].SetDataSource(bindingSource1);
            reporte.Database.Tables["Estado"].SetDataSource(bindingSource2);
            reporte.Database.Tables["Tipo"].SetDataSource(bindingSource3);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        public FormPacientes()
        {
            InitializeComponent();

            _pacientes = new PacientesBL();
            listaPacientesBindingSource.DataSource = _pacientes.ObtenerPacientes(); //Para llevar la informacion de nuestra lista de Pacientes al formulario pacientes
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
        // GET: Pacientes
        public ActionResult Index()
        {
            var pacientesBL    = new PacientesBL();
            var listaPacientes = pacientesBL.ObtenerPaciente();

            return(View(listaPacientes));
        }
Exemplo n.º 6
0
        public Form1()
        {
            InitializeComponent();
            var pacientesBL      = new PacientesBL();
            var listadePacientes = pacientesBL.ObtenerPaciente();

            listadePacientesBindingSource.DataSource = listadePacientes;
        }
Exemplo n.º 7
0
        // GET: Home
        public ActionResult Index()
        {
            var pacientesBL    = new PacientesBL();
            var listaPacientes = pacientesBL.ObtenerPacienteActivos();


            ViewBag.adminWebsiteUrl =
                ConfigurationManager.AppSettings["adminWebsiteUrl"];

            return(View(listaPacientes));
        }
Exemplo n.º 8
0
        public FormFactura()
        {
            InitializeComponent();

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

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

            _pacientesBL = new PacientesBL();
            listaPacienteBindingSource.DataSource = _pacientesBL.ObtenerPaciente();
        }
Exemplo n.º 9
0
        public FormCitas()
        {
            InitializeComponent();

            _pacientesBL = new PacientesBL();
            listaPacientesBindingSource.DataSource = _pacientesBL.ObtenerPacientes();

            _medicosBL = new MedicosBL();
            listaMedicosBindingSource.DataSource = _medicosBL.ObtenerMedicos();

            _citasBL = new CitasBL();
            listaCitasBindingSource.DataSource = _citasBL.ObtenerCitas();
        }
Exemplo n.º 10
0
        public FormPacientes()
        {
            InitializeComponent();

            _pacientes = new PacientesBL();
            listaPacienteBindingSource.DataSource = _pacientes.ObtenerPaciente();

            _categorias = new CategoriasBL();
            listaCategoriasBindingSource.DataSource = _categorias.ObtenerCategorias();

            _tiposBL = new TiposBL();
            listaTiposBindingSource.DataSource = _tiposBL.ObtenerTipos();
        }
Exemplo n.º 11
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();
        }
        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();
        }
Exemplo n.º 13
0
 public PacientesController()
 {
     _pacientesBL  = new PacientesBL();
     _categoriasBL = new CategoriasBL();
     _citasBL      = new CitasBL();
 }
Exemplo n.º 14
0
 public CitasController()
 {
     _citasBL     = new CitasBL();
     _pacientesBL = new PacientesBL();
 }