ClassTimeSettingsView.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. namespace EMIS.ViewModel.SchedulingManage.SchedulingSettings
  8. {
  9. public class ClassTimeSettingsView
  10. {
  11. [DisplayName("教师连续上课节次限制")]
  12. [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")]
  13. public int? TeacherScheduleContinuousCount { get; set; }
  14. [DisplayName("班级连续上课节次限制")]
  15. [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")]
  16. public int? ClassScheduleContinuousCount { get; set; }
  17. [DisplayName("班级课程连续排课节次限制")]
  18. [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")]
  19. public int? ClassCourseScheduleContinuousCount { get; set; }
  20. [DisplayName("班级课程周总学时限制")]
  21. [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入数字")]
  22. public int? ClassScheduleWeekTimeCount { get; set; }
  23. }
  24. }