OpenObjectView.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.StudentManage.OnlineChecking
  10. {
  11. public class OpenObjectView
  12. {
  13. /// <summary>
  14. /// 主键ID
  15. /// </summary>
  16. [DisplayName("主键ID")]
  17. public Guid StudentEditObjectsID { get; set; }
  18. /// <summary>
  19. /// 培养层次
  20. /// </summary>
  21. [Required]
  22. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  23. public int? EducationID { get; set; }
  24. /// <summary>
  25. /// 培养层次
  26. /// </summary>
  27. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  28. public string EducationName
  29. {
  30. get
  31. {
  32. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  33. }
  34. }
  35. /// <summary>
  36. /// 开放学年
  37. /// </summary>
  38. [Required]
  39. [DisplayName("开放学年")]
  40. public int? SchoolyearNumID { get; set; }
  41. /// <summary>
  42. /// 开放学年
  43. /// </summary>
  44. [DisplayName("开放学年")]
  45. public string SchoolyearNumName
  46. {
  47. get
  48. {
  49. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()).Where(x => x.Value == SchoolyearNumID).Select(x => x.Name).FirstOrDefault();
  50. }
  51. }
  52. /// <summary>
  53. /// 开始时间
  54. /// </summary>
  55. [Required]
  56. [DisplayName("开始时间")]
  57. [DataType(DataType.DateTime)]
  58. public DateTime? Starttime { get; set; }
  59. /// <summary>
  60. /// 结束时间
  61. /// </summary>
  62. [Required]
  63. [DisplayName("结束时间")]
  64. [DataType(DataType.DateTime)]
  65. [DateTimeNotLessThan("Starttime", "开始时间")]
  66. public DateTime? Endtime { get; set; }
  67. /// <summary>
  68. /// 备注
  69. /// </summary>
  70. [DisplayName("备注")]
  71. public string Remark { get; set; }
  72. /// <summary>
  73. /// 状态
  74. /// </summary>
  75. [DisplayName("状态")]
  76. public int? RecordStatus { get; set; }
  77. /// <summary>
  78. /// 创建人
  79. /// </summary>
  80. [DisplayName("创建人")]
  81. public Guid? CreateUserID { get; set; }
  82. /// <summary>
  83. /// 创建人
  84. /// </summary>
  85. [DisplayName("创建人")]
  86. public string CreateUserName { get; set; }
  87. /// <summary>
  88. /// 创建时间
  89. /// </summary>
  90. [DisplayName("创建时间")]
  91. public DateTime? CreateTime { get; set; }
  92. /// <summary>
  93. /// 修改人
  94. /// </summary>
  95. [DisplayName("修改人")]
  96. public Guid? ModifyUserID { get; set; }
  97. /// <summary>
  98. /// 修改人
  99. /// </summary>
  100. [DisplayName("修改人")]
  101. public string ModifyUserName { get; set; }
  102. /// <summary>
  103. /// 修改时间
  104. /// </summary>
  105. [DisplayName("修改时间")]
  106. public DateTime? ModifyTime { get; set; }
  107. }
  108. }