using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bowin.Common.Utility; namespace EMIS.ViewModel.EducationSchedule { public class ClassroomExcessiveUseSchedulingView { /// /// ClassroomExcessiveUseSchedulingID /// public System.Guid ClassroomExcessiveUseSchedulingID { get; set; } /// /// ClassroomExcessiveUseID /// public Nullable ClassroomExcessiveUseID { get; set; } public Nullable CollegeID { get; set; } /// /// WeekNum /// public IEnumerable WeekNumList { get; set; } /// /// Weekday /// public Nullable Weekday { get; set; } public string WeekdayDesc { get { if (!Weekday.HasValue) return null; if (Weekday == 0) return "星期日"; if (Weekday > 0 && Weekday <= 6) return "星期" + Weekday.Value.ConvertToChinese(); return ""; } } /// /// CoursesTimeID /// public Nullable CoursesTimeID { get; set; } public Nullable StartTimes { get; set; } public Nullable EndTimes { get; set; } public Nullable StartHour { get; set; } public Nullable StartMinute { get; set; } public Nullable EndHour { get; set; } public Nullable EndMinute { get; set; } public string TimeDesc { get { return string.Format("{0}-{1}节", StartTimes, EndTimes); } } } }