StudentChargeView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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 StudentChargeView
  11. {
  12. /// <summary>
  13. /// 应收名单ID
  14. /// </summary>
  15. [DisplayName("应收名单ID")]
  16. public Guid StudentChargeID { get; set; }
  17. /// <summary>
  18. /// 用户ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("用户ID")]
  22. public Guid? UserID { get; set; }
  23. /// <summary>
  24. /// 学号
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学号")]
  28. public string StudentNo { get; set; }
  29. /// <summary>
  30. /// 姓名
  31. /// </summary>
  32. [DisplayName("姓名")]
  33. public string UserName { get; set; }
  34. /// <summary>
  35. /// 性别
  36. /// </summary>
  37. [DisplayName("性别")]
  38. public int? SexID { get; set; }
  39. /// <summary>
  40. /// 性别
  41. /// </summary>
  42. [DisplayName("性别")]
  43. public string SexName
  44. {
  45. get
  46. {
  47. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  48. .Where(x => x.Value == SexID)
  49. .Select(x => x.Name).FirstOrDefault();
  50. }
  51. }
  52. /// <summary>
  53. /// 在校状态
  54. /// </summary>
  55. [DisplayName("在校状态")]
  56. public int? InSchoolStatusID { get; set; }
  57. /// <summary>
  58. /// 在校状态
  59. /// </summary>
  60. [DisplayName("在校状态")]
  61. public string InSchoolStatusIDStr
  62. {
  63. get
  64. {
  65. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  66. .Where(x => x.Value == InSchoolStatusID)
  67. .Select(x => x.Name).FirstOrDefault();
  68. }
  69. }
  70. /// <summary>
  71. /// 在校状态
  72. /// </summary>
  73. [DisplayName("在校状态")]
  74. public string InSchoolStatusName
  75. {
  76. get
  77. {
  78. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  79. .Where(x => x.Value == InSchoolStatusID)
  80. .Select(x => x.Name).FirstOrDefault();
  81. }
  82. }
  83. /// <summary>
  84. /// 学籍状态
  85. /// </summary>
  86. [DisplayName("学籍状态")]
  87. public int? StudentStatusID { get; set; }
  88. /// <summary>
  89. /// 学籍状态
  90. /// </summary>
  91. [DisplayName("学籍状态")]
  92. public string StudentStatusName
  93. {
  94. get
  95. {
  96. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  97. .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  98. }
  99. }
  100. /// <summary>
  101. /// 班级信息ID
  102. /// </summary>
  103. [DisplayName("班级信息ID")]
  104. public Guid? ClassID { get; set; }
  105. /// <summary>
  106. /// 班级编号
  107. /// </summary>
  108. [DisplayName("班级编号")]
  109. public string ClassNo { get; set; }
  110. /// <summary>
  111. /// 班级名称
  112. /// </summary>
  113. [DisplayName("班级名称")]
  114. public string ClassName { get; set; }
  115. /// <summary>
  116. /// 年级专业ID
  117. /// </summary>
  118. [DisplayName("年级专业ID")]
  119. public Guid? GradeMajorID { get; set; }
  120. /// <summary>
  121. /// 年级专业编号
  122. /// </summary>
  123. [DisplayName("年级专业编号")]
  124. public string GradeMajorCode { get; set; }
  125. /// <summary>
  126. /// 年级专业名称
  127. /// </summary>
  128. [DisplayName("年级专业名称")]
  129. public string GradeMajoyStr { get; set; }
  130. /// <summary>
  131. /// 院系所ID
  132. /// </summary>
  133. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  134. public Guid? CollegeID { get; set; }
  135. /// <summary>
  136. /// 院系所代码
  137. /// </summary>
  138. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  139. public string CollegeCode { get; set; }
  140. /// <summary>
  141. /// 院系所名称
  142. /// </summary>
  143. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  144. public string CollegeStr { get; set; }
  145. /// <summary>
  146. /// 年级
  147. /// </summary>
  148. [DisplayName("年级")]
  149. public int? GradeStr { get; set; }
  150. /// <summary>
  151. /// 专业ID(Value)
  152. /// </summary>
  153. [DisplayName("专业ID(Value)")]
  154. public int? StandardID { get; set; }
  155. /// <summary>
  156. /// 专业代码
  157. /// </summary>
  158. [DisplayName("专业代码")]
  159. public string StandardCode
  160. {
  161. get
  162. {
  163. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  164. .Where(x => x.Value == StandardID)
  165. .Select(x => x.Code).FirstOrDefault();
  166. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  167. }
  168. }
  169. /// <summary>
  170. /// 专业名称
  171. /// </summary>
  172. [DisplayName("专业名称")]
  173. public string MajorStr
  174. {
  175. get
  176. {
  177. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  178. .Where(x => x.Value == StandardID)
  179. .Select(x => x.Name).FirstOrDefault();
  180. }
  181. }
  182. /// <summary>
  183. /// 培养层次
  184. /// </summary>
  185. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  186. public int? EducationID { get; set; }
  187. /// <summary>
  188. /// 培养层次
  189. /// </summary>
  190. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  191. public string EducationName
  192. {
  193. get
  194. {
  195. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  196. .Where(x => x.Value == EducationID)
  197. .Select(x => x.Name).FirstOrDefault();
  198. }
  199. }
  200. /// <summary>
  201. /// 培养层次
  202. /// </summary>
  203. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  204. public string EducationStr { get; set; }
  205. /// <summary>
  206. /// 学习形式
  207. /// </summary>
  208. [DisplayName("学习形式")]
  209. public int? LearningformID { get; set; }
  210. /// <summary>
  211. /// 学习形式
  212. /// </summary>
  213. [DisplayName("学习形式")]
  214. public string LearningformName
  215. {
  216. get
  217. {
  218. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  219. .Where(x => x.Value == LearningformID)
  220. .Select(x => x.Name).FirstOrDefault();
  221. }
  222. }
  223. /// <summary>
  224. /// 学习形式
  225. /// </summary>
  226. [DisplayName("学习形式")]
  227. public string LearningformStr { get; set; }
  228. /// <summary>
  229. /// 学制
  230. /// </summary>
  231. [DisplayName("学制")]
  232. public decimal? LearnSystem { get; set; }
  233. /// <summary>
  234. /// 缴费学年
  235. /// </summary>
  236. [Required]
  237. [DisplayName("缴费学年")]
  238. public int? ChargeYear { get; set; }
  239. /// <summary>
  240. /// 收费项目ID
  241. /// </summary>
  242. [Required]
  243. [DisplayName("收费项目ID")]
  244. public Guid? ChargeProjectID { get; set; }
  245. /// <summary>
  246. /// 收费项目
  247. /// </summary>
  248. [DisplayName("收费项目")]
  249. public string ChargeProjectStr { get; set; }
  250. /// <summary>
  251. /// 应收金额
  252. /// </summary>
  253. [Required]
  254. [DisplayName("应收金额")]
  255. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  256. public decimal? Amount { get; set; }
  257. /// <summary>
  258. /// 调整金额
  259. /// </summary>
  260. [DisplayName("调整金额")]
  261. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  262. public decimal? ChargeAmount { get; set; }
  263. /// <summary>
  264. /// 实收金额(减免后的实收金额)
  265. /// </summary>
  266. [Required]
  267. [DisplayName("实收金额")]
  268. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  269. public decimal? ActualAmount { get; set; }
  270. /// <summary>
  271. /// 缴费标记
  272. /// </summary>
  273. [Required]
  274. [DisplayName("缴费标记")]
  275. public int? ChargeTag { get; set; }
  276. /// <summary>
  277. /// 缴费标记
  278. /// </summary>
  279. [DisplayName("缴费标记")]
  280. public string ChargeTagName
  281. {
  282. get
  283. {
  284. return IdNameExt.GetDictionaryItem(DictionaryItem.EC_ChargeTag.ToString())
  285. .Where(x => x.Value == ChargeTag)
  286. .Select(x => x.Name).FirstOrDefault();
  287. }
  288. }
  289. /// <summary>
  290. /// 已缴金额
  291. /// </summary>
  292. [DisplayName("已缴金额")]
  293. public decimal? PaidAmount { get; set; }
  294. /// <summary>
  295. /// 欠费状态
  296. /// </summary>
  297. [DisplayName("欠费状态")]
  298. public int? IsArrear { get; set; }
  299. /// <summary>
  300. /// 欠费状态
  301. /// </summary>
  302. [DisplayName("欠费状态")]
  303. public string IsArrearName
  304. {
  305. get
  306. {
  307. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  308. .Where(x => x.Value == IsArrear)
  309. .Select(x => x.Name).FirstOrDefault();
  310. }
  311. }
  312. /// <summary>
  313. /// 是否圆梦计划
  314. /// </summary>
  315. [DisplayName("是否圆梦计划")]
  316. public int? IsDream { get; set; }
  317. /// <summary>
  318. /// 是否圆梦计划
  319. /// </summary>
  320. [DisplayName("是否圆梦计划")]
  321. public string IsDreamProject
  322. {
  323. get
  324. {
  325. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  326. .Where(x => x.Value == IsDream)
  327. .Select(x => x.Name).FirstOrDefault();
  328. }
  329. }
  330. /// <summary>
  331. /// 备注
  332. /// </summary>
  333. [DisplayName("备注")]
  334. public string Remark { get; set; }
  335. /// <summary>
  336. /// 状态
  337. /// </summary>
  338. [DisplayName("状态")]
  339. public int? RecordStatus { get; set; }
  340. /// <summary>
  341. /// 创建人ID
  342. /// </summary>
  343. [DisplayName("创建人ID")]
  344. public Guid? CreateUserID { get; set; }
  345. /// <summary>
  346. /// 创建时间
  347. /// </summary>
  348. [DisplayName("创建时间")]
  349. public DateTime? CreateTime { get; set; }
  350. /// <summary>
  351. /// 修改人ID
  352. /// </summary>
  353. [DisplayName("修改人ID")]
  354. public Guid? ModifyUserID { get; set; }
  355. /// <summary>
  356. /// 修改时间
  357. /// </summary>
  358. [DisplayName("修改时间")]
  359. public DateTime? ModifyTime { get; set; }
  360. }
  361. }