123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- 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
- {
- /// <summary>
- /// 排课课表ID
- /// </summary>
- public System.Guid EducationSchedulingID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- public Nullable<System.Guid> SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 课程ID
- /// </summary>
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- public string CoursematerialName { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- 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();
- }
- }
- /// <summary>
- /// 排课班ID
- /// </summary>
- public Nullable<System.Guid> EducationSchedulingClassID { get; set; }
- /// <summary>
- /// 排课班
- /// </summary>
- public string TaskGroupName { get; set; }
- /// <summary>
- /// 任务班
- /// </summary>
- public Guid? EducationMissionClassID { get; set; }
- /// <summary>
- /// 任务班
- /// </summary>
- public string EducationMissionClassName { get; set; }
- /// <summary>
- /// 上课周次
- /// </summary>
- public List<int?> WeekNumList { get; set; }
- /// <summary>
- /// 上课周字符串
- /// </summary>
- public string WeeklyNumString
- {
- get
- {
- return WeekNumList.GetWeekNumString();
- }
- }
- /// <summary>
- /// 星期
- /// </summary>
- public Nullable<int> Weekday { get; set; }
- /// <summary>
- /// 课程时间
- /// </summary>
- public Nullable<System.Guid> CoursesTimeID { get; set; }
- /// <summary>
- /// 课程时间视图
- /// </summary>
- public BaseWorkTimeView CoursesTime { get; set; }
- /// <summary>
- /// ClassroomTypeID
- /// </summary>
- public Nullable<int> ClassroomTypeID { get; set; }
- /// <summary>
- /// ClassroomID
- /// </summary>
- public Nullable<System.Guid> ClassroomID { get; set; }
- public string ClassroomName { get; set; }
- /// <summary>
- /// RecordStatus
- /// </summary>
- public Nullable<int> RecordStatus { get; set; }
- /// <summary>
- /// CreateTime
- /// </summary>
- public Nullable<System.DateTime> CreateTime { get; set; }
- /// <summary>
- /// CreateUserID
- /// </summary>
- public Nullable<System.Guid> CreateUserID { get; set; }
- /// <summary>
- /// ModifyUserID
- /// </summary>
- public Nullable<System.Guid> ModifyUserID { get; set; }
- /// <summary>
- /// ModifyTime
- /// </summary>
- public Nullable<System.DateTime> ModifyTime { get; set; }
- /// <summary>
- /// 教师列表
- /// </summary>
- public List<BaseTeacherTeachingView> TeacherTeachingViewList { get; set; }
- public List<Guid> ClassMajorIDList { get; set; }
- public string TeacherNames
- {
- get
- {
- return string.Join(",", TeacherTeachingViewList.Select(x => x.Name).Distinct().ToList());
- }
- }
- public string TeracherNamesWithLink
- {
- get
- {
- string anchorStart = "<a href=#this class=\"scheduleItemTeacherLink\" style=\"color: blue;\" onclick=popupTeacherReport('";
- string anchorMiddle = "')>";
- string anchorEnd = "</a>";
- var teacherLinkList = TeacherTeachingViewList.Select(x =>
- anchorStart + x.UserID.ToString() + anchorMiddle + x.Name + anchorEnd).Distinct().ToList();
- return string.Join(",", teacherLinkList);
- }
- }
- public List<CourseProcessView> CourseProcessViewList { get; set; }
- public Guid? CollegeID { get; set; }
- public Guid? CourseCollegeID { get; set; }
- public int? StudentCount { get; set; }
- /// <summary>
- /// 根据院系优先级设置,判断该教学任务是否在可编辑时间段内
- /// </summary>
- public bool IsCanEdit { get; set; }
- }
- }
|