ChargeTotalView.cs 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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.ChargeTotal
  9. {
  10. public class ChargeTotalView
  11. {
  12. /// <summary>
  13. /// 班级信息ID
  14. /// </summary>
  15. [DisplayName("班级信息ID")]
  16. public Guid? ClassID { get; set; }
  17. /// <summary>
  18. /// 班级编号
  19. /// </summary>
  20. [DisplayName("班级编号")]
  21. public string ClassNo { get; set; }
  22. /// <summary>
  23. /// 班级名称
  24. /// </summary>
  25. [DisplayName("班级名称")]
  26. public string ClassName { get; set; }
  27. /// <summary>
  28. /// 年级专业ID
  29. /// </summary>
  30. [DisplayName("年级专业ID")]
  31. public Guid? GradeMajorID { get; set; }
  32. /// <summary>
  33. /// 年级专业编号
  34. /// </summary>
  35. [DisplayName("年级专业编号")]
  36. public string GradeMajorCode { get; set; }
  37. /// <summary>
  38. /// 年级专业名称
  39. /// </summary>
  40. [DisplayName("年级专业名称")]
  41. public string GradeMajoyStr { get; set; }
  42. /// <summary>
  43. /// 院系所ID
  44. /// </summary>
  45. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  46. public Guid? CollegeID { get; set; }
  47. /// <summary>
  48. /// 院系所代码
  49. /// </summary>
  50. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  51. public string CollegeCode { get; set; }
  52. /// <summary>
  53. /// 院系所名称
  54. /// </summary>
  55. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  56. public string CollegeStr { get; set; }
  57. /// <summary>
  58. /// 年级
  59. /// </summary>
  60. [DisplayName("年级")]
  61. public int? Grade { get; set; }
  62. /// <summary>
  63. /// 专业ID(Value)
  64. /// </summary>
  65. [DisplayName("专业ID(Value)")]
  66. public int? StandardID { get; set; }
  67. /// <summary>
  68. /// 专业代码
  69. /// </summary>
  70. [DisplayName("专业代码")]
  71. public string StandardCode
  72. {
  73. get
  74. {
  75. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  76. .Where(x => x.Value == StandardID)
  77. .Select(x => x.Code).FirstOrDefault();
  78. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  79. }
  80. }
  81. /// <summary>
  82. /// 专业名称
  83. /// </summary>
  84. [DisplayName("专业名称")]
  85. public string StandardName
  86. {
  87. get
  88. {
  89. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  90. .Where(x => x.Value == StandardID)
  91. .Select(x => x.Name).FirstOrDefault();
  92. }
  93. }
  94. /// <summary>
  95. /// 培养层次
  96. /// </summary>
  97. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  98. public int? EducationID { get; set; }
  99. /// <summary>
  100. /// 培养层次
  101. /// </summary>
  102. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  103. public string EducationName
  104. {
  105. get
  106. {
  107. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  108. .Where(x => x.Value == EducationID)
  109. .Select(x => x.Name).FirstOrDefault();
  110. }
  111. }
  112. /// <summary>
  113. /// 学习形式
  114. /// </summary>
  115. [DisplayName("学习形式")]
  116. public int? LearningformID { get; set; }
  117. /// <summary>
  118. /// 学习形式
  119. /// </summary>
  120. [DisplayName("学习形式")]
  121. public string LearningformName
  122. {
  123. get
  124. {
  125. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  126. .Where(x => x.Value == LearningformID)
  127. .Select(x => x.Name).FirstOrDefault();
  128. }
  129. }
  130. /// <summary>
  131. /// 学制
  132. /// </summary>
  133. [DisplayName("学制")]
  134. public decimal? LearnSystem { get; set; }
  135. /// <summary>
  136. /// 缴费学年
  137. /// </summary>
  138. [Required]
  139. [DisplayName("缴费学年")]
  140. public int? ChargeYear { get; set; }
  141. /// <summary>
  142. /// 收费项目ID
  143. /// </summary>
  144. [Required]
  145. [DisplayName("收费项目ID")]
  146. public Guid? ChargeProjectID { get; set; }
  147. /// <summary>
  148. /// 收费项目
  149. /// </summary>
  150. [DisplayName("收费项目")]
  151. public string ChargeProjectStr { get; set; }
  152. /// <summary>
  153. /// 应收人数
  154. /// </summary>
  155. [DisplayName("应收人数")]
  156. public int? ChargeCount { get; set; }
  157. /// <summary>
  158. /// 应收金额
  159. /// </summary>
  160. [DisplayName("应收金额")]
  161. public decimal? Amount { get; set; }
  162. /// <summary>
  163. /// 调整金额
  164. /// </summary>
  165. [DisplayName("调整金额")]
  166. public decimal? ChargeAmount { get; set; }
  167. /// <summary>
  168. /// 实收金额
  169. /// </summary>
  170. [DisplayName("实收金额")]
  171. public decimal? ActualAmount { get; set; }
  172. /// <summary>
  173. /// 缓交人数
  174. /// </summary>
  175. [DisplayName("缓交人数")]
  176. public int? DelayCount { get; set; }
  177. /// <summary>
  178. /// 缓交金额
  179. /// </summary>
  180. [DisplayName("缓交金额")]
  181. public decimal? DelayAmount { get; set; }
  182. /// <summary>
  183. /// 已收人数
  184. /// </summary>
  185. [DisplayName("已收人数")]
  186. public int? PaymenCount { get; set; }
  187. /// <summary>
  188. /// 已收金额
  189. /// </summary>
  190. [DisplayName("已收金额")]
  191. public decimal? PaymenAmount { get; set; }
  192. /// <summary>
  193. /// 班主任ID
  194. /// </summary>
  195. [DisplayName("班主任ID")]
  196. public Guid? TeacherID { get; set; }
  197. /// <summary>
  198. /// 班主任编号
  199. /// </summary>
  200. [DisplayName("班主任编号")]
  201. public string TeacherNo { get; set; }
  202. /// <summary>
  203. /// 班主任
  204. /// </summary>
  205. [DisplayName("班主任")]
  206. public string TeacherName { get; set; }
  207. }
  208. }