ArrearsListView.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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.Cache;
  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? Sex { 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 == Sex)
  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)
  83. .Select(x => x.Name).FirstOrDefault();
  84. }
  85. }
  86. /// <summary>
  87. /// 班级信息ID
  88. /// </summary>
  89. [DisplayName("班级信息ID")]
  90. public Guid? ClassID { get; set; }
  91. /// <summary>
  92. /// 班级编号
  93. /// </summary>
  94. [DisplayName("班级编号")]
  95. public string ClassNo { get; set; }
  96. /// <summary>
  97. /// 班级名称
  98. /// </summary>
  99. [DisplayName("班级名称")]
  100. public string ClassName { get; set; }
  101. /// <summary>
  102. /// 年级专业ID
  103. /// </summary>
  104. [DisplayName("年级专业ID")]
  105. public Guid? GradeMajorID { get; set; }
  106. /// <summary>
  107. /// 年级专业编号
  108. /// </summary>
  109. [DisplayName("年级专业编号")]
  110. public string GradeMajorCode { get; set; }
  111. /// <summary>
  112. /// 年级专业名称
  113. /// </summary>
  114. [DisplayName("年级专业名称")]
  115. public string GrademajorStr { get; set; }
  116. /// <summary>
  117. /// 院系所ID
  118. /// </summary>
  119. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  120. public Guid? CollegeID { get; set; }
  121. /// <summary>
  122. /// 院系所代码
  123. /// </summary>
  124. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  125. public string CollegeCode { get; set; }
  126. /// <summary>
  127. /// 院系所
  128. /// </summary>
  129. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  130. public string CollegeStr { get; set; }
  131. /// <summary>
  132. /// 年级
  133. /// </summary>
  134. [DisplayName("年级")]
  135. public int? GradeStr { get; set; }
  136. /// <summary>
  137. /// 专业ID(Value)
  138. /// </summary>
  139. [DisplayName("专业ID(Value)")]
  140. public int? StandardID { get; set; }
  141. /// <summary>
  142. /// 专业代码
  143. /// </summary>
  144. [DisplayName("专业代码")]
  145. public string StandardCode
  146. {
  147. get
  148. {
  149. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  150. .Where(x => x.Value == StandardID)
  151. .Select(x => x.Code).FirstOrDefault();
  152. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  153. }
  154. }
  155. /// <summary>
  156. /// 专业名称
  157. /// </summary>
  158. [DisplayName("专业名称")]
  159. public string MajorStr
  160. {
  161. get
  162. {
  163. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  164. .Where(x => x.Value == StandardID)
  165. .Select(x => x.Name).FirstOrDefault();
  166. }
  167. }
  168. /// <summary>
  169. /// 培养层次
  170. /// </summary>
  171. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  172. public int? EducationID { get; set; }
  173. /// <summary>
  174. /// 培养层次
  175. /// </summary>
  176. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  177. public string EducationName
  178. {
  179. get
  180. {
  181. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  182. .Where(x => x.Value == EducationID)
  183. .Select(x => x.Name).FirstOrDefault();
  184. }
  185. }
  186. /// <summary>
  187. /// 学习形式
  188. /// </summary>
  189. [DisplayName("学习形式")]
  190. public int? LearningformID { get; set; }
  191. /// <summary>
  192. /// 学习形式
  193. /// </summary>
  194. [DisplayName("学习形式")]
  195. public string LearningformName
  196. {
  197. get
  198. {
  199. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  200. .Where(x => x.Value == LearningformID)
  201. .Select(x => x.Name).FirstOrDefault();
  202. }
  203. }
  204. /// <summary>
  205. /// 学制
  206. /// </summary>
  207. [DisplayName("学制")]
  208. public decimal? LearnSystem { get; set; }
  209. /// <summary>
  210. /// 缴费学年
  211. /// </summary>
  212. [DisplayName("缴费学年")]
  213. public int? ChargeYear { get; set; }
  214. /// <summary>
  215. /// 应收金额
  216. /// </summary>
  217. [DisplayName("应收金额")]
  218. public decimal? Amount { get; set; }
  219. /// <summary>
  220. /// 调整金额
  221. /// </summary>
  222. [DisplayName("调整金额")]
  223. public decimal? ChargeAmount { get; set; }
  224. /// <summary>
  225. /// 实收金额(减免后的实收金额)
  226. /// </summary>
  227. [DisplayName("实收金额")]
  228. public decimal? ActualAmount { get; set; }
  229. /// <summary>
  230. /// 缓交金额
  231. /// </summary>
  232. [DisplayName("缓交金额")]
  233. public decimal? DelayAmount { get; set; }
  234. /// <summary>
  235. /// 已缴金额
  236. /// </summary>
  237. [DisplayName("已缴金额")]
  238. public decimal? PaidAmount { get; set; }
  239. /// <summary>
  240. /// 欠费状态
  241. /// </summary>
  242. [DisplayName("欠费状态")]
  243. public int? IsArrear { get; set; }
  244. /// <summary>
  245. /// 欠费状态
  246. /// </summary>
  247. [DisplayName("欠费状态")]
  248. public string IsArrearName
  249. {
  250. get
  251. {
  252. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  253. .Where(x => x.Value == IsArrear)
  254. .Select(x => x.Name).FirstOrDefault();
  255. }
  256. }
  257. /// <summary>
  258. /// 欠费金额
  259. /// </summary>
  260. [DisplayName("欠费金额")]
  261. public decimal? AmountSum { get; set; }
  262. /// <summary>
  263. /// 登录控制(个性化控制登录)
  264. /// </summary>
  265. [DisplayName("登录控制")]
  266. public int? IsControl { get; set; }
  267. /// <summary>
  268. /// 登录控制(个性化控制登录)
  269. /// </summary>
  270. [DisplayName("登录控制")]
  271. public string IsControlName
  272. {
  273. get
  274. {
  275. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  276. .Where(x => x.Value == IsControl)
  277. .Select(x => x.Name).FirstOrDefault();
  278. }
  279. }
  280. /// <summary>
  281. /// 备注
  282. /// </summary>
  283. [DisplayName("备注")]
  284. public string Remark { get; set; }
  285. }
  286. }