using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bowin.Common.Utility; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.EducationManage { public class EducationSchedulingClassScheduleView : EducationSchedulingClassView { public Guid? DepartmentID { get; set; } /// /// 院系所 /// public Guid? CollegeID { get; set; } /// /// 开课院系所 /// public Guid? CourseCollegeID { get; set; } /// /// 学年学期 /// public Guid? SchoolYearID { get; set; } /// /// 课程ID /// public Guid? CoursematerialID { get; set; } /// /// 课程名称 /// public string CoursematerialName { get; set; } /// /// 授课方式 /// public int? TeachingModeID { get; set; } public string TeachingModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()) .Where(x => x.Value == TeachingModeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 课程类型 /// public int? CourseTypeID { get; set; } //每周次数 public int? WeekTimes { get; set; } /// /// 周学时 /// public int? WeeklyHours { get; set; } /// /// 任务班名称 /// public string EducationMissionClassName { get; set; } /// /// 排课序号 /// public int? EducationMissionClassOrderNo { get; set; } /// /// 选修类型 /// public int? OptionalCourseTypeID { get; set; } /// /// 教室ID /// public Guid? ClassroomID { get; set; } public string ClassroomName { get; set; } /// /// 教室类型ID /// public int? ClassroomTypeID { get; set; } /// /// 上课周列表 /// public List WeeklyNumList { get; set; } /// /// 上课周字符串 /// public string WeeklyNumString { get { return WeeklyNumList.GetWeekNumString(); } } /// /// 教师列表 /// public List TeacherTeachingViewList { get; set; } public List ClassMajorIDList { get; set; } public List CourseProcessViewList { get; set; } public string TeacherNames { get { return string.Join(",", TeacherTeachingViewList.Select(x => x.Name).Distinct().ToList()); } } /// /// 执行学时 /// public int? ExecutablePlanCourseTime { get; set; } /// /// 剩余学时 /// public int? RemainCourseTime { get; set; } /// /// 开始周次 /// public int? StartWeeklyNum { get; set; } /// /// 结束周次 /// public int? EndWeeklyNum { get; set; } /// /// 执行周次 /// public string StartStopWeeklyNum { get { return (string.Format("{0}-{1}", StartWeeklyNum, EndWeeklyNum)); } } /// /// 根据院系优先级设置,判断该教学任务是否在可编辑时间段内 /// public bool IsCanEdit { get; set; } /// /// 获取院系课表提交状态 /// public int? CollegeApproveStatusID { get; set; } } }