123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- 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.SelectCourse
- {
- public class ExecutableFreeSelectionCouseSchedulingView
- {
- public string DefaultClassName { get; set; }
- /// <summary>
- /// CourseProcessID
- /// </summary>
- [DisplayName("ID")]
- public System.Guid SchedulingID { get; set; }
- /// <summary>
- /// EducationSchedulingClassID
- /// </summary>
- public Guid? SchoolyearID { get; set; }
- [DisplayName("任选ID")]
- public Nullable<System.Guid> ID { get; set; }
- [DisplayName("任务班名称")]
- public string ClassName { get; set; }
- public Guid? CourseCollegeID { get; set; }
- public Guid? CoursesTimeID { get; set; }
- /// <summary>
- /// 时间节段
- /// </summary>
- [Required]
- [DisplayName("时间节段")]
- public int? TimesSegment { get; set; }
- /// <summary>
- /// 时间节段
- /// </summary>
- [DisplayName("时间节段")]
- public string TimesSegmentName { 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> StartTimes { get; set; }
- public Nullable<int> EndTimes { get; set; }
- public string Times
- {
- get
- {
- if (StartTimes == EndTimes)
- {
- return StartTimes.Value.ToString();
- }
- return StartTimes.Value.ToString() + "-" + EndTimes.Value.ToString();
- }
- }
- /// <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; }
- /// <summary>
- /// 星期
- /// </summary>
- public Nullable<int> Weekday { get; set; }
- public string WeekdayName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
- .Where(x => x.Value == Weekday)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- public string WeekdayName1
- {
- get; set;
- }
- [DisplayName("上课时间")]
- public string WeekdayTimesSegmentName { 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>
- /// 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; }
- }
- }
|