TeachersConfirmOrderView.cs 5.6 KB

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