StudentChargePaymenView.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.ChargeManage.ChargeSituation
  9. {
  10. public class StudentChargePaymenView
  11. {
  12. /// <summary>
  13. /// 学生缴费ID
  14. /// </summary>
  15. [DisplayName("学生缴费ID")]
  16. public Guid StudentChargePaymentID { get; set; }
  17. /// <summary>
  18. /// 应收名单ID
  19. /// </summary>
  20. [DisplayName("应收名单ID")]
  21. public Guid? StudentChargeID { get; set; }
  22. /// <summary>
  23. /// 用户ID
  24. /// </summary>
  25. [Required]
  26. [DisplayName("学号")]
  27. public Guid? UserID { get; set; }
  28. /// <summary>
  29. /// 学号
  30. /// </summary>
  31. [DisplayName("学号")]
  32. public string StudentNo { 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? SexID { 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 == SexID)
  53. .Select(x => x.Name).FirstOrDefault();
  54. }
  55. }
  56. /// <summary>
  57. /// 在校状态
  58. /// </summary>
  59. [DisplayName("在校状态")]
  60. public int? InSchoolStatusID { 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 == InSchoolStatusID)
  71. .Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 学籍状态
  76. /// </summary>
  77. [DisplayName("学籍状态")]
  78. public int? StudentStatusID { 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 == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  89. }
  90. }
  91. /// <summary>
  92. /// 院系所ID
  93. /// </summary>
  94. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  95. public Guid? CollegeID { get; set; }
  96. /// <summary>
  97. /// 院系所代码
  98. /// </summary>
  99. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  100. public string CollegeCode { get; set; }
  101. /// <summary>
  102. /// 院系所名称
  103. /// </summary>
  104. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  105. public string CollegeName { get; set; }
  106. /// <summary>
  107. /// 班级信息ID
  108. /// </summary>
  109. [DisplayName("班级信息ID")]
  110. public Guid? ClassID { get; set; }
  111. /// <summary>
  112. /// 班级编号
  113. /// </summary>
  114. [DisplayName("班级编号")]
  115. public string ClassNo { get; set; }
  116. /// <summary>
  117. /// 班级名称
  118. /// </summary>
  119. [DisplayName("班级名称")]
  120. public string ClassName { get; set; }
  121. /// <summary>
  122. /// 年级专业ID
  123. /// </summary>
  124. [DisplayName("年级专业ID")]
  125. public Guid? GradeMajorID { get; set; }
  126. /// <summary>
  127. /// 年级专业代码
  128. /// </summary>
  129. [DisplayName("年级专业代码")]
  130. public string GradeMajorCode { get; set; }
  131. /// <summary>
  132. /// 年级专业名称
  133. /// </summary>
  134. [DisplayName("年级专业名称")]
  135. public string GradeMajorStr { get; set; }
  136. /// <summary>
  137. /// 年级
  138. /// </summary>
  139. [DisplayName("年级")]
  140. public int? GradeStr { get; set; }
  141. /// <summary>
  142. /// 专业ID(Value)
  143. /// </summary>
  144. [DisplayName("专业ID(Value)")]
  145. public int? StandardID { get; set; }
  146. /// <summary>
  147. /// 专业代码
  148. /// </summary>
  149. [DisplayName("专业代码")]
  150. public string StandardCode
  151. {
  152. get
  153. {
  154. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  155. .Where(x => x.Value == StandardID)
  156. .Select(x => x.Code).FirstOrDefault();
  157. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  158. }
  159. }
  160. /// <summary>
  161. /// 专业名称
  162. /// </summary>
  163. [DisplayName("专业名称")]
  164. public string MajorStr
  165. {
  166. get
  167. {
  168. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  169. .Where(x => x.Value == StandardID)
  170. .Select(x => x.Name).FirstOrDefault();
  171. }
  172. }
  173. /// <summary>
  174. /// 培养层次
  175. /// </summary>
  176. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  177. public int? EducationID { get; set; }
  178. /// <summary>
  179. /// 培养层次
  180. /// </summary>
  181. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  182. public string EducationName
  183. {
  184. get
  185. {
  186. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  187. .Where(x => x.Value == EducationID)
  188. .Select(x => x.Name).FirstOrDefault();
  189. }
  190. }
  191. /// 培养层次
  192. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  193. public string EducationStr { get; set; }
  194. /// <summary>
  195. /// 学习形式
  196. /// </summary>
  197. [DisplayName("学习形式")]
  198. public int? LearningformID { get; set; }
  199. /// <summary>
  200. /// 学习形式
  201. /// </summary>
  202. [DisplayName("学习形式")]
  203. public string LearningformName
  204. {
  205. get
  206. {
  207. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  208. .Where(x => x.Value == LearningformID)
  209. .Select(x => x.Name).FirstOrDefault();
  210. }
  211. }
  212. /// <summary>
  213. /// 学制
  214. /// </summary>
  215. [DisplayName("学制")]
  216. public decimal? LearnSystem { get; set; }
  217. /// <summary>
  218. /// 缴费学年
  219. /// </summary>
  220. [Required]
  221. [DisplayName("缴费学年")]
  222. public int? ChargeYear { get; set; }
  223. /// <summary>
  224. /// 缴费学年
  225. /// </summary>
  226. [DisplayName("缴费学年")]
  227. public string ChargeYearStr { get; set; }
  228. /// <summary>
  229. /// 收费项目ID
  230. /// </summary>
  231. [Required]
  232. [DisplayName("收费项目")]
  233. public Guid? ChargeProjectID { get; set; }
  234. /// <summary>
  235. /// 收费项目
  236. /// </summary>
  237. [DisplayName("收费项目")]
  238. public string ChargeProjectStr { get; set; }
  239. /// <summary>
  240. /// 应收金额(应收名单对应的应收金额、收费标准对应的应收金额)
  241. /// </summary>
  242. [Required]
  243. [DisplayName("应收金额")]
  244. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  245. public decimal? StandardAmount { get; set; }
  246. /// <summary>
  247. /// 调整金额
  248. /// </summary>
  249. [Required]
  250. [DisplayName("调整金额")]
  251. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  252. public decimal? ChargeAmount { get; set; }
  253. /// <summary>
  254. /// 实收金额(应收名单对应的减免后金额)
  255. /// </summary>
  256. [Required]
  257. [DisplayName("实收金额")]
  258. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  259. public decimal? ActualAmount { get; set; }
  260. /// <summary>
  261. /// 缴费标记
  262. /// </summary>
  263. [Required]
  264. [DisplayName("缴费标记")]
  265. public int? ChargeTag { get; set; }
  266. /// <summary>
  267. /// 缴费标记
  268. /// </summary>
  269. [DisplayName("缴费标记")]
  270. public string ChargeTagName
  271. {
  272. get
  273. {
  274. return IdNameExt.GetDictionaryItem(DictionaryItem.EC_ChargeTag.ToString())
  275. .Where(x => x.Value == ChargeTag)
  276. .Select(x => x.Name).FirstOrDefault();
  277. }
  278. }
  279. /// <summary>
  280. /// 已缴金额
  281. /// </summary>
  282. [Required]
  283. [DisplayName("已缴金额")]
  284. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入金额")]
  285. public decimal? PaidAmount { get; set; }
  286. /// <summary>
  287. /// 已缴总金额
  288. /// </summary>
  289. [DisplayName("已缴总金额")]
  290. public decimal? AmountSum { get; set; }
  291. /// <summary>
  292. /// 缴费金额(正浮点数)
  293. /// </summary>
  294. [Required]
  295. [DisplayName("缴费金额")]
  296. [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入缴费金额")]
  297. public decimal? Amount { get; set; }
  298. /// <summary>
  299. /// 缴费金额
  300. /// </summary>
  301. [DisplayName("缴费金额")]
  302. [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入缴费金额")]
  303. public string AmountStr { get; set; }
  304. /// <summary>
  305. /// 缴费日期
  306. /// </summary>
  307. [Required]
  308. [DisplayName("缴费日期")]
  309. public DateTime? ChargeDate { get; set; }
  310. /// <summary>
  311. /// 缴费日期
  312. /// </summary>
  313. [DisplayName("缴费日期")]
  314. public string ChargeDateStr { get; set; }
  315. /// <summary>
  316. /// 是否圆梦计划
  317. /// </summary>
  318. [DisplayName("是否圆梦计划")]
  319. public int? IsDream { get; set; }
  320. /// <summary>
  321. /// 是否圆梦计划
  322. /// </summary>
  323. [DisplayName("是否圆梦计划")]
  324. public string IsDreamProject
  325. {
  326. get
  327. {
  328. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  329. .Where(x => x.Value == IsDream)
  330. .Select(x => x.Name).FirstOrDefault();
  331. }
  332. }
  333. /// <summary>
  334. /// 状态
  335. /// </summary>
  336. [DisplayName("状态")]
  337. public int? RecordStatus { get; set; }
  338. /// <summary>
  339. /// 备注
  340. /// </summary>
  341. [DisplayName("备注")]
  342. public string Remark { get; set; }
  343. /// <summary>
  344. /// 错误信息
  345. /// </summary>
  346. [DisplayName("错误信息")]
  347. public string ErrorMessage { get; set; }
  348. private bool _isExcelVaildateOK = true;
  349. /// <summary>
  350. /// Excel验证是否通过,默认为true
  351. /// <para>true:通过;false:不通过</para>
  352. /// </summary>
  353. public bool IsExcelVaildateOK
  354. {
  355. get { return _isExcelVaildateOK; }
  356. set { _isExcelVaildateOK = value; }
  357. }
  358. /// <summary>
  359. /// 创建人ID
  360. /// </summary>
  361. [DisplayName("创建人ID")]
  362. public Guid? CreateUserID { get; set; }
  363. /// <summary>
  364. /// 创建时间
  365. /// </summary>
  366. [DisplayName("创建时间")]
  367. public DateTime? CreateTime { get; set; }
  368. /// <summary>
  369. /// 修改人ID
  370. /// </summary>
  371. [DisplayName("修改人")]
  372. public Guid? ModifyUserID { get; set; }
  373. /// <summary>
  374. /// 修改时间
  375. /// </summary>
  376. [DisplayName("修改时间")]
  377. public DateTime? ModifyTime { get; set; }
  378. }
  379. }