CreditFormulaView.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 CreditFormulaView
  10. {
  11. /// <summary>
  12. /// 学分公式设置ID
  13. /// </summary>
  14. [DisplayName("学分公式设置ID")]
  15. public Guid? CreditFormulaID { get; set; }
  16. /// <summary>
  17. /// 学分公式名称
  18. /// </summary>
  19. [Required]
  20. [DisplayName("学分公式名称")]
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 学分
  24. /// </summary>
  25. [Required]
  26. [DisplayName("学分")]
  27. [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")]
  28. public decimal? Scores { get; set; }
  29. /// <summary>
  30. /// 创建时间
  31. /// </summary>
  32. [DisplayName("创建时间")]
  33. public DateTime? CreateTime { get; set; }
  34. /// <summary>
  35. /// 创建人
  36. /// </summary>
  37. [DisplayName("创建人")]
  38. public Guid? CreateUserID { get; set; }
  39. }
  40. }