コード例 #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);
            }
        }
コード例 #2
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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }