ChargeAggregateView.cs 10 KB

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