123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.EducationManage
- {
- public class CourseProcessView
- {
- public CourseProcessView()
- {
- CourseProcessTeacherViewList = new List<CourseProcessTeacherView>();
- }
- /// <summary>
- /// CourseProcessID
- /// </summary>
- [DisplayName("课程进度ID")]
- public System.Guid CourseProcessID { get; set; }
- /// <summary>
- /// EducationSchedulingClassID
- /// </summary>
- [DisplayName("任务班名称")]
- public Nullable<System.Guid> EducationMissionClassID { get; set; }
- [DisplayName("任务班名称")]
- public string EducationMissionClassName { get; set; }
- public Guid? CollegeID { get; set; }
- public Guid? CourseCollegeID { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public int? TeachingModeID { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public string TeachingModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- .Where(x => x.Value == TeachingModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// Week
- /// </summary>
- [Required]
- [DisplayName("周次")]
- public Nullable<int> Week { get; set; }
- /// <summary>
- /// Times
- /// </summary>
- [Required]
- [DisplayName("学时")]
- public Nullable<int> Times { get; set; }
- /// <summary>
- /// ClassroomTypeID
- /// </summary>
- [DisplayName("教室类型")]
- public Nullable<int> ClassroomTypeID { get; set; }
- [DisplayName("教室类型")]
- public string ClassroomTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
- .Where(x => x.Value == ClassroomTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// ClassroomTypeID
- /// </summary>
- [DisplayName("教室")]
- public Nullable<Guid> ClassroomID { get; set; }
- [DisplayName("教室")]
- public string ClassroomName { get; set; }
- public IList<CourseProcessTeacherView> CourseProcessTeacherViewList { get; set; }
- //public string StaffIDAndTeachTypes { get; set; }
- public string StaffNames { get { return string.Join(",", CourseProcessTeacherViewList.OrderBy(w => w.TeachingMethod).ThenBy(w => w.Name).Select(w => w.Name)); } }
- /// <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; }
- }
- }
|