public BusquedaInternoProgramasViewModel(BuscarInternosProgramas Window, List <GRUPO_ASISTENCIA> ListaExpedientes, List <EQUIPO_AREA> Areas) { VentanaBusqueda = Window; NIPBuscar = ""; var placeholder_limpiar = new Imagenes().getImagenPerson(); SelectedImputadoFotoIngreso = placeholder_limpiar; SelectedImputadoFotoSeguimiento = placeholder_limpiar; FotoCustodio = placeholder_limpiar; CheckMark = "🔍"; ColorAprobacionNIP = new SolidColorBrush(Colors.DarkBlue); FondoLimpiarNIP = new SolidColorBrush(Colors.Crimson); FondoBackSpaceNIP = new SolidColorBrush(Colors.Green); EscoltarEnabled = true; SelectedJustificacion = enumTipoSalida.TRASLADO; var ListaAux = new List <InternosActividad>(); foreach (var imputado in ListaExpedientes) { ListaAux.Add(new InternosActividad() { Actividad = imputado.GRUPO_PARTICIPANTE.ACTIVIDAD.DESCR, Anio = (short)imputado.GRUPO_PARTICIPANTE.ING_ID_ANIO, Area = (short)imputado.GRUPO_HORARIO.ID_AREA, Asistencia = imputado.ASISTENCIA == 1 ? true : false, Centro = (short)imputado.GRUPO_PARTICIPANTE.ING_ID_CENTRO, Expediente = string.Format("{0}/{1}", imputado.GRUPO_PARTICIPANTE.ING_ID_ANIO, imputado.GRUPO_PARTICIPANTE.ING_ID_IMPUTADO), IdIngreso = (short)imputado.GRUPO_PARTICIPANTE.ING_ID_INGRESO, IdImputado = (short)imputado.GRUPO_PARTICIPANTE.ING_ID_IMPUTADO, Id_Grupo = (short)imputado.GRUPO_PARTICIPANTE.ID_GRUPO, IdConsec = (short)imputado.ID_CONSEC, Materno = imputado.GRUPO_PARTICIPANTE.INGRESO.IMPUTADO.MATERNO, Paterno = imputado.GRUPO_PARTICIPANTE.INGRESO.IMPUTADO.PATERNO, Nombre = imputado.GRUPO_PARTICIPANTE.INGRESO.IMPUTADO.NOMBRE, NIP = imputado.GRUPO_PARTICIPANTE.INGRESO.IMPUTADO.NIP, Ubicacion = imputado.GRUPO_HORARIO.AREA.DESCR, Seleccionar = false, Responsable = string.Format("{1} {2} {0}", imputado.GRUPO_PARTICIPANTE.GRUPO.PERSONA.NOMBRE.TrimEnd(), imputado.GRUPO_PARTICIPANTE.GRUPO.PERSONA.PATERNO.TrimEnd(), imputado.GRUPO_PARTICIPANTE.GRUPO.PERSONA.MATERNO.TrimEnd()) }); } ListExpediente = ListaAux; ListaSeleccionados = new List <InternosActividad>(); if (ListExpediente.Count > 0) { EmptyBusquedaVisible = false; } else { EmptyBusquedaVisible = true; } this.Areas = Areas; }
//ON LOAD public void OnLoad(BuscarInternosProgramas Window) { }