DifferentDynamicView.cs 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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.CacheManage;
  8. using Bowin.Common.Mvc;
  9. namespace EMIS.ViewModel.DifferentDynamic
  10. {
  11. public class DifferentDynamicView
  12. {
  13. /// <summary>
  14. /// 主键
  15. /// </summary>
  16. [DisplayName("主键")]
  17. public Guid EntityID { get; set; }
  18. /// <summary>
  19. /// 异动学期
  20. /// </summary>
  21. [DisplayName("异动学期")]
  22. [Required]
  23. public Guid? SchoolyearID { get; set; }
  24. /// <summary>
  25. /// 异动学期Code
  26. /// </summary>
  27. [DisplayName("异动学期")]
  28. public string SchoolyearCode { get; set; }
  29. /// <summary>
  30. /// 学号对应的UserID
  31. /// </summary>
  32. [DisplayName("学号")]
  33. [Required]
  34. public Guid? UserID { get; set; }
  35. /// <summary>
  36. /// 学号
  37. /// </summary>
  38. [DisplayName("学号")]
  39. public string LoginID { get; set; }
  40. /// <summary>
  41. /// 姓名
  42. /// </summary>
  43. [DisplayName("姓名")]
  44. public string Name { get; set; }
  45. /// <summary>
  46. /// 异动类型
  47. /// </summary>
  48. [DisplayName("异动类型")]
  49. [Required]
  50. public int? DifferentDynamicType { get; set; }
  51. /// <summary>
  52. /// 异动类型名称
  53. /// </summary>
  54. [DisplayName("异动类型")]
  55. public string DifferentDynamicTypeName
  56. {
  57. get
  58. {
  59. return IdNameExt.GetName(DictionaryItem.CF_ChangeType, DifferentDynamicType);
  60. }
  61. }
  62. /// <summary>
  63. /// 异动原因代码
  64. /// </summary>
  65. [Required]
  66. [DisplayName("异动原因")]
  67. public int? Reason { get; set; }
  68. /// <summary>
  69. /// 异动原因名称
  70. /// </summary>
  71. [DisplayName("异动原因")]
  72. public string ReasonName
  73. {
  74. get
  75. {
  76. try
  77. {
  78. return IdNameExt.GetName(DictionaryItem.CF_ChangeReason, Reason);
  79. }
  80. catch
  81. {
  82. return "";
  83. }
  84. }
  85. }
  86. /// <summary>
  87. /// 在校状态
  88. /// </summary>
  89. [DisplayName("在校状态")]
  90. public int? InSchoolStatusID { get; set; }
  91. /// <summary>
  92. /// 在校状态名称
  93. /// </summary>
  94. [DisplayName("在校状态")]
  95. public string InSchoolStatusName
  96. {
  97. get
  98. {
  99. return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
  100. }
  101. }
  102. /// <summary>
  103. /// 学籍状态
  104. /// </summary>
  105. [DisplayName("学籍状态")]
  106. public int? StudentStatus { get; set; }
  107. /// <summary>
  108. /// 学籍状态名称
  109. /// </summary>
  110. [DisplayName("学籍状态")]
  111. public string StudentStatusName
  112. {
  113. get
  114. {
  115. return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, StudentStatus);
  116. }
  117. }
  118. /// <summary>
  119. /// 专业
  120. /// </summary>
  121. [DisplayName("专业")]
  122. public int? StandardID { get; set; }
  123. /// <summary>
  124. /// 专业名称
  125. /// </summary>
  126. [DisplayName("专业")]
  127. public string StandardName
  128. {
  129. get
  130. {
  131. return IdNameExt.GetName(DictionaryItem.CF_Standard, StandardID);
  132. }
  133. }
  134. /// <summary>
  135. /// 班级
  136. /// </summary>
  137. [DisplayName("班级")]
  138. public Guid? ClassmajorID { get; set; }
  139. /// <summary>
  140. /// 班级名称
  141. /// </summary>
  142. [DisplayName("班级")]
  143. public string ClassmajorName { get; set; }
  144. /// <summary>
  145. /// 异动后专业
  146. /// </summary>
  147. [DisplayName("异动后专业")]
  148. public int? AfterStandardID { get; set; }
  149. /// <summary>
  150. /// 异动后班级
  151. /// </summary>
  152. [DisplayName("异动后班级")]
  153. public Guid? AfterClassmajorID { get; set; }
  154. /// <summary>
  155. /// 异动后在校状态
  156. /// </summary>
  157. [DisplayName("异动后在校状态")]
  158. public int? AfterInSchoolStatusID { get; set; }
  159. /// <summary>
  160. /// 异动后学籍状态
  161. /// </summary>
  162. [DisplayName("异动后学籍状态")]
  163. public int? AfterStudentStatus { get; set; }
  164. /// <summary>
  165. /// 异动后专业名称
  166. /// </summary>
  167. [DisplayName("异动后专业")]
  168. public string AfterStandardName
  169. {
  170. get
  171. {
  172. return IdNameExt.GetName(DictionaryItem.CF_Standard, AfterStandardID);
  173. }
  174. }
  175. /// <summary>
  176. /// 异动后班级名称
  177. /// </summary>
  178. [DisplayName("异动后班级")]
  179. public string AfterClassmajorName { get; set; }
  180. /// <summary>
  181. /// 异动后在校状态名称
  182. /// </summary>
  183. [DisplayName("异动后在校状态")]
  184. public string AfterInSchoolStatusName
  185. {
  186. get
  187. {
  188. return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, AfterInSchoolStatusID);
  189. }
  190. }
  191. /// <summary>
  192. /// 异动后学籍状态名称
  193. /// </summary>
  194. [DisplayName("异动后学籍状态")]
  195. public string AfterStudentStatusName
  196. {
  197. get
  198. {
  199. return IdNameExt.GetName(DictionaryItem.CF_StudentStatus, AfterStudentStatus);
  200. }
  201. }
  202. /// <summary>
  203. /// 返校学期
  204. /// </summary>
  205. [DisplayName("返校学期")]
  206. public Guid? ReturnSchoolyearID { get; set; }
  207. /// <summary>
  208. /// 返校学期Code
  209. /// </summary>
  210. [DisplayName("返校学期")]
  211. public string ReturnSchoolyearCode { get; set; }
  212. /// <summary>
  213. /// 申请渠道
  214. /// </summary>
  215. public int? ApplyTypeID { get; set; }
  216. /// <summary>
  217. /// 申请说明
  218. /// </summary>
  219. [DisplayName("申请说明")]
  220. public string ApplyRemark { get; set; }
  221. /// <summary>
  222. /// 异动开始日期
  223. /// </summary>
  224. [DisplayName("异动开始日期")]
  225. public DateTime? BeginTime { get; set; }
  226. /// <summary>
  227. /// 异动结束日期
  228. /// </summary>
  229. [DisplayName("异动结束日期")]
  230. [DateTimeNotLessThan("BeginTime", "异动开始日期")]
  231. public DateTime? EndTime { get; set; }
  232. /// <summary>
  233. /// 异动来源
  234. /// </summary>
  235. [DisplayName("异动来源")]
  236. public string Source { get; set; }
  237. /// <summary>
  238. /// 异动去向
  239. /// </summary>
  240. [DisplayName("异动去向")]
  241. public string Direction { get; set; }
  242. /// <summary>
  243. /// 审批状态
  244. /// </summary>
  245. [DisplayName("审批状态")]
  246. public int? EntityApprovalStatus { get; set; }
  247. /// <summary>
  248. /// 审批状态名称
  249. /// </summary>
  250. [DisplayName("审批状态")]
  251. public string ApprovalStatusName { get; set; }
  252. ///// <summary>
  253. ///// 状态
  254. ///// </summary>
  255. //[DisplayName("状态")]
  256. //public int? RecordStatus { get; set; }
  257. /// <summary>
  258. /// 创建人
  259. /// </summary>
  260. [DisplayName("创建人")]
  261. public Guid? EntityCreateUserID { get; set; }
  262. /// <summary>
  263. /// 创建人
  264. /// </summary>
  265. [DisplayName("创建人")]
  266. public string CreateUser { get; set; }
  267. /// <summary>
  268. /// 创建时间
  269. /// </summary>
  270. [DisplayName("创建时间")]
  271. public DateTime? EntityCreateTime { get; set; }
  272. [DisplayName("创建时间")]
  273. public string EntityCreateTimeStr {
  274. get {
  275. return EntityCreateTime != null ? EntityCreateTime.Value.ToString("yyyy-MM-dd") : null;
  276. }
  277. }
  278. [DisplayName("申请日期")]
  279. public DateTime? EntityApplyDate { get; set; }
  280. ///// <summary>
  281. ///// 修改人
  282. ///// </summary>
  283. //[DisplayName("修改人")]
  284. //public Guid? ModifyUserID { get; set; }
  285. ///// <summary>
  286. ///// 修改时间
  287. ///// </summary>
  288. //[DisplayName("修改时间")]
  289. //public DateTime? ModifyTime { get; set; }
  290. /// <summary>
  291. /// 备注
  292. /// </summary>
  293. [DisplayName("备注")]
  294. public string Remark { get; set; }
  295. /// <summary>
  296. /// 动作
  297. /// </summary>
  298. [DisplayName("动作")]
  299. public string Action { get; set; }
  300. public Guid? CollegeID { get; set; }
  301. /// <summary>
  302. /// 报到状态
  303. /// </summary>
  304. [DisplayName("报到状态")]
  305. public int? ReportStatus { get; set; }
  306. private string _reportStatusName;
  307. /// <summary>
  308. /// 报到状态名称
  309. /// </summary>
  310. [DisplayName("报到状态")]
  311. public string ReportStatusName
  312. {
  313. get
  314. {
  315. if (string.IsNullOrEmpty(_reportStatusName))
  316. {
  317. return Bowin.Common.Exceptions.EnumHelper.GetEnumShowName(typeof(CF_ReportStatus), (int)CF_ReportStatus.NotReport);
  318. }
  319. return _reportStatusName;
  320. }
  321. set { _reportStatusName = value; }
  322. }
  323. /// <summary>
  324. /// 报表名称
  325. /// </summary>
  326. [DisplayName("报表名称")]
  327. public string ReportName{get;set;}
  328. /// <summary>
  329. /// 报表地址
  330. /// </summary>
  331. [DisplayName("报表地址")]
  332. public string ReportUrl { get; set; }
  333. }
  334. }