EducationMissionView.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EducationManage
  9. {
  10. public class EducationMissionView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EducationMissionID { get; set; }
  17. /// <summary>
  18. /// 任务名称
  19. /// </summary>
  20. [Required]
  21. [DisplayName("任务名称")]
  22. public string ClassName { get; set; }
  23. /// <summary>
  24. /// 学年学期ID
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学年学期ID")]
  28. public Guid? SchoolyearID { get; set; }
  29. /// <summary>
  30. /// 学年学期
  31. /// </summary>
  32. [DisplayName("学年学期")]
  33. public string SchoolyearCode { get; set; }
  34. /// <summary>
  35. /// 学年学期对应的Value
  36. /// </summary>
  37. [DisplayName("Value")]
  38. public int? Value { get; set; }
  39. /// <summary>
  40. /// 院系所ID
  41. /// </summary>
  42. [Required]
  43. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  44. public Guid? CollegeID { get; set; }
  45. /// <summary>
  46. /// 院系所代码
  47. /// </summary>
  48. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  49. public string CollegeNo { get; set; }
  50. /// <summary>
  51. /// 院系所
  52. /// </summary>
  53. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  54. public string CollegeName { get; set; }
  55. /// <summary>
  56. /// 单位类别
  57. /// </summary>
  58. [DisplayName("单位类别")]
  59. public int? UnitCategoryID { get; set; }
  60. /// <summary>
  61. /// 单位类别
  62. /// </summary>
  63. [DisplayName("单位类别")]
  64. public string UnitCategoryName
  65. {
  66. get
  67. {
  68. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString())
  69. .Where(x => x.Value == UnitCategoryID)
  70. .Select(x => x.Name).FirstOrDefault();
  71. }
  72. }
  73. /// <summary>
  74. /// 校区ID
  75. /// </summary>
  76. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  77. public Guid? CampusID { get; set; }
  78. /// <summary>
  79. /// 校区代码
  80. /// </summary>
  81. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  82. public string CampusNo { get; set; }
  83. /// <summary>
  84. /// 校区
  85. /// </summary>
  86. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  87. public string CampusName { get; set; }
  88. /// <summary>
  89. /// 开课教研室ID
  90. /// </summary>
  91. [Required]
  92. [DisplayName("开课教研室ID")]
  93. public Guid? DepartmentID { get; set; }
  94. /// <summary>
  95. /// 开课教研室代码
  96. /// </summary>
  97. [DisplayName("开课教研室代码")]
  98. public string DepartmentNo { get; set; }
  99. /// <summary>
  100. /// 开课教研室
  101. /// </summary>
  102. [DisplayName("开课教研室")]
  103. public string DepartmentName { get; set; }
  104. /// <summary>
  105. /// 状态
  106. /// </summary>
  107. [DisplayName("状态")]
  108. public int? RecordStatus { get; set; }
  109. /// <summary>
  110. /// 创建人
  111. /// </summary>
  112. [DisplayName("创建人")]
  113. public Guid? CreateUserID { get; set; }
  114. /// <summary>
  115. /// 创建时间
  116. /// </summary>
  117. [DisplayName("创建时间")]
  118. public DateTime? CreateTime { get; set; }
  119. /// <summary>
  120. /// 修改人
  121. /// </summary>
  122. [DisplayName("修改人")]
  123. public Guid? ModifyUserID { get; set; }
  124. /// <summary>
  125. /// 修改时间
  126. /// </summary>
  127. [DisplayName("修改时间")]
  128. public DateTime? ModifyTime { get; set; }
  129. }
  130. }