123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using EMIS.ViewModel.CacheManage;
- using EMIS.ViewModel.EducationManagement;
- using EMIS.Entities;
- using System.ComponentModel.DataAnnotations;
- namespace EMIS.ViewModel.EducationManage
- {
- public class EducationMissionClassCheckView
- {
- /// <summary>
- /// 教学检查ID
- /// </summary>
- [Required]
- [DisplayName("教学检查ID")]
- public Guid EducationMissionClassCheckID { get; set; }
- /// <summary>
- /// 排课周次ID
- /// </summary>
- [DisplayName("排课周次ID")]
- public Guid? EducationSchedulingWeekNumID { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- public string CollegeNo { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 任务班ID
- /// </summary>
- [Required]
- [DisplayName("任务班")]
- public Guid? EducationMissionClassID { get; set; }
- /// <summary>
- /// 任务班名称
- /// </summary>
- [DisplayName("任务班名称")]
- public string EducationMissionClassName { get; set; }
- /// <summary>
- /// 排课课表ID
- /// </summary>
- [DisplayName("排课课表ID")]
- public Guid? EducationSchedulingID { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [Required]
- [DisplayName("学年学期")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 课程信息ID
- /// </summary>
- [Required]
- [DisplayName("课程")]
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程代码
- /// </summary>
- [DisplayName("课程代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 教师ID
- /// </summary>
- public List<Guid> UserID { get; set; }
- /// <summary>
- /// 教师姓名
- /// </summary>
- [DisplayName("授课老师")]
- public string TeacherName
- {
- get
- {
- string name = string.Empty;
- if (MissionClassTeacherView != null)
- name = string.Join(",", MissionClassTeacherView.Select(s => s.Name));
- if (string.IsNullOrEmpty(name))
- {
- return "";
- }
- else
- {
- return name;
- }
- }
- }
- [DisplayName("授课老师集合")]
- public IEnumerable<MissionClassTeacherView> MissionClassTeacherView { get; set; }
- /// <summary>
- /// 周次
- /// </summary>
- [Required]
- [DisplayName("周次")]
- public int? WeekNum { get; set; }
- /// <summary>
- /// 星期
- /// </summary>
- [Required]
- [DisplayName("星期")]
- public int? Weekday { get; set; }
- /// <summary>
- /// 星期
- /// </summary>
- [DisplayName("星期")]
- public string WeekdayName {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
- .Where(x => x.Value == Weekday)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程时间
- /// </summary>
- [Required]
- [DisplayName("节次")]
- public Guid? CoursesTimeID { get; set; }
- /// <summary>
- /// 开始节次
- /// </summary>
- [DisplayName("开始节次")]
- public int StartTimes { get; set; }
- /// <summary>
- /// 结束节次
- /// </summary>
- [DisplayName("结束节次")]
- public int EndTimes { get; set; }
- /// <summary>
- /// 节次
- /// </summary>
- [DisplayName("节次")]
- public string Times
- {
- get
- {
- if (StartTimes == EndTimes)
- {
- return StartTimes.ToString();
- }
- else
- {
- return StartTimes.ToString() + "-" + EndTimes.ToString();
- }
- }
- }
- /// <summary>
- /// 时间节段
- /// </summary>
- public int TimesSegment { get; set; }
- /// <summary>
- /// TimesSegment
- /// </summary>
- public string TimesSegmentName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
- .Where(x => x.Value == TimesSegment)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 教室ID
- /// </summary>
- [Required]
- [DisplayName("场地")]
- public Guid? ClassroomID { get; set; }
- /// <summary>
- /// 教室编号
- /// </summary>
- [DisplayName("教室编号")]
- public string ClassroomCode { get; set; }
- /// <summary>
- /// 教室名称
- /// </summary>
- [DisplayName("教室名称")]
- public string ClassroomName { get; set; }
- /// <summary>
- /// 学生情况
- /// </summary>
- [DisplayName("学生情况")]
- public string StudentComment { get; set; }
- /// <summary>
- /// 教师情况
- /// </summary>
- [DisplayName("教师情况")]
- public string TeacherComment { get; set; }
- /// <summary>
- /// 设备及其他情况
- /// </summary>
- [DisplayName("设备及其他情况")]
- public string DeviceComment { get; set; }
- /// <summary>
- /// 检查方式
- /// </summary>
- [DisplayName("检查方式")]
- public int? CheckWayID { get; set; }
- /// <summary>
- /// 检查方式
- /// </summary>
- [DisplayName("检查方式")]
- public string CheckWayName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassCheckWay.ToString())
- .Where(x => x.Value == CheckWayID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 处理意见
- /// </summary>
- [DisplayName("处理意见")]
- public int? OpinionID { get; set; }
- /// <summary>
- /// 处理意见
- /// </summary>
- [DisplayName("处理意见")]
- public string OpinionName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassCheckOpinion.ToString())
- .Where(x => x.Value == OpinionID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 检查人员
- /// </summary>
- [DisplayName("检查人员")]
- public IEnumerable<Sys_User> Sys_User { get; set; }
- /// <summary>
- /// 检查人员姓名
- /// </summary>
- [DisplayName("检查人员姓名")]
- public string CheckPersonName
- {
- get
- {
- string name = string.Empty;
- if (Sys_User != null)
- name = string.Join(",", Sys_User.Select(s => s.Name));
- if (string.IsNullOrEmpty(name))
- {
- return "";
- }
- else
- {
- return name;
- }
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- }
- }
|