ChargeStandardView.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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.ChargeManage.ChargeSituation
  9. {
  10. public class ChargeStandardView
  11. {
  12. /// <summary>
  13. /// 收费标准ID
  14. /// </summary>
  15. [DisplayName("收费标准ID")]
  16. public System.Guid ChargeStandardID { get; set; }
  17. /// <summary>
  18. /// 院系所ID
  19. /// </summary>
  20. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  21. public Guid? CollegeID { get; set; }
  22. /// <summary>
  23. /// 院系所代码
  24. /// </summary>
  25. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  26. public string CollegeCode { get; set; }
  27. /// <summary>
  28. /// 院系所名称
  29. /// </summary>
  30. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  31. public string CollegeStr { get; set; }
  32. /// <summary>
  33. /// 年级专业ID
  34. /// </summary>
  35. [DisplayName("年级专业ID")]
  36. public Guid? GrademajorID { get; set; }
  37. /// <summary>
  38. /// 年级专业代码
  39. /// </summary>
  40. [DisplayName("年级专业代码")]
  41. public string GradeMajorCode { get; set; }
  42. /// <summary>
  43. /// 年级专业名称
  44. /// </summary>
  45. [Required]
  46. [DisplayName("年级专业名称")]
  47. public string GrademajorStr { get; set; }
  48. /// <summary>
  49. /// 年级
  50. /// </summary>
  51. [DisplayName("年级")]
  52. public int? GradeStr { get; set; }
  53. /// <summary>
  54. /// 专业ID(Value)
  55. /// </summary>
  56. [DisplayName("专业ID(Value)")]
  57. public int? StandardID { get; set; }
  58. /// <summary>
  59. /// 专业代码
  60. /// </summary>
  61. [DisplayName("专业代码")]
  62. public string StandardCode
  63. {
  64. get
  65. {
  66. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  67. .Where(x => x.Value == StandardID)
  68. .Select(x => x.Code).FirstOrDefault();
  69. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  70. }
  71. }
  72. /// <summary>
  73. /// 专业名称
  74. /// </summary>
  75. [DisplayName("专业名称")]
  76. public string MajorStr
  77. {
  78. get
  79. {
  80. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  81. .Where(x => x.Value == StandardID)
  82. .Select(x => x.Name).FirstOrDefault();
  83. }
  84. }
  85. /// <summary>
  86. /// 培养层次
  87. /// </summary>
  88. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  89. public int? EducationID { get; set; }
  90. /// <summary>
  91. /// 培养层次
  92. /// </summary>
  93. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  94. public string EducationName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  99. .Where(x => x.Value == EducationID)
  100. .Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 学习形式
  105. /// </summary>
  106. [DisplayName("学习形式")]
  107. public int? LearningformID { get; set; }
  108. /// <summary>
  109. /// 学习形式
  110. /// </summary>
  111. [DisplayName("学习形式")]
  112. public string LearningformStr
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  117. .Where(x => x.Value == LearningformID)
  118. .Select(x => x.Name).FirstOrDefault();
  119. }
  120. }
  121. /// <summary>
  122. /// 学制
  123. /// </summary>
  124. [DisplayName("学制")]
  125. public decimal? LearnSystem { get; set; }
  126. /// <summary>
  127. /// 缴费学年
  128. /// </summary>
  129. [Required]
  130. [DisplayName("缴费学年")]
  131. public int? ChargeYear { get; set; }
  132. /// <summary>
  133. /// 收费项目ID
  134. /// </summary>
  135. [Required]
  136. [DisplayName("收费项目ID")]
  137. public Guid? ChargeProjectID { get; set; }
  138. /// <summary>
  139. /// 收费项目
  140. /// </summary>
  141. [Required]
  142. [DisplayName("收费项目")]
  143. public string ChargeProjectStr { get; set; }
  144. /// <summary>
  145. /// 应收金额
  146. /// </summary>
  147. [Required]
  148. [DisplayName("应收金额")]
  149. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  150. public decimal? Amount { get; set; }
  151. /// <summary>
  152. /// 学生人数
  153. /// </summary>
  154. [DisplayName("学生人数")]
  155. public int? StudentCount { get; set; }
  156. /// <summary>
  157. /// 生成人数
  158. /// </summary>
  159. [DisplayName("生成人数")]
  160. public int? StudentChargeCount { get; set; }
  161. /// <summary>
  162. /// 用户ID
  163. /// </summary>
  164. [DisplayName("用户ID")]
  165. public Guid? UserID { get; set; }
  166. /// <summary>
  167. /// 在校状态(用于收费标准新增)
  168. /// </summary>
  169. [DisplayName("在校状态")]
  170. public int? InSchoolStatus { get; set; }
  171. /// <summary>
  172. /// 状态
  173. /// </summary>
  174. [DisplayName("状态")]
  175. public int? RecordStatus { get; set; }
  176. /// <summary>
  177. /// 创建人
  178. /// </summary>
  179. [DisplayName("创建人")]
  180. public Guid? CreateUserID { get; set; }
  181. /// <summary>
  182. /// 创建时间
  183. /// </summary>
  184. [DisplayName("创建时间")]
  185. public DateTime? CreateTime { get; set; }
  186. /// <summary>
  187. /// 修改人
  188. /// </summary>
  189. [DisplayName("修改人")]
  190. public Guid? ModifyUserID { get; set; }
  191. /// <summary>
  192. /// 修改时间
  193. /// </summary>
  194. [DisplayName("修改时间")]
  195. public DateTime? ModifyTime { get; set; }
  196. }
  197. }