StudentChargeView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.Cache;
  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? Sex { 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 == Sex)
  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)
  98. .Select(x => x.Name).FirstOrDefault();
  99. }
  100. }
  101. /// <summary>
  102. /// 班级信息ID
  103. /// </summary>
  104. [DisplayName("班级信息ID")]
  105. public Guid? ClassID { get; set; }
  106. /// <summary>
  107. /// 班级编号
  108. /// </summary>
  109. [DisplayName("班级编号")]
  110. public string ClassNo { get; set; }
  111. /// <summary>
  112. /// 班级名称
  113. /// </summary>
  114. [DisplayName("班级名称")]
  115. public string ClassName { get; set; }
  116. /// <summary>
  117. /// 年级专业ID
  118. /// </summary>
  119. [DisplayName("年级专业ID")]
  120. public Guid? GradeMajorID { get; set; }
  121. /// <summary>
  122. /// 年级专业编号
  123. /// </summary>
  124. [DisplayName("年级专业编号")]
  125. public string GradeMajorCode { get; set; }
  126. /// <summary>
  127. /// 年级专业名称
  128. /// </summary>
  129. [DisplayName("年级专业名称")]
  130. public string GradeMajoyStr { get; set; }
  131. /// <summary>
  132. /// 院系所ID
  133. /// </summary>
  134. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  135. public Guid? CollegeID { get; set; }
  136. /// <summary>
  137. /// 院系所代码
  138. /// </summary>
  139. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  140. public string CollegeCode { get; set; }
  141. /// <summary>
  142. /// 院系所名称
  143. /// </summary>
  144. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  145. public string CollegeStr { get; set; }
  146. /// <summary>
  147. /// 年级
  148. /// </summary>
  149. [DisplayName("年级")]
  150. public int? GradeStr { get; set; }
  151. /// <summary>
  152. /// 专业ID(Value)
  153. /// </summary>
  154. [DisplayName("专业ID(Value)")]
  155. public int? StandardID { get; set; }
  156. /// <summary>
  157. /// 专业代码
  158. /// </summary>
  159. [DisplayName("专业代码")]
  160. public string StandardCode
  161. {
  162. get
  163. {
  164. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  165. .Where(x => x.Value == StandardID)
  166. .Select(x => x.Code).FirstOrDefault();
  167. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  168. }
  169. }
  170. /// <summary>
  171. /// 专业名称
  172. /// </summary>
  173. [DisplayName("专业名称")]
  174. public string MajorStr
  175. {
  176. get
  177. {
  178. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  179. .Where(x => x.Value == StandardID)
  180. .Select(x => x.Name).FirstOrDefault();
  181. }
  182. }
  183. /// <summary>
  184. /// 培养层次
  185. /// </summary>
  186. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  187. public int? EducationID { get; set; }
  188. /// <summary>
  189. /// 培养层次
  190. /// </summary>
  191. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  192. public string EducationName
  193. {
  194. get
  195. {
  196. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  197. .Where(x => x.Value == EducationID)
  198. .Select(x => x.Name).FirstOrDefault();
  199. }
  200. }
  201. /// <summary>
  202. /// 培养层次
  203. /// </summary>
  204. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  205. public string EducationStr { get; set; }
  206. /// <summary>
  207. /// 学习形式
  208. /// </summary>
  209. [DisplayName("学习形式")]
  210. public int? LearningformID { get; set; }
  211. /// <summary>
  212. /// 学习形式
  213. /// </summary>
  214. [DisplayName("学习形式")]
  215. public string LearningformName
  216. {
  217. get
  218. {
  219. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  220. .Where(x => x.Value == LearningformID)
  221. .Select(x => x.Name).FirstOrDefault();
  222. }
  223. }
  224. /// <summary>
  225. /// 学习形式
  226. /// </summary>
  227. [DisplayName("学习形式")]
  228. public string LearningformStr { get; set; }
  229. /// <summary>
  230. /// 学制
  231. /// </summary>
  232. [DisplayName("学制")]
  233. public decimal? LearnSystem { get; set; }
  234. /// <summary>
  235. /// 缴费学年
  236. /// </summary>
  237. [Required]
  238. [DisplayName("缴费学年")]
  239. public int? ChargeYear { get; set; }
  240. /// <summary>
  241. /// 收费项目ID
  242. /// </summary>
  243. [Required]
  244. [DisplayName("收费项目ID")]
  245. public Guid? ChargeProjectID { get; set; }
  246. /// <summary>
  247. /// 收费项目
  248. /// </summary>
  249. [DisplayName("收费项目")]
  250. public string ChargeProjectStr { get; set; }
  251. /// <summary>
  252. /// 应收金额
  253. /// </summary>
  254. [Required]
  255. [DisplayName("应收金额")]
  256. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  257. public decimal? Amount { get; set; }
  258. /// <summary>
  259. /// 调整金额
  260. /// </summary>
  261. [DisplayName("调整金额")]
  262. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  263. public decimal? ChargeAmount { get; set; }
  264. /// <summary>
  265. /// 实收金额(减免后的实收金额)
  266. /// </summary>
  267. [Required]
  268. [DisplayName("实收金额")]
  269. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  270. public decimal? ActualAmount { get; set; }
  271. /// <summary>
  272. /// 缴费标记
  273. /// </summary>
  274. [Required]
  275. [DisplayName("缴费标记")]
  276. public int? ChargeTag { get; set; }
  277. /// <summary>
  278. /// 缴费标记
  279. /// </summary>
  280. [DisplayName("缴费标记")]
  281. public string ChargeTagName
  282. {
  283. get
  284. {
  285. return IdNameExt.GetDictionaryItem(DictionaryItem.EC_ChargeTag.ToString())
  286. .Where(x => x.Value == ChargeTag)
  287. .Select(x => x.Name).FirstOrDefault();
  288. }
  289. }
  290. /// <summary>
  291. /// 已缴金额
  292. /// </summary>
  293. [DisplayName("已缴金额")]
  294. public decimal? PaidAmount { get; set; }
  295. /// <summary>
  296. /// 欠费状态
  297. /// </summary>
  298. [DisplayName("欠费状态")]
  299. public int? IsArrear { get; set; }
  300. /// <summary>
  301. /// 欠费状态
  302. /// </summary>
  303. [DisplayName("欠费状态")]
  304. public string IsArrearName
  305. {
  306. get
  307. {
  308. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  309. .Where(x => x.Value == IsArrear)
  310. .Select(x => x.Name).FirstOrDefault();
  311. }
  312. }
  313. /// <summary>
  314. /// 是否圆梦计划
  315. /// </summary>
  316. [DisplayName("是否圆梦计划")]
  317. public int? IsDream { get; set; }
  318. /// <summary>
  319. /// 是否圆梦计划
  320. /// </summary>
  321. [DisplayName("是否圆梦计划")]
  322. public string IsDreamProject
  323. {
  324. get
  325. {
  326. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  327. .Where(x => x.Value == IsDream)
  328. .Select(x => x.Name).FirstOrDefault();
  329. }
  330. }
  331. /// <summary>
  332. /// 备注
  333. /// </summary>
  334. [DisplayName("备注")]
  335. public string Remark { get; set; }
  336. /// <summary>
  337. /// 状态
  338. /// </summary>
  339. [DisplayName("状态")]
  340. public int? RecordStatus { get; set; }
  341. /// <summary>
  342. /// 创建人ID
  343. /// </summary>
  344. [DisplayName("创建人ID")]
  345. public Guid? CreateUserID { get; set; }
  346. /// <summary>
  347. /// 创建时间
  348. /// </summary>
  349. [DisplayName("创建时间")]
  350. public DateTime? CreateTime { get; set; }
  351. /// <summary>
  352. /// 修改人ID
  353. /// </summary>
  354. [DisplayName("修改人ID")]
  355. public Guid? ModifyUserID { get; set; }
  356. /// <summary>
  357. /// 修改时间
  358. /// </summary>
  359. [DisplayName("修改时间")]
  360. public DateTime? ModifyTime { get; set; }
  361. }
  362. }