EvaluationTypeView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using Bowin.Common.Mvc;
  8. namespace EMIS.ViewModel.EvaluationManage.EvaluationSetting
  9. {
  10. public class EvaluationTypeView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EvaluationTypeID { get; set; }
  17. /// <summary>
  18. /// 参评类型
  19. /// </summary>
  20. [Required]
  21. [DisplayName("参评类型")]
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// 学生用
  25. /// </summary>
  26. [DisplayName("学生用")]
  27. public bool IsStudent { get; set; }
  28. /// <summary>
  29. /// 学生用
  30. /// </summary>
  31. [DisplayName("学生用")]
  32. public string IsStudentName
  33. {
  34. get { return this.IsStudent == true ? "是" : "否"; }
  35. }
  36. /// <summary>
  37. /// 可评次数
  38. /// </summary>
  39. [Required]
  40. [DisplayName("可评次数")]
  41. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  42. public int? Number { get; set; }
  43. /// <summary>
  44. /// 开始时间
  45. /// </summary>
  46. [Required]
  47. [DisplayName("开始时间")]
  48. [DataType(DataType.DateTime)]
  49. public DateTime? StartTime { get; set; }
  50. /// <summary>
  51. /// 结束时间
  52. /// </summary>
  53. [Required]
  54. [DisplayName("结束时间")]
  55. [DataType(DataType.DateTime)]
  56. [DateTimeNotLessThan("StartTime", "开始时间")]
  57. public DateTime? EndTime { get; set; }
  58. /// <summary>
  59. /// 备注
  60. /// </summary>
  61. [DisplayName("备注")]
  62. public string Remark { get; set; }
  63. /// <summary>
  64. /// 状态
  65. /// </summary>
  66. [DisplayName("状态")]
  67. public int? RecordStatus { get; set; }
  68. /// <summary>
  69. /// 创建人
  70. /// </summary>
  71. [DisplayName("创建人")]
  72. public Guid? CreateUserID { get; set; }
  73. /// <summary>
  74. /// 创建人
  75. /// </summary>
  76. [DisplayName("创建人")]
  77. public string CreateUserName { get; set; }
  78. /// <summary>
  79. /// 创建时间
  80. /// </summary>
  81. [DisplayName("创建时间")]
  82. public DateTime? CreateTime { get; set; }
  83. /// <summary>
  84. /// 修改人
  85. /// </summary>
  86. [DisplayName("修改人")]
  87. public Guid? ModifyUserID { get; set; }
  88. /// <summary>
  89. /// 修改人
  90. /// </summary>
  91. [DisplayName("修改人")]
  92. public string ModifyUserName { get; set; }
  93. /// <summary>
  94. /// 修改时间
  95. /// </summary>
  96. [DisplayName("修改时间")]
  97. public DateTime? ModifyTime { get; set; }
  98. }
  99. }