Exemplo n.º 1
0
 public void LoadQualifications()
 {
     Qualifications.Clear();
     foreach (var v in QualificationsService.GetAllAndMapToQualificationWithCheckBoxDto())
     {
         Qualifications.Add(v);
     }
 }
Exemplo n.º 2
0
        public void LoadQualifications()
        {
            SelectedQualification = new QualificationWithCheckboxViewDto();
            var prerequisites           = QualificationsService.GetAllAndMapToQualificationWithCheckBoxDto();
            var developedQualifications = QualificationsService.GetAllAndMapToQualificationWithCheckBoxDto();

            PrerequisiteQualifications.Clear();
            DevelopedQualifications.Clear();

            foreach (var v in prerequisites)
            {
                PrerequisiteQualifications.Add(v);
            }

            foreach (var v in developedQualifications)
            {
                DevelopedQualifications.Add(v);
            }
        }
Exemplo n.º 3
0
        public void InitializeQualifications()
        {
            var candidateQualifications =
                CandidateQualificationService.GetAll().Where(c => c.CandidateId == OldCandidate.Id);


            Qualifications.Clear();
            foreach (var v in QualificationsService.GetAllAndMapToQualificationWithCheckBoxDto())
            {
                if (candidateQualifications.Any(d =>
                                                d.CandidateId == OldCandidate.Id && d.QualificationId == v.Qualification.Id))
                {
                    v.IsSelected = true;
                }
                else
                {
                    v.IsSelected = false;
                }
                Qualifications.Add(v);
            }
        }