12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- 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
- {
- /// <summary>
- /// ExaminationRoomLayoutID
- /// </summary>
- public System.Guid ExaminationRoomLayoutID { get; set; }
- [Required]
- [DisplayName("考试计划")]
- public System.Guid ExaminationPlanID { get; set; }
- [Required]
- [DisplayName("教室")]
- public Nullable<System.Guid> ClassroomID { get; set; }
- public string ClassroomName { get; set; }
- public Nullable<int> Totalseating { get; set; }
- public Nullable<int> Examinationseating { get; set; }
- [Required]
- [DisplayName("行间隔")]
- public Nullable<int> RowSpacing { get; set; }
- [Required]
- [DisplayName("列间隔")]
- public Nullable<int> ColumnSpacing { get; set; }
- [Required]
- [DisplayName("排序")]
- public Nullable<int> 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> Sys_User { get; set; }
- public string TeacherNames
- {
- get
- {
- return string.Join(",", Sys_User.Select(x => x.Name));
- }
- }
- public IEnumerable<EX_ExaminationRoomStudent> EX_ExaminationRoomStudent { get; set; }
- public bool IsSubmitted { 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; }
- }
- }
|