DutyView.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. namespace EMIS.ViewModel.CalendarManage
  8. {
  9. public class DutyView
  10. {
  11. /// <summary>
  12. /// 主键ID
  13. /// </summary>
  14. [DisplayName("主键ID")]
  15. public Guid? DutyID { get; set; }
  16. /// <summary>
  17. /// 工作证号
  18. /// </summary>
  19. [Required]
  20. [DisplayName("工作证号")]
  21. public string LoginID { get; set; }
  22. /// <summary>
  23. /// 值班人名
  24. /// </summary>
  25. [Required]
  26. [DisplayName("值班人名")]
  27. public Guid? UserID { get; set; }
  28. /// <summary>
  29. /// 值班人名
  30. /// </summary>
  31. [DisplayName("值班人名")]
  32. public string UserName { get; set; }
  33. /// <summary>
  34. /// 时间节段
  35. /// </summary>
  36. [Required]
  37. [DisplayName("时间节段")]
  38. public int? TimesSegment { get; set; }
  39. /// <summary>
  40. /// 时间节段
  41. /// </summary>
  42. [DisplayName("时间节段")]
  43. public string TimesSegmentName { get; set; }
  44. /// <summary>
  45. /// 值班日期
  46. /// </summary>
  47. [DisplayName("值班日期")]
  48. [Required]
  49. public DateTime? DutyTime { get; set; }
  50. /// <summary>
  51. /// 开始时间
  52. /// </summary>
  53. [DisplayName("开始时间")]
  54. public string StartDate { get; set; }
  55. /// <summary>
  56. /// 开始时间
  57. /// </summary>
  58. [Required]
  59. [DisplayName("开始时间")]
  60. public int? StartHour { get; set; }
  61. /// <summary>
  62. /// 开始时间
  63. /// </summary>
  64. [Required]
  65. [DisplayName("开始时间")]
  66. public int? StartMinutes { get; set; }
  67. /// <summary>
  68. /// 结束时间
  69. /// </summary>
  70. [DisplayName("结束时间")]
  71. public string EndDate { get; set; }
  72. /// <summary>
  73. /// 结束时间
  74. /// </summary>
  75. [Required]
  76. [DisplayName("结束时间")]
  77. public int? EndHour { get; set; }
  78. /// <summary>
  79. /// 结束时间
  80. /// </summary>
  81. [Required]
  82. [DisplayName("结束时间")]
  83. public int? EndMinutes { get; set; }
  84. /// <summary>
  85. /// 任务描述
  86. /// </summary>
  87. [DisplayName("任务描述")]
  88. public string Description { get; set; }
  89. /// <summary>
  90. /// 校区
  91. /// </summary>
  92. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  93. public Guid? CampusID { get; set; }
  94. /// <summary>
  95. /// 学院
  96. /// </summary>
  97. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  98. public Guid? CollegeID { get; set; }
  99. /// <summary>
  100. /// 负责部门/科室ID
  101. /// </summary>
  102. [Required]
  103. [DisplayName("教研室ID")]
  104. public Guid? DepartmentID { get; set; }
  105. /// <summary>
  106. /// 负责部门/科室
  107. /// </summary>
  108. [DisplayName("教研室")]
  109. public string DepartmentName { get; set; }
  110. /// <summary>
  111. /// 创建人
  112. /// </summary>
  113. [DisplayName("创建人")]
  114. public Guid? CreateUserID { get; set; }
  115. /// <summary>
  116. /// 创建时间
  117. /// </summary>
  118. [DisplayName("创建时间")]
  119. public DateTime? CreateTime { get; set; }
  120. /// <summary>
  121. /// 更新人
  122. /// </summary>
  123. [DisplayName("更新人")]
  124. public Guid? ModifyUserID { get; set; }
  125. /// <summary>
  126. /// 更新时间
  127. /// </summary>
  128. [DisplayName("更新时间")]
  129. public DateTime? ModifyTime { get; set; }
  130. }
  131. }