public string[] GetUnidadesNegocioDescripcion() { string[] unidadesNegocioDescripcion = new string[GetUnidadesNegocio().Length]; for (i = 0; i < GetUnidadesNegocio().Length; i++) { oNegocio = GetUnidadesNegocio()[i]; unidadesNegocioDescripcion[i] = oNegocio.Descripcion; } return unidadesNegocioDescripcion; }
public int[] GetUnidadesNegocioId() { int[] unidadesNegocioId = new int[GetUnidadesNegocio().Length]; for (i = 0; i < GetUnidadesNegocio().Length; i++) { oNegocio = GetUnidadesNegocio()[i]; unidadesNegocioId[i] = oNegocio.IdUnidadNegocio; } return unidadesNegocioId; }
public void seleccionaDatosUnidadNegocio() { System.Object[] ItemObject = new System.Object[oNegocioService.GetUnidadesNegocio().Length]; Negocio[] unidadesDeNegocio = new Negocio[oNegocioService.GetUnidadesNegocio().Length]; for (int i = 0; i < oNegocioService.GetUnidadesNegocio().Length; i++) { unidadesDeNegocio[i] = oNegocioService.GetUnidadesNegocio()[i]; string selectedItem = cmbUnidadesNegocioNombre.SelectedItem.ToString(); if (unidadesDeNegocio[i].Descripcion == selectedItem) { lblColor.Text = unidadesDeNegocio[i].Color; lblDescripcion.Text = unidadesDeNegocio[i].Descripcion; lblEstatus.Text = unidadesDeNegocio[i].Estatus.ToString(); lblIdUnidadNegocio.Text = unidadesDeNegocio[i].IdUnidadNegocio.ToString(); lblPrestamos.Text = unidadesDeNegocio[i].Prestamos.ToString(); lblUrlImagen.Text = unidadesDeNegocio[i].UrlImagen; lblZona.Text = unidadesDeNegocio[i].Zona; } } }