RefundView.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.Cache;
  8. namespace EMIS.ViewModel.FeeManage
  9. {
  10. public class RefundView
  11. {
  12. public System.Guid ExaminationRegistrationID { get; set; }
  13. /// <summary>
  14. /// 学生ID
  15. /// </summary>
  16. public Nullable<System.Guid> UserID { get; set; }
  17. /// <summary>
  18. /// 姓名
  19. /// </summary>
  20. [DisplayName("姓名")]
  21. public string UserName { get; set; }
  22. [DisplayName("证件号码")]
  23. public string IDNumber { get; set; }
  24. [DisplayName("联系电话")]
  25. public string Mobile { get; set; }
  26. [DisplayName("年级")]
  27. public Nullable<int> Year { get; set; }
  28. /// <summary>
  29. /// 院系
  30. /// </summary>
  31. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  32. public Nullable<System.Guid> CollegeID { get; set; }
  33. public string CollegeName { get; set; }
  34. /// <summary>
  35. /// 班级
  36. /// </summary>
  37. [DisplayName("班级")]
  38. public Nullable<System.Guid> ClassmajorID { get; set; }
  39. public string ClassmajorName { get; set; }
  40. [DisplayName("考试批次")]
  41. public Nullable<System.Guid> ExaminationBatchID { get; set; }
  42. public string ExaminationBatchName { get; set; }
  43. [DisplayName("考试项目")]
  44. public Nullable<System.Guid> ExaminationProjectID { get; set; }
  45. public string ExaminationProjectName { get; set; }
  46. [DisplayName("报名项目")]
  47. public Nullable<int> FeeTypeID { get; set; }
  48. public string FeeTypeName
  49. {
  50. get
  51. {
  52. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString())
  53. .Where(x => x.Value == FeeTypeID)
  54. .Select(x => x.Name).FirstOrDefault();
  55. }
  56. }
  57. /// <summary>
  58. /// 金额
  59. /// </summary>
  60. [DisplayName("金额")]
  61. [DisplayFormat(DataFormatString = "{0:#.00}")]
  62. public Nullable<decimal> Fee { get; set; }
  63. [DisplayName("收据号")]
  64. public string ReceiptNo { get; set; }
  65. /// <summary>
  66. /// 开户银行
  67. /// </summary>
  68. [DisplayName("开户银行及支行")]
  69. [MaxLength(50)]
  70. [Required]
  71. public string BankName { get; set; }
  72. /// <summary>
  73. /// 银行卡号
  74. /// </summary>
  75. [DisplayName("银行卡号")]
  76. [MaxLength(50)]
  77. [Required]
  78. public string CardNo { get; set; }
  79. [DisplayName("退费原因")]
  80. [Required]
  81. public string RefundReason { get; set; }
  82. [DisplayName("经办老师")]
  83. [Required]
  84. public Nullable<System.Guid> RefundUserID { get; set; }
  85. public string RefundUserName { get; set; }
  86. [DisplayName("申请时间")]
  87. [Required]
  88. public Nullable<System.DateTime> RefundTime { get; set; }
  89. public string RefundTimeStr
  90. {
  91. get
  92. {
  93. return RefundTime == null ? "" : RefundTime.Value.ToString("yyyy年MM月dd日");
  94. }
  95. }
  96. [DisplayName("确认单号")]
  97. public string ConfirmNo { get; set; }
  98. public Guid? SchoolYearID { get; set; }
  99. [DisplayName("学年学期")]
  100. public string SchoolYearCode { get; set; }
  101. [DisplayName("学号")]
  102. public string StudentNo { get; set; }
  103. public int? RecordStatus { get; set; }
  104. }
  105. }