GradePointFormulaView.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.ScoreManage
  8. {
  9. public class GradePointFormulaView
  10. {
  11. /// <summary>
  12. /// 绩点公式设置ID
  13. /// </summary>
  14. public Guid? GradePointFormulaID { get; set; }
  15. /// <summary>
  16. /// 绩点公式名称
  17. /// </summary>
  18. [Required]
  19. [DisplayName("绩点公式名称")]
  20. public string Name { get; set; }
  21. /// <summary>
  22. /// 分数上限绩点
  23. /// </summary>
  24. [Required]
  25. [DisplayName("绩点基准分数")]
  26. [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")]
  27. public decimal? GradePointlimit { get; set; }
  28. /// <summary>
  29. /// 分数下限绩点
  30. /// </summary>
  31. [Required]
  32. [DisplayName("后续绩点增率(绩点/分)")]
  33. [RegularExpression(@"^(0|-?[1-9][0-9]*)(\.\d)?$", ErrorMessage = "请输入数字或保留一位小数数字")]
  34. public decimal? GradePointFloor { get; set; }
  35. /// <summary>
  36. /// 创建时间
  37. /// </summary>
  38. [DisplayName("创建时间")]
  39. public DateTime? CreateTime { get; set; }
  40. /// <summary>
  41. /// 创建人
  42. /// </summary>
  43. [DisplayName("创建人")]
  44. public Guid? CreateUserID { get; set; }
  45. }
  46. public class GradePointView
  47. {
  48. public Guid? GradePointFormulaID { get; set; }
  49. public string Name { get; set; }
  50. public decimal? GradePointlimit { get; set; }
  51. public decimal? GradePointFloor { get; set; }
  52. }
  53. }