CoursematerialView.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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.Cache;
  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. public string CourseCode { get; set; }
  23. /// <summary>
  24. /// 课程名称
  25. /// </summary>
  26. [Required]
  27. [DisplayName("课程名称")]
  28. public string CourseName { get; set; }
  29. /// <summary>
  30. /// 简称
  31. /// </summary>
  32. [DisplayName("课程简称")]
  33. public string Abbreviation { get; set; }
  34. /// <summary>
  35. /// 英文名称
  36. /// </summary>
  37. [DisplayName("课程英文名")]
  38. public string EnglishName { get; set; }
  39. /// <summary>
  40. /// 课程规范名
  41. /// </summary>
  42. [DisplayName("课程规范名")]
  43. public string StandardName { get; set; }
  44. /// <summary>
  45. /// 课程版本
  46. /// </summary>
  47. [DisplayName("课程版本")]
  48. public string CourseEdition { get; set; }
  49. /// <summary>
  50. /// 课程简介
  51. /// </summary>
  52. [DisplayName("课程简介")]
  53. public string CourseSynopsis { get; set; }
  54. /// <summary>
  55. /// 预修课程集
  56. /// </summary>
  57. [DisplayName("预修课程集")]
  58. public string CourseReserve { get; set; }
  59. /// <summary>
  60. /// 课程级别
  61. /// </summary>
  62. [DisplayName("课程级别")]
  63. public int? CourseLevelID { get; set; }
  64. /// <summary>
  65. /// 课程级别
  66. /// </summary>
  67. [DisplayName("课程级别")]
  68. public string CourseLevelName
  69. {
  70. get
  71. {
  72. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseLevel.ToString())
  73. .Where(x => x.Value == CourseLevelID)
  74. .Select(x => x.Name).FirstOrDefault();
  75. }
  76. }
  77. /// <summary>
  78. /// 课程科类
  79. /// </summary>
  80. [DisplayName("课程科类")]
  81. public int? CourseScienceID { get; set; }
  82. /// <summary>
  83. /// 课程科类
  84. /// </summary>
  85. [DisplayName("课程科类")]
  86. public string CourseScienceName
  87. {
  88. get
  89. {
  90. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseScience.ToString())
  91. .Where(x => x.Value == CourseScienceID)
  92. .Select(x => x.Name).FirstOrDefault();
  93. }
  94. }
  95. /// <summary>
  96. /// 上课类型ID
  97. /// </summary>
  98. [Required]
  99. [DisplayName("上课类型ID")]
  100. public Guid? ClassGroupingID { get; set; }
  101. /// <summary>
  102. /// 上课类型
  103. /// </summary>
  104. [DisplayName("上课类型")]
  105. public string ClassGrouping { get; set; }
  106. /// <summary>
  107. /// 是否启用
  108. /// </summary>
  109. [DisplayName("是否启用")]
  110. public bool IsEnable { get; set; }
  111. /// <summary>
  112. /// 是否启用
  113. /// </summary>
  114. [DisplayName("是否启用")]
  115. public string IsEnableName { get; set; }
  116. /// <summary>
  117. /// 状态
  118. /// </summary>
  119. [DisplayName("状态")]
  120. public int? RecordStatus { get; set; }
  121. /// <summary>
  122. /// 备注
  123. /// </summary>
  124. [DisplayName("备注")]
  125. public string Remarks { get; set; }
  126. /// <summary>
  127. /// 备注
  128. /// </summary>
  129. [DisplayName("错误信息")]
  130. public string ErrorMessage { get; set; }
  131. private bool _isExcelVaildateOK = true;
  132. /// <summary>
  133. /// Excel验证是否通过,默认为true
  134. /// <para>true:通过;false:不通过</para>
  135. /// </summary>
  136. public bool IsExcelVaildateOK
  137. {
  138. get { return _isExcelVaildateOK; }
  139. set { _isExcelVaildateOK = value; }
  140. }
  141. /// <summary>
  142. /// 创建人
  143. /// </summary>
  144. [DisplayName("创建人")]
  145. public Guid? CreateUserID { get; set; }
  146. /// <summary>
  147. /// 创建时间
  148. /// </summary>
  149. [DisplayName("创建时间")]
  150. public DateTime? CreateTime { get; set; }
  151. /// <summary>
  152. /// 修改人
  153. /// </summary>
  154. [DisplayName("修改人")]
  155. public Guid? ModifyUserID { get; set; }
  156. /// <summary>
  157. /// 修改时间
  158. /// </summary>
  159. [DisplayName("修改时间")]
  160. public DateTime? ModifyTime { get; set; }
  161. }
  162. }