TeachingMaterialPoolImportView.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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 TeachingMaterialPoolImportView
  11. {
  12. /// <summary>
  13. /// 教材ID
  14. /// </summary>
  15. [DisplayName("教材ID")]
  16. public Guid TeachingMaterialPoolID { get; set; }
  17. /// <summary>
  18. /// 教材编号
  19. /// </summary>
  20. /// [Required]
  21. [DisplayName("教材编号")]
  22. [Required]
  23. public string TeachingMaterialCode { get; set; }
  24. /// <summary>
  25. /// 教材名称
  26. /// </summary>
  27. [DisplayName("教材名称")]
  28. [Required]
  29. public string TeachingMaterialName { get; set; }
  30. /// <summary>
  31. /// 教材名称
  32. /// </summary>
  33. [DisplayName("教材简称")]
  34. //[Required]
  35. public string TeachingMaterialShorName { get; set; }
  36. /// <summary>
  37. /// 课程名称
  38. /// </summary>
  39. [DisplayName("课程名称")]
  40. [Required]
  41. public string CoursematerialName { get; set; }
  42. /// <summary>
  43. /// ISBN
  44. /// </summary>
  45. [DisplayName("ISBN")]
  46. [Required]
  47. public string ISBN { get; set; }
  48. /// <summary>
  49. ///教材类型
  50. /// </summary>
  51. [DisplayName("教材类型")]
  52. public int? TeachingMaterialTypeID { get; set; }
  53. /// <summary>
  54. ///教材类型
  55. /// </summary>
  56. [DisplayName("教材类型")]
  57. public string TeachingMaterialTypeName { get; set; }
  58. /// <summary>
  59. /// 获奖级别
  60. /// </summary>
  61. [DisplayName("获奖级别")]
  62. public int? WnningLevel { get; set; }
  63. /// <summary>
  64. /// 获奖级别
  65. /// </summary>
  66. [DisplayName("获奖级别")]
  67. public string WnningLevelName { get; set; }
  68. /// <summary>
  69. /// 版本时间
  70. /// </summary>
  71. [DisplayName("版本时间")]
  72. public string PublishTime { get; set; }
  73. /// <summary>
  74. /// 出版单位ID
  75. /// </summary>
  76. [DisplayName("出版单位ID")]
  77. [Required]
  78. public Guid? PublishID { get; set; }
  79. /// <summary>
  80. /// 出版单位
  81. /// </summary>
  82. [DisplayName("出版单位")]
  83. [Required]
  84. public string PublishName { get; set; }
  85. /// <summary>
  86. /// 作者
  87. /// </summary>
  88. [DisplayName("作者")]
  89. [Required]
  90. public string Author { get; set; }
  91. /// <summary>
  92. /// 单价
  93. /// </summary>
  94. [DisplayName("单价")]
  95. [Required]
  96. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "必须填写有效的价格")]
  97. public decimal? Price { get; set; }
  98. /// <summary>
  99. /// 折合价
  100. /// </summary>
  101. [DisplayName("折合价")]
  102. public decimal? DiscountPrice { get; set; }
  103. /// <summary>
  104. /// 是否过期
  105. /// </summary>
  106. [DisplayName("是否过期")]
  107. [Required]
  108. public bool IsLate { get; set; }
  109. public string IsLateName { get; set; }
  110. /// <summary>
  111. /// 备注
  112. /// </summary>
  113. [DisplayName("备注")]
  114. public string Desc { get; set; }
  115. /// <summary>
  116. /// 错误信息
  117. /// </summary>
  118. [DisplayName("错误信息")]
  119. public string ErrorMessage { get; set; }
  120. /// <summary>
  121. /// 创建时间
  122. /// </summary>
  123. [DisplayName("创建时间")]
  124. public DateTime? CreateTime { get; set; }
  125. /// <summary>
  126. /// 创建人
  127. /// </summary>
  128. [DisplayName("创建人")]
  129. public string CreateUserName { get; set; }
  130. /// <summary>
  131. /// 修改时间
  132. /// </summary>
  133. [DisplayName("修改时间")]
  134. public DateTime? ModifyTime { get; set; }
  135. /// <summary>
  136. /// 修改人
  137. /// </summary>
  138. [DisplayName("修改人")]
  139. public string ModifyUserName { get; set; }
  140. /// <summary>
  141. /// 征订数量(用于教师征订)
  142. /// </summary>
  143. [DisplayName("征订数量")]
  144. public int? OrderQty { get; set; }
  145. /// <summary>
  146. /// 课程级别(用于学生征订)
  147. /// </summary>
  148. [DisplayName("课程级别")]
  149. public string CourseLevelName { get; set; }
  150. /// <summary>
  151. /// 课程科类(用于学生征订)
  152. /// </summary>
  153. [DisplayName("课程科类")]
  154. public string CourseScienceName { get; set; }
  155. /// <summary>
  156. /// 折扣率
  157. /// </summary>
  158. [DisplayName("折扣率")]
  159. public decimal? Discount { get; set; }
  160. /// <summary>
  161. /// 最小库存量
  162. /// </summary>
  163. [DisplayName("最小库存量")]
  164. [Required]
  165. [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
  166. public int? MinInventory { get; set; }
  167. /// <summary>
  168. /// 当前库存量
  169. /// </summary>
  170. [DisplayName("当前库存量")]
  171. public int? PresentInventory { get; set; }
  172. /// <summary>
  173. /// 总价
  174. /// </summary>
  175. [DisplayName("总价")]
  176. public decimal? ZongJia { get; set; }
  177. /// <summary>
  178. /// 码洋
  179. /// </summary>
  180. [DisplayName("码洋")]
  181. public decimal? MaYang { get; set; }
  182. private bool _isExcelVaildateOK = true;
  183. /// <summary>
  184. /// Excel验证是否通过,默认为true
  185. /// <para>true:通过;false:不通过</para>
  186. /// </summary>
  187. public bool IsExcelVaildateOK
  188. {
  189. get { return _isExcelVaildateOK; }
  190. set { _isExcelVaildateOK = value; }
  191. }
  192. }
  193. }