Esempio n. 1
0
 public FormDiagnostico()
 {
     InitializeComponent();
     persona            = new Persona();
     PersonaService     = new PersonaServiceBD(ConfigConnection.connectionString);
     diagnosticoService = new DiagnosticoService(ConfigConnection.connectionString);
     generar            = new Generar();
 }
Esempio n. 2
0
 private void MapearPacientes()
 {
     PersonaServiceBD = new PersonaServiceBD(ConfigConnection.connectionString);
     DtgPersonas.Rows.Clear();
     foreach (var item in PersonaServiceBD.Consultar())
     {
         DtgPersonas.Rows.Add(item.Identificacion, item.Nombres, item.Apellidos, item.Edad, item.Sexo, item.Direccion, item.Celular, item.Correo);
     }
 }
Esempio n. 3
0
 public FormRecetario()
 {
     InitializeComponent();
     generar            = new Generar();
     diagnosticoService = new DiagnosticoService(ConfigConnection.connectionString);
     medicamentoService = new MedicamentoService(ConfigConnection.connectionString);
     posologiaService   = new PosologiaService(ConfigConnection.connectionString);
     persona            = new Persona();
     PersonaService     = new PersonaServiceBD(ConfigConnection.connectionString);
     recetarioService   = new RecetarioService(ConfigConnection.connectionString);
 }
Esempio n. 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            HistoriaMedicaService = new HistoriaMedicaService(ConfigConnection.connectionString);
            PersonaServiceBD  personaservice = new PersonaServiceBD(ConfigConnection.connectionString);
            Persona           persona        = personaservice.Buscar(TxtCedula.Text);
            IList <Recetario> recetarios     = HistoriaMedicaService.ConsultarHistoriaClienteRecetario(TxtCedula.Text);

            IList <Diagnostico> Diagnosticos = HistoriaMedicaService.ConsultarHistoriaClienteDiagnosticos(TxtCedula.Text, recetarios);

            AbrirFrmInpanel(new HistorialPersona(persona));
            foreach (var item in Diagnosticos)
            {
                CmbDiagnosticos.Items.Add(item.Codigo);
            }
        }
Esempio n. 5
0
        public void MapearBuscar(DataGridView dtg, string id)
        {
            PersonaService = new PersonaServiceBD(ConfigConnection.connectionString);
            dtg.Rows.Clear();
            Persona persona = PersonaService.Buscar(id);
            int     N       = dtg.Rows.Add();

            dtg.Rows[N].Cells[0].Value = persona.Identificacion;
            dtg.Rows[N].Cells[1].Value = persona.Nombres;
            dtg.Rows[N].Cells[2].Value = persona.Apellidos;
            dtg.Rows[N].Cells[3].Value = persona.Edad;
            dtg.Rows[N].Cells[4].Value = persona.Sexo;
            dtg.Rows[N].Cells[5].Value = persona.Direccion;
            dtg.Rows[N].Cells[6].Value = persona.Celular;
            dtg.Rows[N].Cells[7].Value = persona.Correo;
        }
Esempio n. 6
0
 public void MapearDtgFiltro(DataGridView dtg, string id)
 {
     PersonaService = new PersonaServiceBD(ConfigConnection.connectionString);
     dtg.Rows.Clear();
     foreach (var item in PersonaService.BusquedaFiltroCedula(id))
     {
         int N = dtg.Rows.Add();
         dtg.Rows[N].Cells[0].Value = item.Identificacion;
         dtg.Rows[N].Cells[1].Value = item.Nombres;
         dtg.Rows[N].Cells[2].Value = item.Apellidos;
         dtg.Rows[N].Cells[3].Value = item.Edad;
         dtg.Rows[N].Cells[4].Value = item.Sexo;
         dtg.Rows[N].Cells[5].Value = item.Direccion;
         dtg.Rows[N].Cells[6].Value = item.Celular;
         dtg.Rows[N].Cells[7].Value = item.Correo;
     }
 }
Esempio n. 7
0
 public FormEnvioCorreo()
 {
     InitializeComponent();
     personaService = new PersonaServiceBD(ConfigConnection.connectionString);
 }
Esempio n. 8
0
 public FormModificarPaciente()
 {
     InitializeComponent();
     PersonaService = new PersonaServiceBD(ConfigConnection.connectionString);
 }
Esempio n. 9
0
 public FormConsultar()
 {
     InitializeComponent();
     persona        = new Persona();
     personaService = new PersonaServiceBD(ConfigConnection.connectionString);
 }
Esempio n. 10
0
 public FormRegistro()
 {
     InitializeComponent();
     pacienteService = new PersonaServiceBD(ConfigConnection.connectionString);
 }