using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace EMIS.ViewModel.ScoreManage { public class GradePointFormulaView { /// /// 绩点公式设置ID /// public Guid? GradePointFormulaID { get; set; } /// /// 绩点公式名称 /// [Required] [DisplayName("绩点公式名称")] public string Name { get; set; } /// /// 分数上限绩点 /// [Required] [DisplayName("绩点基准分数")] [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")] public decimal? GradePointlimit { get; set; } /// /// 分数下限绩点 /// [Required] [DisplayName("后续绩点增率(绩点/分)")] [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")] public decimal? GradePointFloor { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } } public class GradePointView { public Guid? GradePointFormulaID { get; set; } public string Name { get; set; } public decimal? GradePointlimit { get; set; } public decimal? GradePointFloor { get; set; } } }