StudentsOrderReportView.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.TeachingMaterial
  9. {
  10. public class StudentsOrderShowReportView
  11. {
  12. /// <summary>
  13. /// 学年学期编号
  14. /// </summary>
  15. [DisplayName("学年学期编号")]
  16. public string SchoolyearCode { get; set; }
  17. /// <summary>
  18. /// 院系所
  19. /// </summary>
  20. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  21. public string CollegeName { get; set; }
  22. /// <summary>
  23. /// 年级
  24. /// </summary>
  25. [DisplayName("年级")]
  26. public int? GradeID { get; set; }
  27. /// <summary>
  28. /// 年级
  29. /// </summary>
  30. [DisplayName("年级")]
  31. public string Grade
  32. {
  33. get
  34. {
  35. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  36. }
  37. }
  38. /// <summary>
  39. /// 专业名称对应数据字典Value
  40. /// </summary>
  41. [DisplayName("Value")]
  42. public int? SpecialtyValue { get; set; }
  43. /// <summary>
  44. /// 专业代码
  45. /// </summary>
  46. [DisplayName("专业代码")]
  47. public string SpecialtyCode
  48. {
  49. get
  50. {
  51. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  52. .Where(x => x.Value == SpecialtyValue)
  53. .Select(x => x.Code).FirstOrDefault();
  54. }
  55. }
  56. /// <summary>
  57. /// 专业名称
  58. /// </summary>
  59. [DisplayName("专业名称")]
  60. public string SpecialtyName
  61. {
  62. get
  63. {
  64. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  65. .Where(x => x.Value == SpecialtyValue)
  66. .Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. /// <summary>
  70. /// 年级专业编号
  71. /// </summary>
  72. [DisplayName("年级专业编号")]
  73. public string GrademajorCode { get; set; }
  74. /// <summary>
  75. /// 年级专业名称
  76. /// </summary>
  77. [DisplayName("年级专业名称")]
  78. public string GrademajorName { get; set; }
  79. /// <summary>
  80. /// 课程代码
  81. /// </summary>
  82. [DisplayName("课程代码")]
  83. public string CourseCode { get; set; }
  84. /// <summary>
  85. /// 课程名称
  86. /// </summary>
  87. [DisplayName("课程名称")]
  88. public string CourseName { get; set; }
  89. /// <summary>
  90. /// 教材编号
  91. /// </summary>
  92. [DisplayName("教材编号")]
  93. public string TeachingMaterialCode { get; set; }
  94. /// <summary>
  95. /// 教材名称
  96. /// </summary>
  97. [DisplayName("教材名称")]
  98. public string TeachingMaterialName { get; set; }
  99. /// <summary>
  100. /// 教材类型
  101. /// </summary>
  102. [DisplayName("教材类型")]
  103. public int? TeachingMaterialTypeID { get; set; }
  104. /// <summary>
  105. /// 教材类型
  106. /// </summary>
  107. [DisplayName("教材类型")]
  108. public string TeachingMaterialTypeName
  109. {
  110. get
  111. {
  112. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMaterialType.ToString())
  113. .Where(x => x.Value == TeachingMaterialTypeID)
  114. .Select(x => x.Name).FirstOrDefault();
  115. }
  116. }
  117. /// <summary>
  118. /// ISBN
  119. /// </summary>
  120. [DisplayName("ISBN")]
  121. public string ISBN { get; set; }
  122. /// <summary>
  123. /// 版本时间
  124. /// </summary>
  125. [DisplayName("版本时间")]
  126. public string PublishTime { get; set; }
  127. /// <summary>
  128. /// 出版单位
  129. /// </summary>
  130. [DisplayName("出版单位")]
  131. public string PublishName { get; set; }
  132. /// <summary>
  133. /// 作者
  134. /// </summary>
  135. [DisplayName("作者")]
  136. public string Author { get; set; }
  137. /// <summary>
  138. /// 单价
  139. /// </summary>
  140. [DisplayName("单价")]
  141. public decimal? Price { get; set; }
  142. /// <summary>
  143. /// 学生人数
  144. /// </summary>
  145. [DisplayName("学生人数")]
  146. public int? ClassNum { get; set; }
  147. /// <summary>
  148. /// 征订数量
  149. /// </summary>
  150. [DisplayName("征订数量")]
  151. public int? OrderQty { get; set; }
  152. /// <summary>
  153. /// 增加数量
  154. /// </summary>
  155. [DisplayName("增加数量")]
  156. public int? PreIncreaseQty { get; set; }
  157. /// <summary>
  158. /// 总数量
  159. /// </summary>
  160. [DisplayName("总数量")]
  161. public int? Count { get; set; }
  162. ///// <summary>
  163. ///// 课程类别
  164. ///// </summary>
  165. //[DisplayName("课程属性")]
  166. //public int? CourseCategory { get; set; }
  167. ///// <summary>
  168. ///// 课程类别
  169. ///// </summary>
  170. //[DisplayName("课程属性")]
  171. //public string CourseCategoryName
  172. //{
  173. // get
  174. // {
  175. // return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
  176. // .Where(x => x.Value == CourseCategory)
  177. // .Select(x => x.Name).FirstOrDefault();
  178. // }
  179. //}
  180. }
  181. public class StudentsOrderDataReportView
  182. {
  183. /// <summary>
  184. /// 学年学期ID
  185. /// </summary>
  186. [DisplayName("学年学期")]
  187. public Guid? SchoolyearID { get; set; }
  188. /// <summary>
  189. /// 学年学期编号
  190. /// </summary>
  191. [DisplayName("学年学期编号")]
  192. public string SchoolyearCode { get; set; }
  193. /// <summary>
  194. /// 校区ID
  195. /// </summary>
  196. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  197. public Guid? CampusID { get; set; }
  198. /// <summary>
  199. /// 院系所ID
  200. /// </summary>
  201. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  202. public Guid? CollegeID { get; set; }
  203. /// <summary>
  204. /// 院系所
  205. /// </summary>
  206. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  207. public string CollegeName { get; set; }
  208. /// <summary>
  209. /// 年级
  210. /// </summary>
  211. [DisplayName("年级")]
  212. public int? GradeID { get; set; }
  213. /// <summary>
  214. /// 年级
  215. /// </summary>
  216. [DisplayName("年级")]
  217. public string Grade
  218. {
  219. get
  220. {
  221. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  222. }
  223. }
  224. /// <summary>
  225. /// 专业名称对应数据字典Value
  226. /// </summary>
  227. [DisplayName("Value")]
  228. public int? SpecialtyValue { get; set; }
  229. /// <summary>
  230. /// 专业代码
  231. /// </summary>
  232. [DisplayName("专业代码")]
  233. public string SpecialtyCode
  234. {
  235. get
  236. {
  237. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  238. .Where(x => x.Value == SpecialtyValue)
  239. .Select(x => x.Code).FirstOrDefault();
  240. }
  241. }
  242. /// <summary>
  243. /// 专业名称
  244. /// </summary>
  245. [DisplayName("专业名称")]
  246. public string SpecialtyName
  247. {
  248. get
  249. {
  250. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  251. .Where(x => x.Value == SpecialtyValue)
  252. .Select(x => x.Name).FirstOrDefault();
  253. }
  254. }
  255. /// <summary>
  256. /// 年级专业ID
  257. /// </summary>
  258. [DisplayName("年级专业ID")]
  259. public Guid? GrademajorID { get; set; }
  260. /// <summary>
  261. /// 年级专业编号
  262. /// </summary>
  263. [DisplayName("年级专业编号")]
  264. public string GrademajorCode { get; set; }
  265. /// <summary>
  266. /// 年级专业名称
  267. /// </summary>
  268. [DisplayName("年级专业名称")]
  269. public string GrademajorName { get; set; }
  270. /// <summary>
  271. /// 学生人数
  272. /// </summary>
  273. [DisplayName("学生人数")]
  274. public int? ClassNum { get; set; }
  275. /// <summary>
  276. /// 征订数量
  277. /// </summary>
  278. [DisplayName("征订数量")]
  279. public int? OrderQty { get; set; }
  280. /// <summary>
  281. /// 预加数量
  282. /// </summary>
  283. [DisplayName("预加数量")]
  284. public int? PreIncreaseQty { get; set; }
  285. /// <summary>
  286. /// 总数
  287. /// </summary>
  288. [DisplayName("总数")]
  289. public int? Count { get; set; }
  290. /// <summary>
  291. /// 是否征订
  292. /// </summary>
  293. [DisplayName("是否征订")]
  294. public bool? IsOrdered { get; set; }
  295. public int? Years { get; set; }
  296. /// <summary>
  297. /// 课程ID
  298. /// </summary>
  299. [DisplayName("课程ID")]
  300. public Guid? CoursematerialID { get; set; }
  301. /// <summary>
  302. /// 课程代码
  303. /// </summary>
  304. [DisplayName("课程代码")]
  305. public string CourseCode { get; set; }
  306. /// <summary>
  307. /// 课程名称
  308. /// </summary>
  309. [DisplayName("课程名称")]
  310. public string CourseName { get; set; }
  311. /// <summary>
  312. /// 教材ID
  313. /// </summary>
  314. [DisplayName("教材ID")]
  315. public Guid TeachingMaterialPoolID { get; set; }
  316. /// <summary>
  317. /// 年级专业
  318. /// </summary>
  319. [DisplayName("教材编号")]
  320. public string TeachingMaterialCode { get; set; }
  321. /// <summary>
  322. /// 教材名称
  323. /// </summary>
  324. [DisplayName("教材名称")]
  325. public string TeachingMaterialName { get; set; }
  326. /// <summary>
  327. /// 教材类型
  328. /// </summary>
  329. [DisplayName("教材类型")]
  330. public int? TeachingMaterialTypeID { get; set; }
  331. /// <summary>
  332. /// ISBN
  333. /// </summary>
  334. [DisplayName("ISBN")]
  335. public string ISBN { get; set; }
  336. /// <summary>
  337. /// 版本时间
  338. /// </summary>
  339. [DisplayName("版本时间")]
  340. public string PublishTime { get; set; }
  341. /// <summary>
  342. /// 出版ID
  343. /// </summary>
  344. [DisplayName("出版单位ID")]
  345. public Guid? PublishID { get; set; }
  346. /// <summary>
  347. /// 出版单位
  348. /// </summary>
  349. [DisplayName("出版单位")]
  350. public string PublishName { get; set; }
  351. /// <summary>
  352. /// 作者
  353. /// </summary>
  354. [DisplayName("作者")]
  355. public string Author { get; set; }
  356. /// <summary>
  357. /// 单价
  358. /// </summary>
  359. [DisplayName("单价")]
  360. public decimal? Price { get; set; }
  361. /// <summary>
  362. /// 创建人
  363. /// </summary>
  364. [DisplayName("创建人")]
  365. public string CreateUserName { get; set; }
  366. /// <summary>
  367. /// 创建时间
  368. /// </summary>
  369. [DisplayName("创建时间")]
  370. public DateTime? CreateTime { get; set; }
  371. /// <summary>
  372. /// 课程类别
  373. /// </summary>
  374. [DisplayName("课程属性")]
  375. public int? CourseCategory { get; set; }
  376. }
  377. }