Exemplo n.º 1
0
        private void LoadFromModel(Grade model)
        {
            GradeSetId  = model.GradeSetId;
            Code        = model.Code;
            Description = model.Description;
            Value       = model.Value;

            if (model.GradeSet != null)
            {
                GradeSet = new GradeSetModel(model.GradeSet);
            }
        }
        private void LoadFromModel(ExamQualificationLevel model)
        {
            QualificationId   = model.QualificationId;
            DefaultGradeSetId = model.DefaultGradeSetId;
            JcLevelCode       = model.JcLevelCode;

            if (model.DefaultGradeSet != null)
            {
                DefaultGradeSet = new GradeSetModel(model.DefaultGradeSet);
            }

            if (model.Qualification != null)
            {
                Qualification = new ExamQualificationModel(model.Qualification);
            }
        }
Exemplo n.º 3
0
        private void LoadFromModel(Aspect model)
        {
            TypeId        = model.TypeId;
            GradeSetId    = model.GradeSetId;
            MinMark       = model.MinMark;
            MaxMark       = model.MaxMark;
            Name          = model.Name;
            ColumnHeading = model.ColumnHeading;
            StaffOnly     = model.StaffOnly;

            if (model.Type != null)
            {
                Type = new AspectTypeModel(model.Type);
            }

            if (model.GradeSet != null)
            {
                GradeSet = new GradeSetModel(model.GradeSet);
            }
        }