CoursematerialView.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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.Cultureplan
  9. {
  10. public class CoursematerialView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid CoursematerialID { get; set; }
  17. /// <summary>
  18. /// 课程代码
  19. /// </summary>
  20. [Required]
  21. [DisplayName("课程代码")]
  22. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  23. public string CourseCode { get; set; }
  24. /// <summary>
  25. /// 课程名称
  26. /// </summary>
  27. [Required]
  28. [DisplayName("课程名称")]
  29. public string CourseName { get; set; }
  30. /// <summary>
  31. /// 课程简称
  32. /// </summary>
  33. [DisplayName("课程简称")]
  34. public string Abbreviation { get; set; }
  35. /// <summary>
  36. /// 英文名称
  37. /// </summary>
  38. [DisplayName("英文名称")]
  39. public string EnglishName { get; set; }
  40. /// <summary>
  41. /// 课程规范名
  42. /// </summary>
  43. [DisplayName("课程规范名")]
  44. public string StandardName { get; set; }
  45. /// <summary>
  46. /// 课程版本
  47. /// </summary>
  48. [DisplayName("课程版本")]
  49. public string CourseEdition { get; set; }
  50. /// <summary>
  51. /// 课程级别
  52. /// </summary>
  53. [DisplayName("课程级别")]
  54. public int? CourseLevelID { get; set; }
  55. /// <summary>
  56. /// 课程级别(Excel导入)
  57. /// </summary>
  58. [DisplayName("课程级别")]
  59. public string CourseLevelStr { get; set; }
  60. /// <summary>
  61. /// 课程级别
  62. /// </summary>
  63. [DisplayName("课程级别")]
  64. public string CourseLevelName
  65. {
  66. get
  67. {
  68. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseLevel.ToString())
  69. .Where(x => x.Value == CourseLevelID)
  70. .Select(x => x.Name).FirstOrDefault();
  71. }
  72. }
  73. /// <summary>
  74. /// 课程科类
  75. /// </summary>
  76. [DisplayName("课程科类")]
  77. public int? CourseScienceID { get; set; }
  78. /// <summary>
  79. /// 课程科类(Excel导入)
  80. /// </summary>
  81. [DisplayName("课程科类")]
  82. public string CourseScienceStr { get; set; }
  83. /// <summary>
  84. /// 课程科类
  85. /// </summary>
  86. [DisplayName("课程科类")]
  87. public string CourseScienceName
  88. {
  89. get
  90. {
  91. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseScience.ToString())
  92. .Where(x => x.Value == CourseScienceID)
  93. .Select(x => x.Name).FirstOrDefault();
  94. }
  95. }
  96. /// <summary>
  97. /// 上课类型ID
  98. /// </summary>
  99. [DisplayName("上课类型ID")]
  100. public Guid? ClassGroupingID { get; set; }
  101. /// <summary>
  102. /// 上课类型
  103. /// </summary>
  104. [DisplayName("上课类型")]
  105. public string ClassName { get; set; }
  106. /// <summary>
  107. /// 课程简介
  108. /// </summary>
  109. [DisplayName("课程简介")]
  110. public string CourseSynopsis { get; set; }
  111. /// <summary>
  112. /// 预修课程集
  113. /// </summary>
  114. [DisplayName("预修课程集")]
  115. public string CourseReserve { get; set; }
  116. /// <summary>
  117. /// 是否启用
  118. /// </summary>
  119. [DisplayName("是否启用")]
  120. public bool IsEnable { get; set; }
  121. /// <summary>
  122. /// 是否启用(Excel导入用)
  123. /// </summary>
  124. [DisplayName("是否启用")]
  125. public string IsEnableStr { get; set; }
  126. /// <summary>
  127. /// 是否启用
  128. /// </summary>
  129. [DisplayName("是否启用")]
  130. public string IsEnableName
  131. {
  132. get
  133. {
  134. return IsEnable == true ? "是" : "否";
  135. }
  136. }
  137. /// <summary>
  138. /// 备注
  139. /// </summary>
  140. [DisplayName("备注")]
  141. public string Remark { get; set; }
  142. /// <summary>
  143. /// 错误信息(Excel导入)
  144. /// </summary>
  145. [DisplayName("未导入原因")]
  146. public string ErrorMessage { get; set; }
  147. /// <summary>
  148. /// 状态
  149. /// </summary>
  150. [DisplayName("状态")]
  151. public int? RecordStatus { get; set; }
  152. /// <summary>
  153. /// 创建人
  154. /// </summary>
  155. [DisplayName("创建人")]
  156. public Guid? CreateUserID { get; set; }
  157. /// <summary>
  158. /// 创建时间
  159. /// </summary>
  160. [DisplayName("创建时间")]
  161. public DateTime? CreateTime { get; set; }
  162. /// <summary>
  163. /// 修改人
  164. /// </summary>
  165. [DisplayName("修改人")]
  166. public Guid? ModifyUserID { get; set; }
  167. /// <summary>
  168. /// 修改时间
  169. /// </summary>
  170. [DisplayName("修改时间")]
  171. public DateTime? ModifyTime { get; set; }
  172. }
  173. }