TeachersOrderView.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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.Entities;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.TeachingMaterial
  10. {
  11. public class TeachersOrderView
  12. {
  13. /// <summary>
  14. /// 教师征订ID
  15. /// </summary>
  16. [DisplayName("教师征订ID")]
  17. public Guid TeachersOrderID { get; set; }
  18. /// <summary>
  19. /// 学年学期
  20. /// </summary>
  21. /// [Required]
  22. [DisplayName("学年学期")]
  23. [Required]
  24. public Guid? SchoolyearID { get; set; }
  25. [DisplayName("学年学期")]
  26. public string SchoolyearName { get; set; }
  27. /// <summary>
  28. /// 院系所ID
  29. /// </summary>
  30. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  31. [Required]
  32. public Guid? CollegeID { get; set; }
  33. /// <summary>
  34. /// 院系所
  35. /// </summary>
  36. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  37. public string CollegeName { get; set; }
  38. /// <summary>
  39. /// 教材总库ID
  40. /// </summary>
  41. [DisplayName("教材总库ID")]
  42. [Required]
  43. public Guid TeachingMaterialPoolID { get; set; }
  44. /// <summary>
  45. /// 课程ID
  46. /// </summary>
  47. [DisplayName("课程")]
  48. public HashSet<EM_Coursematerial> CoursematerialEntityList { get; set; }
  49. /// <summary>
  50. /// 课程名称
  51. /// </summary>
  52. [DisplayName("课程名称")]
  53. public string CoursematerialName
  54. {
  55. get
  56. {
  57. return string.Join(",", CoursematerialEntityList.Select(x => x.CourseName));
  58. }
  59. }
  60. /// <summary>
  61. /// 课程类型
  62. /// </summary>
  63. [DisplayName("课程类型")]
  64. public string CoursematerialTypeName { get; set; }
  65. /// <summary>
  66. /// 课程类型
  67. /// </summary>
  68. [DisplayName("课程类型")]
  69. public int? CoursematerialType { get; set; }
  70. /// <summary>
  71. /// 课程代码
  72. /// </summary>
  73. [DisplayName("课程代码")]
  74. public string CoursematerialCode
  75. {
  76. get
  77. {
  78. return string.Join(",", CoursematerialEntityList.Select(x => x.CourseCode));
  79. }
  80. }
  81. /// <summary>
  82. /// 课程级别
  83. /// </summary>
  84. [DisplayName("课程级别")]
  85. public string CoursematerialLevelName { get; set; }
  86. /// <summary>
  87. /// 课程级别
  88. /// </summary>
  89. [DisplayName("课程级别")]
  90. public int? CoursematerialLevel { get; set; }
  91. /// <summary>
  92. /// 教材编号
  93. /// </summary>
  94. [DisplayName("教材编号")]
  95. public string TeachingMaterialCode { get; set; }
  96. /// <summary>
  97. /// 教材名称
  98. /// </summary>
  99. [DisplayName("教材名称")]
  100. public string TeachingMaterialName { get; set; }
  101. /// <summary>
  102. ///教材类型
  103. /// </summary>
  104. [DisplayName("教材类型")]
  105. public int? TeachingMaterialTypeID { get; set; }
  106. /// <summary>
  107. ///教材类型
  108. /// </summary>
  109. [DisplayName("教材类型")]
  110. public string TeachingMaterialTypeName
  111. {
  112. get
  113. {
  114. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMaterialType.ToString())
  115. .Where(x => x.Value == TeachingMaterialTypeID)
  116. .Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 版本时间
  121. /// </summary>
  122. [DisplayName("版本时间")]
  123. public string PublishTime { get; set; }
  124. /// <summary>
  125. /// 出版单位ID
  126. /// </summary>
  127. [DisplayName("出版单位ID")]
  128. public Guid? PublishID { get; set; }
  129. /// <summary>
  130. /// 出版单位
  131. /// </summary>
  132. [DisplayName("出版单位")]
  133. public string PublishName { get; set; }
  134. /// <summary>
  135. /// 作者
  136. /// </summary>
  137. [DisplayName("作者")]
  138. public string Author { get; set; }
  139. /// <summary>
  140. ///征订数量
  141. /// </summary>
  142. [DisplayName("征订数量")]
  143. [Required]
  144. public int? OrderQty { get; set; }
  145. /// <summary>
  146. /// 征订人ID
  147. /// </summary>
  148. [DisplayName("征订人ID")]
  149. public Guid OrderUserID { get; set; }
  150. /// <summary>
  151. /// 征订人编号
  152. /// </summary>
  153. [DisplayName("征订人编号")]
  154. public string OrderLoginID { get; set; }
  155. /// <summary>
  156. /// 征订人
  157. /// </summary>
  158. [DisplayName("征订人")]
  159. public string OrderUserName { get; set; }
  160. /// <summary>
  161. /// 征订日期
  162. /// </summary>
  163. [DisplayName("征订日期")]
  164. public DateTime? OrderDate { get; set; }
  165. /// <summary>
  166. /// 征订说明
  167. /// </summary>
  168. [DisplayName("征订说明")]
  169. public string OrderDesc { get; set; }
  170. /// <summary>
  171. /// 审核状态
  172. /// </summary>
  173. [DisplayName("审核状态")]
  174. public int ApproveStatus { get; set; }
  175. /// <summary>
  176. /// 审核状态
  177. /// </summary>
  178. [DisplayName("审核状态")]
  179. public string ApproveStatusName { get; set; }
  180. /// <summary>
  181. /// 创建时间
  182. /// </summary>
  183. [DisplayName("审核状态")]
  184. public DateTime? CreateTime { get; set; }
  185. public Guid? CreateUserID { get; set; }
  186. /// <summary>
  187. /// ISBN
  188. /// </summary>
  189. [DisplayName("ISBN")]
  190. [Required]
  191. public string ISBN { get; set; }
  192. /// <summary>
  193. /// 单价
  194. /// </summary>
  195. [DisplayName("单价")]
  196. [Required]
  197. public decimal? Price { get; set; }
  198. }
  199. }