Ejemplo n.º 1
0
        private void LoadFromModel(AttendancePeriod model)
        {
            WeekPatternId = model.WeekPatternId;
            Weekday       = model.Weekday;
            Name          = model.Name;
            StartTime     = model.StartTime;
            EndTime       = model.EndTime;
            AmReg         = model.AmReg;
            PmReg         = model.PmReg;

            if (model.WeekPattern != null)
            {
                WeekPattern = new AttendanceWeekPatternModel(model.WeekPattern);
            }
        }
Ejemplo n.º 2
0
        private void LoadFromModel(AttendanceWeek model)
        {
            WeekPatternId  = model.WeekPatternId;
            AcademicTermId = model.AcademicTermId;
            Beginning      = model.Beginning;
            IsNonTimetable = model.IsNonTimetable;

            if (model.WeekPattern != null)
            {
                WeekPattern = new AttendanceWeekPatternModel(model.WeekPattern);
            }

            if (model.AcademicTerm != null)
            {
                AcademicTerm = new AcademicTermModel(model.AcademicTerm);
            }
        }