ArrearsListView.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.ChargeManage.ArrearsSituation
  9. {
  10. public class ArrearsListView
  11. {
  12. /// <summary>
  13. /// 应收名单ID
  14. /// </summary>
  15. [DisplayName("应收名单ID")]
  16. public Guid? StudentChargeID { get; set; }
  17. /// <summary>
  18. /// 用户ID
  19. /// </summary>
  20. [DisplayName("用户ID")]
  21. public Guid? UserID { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string StudentNo { get; set; }
  27. /// <summary>
  28. /// 姓名
  29. /// </summary>
  30. [DisplayName("姓名")]
  31. public string UserName { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [DisplayName("性别")]
  36. public int? SexID { get; set; }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [DisplayName("性别")]
  41. public string SexName
  42. {
  43. get
  44. {
  45. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  46. .Where(x => x.Value == SexID)
  47. .Select(x => x.Name).FirstOrDefault();
  48. }
  49. }
  50. /// <summary>
  51. /// 在校状态
  52. /// </summary>
  53. [DisplayName("在校状态")]
  54. public int? InSchoolStatus { get; set; }
  55. /// <summary>
  56. /// 在校状态
  57. /// </summary>
  58. [DisplayName("在校状态")]
  59. public string InSchoolStatusName
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  64. .Where(x => x.Value == InSchoolStatus)
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. /// <summary>
  69. /// 学籍状态
  70. /// </summary>
  71. [DisplayName("学籍状态")]
  72. public int? StudentStatus { get; set; }
  73. /// <summary>
  74. /// 学籍状态
  75. /// </summary>
  76. [DisplayName("学籍状态")]
  77. public string StudentStatusName
  78. {
  79. get
  80. {
  81. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  82. .Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  83. }
  84. }
  85. /// <summary>
  86. /// 班级信息ID
  87. /// </summary>
  88. [DisplayName("班级信息ID")]
  89. public Guid? ClassID { get; set; }
  90. /// <summary>
  91. /// 班级编号
  92. /// </summary>
  93. [DisplayName("班级编号")]
  94. public string ClassNo { get; set; }
  95. /// <summary>
  96. /// 班级名称
  97. /// </summary>
  98. [DisplayName("班级名称")]
  99. public string ClassName { get; set; }
  100. /// <summary>
  101. /// 年级专业ID
  102. /// </summary>
  103. [DisplayName("年级专业ID")]
  104. public Guid? GradeMajorID { get; set; }
  105. /// <summary>
  106. /// 年级专业编号
  107. /// </summary>
  108. [DisplayName("年级专业编号")]
  109. public string GradeMajorCode { get; set; }
  110. /// <summary>
  111. /// 年级专业名称
  112. /// </summary>
  113. [DisplayName("年级专业名称")]
  114. public string GrademajorStr { get; set; }
  115. /// <summary>
  116. /// 院系所ID
  117. /// </summary>
  118. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  119. public Guid? CollegeID { get; set; }
  120. /// <summary>
  121. /// 院系所代码
  122. /// </summary>
  123. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  124. public string CollegeCode { get; set; }
  125. /// <summary>
  126. /// 院系所
  127. /// </summary>
  128. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  129. public string CollegeStr { get; set; }
  130. /// <summary>
  131. /// 年级
  132. /// </summary>
  133. [DisplayName("年级")]
  134. public int? GradeStr { get; set; }
  135. /// <summary>
  136. /// 专业ID(Value)
  137. /// </summary>
  138. [DisplayName("专业ID(Value)")]
  139. public int? StandardID { get; set; }
  140. /// <summary>
  141. /// 专业代码
  142. /// </summary>
  143. [DisplayName("专业代码")]
  144. public string StandardCode
  145. {
  146. get
  147. {
  148. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  149. .Where(x => x.Value == StandardID)
  150. .Select(x => x.Code).FirstOrDefault();
  151. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  152. }
  153. }
  154. /// <summary>
  155. /// 专业名称
  156. /// </summary>
  157. [DisplayName("专业名称")]
  158. public string MajorStr
  159. {
  160. get
  161. {
  162. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  163. .Where(x => x.Value == StandardID)
  164. .Select(x => x.Name).FirstOrDefault();
  165. }
  166. }
  167. /// <summary>
  168. /// 培养层次
  169. /// </summary>
  170. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  171. public int? EducationID { get; set; }
  172. /// <summary>
  173. /// 培养层次
  174. /// </summary>
  175. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  176. public string EducationName
  177. {
  178. get
  179. {
  180. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  181. .Where(x => x.Value == EducationID)
  182. .Select(x => x.Name).FirstOrDefault();
  183. }
  184. }
  185. /// <summary>
  186. /// 学习形式
  187. /// </summary>
  188. [DisplayName("学习形式")]
  189. public int? LearningformID { get; set; }
  190. /// <summary>
  191. /// 学习形式
  192. /// </summary>
  193. [DisplayName("学习形式")]
  194. public string LearningformName
  195. {
  196. get
  197. {
  198. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  199. .Where(x => x.Value == LearningformID)
  200. .Select(x => x.Name).FirstOrDefault();
  201. }
  202. }
  203. /// <summary>
  204. /// 学制
  205. /// </summary>
  206. [DisplayName("学制")]
  207. public decimal? LearnSystem { get; set; }
  208. /// <summary>
  209. /// 缴费学年
  210. /// </summary>
  211. [DisplayName("缴费学年")]
  212. public int? ChargeYear { get; set; }
  213. /// <summary>
  214. /// 应收金额
  215. /// </summary>
  216. [DisplayName("应收金额")]
  217. public decimal? Amount { get; set; }
  218. /// <summary>
  219. /// 调整金额
  220. /// </summary>
  221. [DisplayName("调整金额")]
  222. public decimal? ChargeAmount { get; set; }
  223. /// <summary>
  224. /// 实收金额(减免后的实收金额)
  225. /// </summary>
  226. [DisplayName("实收金额")]
  227. public decimal? ActualAmount { get; set; }
  228. /// <summary>
  229. /// 缓交金额
  230. /// </summary>
  231. [DisplayName("缓交金额")]
  232. public decimal? DelayAmount { get; set; }
  233. /// <summary>
  234. /// 已缴金额
  235. /// </summary>
  236. [DisplayName("已缴金额")]
  237. public decimal? PaidAmount { get; set; }
  238. /// <summary>
  239. /// 欠费状态
  240. /// </summary>
  241. [DisplayName("欠费状态")]
  242. public int? IsArrear { get; set; }
  243. /// <summary>
  244. /// 欠费状态
  245. /// </summary>
  246. [DisplayName("欠费状态")]
  247. public string IsArrearName
  248. {
  249. get
  250. {
  251. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  252. .Where(x => x.Value == IsArrear)
  253. .Select(x => x.Name).FirstOrDefault();
  254. }
  255. }
  256. /// <summary>
  257. /// 欠费金额
  258. /// </summary>
  259. [DisplayName("欠费金额")]
  260. public decimal? AmountSum { get; set; }
  261. /// <summary>
  262. /// 登录控制(个性化控制登录)
  263. /// </summary>
  264. [DisplayName("登录控制")]
  265. public int? IsControl { get; set; }
  266. /// <summary>
  267. /// 登录控制(个性化控制登录)
  268. /// </summary>
  269. [DisplayName("登录控制")]
  270. public string IsControlName
  271. {
  272. get
  273. {
  274. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  275. .Where(x => x.Value == IsControl)
  276. .Select(x => x.Name).FirstOrDefault();
  277. }
  278. }
  279. /// <summary>
  280. /// 备注
  281. /// </summary>
  282. [DisplayName("备注")]
  283. public string Remark { get; set; }
  284. }
  285. }