StudentsOrderView.cs 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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 StudentsOrderView
  12. {
  13. /// <summary>
  14. /// 学生征订ID
  15. /// </summary>
  16. [DisplayName("学生征订ID")]
  17. public Guid StudentsOrderID { get; set; }
  18. /// <summary>
  19. /// 专业计划ID
  20. /// </summary>
  21. [DisplayName("专业计划ID")]
  22. public Guid SpecialtyPlanID { get; set; }
  23. /// <summary>
  24. /// 教材ID
  25. /// </summary>
  26. [DisplayName("教材ID")]
  27. public Guid? TeachingMaterialPoolID { get; set; }
  28. /// <summary>
  29. /// 学年学期ID
  30. /// </summary>
  31. [DisplayName("学年学期ID")]
  32. public Guid? SchoolyearID { get; set; }
  33. /// <summary>
  34. /// 学年学期
  35. /// </summary>
  36. [DisplayName("学年学期")]
  37. public string SchoolyearCode { get; set; }
  38. /// <summary>
  39. /// 校区ID
  40. /// </summary>
  41. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  42. public Guid? CampusID { get; set; }
  43. /// <summary>
  44. /// 院系所ID
  45. /// </summary>
  46. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  47. public Guid? CollegeID { get; set; }
  48. /// <summary>
  49. /// 院系所
  50. /// </summary>
  51. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  52. public string CollegeName { get; set; }
  53. /// <summary>
  54. /// 院系所代码
  55. /// </summary>
  56. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  57. public string CollegeNo { get; set; }
  58. /// <summary>
  59. /// 年级
  60. /// </summary>
  61. [DisplayName("年级")]
  62. public int? Years { get; set; }
  63. /// <summary>
  64. /// 年级
  65. /// </summary>
  66. [DisplayName("年级")]
  67. public int? GradeID { get; set; }
  68. [DisplayName("年级")]
  69. public string Grade
  70. {
  71. get
  72. {
  73. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  74. }
  75. }
  76. /// <summary>
  77. /// 年级专业编号
  78. /// </summary>
  79. [DisplayName("年级专业编号")]
  80. public string GrademajorCode { get; set; }
  81. /// <summary>
  82. /// 年级专业
  83. /// </summary>
  84. [DisplayName("年级专业")]
  85. public string GrademajorName { get; set; }
  86. /// <summary>
  87. /// 年级专业ID
  88. /// </summary>
  89. [DisplayName("年级专业ID")]
  90. public Guid? GrademajorID { get; set; }
  91. /// <summary>
  92. /// 学生人数
  93. /// </summary>
  94. [DisplayName("学生人数")]
  95. public int? ClassNum { get; set; }
  96. /// <summary>
  97. /// 征订数量
  98. /// </summary>
  99. [DisplayName("征订数量")]
  100. public int? OrderQty { get; set; }
  101. /// <summary>
  102. /// 标准专业
  103. /// </summary>
  104. [DisplayName("标准专业")]
  105. public int? StandardID { get; set; }
  106. /// <summary>
  107. /// 标准专业名称
  108. /// </summary>
  109. [DisplayName("标准专业名称")]
  110. public string StandardName { get; set; }
  111. /// <summary>
  112. /// 课程ID
  113. /// </summary>
  114. [DisplayName("课程ID")]
  115. public Guid? CoursematerialID { get; set; }
  116. /// <summary>
  117. /// 课程代码
  118. /// </summary>
  119. [DisplayName("课程代码")]
  120. public string CourseCode { get; set; }
  121. /// <summary>
  122. /// 课程名称
  123. /// </summary>
  124. [DisplayName("课程名称")]
  125. public string CourseName { get; set; }
  126. /// <summary>
  127. /// 课程属性
  128. /// </summary>
  129. [DisplayName("课程属性")]
  130. public int? CourseCategoryID { get; set; }
  131. /// <summary>
  132. /// 课程属性
  133. /// </summary>
  134. [DisplayName("课程属性")]
  135. public string CourseCategoryName { get; set; }
  136. /// <summary>
  137. /// 课程类型
  138. /// </summary>
  139. [DisplayName("课程类型")]
  140. public int? CourseTypeID { get; set; }
  141. /// <summary>
  142. /// 课程类型
  143. /// </summary>
  144. [DisplayName("课程类型")]
  145. public string CourseTypeName { get; set; }
  146. /// <summary>
  147. /// 课程性质
  148. /// </summary>
  149. [DisplayName("课程性质")]
  150. public int? CourseQualityID { get; set; }
  151. /// <summary>
  152. /// 课程性质
  153. /// </summary>
  154. [DisplayName("课程性质")]
  155. public string CourseQualityName { get; set; }
  156. /// <summary>
  157. /// 增加数量
  158. /// </summary>
  159. [DisplayName("增加数量")]
  160. public int? PreIncreaseQty { get; set; }
  161. /// <summary>
  162. /// 总数
  163. /// </summary>
  164. [DisplayName("总数")]
  165. public int? Count { get; set; }
  166. /// <summary>
  167. /// 是否征订
  168. /// </summary>
  169. [DisplayName("是否征订")]
  170. public bool? IsOrdered { get; set; }
  171. /// <summary>
  172. /// 是否征订
  173. /// </summary>
  174. [DisplayName("是否征订")]
  175. public string IsOrderedName { get; set; }
  176. /// <summary>
  177. /// 征订人编号
  178. /// </summary>
  179. [DisplayName("征订人编号")]
  180. public string CreateUserNo { get; set; }
  181. /// <summary>
  182. /// 征订人
  183. /// </summary>
  184. [DisplayName("征订人")]
  185. public string CreateUserName { get; set; }
  186. /// <summary>
  187. /// 创建时间
  188. /// </summary>
  189. [DisplayName("创建时间")]
  190. public DateTime? CreateTime { get; set; }
  191. public CF_TeachingMaterialPool CF_TeachingMaterialPool { get; set; }
  192. public HashSet<SpecialtyPlanTeachingMaterPoolView> SpecialtyPlanTeachingMaterPoolViewList { get; set; }
  193. [DisplayName("教材名称")]
  194. public string TeachingMaterialName
  195. {
  196. get
  197. {
  198. string name = string.Empty;
  199. if (SpecialtyPlanTeachingMaterPoolViewList != null)
  200. name = string.Join(",", SpecialtyPlanTeachingMaterPoolViewList.Select(s => s.TeachingMaterialName));
  201. if (string.IsNullOrEmpty(name))
  202. {
  203. return "";
  204. }
  205. else
  206. {
  207. return name;
  208. }
  209. }
  210. }
  211. [DisplayName("教材编号")]
  212. public string TeachingMaterialCode
  213. {
  214. get
  215. {
  216. string code = string.Empty;
  217. if (SpecialtyPlanTeachingMaterPoolViewList != null)
  218. code = string.Join(",", SpecialtyPlanTeachingMaterPoolViewList.Select(s => s.TeachingMaterialCode));
  219. if (string.IsNullOrEmpty(code))
  220. {
  221. return "";
  222. }
  223. else
  224. {
  225. return code;
  226. }
  227. }
  228. }
  229. }
  230. public class StudentOrderPrePlanView
  231. {
  232. /// <summary>
  233. /// 专业计划ID
  234. /// </summary>
  235. public Guid SpecialtyPlanID { get; set; }
  236. public Guid? CollegeID { get; set; }
  237. /// <summary>
  238. /// 征订数量
  239. /// </summary>
  240. public int? OrderQty { get; set; }
  241. /// <summary>
  242. /// 教材ID
  243. /// </summary>
  244. public Guid? TeachingMaterialPoolID { get; set; }
  245. }
  246. public class SpecialtyPlanTeachingMaterPoolView
  247. {
  248. public string TeachingMaterialName{ get; set; }
  249. public string TeachingMaterialCode{ get; set; }
  250. public Guid? TeachingMaterialPoolID { get; set; }
  251. public Guid SpecialtyPlanID { get; set; }
  252. }
  253. public class EditTeachingMaterPoolView
  254. {
  255. public string StudentsOrderID { get; set; }
  256. public string TeachingMaterialPoolID { get; set; }
  257. public string SpecialtyPlanID { get; set; }
  258. }
  259. }