PurchasingStatisticsView.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.Entities;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.TeachingMaterial
  10. {
  11. public class PurchasingStatisticsView
  12. {
  13. /// <summary>
  14. /// 学年学期ID
  15. /// </summary>
  16. [DisplayName("学年学期ID")]
  17. [Required]
  18. public Guid? SchoolyearID { get; set; }
  19. /// <summary>
  20. /// 学年学期
  21. /// </summary>
  22. [DisplayName("学年学期")]
  23. public string SchoolyearName { get; set; }
  24. /// <summary>
  25. /// 课程列表
  26. /// </summary>
  27. [DisplayName("课程列表")]
  28. public HashSet<EM_Coursematerial> CoursematerialEntityList { get; set; }
  29. /// <summary>
  30. /// 课程名称
  31. /// </summary>
  32. [DisplayName("课程名称")]
  33. public string CoursematerialName
  34. {
  35. get
  36. {
  37. return string.Join(",", CoursematerialEntityList.Select(x => x.CourseName));
  38. }
  39. }
  40. /// <summary>
  41. /// 教材信息ID
  42. /// </summary>
  43. [DisplayName("教材信息ID")]
  44. [Required]
  45. public Guid TeachingMaterialPoolID { get; set; }
  46. /// <summary>
  47. /// 教材编号
  48. /// </summary>
  49. [DisplayName("教材编号")]
  50. public string TeachingMaterialCode { get; set; }
  51. /// <summary>
  52. /// 教材名称
  53. /// </summary>
  54. [DisplayName("教材名称")]
  55. public string TeachingMaterialName { get; set; }
  56. /// <summary>
  57. ///教材类型ID
  58. /// </summary>
  59. [DisplayName("教材类型ID")]
  60. public int? TeachingMaterialTypeID { get; set; }
  61. /// <summary>
  62. ///教材类型
  63. /// </summary>
  64. [DisplayName("教材类型")]
  65. public string TeachingMaterialTypeName
  66. {
  67. get
  68. {
  69. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMaterialType.ToString())
  70. .Where(x => x.Value == TeachingMaterialTypeID)
  71. .Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 版本时间
  76. /// </summary>
  77. [DisplayName("版本时间")]
  78. public string PublishTime { get; set; }
  79. /// <summary>
  80. /// 出版单位ID
  81. /// </summary>
  82. [DisplayName("出版单位ID")]
  83. public Guid? PublishID { get; set; }
  84. /// <summary>
  85. /// 出版单位
  86. /// </summary>
  87. [DisplayName("出版单位")]
  88. public string PublishName { get; set; }
  89. /// <summary>
  90. /// 作者
  91. /// </summary>
  92. [DisplayName("作者")]
  93. public string Author { get; set; }
  94. /// <summary>
  95. /// ISBN
  96. /// </summary>
  97. [DisplayName("ISBN")]
  98. [Required]
  99. public string ISBN { get; set; }
  100. /// <summary>
  101. ///单价
  102. /// </summary>
  103. [DisplayName("单价")]
  104. public decimal? Price { get; set; }
  105. /// <summary>
  106. ///总征订量
  107. /// </summary>
  108. [DisplayName("总征订量")]
  109. public int? CountNumber { get; set; }
  110. }
  111. }