Exemple #1
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);
     }
 }
Exemple #2
0
 public void Mapear(DataGridView dtg)
 {
     PersonaService = new PersonaServiceBD(ConfigConnection.connectionString);
     dtg.Rows.Clear();
     foreach (var item in PersonaService.Consultar())
     {
         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;
     }
 }
Exemple #3
0
 public void LlenarTabla()
 {
     dtgvPaciente.DataSource = PersonaService.Consultar();
 }
Exemple #4
0
 private void FormConsultar_Load(object sender, EventArgs e)
 {
     dtgvPacientes.DataSource = personaService.Consultar();
 }
Exemple #5
0
 private void pictureBox6_Click(object sender, EventArgs e)
 {
     List <Persona> respuesta = PersonaService.Consultar();
     // generar.GuardarPdf(respuesta, @"ListaPacientes.pdf");
 }