using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using EMIS.ViewModel.CacheManage; using EMIS.Entities; namespace EMIS.ViewModel.ExaminationManage { public class ExaminationRoomLayoutView { /// /// ExaminationRoomLayoutID /// public System.Guid ExaminationRoomLayoutID { get; set; } [Required] [DisplayName("考试计划")] public System.Guid ExaminationPlanID { get; set; } [Required] [DisplayName("教室")] public Nullable ClassroomID { get; set; } public string ClassroomName { get; set; } public Nullable Totalseating { get; set; } public Nullable Examinationseating { get; set; } [Required] [DisplayName("行间隔")] public Nullable RowSpacing { get; set; } [Required] [DisplayName("列间隔")] public Nullable ColumnSpacing { get; set; } [Required] [DisplayName("排序")] public Nullable StudentOrderType { get; set; } public string StudentOrderTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentOrderType.ToString()) .Where(x => x.Value == StudentOrderType) .Select(x => x.Name).FirstOrDefault(); } } public string SpacingDesc { get { return string.Format("隔{0}行{1}列,排序{2}", RowSpacing, ColumnSpacing, StudentOrderTypeName); } } public int StudentNum { get; set; } public IEnumerable Sys_User { get; set; } public string TeacherNames { get { return string.Join(",", Sys_User.Select(x => x.Name)); } } public IEnumerable EX_ExaminationRoomStudent { get; set; } public bool IsSubmitted { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } /// /// CreateTime /// public Nullable CreateTime { get; set; } /// /// CreateUserID /// public Nullable CreateUserID { get; set; } /// /// ModifyUserID /// public Nullable ModifyUserID { get; set; } /// /// ModifyTime /// public Nullable ModifyTime { get; set; } } }