EvaluationSettingDetailView.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.Entities;
  8. namespace EMIS.ViewModel.EvaluationManage
  9. {
  10. public class EvaluationSettingDetailView
  11. {
  12. /// <summary>
  13. /// ID
  14. /// </summary>
  15. [DisplayName("评价设定ID")]
  16. public Guid EvaluationSettingID { get; set; }
  17. //学年学期、课程名称、班级名称、学号、姓名、参评类型、被评教师编号、被评教师、评价表名
  18. /// <summary>
  19. /// 评价表名
  20. /// </summary>
  21. [DisplayName("评价表名")]
  22. public string EvaluationTableName { get; set; }
  23. /// <summary>
  24. /// 学年学期
  25. /// </summary>
  26. [DisplayName("学年学期")]
  27. public string SchoolyearCode { get; set; }
  28. public string CourseCode { get; set; }
  29. /// <summary>
  30. /// 课程名称
  31. /// </summary>
  32. [DisplayName("课程名称")]
  33. public string CourseName { get; set; }
  34. /// <summary>
  35. /// 教研室
  36. /// </summary>
  37. [DisplayName("教研室")]
  38. public string DepartmentName { get; set; }
  39. /// <summary>
  40. /// 课程名称
  41. /// </summary>
  42. [DisplayName("班级名称")]
  43. public string EducationMissionClassName { get; set; }
  44. /// <summary>
  45. /// 参评类型
  46. /// </summary>
  47. [DisplayName("参评类型")]
  48. public string EvaluationTypeName { get; set; }
  49. /// <summary>
  50. /// 姓名
  51. /// </summary>
  52. [DisplayName("姓名")]
  53. public string Name { get; set; }
  54. /// <summary>
  55. /// 姓名
  56. /// </summary>
  57. [DisplayName("姓名")]
  58. public string UserName { get; set; }
  59. /// <summary>
  60. /// 学号
  61. /// </summary>
  62. [DisplayName("学号")]
  63. public string LoginID { get; set; }
  64. public Guid UserID { get; set; }
  65. /// <summary>
  66. /// 学号
  67. /// </summary>
  68. [DisplayName("教职工号")]
  69. public string StaffCode { get; set; }
  70. public IEnumerable<Sys_User> Sys_User { get; set; }
  71. [DisplayName("教师名称")]
  72. public string UserNames
  73. {
  74. get
  75. {
  76. return string.Join(",", Sys_User.Select(s => s.Name));
  77. }
  78. }
  79. [DisplayName("教师编号")]
  80. public string UserCodes
  81. {
  82. get
  83. {
  84. return string.Join(",", Sys_User.Select(s => s.LoginID));
  85. }
  86. }
  87. }
  88. }