using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EMIS.ViewModel.CalendarManage;
using EMIS.ViewModel.CacheManage;
using Bowin.Common.Utility;
using EMIS.ViewModel.EducationManage;
namespace EMIS.ViewModel.EducationSchedule
{
public class EducationSchedulingView
{
///
/// 排课课表ID
///
public System.Guid EducationSchedulingID { get; set; }
///
/// 学年学期
///
public Nullable SchoolyearID { get; set; }
///
/// 学年学期
///
public string SchoolyearCode { 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();
}
}
///
/// 排课班ID
///
public Nullable EducationSchedulingClassID { get; set; }
///
/// 排课班
///
public string TaskGroupName { get; set; }
///
/// 任务班
///
public Guid? EducationMissionClassID { get; set; }
///
/// 任务班
///
public string EducationMissionClassName { get; set; }
///
/// 上课周次
///
public List WeekNumList { get; set; }
///
/// 上课周字符串
///
public string WeeklyNumString
{
get
{
return WeekNumList.GetWeekNumString();
}
}
///
/// 星期
///
public Nullable Weekday { get; set; }
///
/// 课程时间
///
public Nullable CoursesTimeID { get; set; }
///
/// 课程时间视图
///
public BaseWorkTimeView CoursesTime { get; set; }
///
/// ClassroomTypeID
///
public Nullable ClassroomTypeID { get; set; }
///
/// ClassroomID
///
public Nullable ClassroomID { get; set; }
public string ClassroomName { get; set; }
///
/// RecordStatus
///
public Nullable RecordStatus { get; set; }
///
/// CreateTime
///
public Nullable CreateTime { get; set; }
///
/// CreateUserID
///
public Nullable CreateUserID { get; set; }
///
/// ModifyUserID
///
public Nullable ModifyUserID { get; set; }
///
/// ModifyTime
///
public Nullable ModifyTime { get; set; }
///
/// 教师列表
///
public List TeacherTeachingViewList { get; set; }
public List ClassMajorIDList { get; set; }
public string TeacherNames
{
get
{
return string.Join(",", TeacherTeachingViewList.Select(x => x.Name).Distinct().ToList());
}
}
public string TeracherNamesWithLink
{
get
{
string anchorStart = "
anchorStart + x.UserID.ToString() + anchorMiddle + x.Name + anchorEnd).Distinct().ToList();
return string.Join(",", teacherLinkList);
}
}
public List CourseProcessViewList { get; set; }
public Guid? CollegeID { get; set; }
public Guid? CourseCollegeID { get; set; }
public int? StudentCount { get; set; }
///
/// 根据院系优先级设置,判断该教学任务是否在可编辑时间段内
///
public bool IsCanEdit { get; set; }
}
}