Example #1
0
        private void LoadFromModel(ExamBaseComponent model)
        {
            AssessmentModeId = model.AssessmentModeId;
            ExamAssessmentId = model.ExamAssessmentId;
            ComponentCode    = model.ComponentCode;

            if (model.AssessmentMode != null)
            {
                AssessmentMode = new ExamAssessmentModeModel(model.AssessmentMode);
            }

            if (model.Assessment != null)
            {
                Assessment = new ExamAssessmentModel(model.Assessment);
            }
        }
        private void LoadFromModel(ExamAssessmentAspect model)
        {
            AssessmentId = model.AssessmentId;
            AspectId     = model.AspectId;
            SeriesId     = model.SeriesId;
            AspectOrder  = model.AspectOrder;

            if (model.Aspect != null)
            {
                Aspect = new AspectModel(model.Aspect);
            }

            if (model.Assessment != null)
            {
                Assessment = new ExamAssessmentModel(model.Assessment);
            }

            if (model.Series != null)
            {
                Series = new ExamSeriesModel(model.Series);
            }
        }
        private void LoadFromModel(ExamBaseElement model)
        {
            AssessmentId   = model.AssessmentId;
            LevelId        = model.LevelId;
            QcaCodeId      = model.QcaCodeId;
            QualAccrNumber = model.QualAccrNumber;
            ElementCode    = model.ElementCode;

            if (model.Assessment != null)
            {
                Assessment = new ExamAssessmentModel(model.Assessment);
            }

            if (model.QcaCode != null)
            {
                QcaCode = new SubjectCodeModel(model.QcaCode);
            }

            if (model.Level != null)
            {
                Level = new ExamQualificationLevelModel(model.Level);
            }
        }
Example #4
0
        private void LoadFromModel(ExamAward model)
        {
            QualificationId = model.QualificationId;
            AssessmentId    = model.AssessmentId;
            CourseId        = model.CourseId;
            Description     = model.Description;
            AwardCode       = model.AwardCode;
            ExpiryDate      = model.ExpiryDate;

            if (model.Assessment != null)
            {
                Assessment = new ExamAssessmentModel(model.Assessment);
            }

            if (model.Qualification != null)
            {
                Qualification = new ExamQualificationModel(model.Qualification);
            }

            if (model.Course != null)
            {
                Course = new CourseModel(model.Course);
            }
        }