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 CreditFormulaView { /// /// 学分公式设置ID /// [DisplayName("学分公式设置ID")] public Guid? CreditFormulaID { get; set; } /// /// 学分公式名称 /// [Required] [DisplayName("学分公式名称")] public string Name { get; set; } /// /// 学分 /// [Required] [DisplayName("学分")] [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")] public decimal? Scores { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } } }