using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace EMIS.ViewModel.CalendarManage { public class DutyView { /// /// 主键ID /// [DisplayName("主键ID")] public Guid? DutyID { get; set; } /// /// 工作证号 /// [Required] [DisplayName("工作证号")] public string LoginID { get; set; } /// /// 值班人名 /// [Required] [DisplayName("值班人名")] public Guid? UserID { get; set; } /// /// 值班人名 /// [DisplayName("值班人名")] public string UserName { get; set; } /// /// 时间节段 /// [Required] [DisplayName("时间节段")] public int? TimesSegment { get; set; } /// /// 时间节段 /// [DisplayName("时间节段")] public string TimesSegmentName { get; set; } /// /// 值班日期 /// [DisplayName("值班日期")] [Required] public DateTime? DutyTime { get; set; } /// /// 开始时间 /// [DisplayName("开始时间")] public string StartDate { get; set; } /// /// 开始时间 /// [Required] [DisplayName("开始时间")] public int? StartHour { get; set; } /// /// 开始时间 /// [Required] [DisplayName("开始时间")] public int? StartMinutes { get; set; } /// /// 结束时间 /// [DisplayName("结束时间")] public string EndDate { get; set; } /// /// 结束时间 /// [Required] [DisplayName("结束时间")] public int? EndHour { get; set; } /// /// 结束时间 /// [Required] [DisplayName("结束时间")] public int? EndMinutes { get; set; } /// /// 任务描述 /// [DisplayName("任务描述")] public string Description { get; set; } /// /// 校区 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")] public Guid? CampusID { get; set; } /// /// 学院 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public Guid? CollegeID { get; set; } /// /// 负责部门/科室ID /// [Required] [DisplayName("教研室ID")] public Guid? DepartmentID { get; set; } /// /// 负责部门/科室 /// [DisplayName("教研室")] public string DepartmentName { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 更新人 /// [DisplayName("更新人")] public Guid? ModifyUserID { get; set; } /// /// 更新时间 /// [DisplayName("更新时间")] public DateTime? ModifyTime { get; set; } } }