private void cargarImagen() { int tipoPersonal = Convert.ToInt32(txtTipoPersonal.Text); string t1 = "FotografiasProfesionales"; string t2 = "FotografiasNoMedicos"; string t3 = "FotografiasTecnicos"; if (tipoPersonal == 1)//profesionales { accesoImagen.verImagen(PBMostrarImagen, Convert.ToInt32(lblLegajo.Text), t1); } if (tipoPersonal == 2) //personal no medico { accesoImagen.verImagen(PBMostrarImagen, Convert.ToInt32(lblLegajo.Text), t2); } if (tipoPersonal == 3)//personal tecnico { accesoImagen.verImagen(PBMostrarImagen, Convert.ToInt32(lblLegajo.Text), t3); } }
private void cargarCampos(int posicion) { txtLegajoPNM.Text = PNMVector[posicion].pLegajo.ToString(); txtNombrePNM.Text = PNMVector[posicion].pNombre; txtApellidoPNM.Text = PNMVector[posicion].pApellido; txtEdadPNM.Text = PNMVector[posicion].pEdad.ToString(); txtEmailPNM.Text = PNMVector[posicion].pEmail; txtFechaNacPNM.Text = PNMVector[posicion].pFechaNacimiento; txtRegistroPNM.Text = PNMVector[posicion].pAltaEnSistema; txtNroDocPNM.Text = PNMVector[posicion].pNroDoc.ToString(); cboGeneroPNM.SelectedValue = PNMVector[posicion].pIdGenero; cboTipoDocPNM.SelectedValue = PNMVector[posicion].pTipoDoc; cboTurnoPNM.SelectedValue = PNMVector[posicion].pIdTurnoDeTrabajo; miGestorImagen.verImagen(pictureBoxPNM, Convert.ToInt32(txtLegajoPNM.Text), nombreTabla); }
private void cargarCamposPE(int posicion) { txtLegajoRT.Text = vRespExt[posicion].pLegajo.ToString(); txtApellidoRT.Text = vRespExt[posicion].pApellido; txtNombreRT.Text = vRespExt[posicion].pNombre; txtNroDocRT.Text = vRespExt[posicion].pNroDoc.ToString(); txtEdadRT.Text = vRespExt[posicion].pEdad.ToString(); txtEmailRT.Text = vRespExt[posicion].pEmail; txtFechaNacRT.Text = vRespExt[posicion].pFechaNac; txtFechaRegistroRT.Text = vRespExt[posicion].pFechaRegistro; txtMatriculaRT.Text = vRespExt[posicion].pMatricula; cboEspTecRT.SelectedValue = vRespExt[posicion].pTitulo; cboGeneroRT.SelectedValue = vRespExt[posicion].pIdGenero; cboTipoDocRT.SelectedValue = vRespExt[posicion].pTipoDoc; cboTurnoRT.SelectedValue = vRespExt[posicion].pIdTurnoTrabajo; miGestorImagen.verImagen(pictureBoxRT, Convert.ToInt32(txtLegajoRT.Text), nombreTabla); }
private void cargarCamposProfesionales(int posicion) { txtLegajoProf.Text = vProfesionales[posicion].pLegajo.ToString(); txtApeProf.Text = vProfesionales[posicion].pApellido; txtNombreProf.Text = vProfesionales[posicion].pNombre; txtNroDocProf.Text = vProfesionales[posicion].pNroDoc.ToString(); txtEdadProf.Text = vProfesionales[posicion].pEdad.ToString(); txtEmailProf.Text = vProfesionales[posicion].pEmail; txtFechaNacProf.Text = vProfesionales[posicion].pFechaNac; txtFechaRegistroProf.Text = vProfesionales[posicion].pFechaRegistro; txtMatriculaProf.Text = vProfesionales[posicion].pMatricula; cboEspecialidadProf.SelectedValue = vProfesionales[posicion].pIdEspecialidad; cboGeneroProf.SelectedValue = vProfesionales[posicion].pIdGenero; cboTipoDocProf.SelectedValue = vProfesionales[posicion].pTipoDoc; cboTurnoProf.SelectedValue = vProfesionales[posicion].pIdTurnoTrabajo; cboTituloProf.SelectedValue = vProfesionales[posicion].pTituloAcademico; miGestorImagen.verImagen(pictureBoxProfesional, Convert.ToInt32(txtLegajoProf.Text), tabla); }