ChargeDelayView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.ChargeManage.ChargeSituation
  9. {
  10. public class ChargeDelayView
  11. {
  12. /// <summary>
  13. /// 缓交申请ID
  14. /// </summary>
  15. [DisplayName("缓交申请ID")]
  16. public Guid? ChargeDelayID { get; set; }
  17. /// <summary>
  18. /// 应收名单ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("应收名单ID")]
  22. public Guid? StudentChargeID { get; set; }
  23. /// <summary>
  24. /// 用户ID
  25. /// </summary>
  26. [Required]
  27. [DisplayName("用户ID")]
  28. public Guid? UserID { get; set; }
  29. /// <summary>
  30. /// 学号
  31. /// </summary>
  32. [Required]
  33. [DisplayName("学号")]
  34. public string StudentNo { get; set; }
  35. /// <summary>
  36. /// 姓名
  37. /// </summary>
  38. [Required]
  39. [DisplayName("姓名")]
  40. public string UserName { get; set; }
  41. /// <summary>
  42. /// 性别
  43. /// </summary>
  44. [DisplayName("性别")]
  45. public int? SexID { get; set; }
  46. /// <summary>
  47. /// 性别
  48. /// </summary>
  49. [DisplayName("性别")]
  50. public string SexName
  51. {
  52. get
  53. {
  54. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  55. .Where(x => x.Value == SexID)
  56. .Select(x => x.Name).FirstOrDefault();
  57. }
  58. }
  59. /// <summary>
  60. /// 在校状态
  61. /// </summary>
  62. [DisplayName("在校状态")]
  63. public int? InSchoolStatusID { get; set; }
  64. /// <summary>
  65. /// 在校状态
  66. /// </summary>
  67. [DisplayName("在校状态")]
  68. public string InSchoolStatusName
  69. {
  70. get
  71. {
  72. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  73. .Where(x => x.Value == InSchoolStatusID)
  74. .Select(x => x.Name).FirstOrDefault();
  75. }
  76. }
  77. /// <summary>
  78. /// 学籍状态
  79. /// </summary>
  80. [DisplayName("学籍状态")]
  81. public int? StudentStatusID { get; set; }
  82. /// <summary>
  83. /// 学籍状态
  84. /// </summary>
  85. [DisplayName("学籍状态")]
  86. public string StudentStatusName
  87. {
  88. get
  89. {
  90. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  91. .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  92. }
  93. }
  94. /// <summary>
  95. /// 班级信息ID
  96. /// </summary>
  97. [DisplayName("班级信息ID")]
  98. public Guid? ClassID { get; set; }
  99. /// <summary>
  100. /// 班级编号
  101. /// </summary>
  102. [DisplayName("班级编号")]
  103. public string ClassNo { get; set; }
  104. /// <summary>
  105. /// 班级名称
  106. /// </summary>
  107. [DisplayName("班级名称")]
  108. public string ClassName { get; set; }
  109. /// <summary>
  110. /// 年级专业ID
  111. /// </summary>
  112. [DisplayName("年级专业ID")]
  113. public Guid? GradeMajorID { get; set; }
  114. /// <summary>
  115. /// 年级专业编号
  116. /// </summary>
  117. [DisplayName("年级专业编号")]
  118. public string GradeMajorCode { get; set; }
  119. /// <summary>
  120. /// 年级专业名称
  121. /// </summary>
  122. [DisplayName("年级专业名称")]
  123. public string GradeMajoyStr { get; set; }
  124. /// <summary>
  125. /// 院系所ID
  126. /// </summary>
  127. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  128. public Guid? CollegeID { get; set; }
  129. /// <summary>
  130. /// 院系所代码
  131. /// </summary>
  132. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  133. public string CollegeCode { get; set; }
  134. /// <summary>
  135. /// 院系所名称
  136. /// </summary>
  137. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  138. public string CollegeStr { get; set; }
  139. /// <summary>
  140. /// 年级
  141. /// </summary>
  142. [DisplayName("年级")]
  143. public int? GradeStr { get; set; }
  144. /// <summary>
  145. /// 专业ID(Value)
  146. /// </summary>
  147. [DisplayName("专业ID(Value)")]
  148. public int? StandardID { get; set; }
  149. /// <summary>
  150. /// 专业代码
  151. /// </summary>
  152. [DisplayName("专业代码")]
  153. public string StandardCode
  154. {
  155. get
  156. {
  157. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  158. .Where(x => x.Value == StandardID)
  159. .Select(x => x.Code).FirstOrDefault();
  160. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  161. }
  162. }
  163. /// <summary>
  164. /// 专业名称
  165. /// </summary>
  166. [DisplayName("专业名称")]
  167. public string MajorStr
  168. {
  169. get
  170. {
  171. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  172. .Where(x => x.Value == StandardID)
  173. .Select(x => x.Name).FirstOrDefault();
  174. }
  175. }
  176. /// <summary>
  177. /// 培养层次
  178. /// </summary>
  179. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  180. public int? EducationID { get; set; }
  181. /// <summary>
  182. /// 培养层次
  183. /// </summary>
  184. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  185. public string EducationName
  186. {
  187. get
  188. {
  189. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  190. .Where(x => x.Value == EducationID)
  191. .Select(x => x.Name).FirstOrDefault();
  192. }
  193. }
  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. /// 收费项目ID
  225. /// </summary>
  226. [Required]
  227. [DisplayName("收费项目ID")]
  228. public Guid? ChargeProjectID { get; set; }
  229. /// <summary>
  230. /// 收费项目
  231. /// </summary>
  232. [DisplayName("收费项目")]
  233. public string ChargeProjectStr { get; set; }
  234. /// <summary>
  235. /// 缴费标记
  236. /// </summary>
  237. [Required]
  238. [DisplayName("缴费标记")]
  239. public int? ChargeTag { get; set; }
  240. /// <summary>
  241. /// 缴费标记
  242. /// </summary>
  243. [DisplayName("缴费标记")]
  244. public string ChargeTagName
  245. {
  246. get
  247. {
  248. return IdNameExt.GetDictionaryItem(DictionaryItem.EC_ChargeTag.ToString())
  249. .Where(x => x.Value == ChargeTag)
  250. .Select(x => x.Name).FirstOrDefault();
  251. }
  252. }
  253. /// <summary>
  254. /// 应收金额
  255. /// </summary>
  256. [Required]
  257. [DisplayName("应收金额")]
  258. public decimal? Amount { get; set; }
  259. /// <summary>
  260. /// 调整金额
  261. /// </summary>
  262. [Required]
  263. [DisplayName("调整金额")]
  264. public decimal? ChargeAmount { get; set; }
  265. /// <summary>
  266. /// 实收金额
  267. /// </summary>
  268. [Required]
  269. [DisplayName("实收金额")]
  270. public decimal? ActualAmount { get; set; }
  271. /// <summary>
  272. /// 已缴金额
  273. /// </summary>
  274. [Required]
  275. [DisplayName("已缴金额")]
  276. public decimal? PaidAmount { get; set; }
  277. /// <summary>
  278. /// 缓交金额
  279. /// </summary>
  280. [DisplayName("缓交金额")]
  281. [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入金额")]
  282. public decimal? DelayAmount { get; set; }
  283. /// <summary>
  284. /// 缓交百分比
  285. /// </summary>
  286. [DisplayName("缓交百分比")]
  287. [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入百分比")]
  288. public int? DelayPercent { get; set; }
  289. /// <summary>
  290. /// 待缓交金额(流程中)
  291. /// </summary>
  292. [Required]
  293. [DisplayName("待缓交金额")]
  294. public decimal? ApplyDelayAmount { get; set; }
  295. /// <summary>
  296. /// 已缓交金额(流程审核通过)
  297. /// </summary>
  298. [Required]
  299. [DisplayName("已缓交金额")]
  300. public decimal? PassDelayAmount { get; set; }
  301. /// <summary>
  302. /// 可缓交金额
  303. /// </summary>
  304. [Required]
  305. [DisplayName("可缓交金额")]
  306. public decimal? CanDelayAmount { get; set; }
  307. /// <summary>
  308. /// 缓交原因
  309. /// </summary>
  310. [DisplayName("缓交原因")]
  311. public string Reason { get; set; }
  312. /// <summary>
  313. /// 处理动作
  314. /// </summary>
  315. [DisplayName("处理动作")]
  316. public string Action { get; set; }
  317. /// <summary>
  318. /// 处理意见
  319. /// </summary>
  320. [DisplayName("处理意见")]
  321. public string Comment { get; set; }
  322. /// <summary>
  323. /// 审核状态
  324. /// </summary>
  325. [DisplayName("审核状态")]
  326. public int? RecordStatus { get; set; }
  327. /// <summary>
  328. /// 审核状态
  329. /// </summary>
  330. [DisplayName("审核状态")]
  331. public string RecordStatusName { get; set; }
  332. /// <summary>
  333. /// 创建人ID
  334. /// </summary>
  335. [DisplayName("创建人ID")]
  336. public Guid? CreateUserID { get; set; }
  337. /// <summary>
  338. /// 创建时间
  339. /// </summary>
  340. [DisplayName("创建时间")]
  341. public DateTime? CreateTime { get; set; }
  342. /// <summary>
  343. /// 修改人ID
  344. /// </summary>
  345. [DisplayName("修改人ID")]
  346. public Guid? ModifyUserID { get; set; }
  347. /// <summary>
  348. /// 修改时间
  349. /// </summary>
  350. [DisplayName("修改时间")]
  351. public DateTime? ModifyTime { get; set; }
  352. }
  353. }