Esempio n. 1
0
        private void cargarPacientes()
        {
            int      a = 53;
            DateTime fecha;

            fecha = DateTime.Now;
            GestorDeAtenciones negocio  = new GestorDeAtenciones();
            List <Turno>       lstTurno = new List <Turno>();

            lstTurno = negocio.obtenerPacientePorTurno(fecha, a);

            if (lstTurno != null)
            {
                foreach (Turno turno in lstTurno)
                {
                    cmbTurnos.Items.Add(turno);
                }
                cmbTurnos.SelectedIndex = 0;
            }
        }
Esempio n. 2
0
        private void cargarComentarios()
        {
            int      a = 53;
            DateTime fecha;

            fecha = DateTime.Now;
            GestorDeAtenciones negocio  = new GestorDeAtenciones();
            List <Turno>       lstTurno = new List <Turno>();

            lstTurno = negocio.obtenerPacientePorTurno(fecha, a);

            if (lstTurno != null)
            {
                for (int i = 0; i < lstTurno.Count; i++)
                {
                    if (lstTurno[i].IdTurno == ((Turno)cmbTurnos.SelectedItem).IdTurno)
                    {
                        txtObservacionesDatosAtencion.Text = lstTurno[i].Comentario;
                    }
                }
            }
        }