ExaminationRoomLayoutView.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.ViewModel.CacheManage;
  8. using EMIS.Entities;
  9. namespace EMIS.ViewModel.ExaminationManage
  10. {
  11. public class ExaminationRoomLayoutView
  12. {
  13. /// <summary>
  14. /// ExaminationRoomLayoutID
  15. /// </summary>
  16. public System.Guid ExaminationRoomLayoutID { get; set; }
  17. [Required]
  18. [DisplayName("考试计划")]
  19. public System.Guid ExaminationPlanID { get; set; }
  20. [Required]
  21. [DisplayName("教室")]
  22. public Nullable<System.Guid> ClassroomID { get; set; }
  23. public string ClassroomName { get; set; }
  24. public Nullable<int> Totalseating { get; set; }
  25. public Nullable<int> Examinationseating { get; set; }
  26. [Required]
  27. [DisplayName("行间隔")]
  28. public Nullable<int> RowSpacing { get; set; }
  29. [Required]
  30. [DisplayName("列间隔")]
  31. public Nullable<int> ColumnSpacing { get; set; }
  32. [Required]
  33. [DisplayName("排序")]
  34. public Nullable<int> StudentOrderType { get; set; }
  35. public string StudentOrderTypeName
  36. {
  37. get
  38. {
  39. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentOrderType.ToString())
  40. .Where(x => x.Value == StudentOrderType)
  41. .Select(x => x.Name).FirstOrDefault();
  42. }
  43. }
  44. public string SpacingDesc
  45. {
  46. get
  47. {
  48. return string.Format("隔{0}行{1}列,排序{2}", RowSpacing, ColumnSpacing, StudentOrderTypeName);
  49. }
  50. }
  51. public int StudentNum { get; set; }
  52. public IEnumerable<Sys_User> Sys_User { get; set; }
  53. public string TeacherNames
  54. {
  55. get
  56. {
  57. return string.Join(",", Sys_User.Select(x => x.Name));
  58. }
  59. }
  60. public IEnumerable<EX_ExaminationRoomStudent> EX_ExaminationRoomStudent { get; set; }
  61. public bool IsSubmitted { get; set; }
  62. /// <summary>
  63. /// RecordStatus
  64. /// </summary>
  65. public Nullable<int> RecordStatus { get; set; }
  66. /// <summary>
  67. /// CreateTime
  68. /// </summary>
  69. public Nullable<System.DateTime> CreateTime { get; set; }
  70. /// <summary>
  71. /// CreateUserID
  72. /// </summary>
  73. public Nullable<System.Guid> CreateUserID { get; set; }
  74. /// <summary>
  75. /// ModifyUserID
  76. /// </summary>
  77. public Nullable<System.Guid> ModifyUserID { get; set; }
  78. /// <summary>
  79. /// ModifyTime
  80. /// </summary>
  81. public Nullable<System.DateTime> ModifyTime { get; set; }
  82. }
  83. }