コード例 #1
0
 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);
        }
コード例 #3
0
        public void Add()
        {
            var qualification = new DataLayer.EfClasses.Qualification
            {
                QualificationCode = Code,
                Description       = Description
            };

            _qualificationService.AddQualification(qualification);

            AssociatedQualification = new QualificationViewModel(qualification);
        }
コード例 #4
0
        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;
 }