Beispiel #1
0
        /// <summary>
        /// Gets the group types.
        /// </summary>
        /// <param name="selectedOnly">if set to <c>true</c> [selected only].</param>
        /// <returns></returns>
        public List <CheckInGroupType> GetGroupTypes(bool selectedOnly)
        {
            if (selectedOnly)
            {
                var selectedScheduleIds = SelectedSchedules.Select(s => s.Schedule.Id).ToList();
                return(GroupTypes.Where(t => t.Selected || t.SelectedForSchedule.Any(s => selectedScheduleIds.Contains(s))).ToList());
            }

            return(GroupTypes);
        }
Beispiel #2
0
 /// <summary>
 /// Sets the options.
 /// </summary>
 /// <param name="label">The label.</param>
 public void SetOptions(KioskLabel label)
 {
     _selectedOptions = new List <CheckInPersonSummary>();
     foreach (var schedule in SelectedSchedules.Where(s => s.StartTime.HasValue).OrderBy(s => s.StartTime))
     {
         var groupType = SelectedGroupTypes(schedule).FirstOrDefault();
         if (groupType != null)
         {
             var group = groupType.SelectedGroups(schedule).FirstOrDefault();
             if (group != null)
             {
                 var location = group.SelectedLocations(schedule).FirstOrDefault();
                 if (location != null)
                 {
                     _selectedOptions.Add(new CheckInPersonSummary(label, schedule, groupType, group, location));
                 }
             }
         }
     }
 }
 private void Find()
 {
     Vacancies = new ObservableCollection <object>(CollectionConverter <v_vacancy> .ConvertToObjectList(_executor.GetVacancies(
                                                                                                            (SelectedIdProfessionCategory != null ? (int)SelectedIdProfessionCategory : -1),
                                                                                                            (SelectedIdProfession != null ? (int)SelectedIdProfession : -1),
                                                                                                            (SelectedIdCountry != null ? (int)SelectedIdCountry : -1),
                                                                                                            (SelectedIdCity != null ? (int)SelectedIdCity : -1),
                                                                                                            (SelectedIdStreet != null ? (int)SelectedIdStreet : -1), ProfessionName, SelectedExperiences.ToList(),
                                                                                                            SelectedSchedules.ToList(), SelectedEmploymentTypes.ToList(), SelectedSkills.ToList(), new Model.Logic.Range <DateTime>(BeginValueDateOfRegistration, EndValueDateOfRegistration),
                                                                                                            BeginValueClosingDate, EndValueClosingDate, BeginValueSalary, EndValueSalary)));
 }