ChangeTotalView.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.CacheManage;
  8. namespace EMIS.ViewModel.StudentManage.StudentChange
  9. {
  10. public class ChangeTotalView
  11. {
  12. /// <summary>
  13. /// 校区ID
  14. /// </summary>
  15. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  16. public Guid? CampusID { get; set; }
  17. /// <summary>
  18. /// 校区代码
  19. /// </summary>
  20. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  21. public string CampusCode { get; set; }
  22. /// <summary>
  23. /// 校区名称
  24. /// </summary>
  25. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  26. public string CampusName { get; set; }
  27. /// <summary>
  28. /// 院系所ID
  29. /// </summary>
  30. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  31. public Guid? CollegeID { get; set; }
  32. /// <summary>
  33. /// 院系所代码
  34. /// </summary>
  35. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  36. public string CollegeNo { get; set; }
  37. /// <summary>
  38. /// 院系所
  39. /// </summary>
  40. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  41. public string CollegeName { get; set; }
  42. /// <summary>
  43. /// 异动类型
  44. /// </summary>
  45. [DisplayName("异动类型")]
  46. public int? ChangeTypeID { get; set; }
  47. /// <summary>
  48. /// 异动类型
  49. /// </summary>
  50. [DisplayName("异动类型")]
  51. public string ChangeTypeName
  52. {
  53. get
  54. {
  55. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ChangeType.ToString()).Where(x => x.Value == ChangeTypeID).Select(x => x.Name).FirstOrDefault();
  56. }
  57. }
  58. /// <summary>
  59. /// 异动数
  60. /// </summary>
  61. [DisplayName("异动数")]
  62. public int? ChangeTypeCount { get; set; }
  63. }
  64. }