public void llenarCamposDoctores() { Doctor doctor = new Doctor(); doctor.idDoctor = dgvDoc.CurrentRow.Cells[0].Value.ToString(); DataTable mostrarInfo = _dataAccessLayer.obtenerDoctores("obtenerDoctores", "@idDoctor", doctor.idDoctor); txtNombreDoc.Text = mostrarInfo.Rows[0][0].ToString(); txtApellidoDoc.Text = mostrarInfo.Rows[0][1].ToString(); txtEdadDoc.Text = mostrarInfo.Rows[0][2].ToString(); cmbEspecialidad.Text = mostrarInfo.Rows[0][3].ToString(); txtUniversidadDoc.Text = mostrarInfo.Rows[0][4].ToString(); cmbClinica.Text = mostrarInfo.Rows[0][5].ToString(); }
private void llenarCamposPaciente() { Paciente paciente = new Paciente(); paciente.idPaciente = dgvPacientes.CurrentRow.Cells[0].Value.ToString(); DataTable mostrarInfo = _dataAccessLayer.obtenerDoctores("obtenerPaciente", "@idPaciente", paciente.idPaciente); txtNombrePac.Text = mostrarInfo.Rows[0][0].ToString(); txtApellidoPac.Text = mostrarInfo.Rows[0][1].ToString(); txtCorreo.Text = mostrarInfo.Rows[0][2].ToString(); txtEdadPac.Text = mostrarInfo.Rows[0][3].ToString(); txtPesoPac.Text = mostrarInfo.Rows[0][4].ToString(); txtAlturaPac.Text = mostrarInfo.Rows[0][5].ToString(); comboBox1.Text = mostrarInfo.Rows[0][6].ToString(); txtEnfermedad.Text = mostrarInfo.Rows[0][7].ToString(); }