using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.RetakeManage { public class RetakePlanSettingSchedulingView { /// /// 类型,1是重修,2是任选,3是教学任务 /// [DisplayName("类型")] public int Type { get; set; } /// /// 重修计划排课ID /// [DisplayName("重修计划排课ID")] public System.Guid SchedulingID { get; set; } /// /// 学年学期ID /// [DisplayName("学年学期ID")] public Guid? SchoolyearID { get; set; } /// /// 排课任务班 /// [DisplayName("排课任务班")] public string DefaultClassName { get; set; } /// /// 重修计划ID /// [DisplayName("重修计划ID")] public Nullable ID { get; set; } /// /// 重修班级名称 /// [DisplayName("重修班级名称")] public string ClassName { get; set; } /// /// 开课教研室ID /// [DisplayName("开课教研室ID")] public Guid? CourseDepartmentID { get; set; } /// /// 课程院系所ID /// [DisplayName("课程院系所ID")] public Guid? CourseCollegeID { get; set; } /// /// 课程时间ID /// [DisplayName("课程时间ID")] public Guid? CoursesTimeID { get; set; } /// /// 星期 /// [DisplayName("星期")] public Nullable Weekday { get; set; } /// /// 星期 /// [DisplayName("星期")] public string WeekdayName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString()) .Where(x => x.Value == Weekday) .Select(x => x.Name).FirstOrDefault(); } } /// /// 时间段 /// [Required] [DisplayName("时间段")] public int? TimesSegment { get; set; } /// /// 时间段 /// [DisplayName("时间段")] public string TimesSegmentName { get; set; } /// /// 开始周次 /// [DisplayName("开始周次")] [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")] public int? StartWeeklyNum { get; set; } /// /// 结束周次 /// [DisplayName("结束周次")] [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")] public int? EndWeeklyNum { get; set; } /// /// 周次 /// [Required] [DisplayName("周次")] public Nullable Week { get; set; } /// /// 开始节次 /// [Required] [DisplayName("开始节次")] public Nullable StartTimes { get; set; } /// /// 结束节次 /// [Required] [DisplayName("结束节次")] public Nullable EndTimes { get; set; } /// /// 节次 /// [DisplayName("节次")] public string Times { get { if (StartTimes == EndTimes) { return StartTimes.Value.ToString(); } return StartTimes.Value.ToString() + "-" + EndTimes.Value.ToString(); } } /// /// 上课时间 /// [DisplayName("上课时间")] public string WeekdayTimesSegmentName { get; set; } /// /// 教室类型 /// [DisplayName("教室类型")] public Nullable ClassroomTypeID { get; set; } /// /// 教室类型 /// [DisplayName("教室类型")] public string ClassroomTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString()) .Where(x => x.Value == ClassroomTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 教室ID /// [DisplayName("教室ID")] public Nullable ClassroomID { get; set; } /// /// 教室 /// [DisplayName("教室")] public string ClassroomName { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public int? TeachingModeID { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public string TeachingModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()) .Where(x => x.Value == TeachingModeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 状态 /// [DisplayName("状态")] public Nullable RecordStatus { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public Nullable CreateTime { get; set; } /// /// 创建人ID /// [DisplayName("创建人ID")] public Nullable CreateUserID { get; set; } /// /// 修改人ID /// [DisplayName("修改人ID")] public Nullable ModifyUserID { get; set; } /// /// 修改时间 /// [DisplayName("修改时间")] public Nullable ModifyTime { get; set; } } }