123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- namespace EMIS.ViewModel.EducationSchedule
- {
- public class EducationSchedulingStopView
- {
- public EducationSchedulingStopView()
- {
- this.ScheduleWeekNumList = new List<int?>();
- this.TeacherList = new List<EducationSchedulingStopTeacherView>();
- }
- public System.Guid EducationSchedulingStopID { get; set; }
- public Guid? SchoolyearID { get; set; }
- public string SchoolyearCode { get; set; }
- public string CourseCode { get; set; }
- public string CourseName { get; set; }
- public Nullable<System.Guid> EducationMissionClassID { get; set; }
- public string EducationMissionClassName { get; set; }
- public Guid? UserID { get; set; }
- public string applyUserName { get; set; }
- public DateTime? ApplyTime { get; set; }
- public List<EducationSchedulingStopTeacherView> TeacherList { get; set; }
- public string TeacherNames
- {
- get
- {
- return string.Join(",", TeacherList.Select(w => w.Name));
- }
- }
- public IList<int?> ScheduleWeekNumList { get; set; }
- [Required]
- [DisplayName("停课周次")]
- public Nullable<int> WeekNum { get; set; }
- public Nullable<int> Weekday { get; set; }
- public string WeekdayDesc
- {
- get
- {
- return WeekDayView.GetWeekdayName(Weekday);
- }
- }
- public Guid? CoursesTimeID { get; set; }
- public int? StartTimes { get; set; }
- public int? EndTimes { get; set; }
- public string CoursesTimeName
- {
- get
- {
- return (StartTimes ?? 0).ToString()
- + "-"
- + (EndTimes ?? 0).ToString();
- }
- }
- public string TimeDetail
- {
- get
- {
- return "第" + WeekNum.ToString() + "周" + WeekdayDesc.Replace("星期", "周") + "第" + CoursesTimeName + "节";
- }
- }
- public Guid? ClassroomID { get; set; }
- public string ClassroomName { get; set; }
- public Guid? CreateUserID { get; set; }
- public string CreateUserName { get; set; }
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// RecordStatus
- /// </summary>
- public Nullable<int> RecordStatus { get; set; }
- public string RecordStatusName { get; set; }
- }
- }
|