public void DisplayQualificationDataGrid(QualificationViewModel selectedQualification)
 {
     DisplayOpenings(selectedQualification.QualificationId);
     DisplayCertification(selectedQualification.QualificationId);
     DisplayPrerequisites(selectedQualification.QualificationId);
     //DisplayUnqualifiedCandidates(selectedQualification.QualificationId);
     //DisplayUnrelatedCourse(selectedQualification.QualificationId);
 }
예제 #2
0
        public EditQualificationViewModel(QualificationViewModel qualificationToEdit, QualificationService qualificationService)
        {
            _qualificationService = qualificationService;
            QualificationToEdit   = qualificationToEdit;

            QualificationId = qualificationToEdit.QualificationId;
            CopyEditableFields(qualificationToEdit);
        }
        public void Add()
        {
            var qualification = new DataLayer.EfClasses.Qualification
            {
                QualificationCode = Code,
                Description       = Description
            };

            _qualificationService.AddQualification(qualification);

            AssociatedQualification = new QualificationViewModel(qualification);
        }
        public void SearchQualification(string searchString)
        {
            ClearDisplayData();

            var qualifications = _qualificationService.SearchQualification(searchString);

            foreach (var qualification in qualifications)
            {
                var qualificationViewModel = new QualificationViewModel(qualification);

                QualificationList.Add(qualificationViewModel);
            }
        }
예제 #5
0
 private void CopyEditableFields(QualificationViewModel qualificationToEdit)
 {
     Code        = qualificationToEdit.QualificationCode;
     Description = qualificationToEdit.QualificationDescription;
 }