ScoreParameterCollegeSettingView.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel;
  8. namespace EMIS.ViewModel.ScoreManage
  9. {
  10. public class ScoreParameterCollegeSettingView
  11. {
  12. /// <summary>
  13. /// ScoreParameterCollegeSettingID
  14. /// </summary>
  15. public System.Guid ScoreParameterCollegeSettingID { get; set; }
  16. /// <summary>
  17. /// Years
  18. /// </summary>
  19. [DisplayName("年级")]
  20. public Nullable<int> Years { get; set; }
  21. /// <summary>
  22. /// CollegeID
  23. /// </summary>
  24. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  25. public Nullable<System.Guid> CollegeID { get; set; }
  26. public string CollegeNo { get; set; }
  27. public string CollegeName { get; set; }
  28. /// <summary>
  29. /// ScoreTypeID
  30. /// </summary>
  31. [DisplayName("单独管理成绩")]
  32. public Nullable<int> ScoreTypeID { get; set; }
  33. public string ScoreTypeDesc
  34. {
  35. get
  36. {
  37. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ScoreType.ToString())
  38. .Where(x => x.Value == ScoreTypeID)
  39. .Select(x => x.Name).FirstOrDefault();
  40. }
  41. }
  42. }
  43. }