using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; using System.ComponentModel.DataAnnotations; using System.ComponentModel; namespace EMIS.ViewModel.EducationSchedule { public class EducationSchedulingStopView { public EducationSchedulingStopView() { this.ScheduleWeekNumList = new List(); this.TeacherList = new List(); } public System.Guid EducationSchedulingStopID { get; set; } public Guid? SchoolyearID { get; set; } public string SchoolyearCode { get; set; } public string CourseCode { get; set; } public string CourseName { get; set; } public Nullable EducationMissionClassID { get; set; } public string EducationMissionClassName { get; set; } public Guid? UserID { get; set; } public string applyUserName { get; set; } public DateTime? ApplyTime { get; set; } public List TeacherList { get; set; } public string TeacherNames { get { return string.Join(",", TeacherList.Select(w => w.Name)); } } public IList ScheduleWeekNumList { get; set; } [Required] [DisplayName("停课周次")] public Nullable WeekNum { get; set; } public Nullable Weekday { get; set; } public string WeekdayDesc { get { return WeekDayView.GetWeekdayName(Weekday); } } public Guid? CoursesTimeID { get; set; } public int? StartTimes { get; set; } public int? EndTimes { get; set; } public string CoursesTimeName { get { return (StartTimes ?? 0).ToString() + "-" + (EndTimes ?? 0).ToString(); } } public string TimeDetail { get { return "第" + WeekNum.ToString() + "周" + WeekdayDesc.Replace("星期", "周") + "第" + CoursesTimeName + "节"; } } public Guid? ClassroomID { get; set; } public string ClassroomName { get; set; } public Guid? CreateUserID { get; set; } public string CreateUserName { get; set; } public DateTime? CreateTime { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } public string RecordStatusName { get; set; } } }