123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- 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.RetakeManage
- {
- public class RetakePlanSettingSchedulingView
- {
- /// <summary>
- /// 类型,1是重修,2是任选,3是教学任务
- /// </summary>
- [DisplayName("类型")]
- public int Type { get; set; }
- /// <summary>
- /// 重修计划排课ID
- /// </summary>
- [DisplayName("重修计划排课ID")]
- public System.Guid SchedulingID { get; set; }
-
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期ID")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 排课任务班
- /// </summary>
- [DisplayName("排课任务班")]
- public string DefaultClassName { get; set; }
- /// <summary>
- /// 重修计划ID
- /// </summary>
- [DisplayName("重修计划ID")]
- public Nullable<System.Guid> ID { get; set; }
- /// <summary>
- /// 重修班级名称
- /// </summary>
- [DisplayName("重修班级名称")]
- public string ClassName { get; set; }
- /// <summary>
- /// 开课教研室ID
- /// </summary>
- [DisplayName("开课教研室ID")]
- public Guid? CourseDepartmentID { get; set; }
- /// <summary>
- /// 课程院系所ID
- /// </summary>
- [DisplayName("课程院系所ID")]
- public Guid? CourseCollegeID { get; set; }
- /// <summary>
- /// 课程时间ID
- /// </summary>
- [DisplayName("课程时间ID")]
- public Guid? CoursesTimeID { get; set; }
- /// <summary>
- /// 星期
- /// </summary>
- [DisplayName("星期")]
- public Nullable<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 int? TimesSegment { get; set; }
- /// <summary>
- /// 时间段
- /// </summary>
- [DisplayName("时间段")]
- public string TimesSegmentName { get; set; }
- /// <summary>
- /// 开始周次
- /// </summary>
- [DisplayName("开始周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? StartWeeklyNum { get; set; }
- /// <summary>
- /// 结束周次
- /// </summary>
- [DisplayName("结束周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? EndWeeklyNum { get; set; }
- /// <summary>
- /// 周次
- /// </summary>
- [Required]
- [DisplayName("周次")]
- public Nullable<int> Week { get; set; }
- /// <summary>
- /// 开始节次
- /// </summary>
- [Required]
- [DisplayName("开始节次")]
- public Nullable<int> StartTimes { get; set; }
- /// <summary>
- /// 结束节次
- /// </summary>
- [Required]
- [DisplayName("结束节次")]
- public Nullable<int> EndTimes { get; set; }
- /// <summary>
- /// 节次
- /// </summary>
- [DisplayName("节次")]
- public string Times
- {
- get
- {
- if (StartTimes == EndTimes)
- {
- return StartTimes.Value.ToString();
- }
- return StartTimes.Value.ToString() + "-" + EndTimes.Value.ToString();
- }
- }
- /// <summary>
- /// 上课时间
- /// </summary>
- [DisplayName("上课时间")]
- public string WeekdayTimesSegmentName { get; set; }
- /// <summary>
- /// 教室类型
- /// </summary>
- [DisplayName("教室类型")]
- public Nullable<int> ClassroomTypeID { get; set; }
- /// <summary>
- /// 教室类型
- /// </summary>
- [DisplayName("教室类型")]
- public string ClassroomTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
- .Where(x => x.Value == ClassroomTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 教室ID
- /// </summary>
- [DisplayName("教室ID")]
- public Nullable<Guid> ClassroomID { get; set; }
- /// <summary>
- /// 教室
- /// </summary>
- [DisplayName("教室")]
- public string ClassroomName { 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>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public Nullable<int> RecordStatus { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public Nullable<System.DateTime> CreateTime { get; set; }
- /// <summary>
- /// 创建人ID
- /// </summary>
- [DisplayName("创建人ID")]
- public Nullable<System.Guid> CreateUserID { get; set; }
- /// <summary>
- /// 修改人ID
- /// </summary>
- [DisplayName("修改人ID")]
- public Nullable<System.Guid> ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public Nullable<System.DateTime> ModifyTime { get; set; }
- }
- }
|