NotPassStudentView.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. namespace EMIS.ViewModel.ScoreManage
  9. {
  10. public class NotPassStudentView
  11. {
  12. /// <summary>
  13. /// 学生ID
  14. /// </summary>
  15. [DisplayName("学生ID")]
  16. public Guid? UserID { get; set; }
  17. /// <summary>
  18. /// 学号
  19. /// </summary>
  20. [DisplayName("学号")]
  21. public string LoginID { get; set; }
  22. /// <summary>
  23. /// 姓名
  24. /// </summary>
  25. [DisplayName("姓名")]
  26. public string UserName { get; set; }
  27. /// <summary>
  28. /// 教学点
  29. /// </summary>
  30. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  31. public Guid? CampusID { get; set; }
  32. /// <summary>
  33. /// 教学点名称
  34. /// </summary>
  35. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  36. public string CampusName { get; set; }
  37. /// <summary>
  38. /// 年级
  39. /// </summary>
  40. [DisplayName("年级")]
  41. public int? Years { get; set; }
  42. /// <summary>
  43. /// 标准专业
  44. /// </summary>
  45. [DisplayName("标准专业")]
  46. public int? StandardID { get; set; }
  47. /// <summary>
  48. /// 专业代码
  49. /// </summary>
  50. [DisplayName("专业代码")]
  51. public string StandardCode
  52. {
  53. get
  54. {
  55. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  56. .Where(x => x.Value == StandardID)
  57. .Select(x => x.Code).FirstOrDefault();
  58. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  59. }
  60. }
  61. /// <summary>
  62. /// 标准专业名称
  63. /// </summary>
  64. [DisplayName("专业名称")]
  65. public string StandardName
  66. {
  67. get
  68. {
  69. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  70. .Where(x => x.Value == StandardID)
  71. .Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 班级名称
  76. /// </summary>
  77. [Required]
  78. [DisplayName("班级名称")]
  79. public Guid? ClassMajorID { get; set; }
  80. /// <summary>
  81. /// 班级编号
  82. /// </summary>
  83. [DisplayName("班级编号")]
  84. public string ClassMajorCode { get; set; }
  85. /// <summary>
  86. /// 班级名称
  87. /// </summary>
  88. [DisplayName("班级名称")]
  89. public string ClassMajorName { get; set; }
  90. /// <summary>
  91. /// 不及格门数
  92. /// </summary>
  93. [DisplayName("不及格门数")]
  94. public int NotPassCount { get; set; }
  95. }
  96. }