public FormDiagnostico() { InitializeComponent(); persona = new Persona(); PersonaService = new PersonaServiceBD(ConfigConnection.connectionString); diagnosticoService = new DiagnosticoService(ConfigConnection.connectionString); generar = new Generar(); }
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); } }
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); }
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); } }
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; }
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; } }
public FormEnvioCorreo() { InitializeComponent(); personaService = new PersonaServiceBD(ConfigConnection.connectionString); }
public FormModificarPaciente() { InitializeComponent(); PersonaService = new PersonaServiceBD(ConfigConnection.connectionString); }
public FormConsultar() { InitializeComponent(); persona = new Persona(); personaService = new PersonaServiceBD(ConfigConnection.connectionString); }
public FormRegistro() { InitializeComponent(); pacienteService = new PersonaServiceBD(ConfigConnection.connectionString); }