using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.SchedulingManage.SchedulingSettings { public class ClassTimeSettingsView { [DisplayName("教师连续上课节次限制")] [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")] public int? TeacherScheduleContinuousCount { get; set; } [DisplayName("班级连续上课节次限制")] [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")] public int? ClassScheduleContinuousCount { get; set; } [DisplayName("班级课程连续排课节次限制")] [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")] public int? ClassCourseScheduleContinuousCount { get; set; } [DisplayName("班级课程周总学时限制")] [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")] public int? ClassScheduleWeekTimeCount { get; set; } } }