Ejemplo n.º 1
0
        private void LoadFromModel(ExamComponent model)
        {
            BaseComponentId  = model.BaseComponentId;
            ExamSeriesId     = model.ExamSeriesId;
            AssessmentModeId = model.AssessmentModeId;
            ExamDateId       = model.ExamDateId;
            DateDue          = model.DateDue;
            DateSubmitted    = model.DateSubmitted;
            MaximumMark      = model.MaximumMark;

            if (model.BaseComponent != null)
            {
                BaseComponent = new ExamBaseComponentModel(model.BaseComponent);
            }

            if (model.Series != null)
            {
                Series = new ExamSeriesModel(model.Series);
            }

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

            if (model.ExamDate != null)
            {
                ExamDate = new ExamDateModel(model.ExamDate);
            }
        }
Ejemplo n.º 2
0
        private void LoadFromModel(ExamAwardSeries model)
        {
            AwardId  = model.AwardId;
            SeriesId = model.SeriesId;

            if (model.Award != null)
            {
                Award = new ExamAwardModel(model.Award);
            }

            if (model.Series != null)
            {
                Series = new ExamSeriesModel(model.Series);
            }
        }
Ejemplo n.º 3
0
        private void LoadFromModel(ExamCandidateSeries model)
        {
            SeriesId    = model.SeriesId;
            CandidateId = model.CandidateId;
            Flag        = model.Flag;

            if (model.Series != null)
            {
                Series = new ExamSeriesModel(model.Series);
            }

            if (model.Candidate != null)
            {
                Candidate = new ExamCandidateModel(model.Candidate);
            }
        }
Ejemplo n.º 4
0
        private void LoadFromModel(ExamElement model)
        {
            BaseElementId = model.BaseElementId;
            SeriesId      = model.SeriesId;
            Description   = model.Description;
            ExamFee       = model.ExamFee;
            Submitted     = model.Submitted;

            if (model.BaseElement != null)
            {
                BaseElement = new ExamBaseElementModel(model.BaseElement);
            }

            if (model.Series != null)
            {
                Series = new ExamSeriesModel(model.Series);
            }
        }
        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);
            }
        }