Exemplo n.º 1
0
        private void LoadFromModel(ExamCandidateSpecialArrangement model)
        {
            CandidateId          = model.CandidateId;
            SpecialArrangementId = model.SpecialArrangementId;

            if (model.Candidate != null)
            {
                Candidate = new ExamCandidateModel(model.Candidate);
            }

            if (model.SpecialArrangement != null)
            {
                SpecialArrangement = new ExamSpecialArrangementModel(model.SpecialArrangement);
            }
        }
        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);
            }
        }
Exemplo n.º 3
0
        private void LoadFromModel(ExamEnrolment model)
        {
            AwardId            = model.AwardId;
            CandidateId        = model.CandidateId;
            StartDate          = model.StartDate;
            EndDate            = model.EndDate;
            RegistrationNumber = model.RegistrationNumber;

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

            if (model.Candidate != null)
            {
                Candidate = new ExamCandidateModel(model.Candidate);
            }
        }
Exemplo n.º 4
0
        private void LoadFromModel(ExamSeatAllocation model)
        {
            SittingId   = model.SittingId;
            SeatRow     = model.SeatRow;
            SeatColumn  = model.SeatColumn;
            CandidateId = model.CandidateId;
            Active      = model.Active;
            Attended    = model.Attended;

            if (model.Sitting != null)
            {
                Sitting = new ExamComponentSittingModel(model.Sitting);
            }

            if (model.Candidate != null)
            {
                Candidate = new ExamCandidateModel(model.Candidate);
            }
        }