void CargaDatosEmpl(int CodEmpl) { DataSet ds = ClUsuario.Get_DatosEmplINAB(CodEmpl); if (ds.Tables["Datos"].Rows.Count > 0) { TxtNombre.Text = ds.Tables["Datos"].Rows[0]["Nombres"].ToString(); TxtApellidos.Text = ds.Tables["Datos"].Rows[0]["Apellidos"].ToString(); TxtPuesto.Text = ds.Tables["Datos"].Rows[0]["Puesto"].ToString(); TxtCodEmpl.Text = ds.Tables["Datos"].Rows[0]["CodEmpl"].ToString(); txtDpitrue.Text = ds.Tables["Datos"].Rows[0]["Dpi"].ToString(); if (ds.Tables["Datos"].Rows[0]["Genero"].ToString() == "Masculino") { TxtGeneroID.Text = "1"; } else { TxtGeneroID.Text = "2"; } int CodigoPuesto = Convert.ToInt32(ds.Tables["Datos"].Rows[0]["CodigoPuesto"]); TxtCodPuesto.Text = CodigoPuesto.ToString(); int CodSubregion = Convert.ToInt32(ds.Tables["Datos"].Rows[0]["CodSubregion"]); DataSet SubRegion = ClUsuario.Get_Datos_Traduce_region(CodSubregion); if (SubRegion.Tables["Datos"].Rows.Count > 0) { CboRegion.SelectedValue = SubRegion.Tables["Datos"].Rows[0]["RegionId"].ToString(); CboRegion.Text = SubRegion.Tables["Datos"].Rows[0]["Region"].ToString(); ClUtilitarios.LlenaCombo(ClCatagos.ListadoSubRegion(Convert.ToInt32(CboRegion.SelectedValue)), CboSubregion, "SubRegionId", "Nombre"); ClUtilitarios.AgregarSeleccioneCombo(CboSubregion, "SubRegión"); CboSubregion.SelectedValue = SubRegion.Tables["Datos"].Rows[0]["SubRegionId"].ToString(); CboSubregion.Text = SubRegion.Tables["Datos"].Rows[0]["SubRegion"].ToString(); AgregarSubRegion(Convert.ToInt32(CboRegion.SelectedValue), CboRegion.Text, Convert.ToInt32(CboSubregion.SelectedValue), CboSubregion.Text); GrdRel_Region.Rebind(); } DataSet Perfil = ClUsuario.Get_Datos_Traduce_Puesto_Perfil(CodigoPuesto); if (Perfil.Tables["Datos"].Rows.Count > 0) { CboPerfil.SelectedValue = Perfil.Tables["Datos"].Rows[0]["Tipo_UsuarioId"].ToString(); CboPerfil.Text = Perfil.Tables["Datos"].Rows[0]["Tipo_Usuario"].ToString(); } else { CboPerfil.SelectedValue = "0"; } SubRegion.Clear(); Perfil.Clear(); AplicoSubRegionPerfil(); } }