using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; using EMIS.Entities; namespace EMIS.ViewModel.RetakeManage { public class RetakeStudentApproveView : RetakeStudentView { public Guid RetakePlanStudentID { get; set; } public string SchoolyearCode { get; set; } public Guid? EducationMissionID { get; set; } public string LoginID { get; set; } public string UserName { get; set; } public Guid? ClassmajorID { get; set; } public string ClassmajorName { get; set; } public Guid? CollegeID { get; set; } public string CollegeNo { get; set; } public string CollegeName { get; set; } public string ClassName { get; set; } public IEnumerable RetakePlanStudentTeacherView { get; set; } public string TeacherName { get { string name = string.Empty; if (RetakePlanStudentTeacherView != null) name = string.Join(",", RetakePlanStudentTeacherView.Select(s => s.Name)); if (string.IsNullOrEmpty(name)) { return ""; } else { return name; } } } public IEnumerable ScheduleDate { get; set; } public string ScheduleDateString { get { return string.Join(",", (from d in ScheduleDate group d by d.Value.Month into g select g.Key.ToString() + "月" + string.Join("、", g.Select(x => x.Value.Day.ToString())))); } } public int? TimeID { get; set; } public string CourseTimeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString()) .Where(x => x.Value == TimeID) .Select(x => x.Name).FirstOrDefault(); } } public Guid? CourseTimeID { get; set; } public int? TotalHours { get; set; } public Guid? ClassroomID { get; set; } public string ClassroomName { get; set; } public int? RecordStatus { get; set; } public string RecordStatusDesc { get; set; } } }