using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.ScoreManage { public class LevelSettingView { public Guid? LevelSettingID { get; set; } [DisplayName("学年学期")] public Guid? SchoolyearID { get; set; } [Required] [DisplayName("考试科目")] public Guid? ExaminationSubjectID { get; set; } [Required] [DisplayName("考试科目")] public string ExaminationSubjectName { get; set; } [Required] [DisplayName("成绩等级名称")] public string LevelName { get; set; } [Required] [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")] [DisplayName("成绩等级序号")] public int LevelNo { get; set; } [Required] [DisplayName("起始分")] public decimal MinScore { get; set; } [Required] [DisplayName("终止分")] public decimal MaxScore { get; set; } [DisplayName("成绩分数段")] public string ScoreRange { get; set; } [DisplayName("备注")] public string Remark { get; set; } } }