LevelSettingView.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.ScoreManage
  8. {
  9. public class LevelSettingView
  10. {
  11. public Guid? LevelSettingID { get; set; }
  12. [DisplayName("学年学期")]
  13. public Guid? SchoolyearID { get; set; }
  14. [Required]
  15. [DisplayName("考试科目")]
  16. public Guid? ExaminationSubjectID { get; set; }
  17. [Required]
  18. [DisplayName("考试科目")]
  19. public string ExaminationSubjectName { get; set; }
  20. [Required]
  21. [DisplayName("成绩等级名称")]
  22. public string LevelName { get; set; }
  23. [Required]
  24. [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
  25. [DisplayName("成绩等级序号")]
  26. public int LevelNo { get; set; }
  27. [Required]
  28. [DisplayName("起始分")]
  29. public decimal MinScore { get; set; }
  30. [Required]
  31. [DisplayName("终止分")]
  32. public decimal MaxScore { get; set; }
  33. [DisplayName("成绩分数段")]
  34. public string ScoreRange { get; set; }
  35. [DisplayName("备注")]
  36. public string Remark { get; set; }
  37. }
  38. }