123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.UniversityManage.ClassroomManage
- {
- public class ClassroomView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid? ClassroomID { get; set; }
- /// <summary>
- /// 教室编号
- /// </summary>
- [Required]
- [DisplayName("教室编号")]
- public string Code { get; set; }
- /// <summary>
- /// 教室名称
- /// </summary>
- [Required]
- [DisplayName("教室名称")]
- public string Name { get; set; }
- /// <summary>
- /// 建筑名称
- /// </summary>
- [Required]
- [DisplayName("建筑名称")]
- public Guid? BuildingsInfoID { get; set; }
- /// <summary>
- /// 建筑编号
- /// </summary>
- [DisplayName("建筑编号")]
- public string BuildingsInfoCode { get; set; }
- /// <summary>
- /// 建筑名称
- /// </summary>
- [DisplayName("建筑名称")]
- public string BuildingsInfoName { get; set; }
- /// <summary>
- /// 校区ID(此为教室信息中的建筑信息对应的校区ID)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区代码(此为教室信息中的建筑信息对应的校区代码)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CampusCode { get; set; }
- /// <summary>
- /// 校区名称(此为教室信息中的建筑信息对应的校区)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
- public string CampusName { get; set; }
- /// <summary>
- /// 院系所ID(此为教室信息所属的院系所ID)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码(此为教室信息所属的院系所代码)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- public string CollegeCode { get; set; }
- /// <summary>
- /// 院系所(此为教室信息所属的院系所)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 单位类别
- /// </summary>
- [DisplayName("单位类别")]
- public int? UnitCategoryID { get; set; }
- /// <summary>
- /// 单位类别
- /// </summary>
- [DisplayName("单位类别")]
- public string UnitCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString()).Where(x => x.Value == UnitCategoryID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 校区ID(此为教室信息所属的院系所对应的校区ID)
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
- public Guid? CollegeCampusID { get; set; }
- /// <summary>
- /// 校区代码(此为教室信息所属的院系所对应的校区代码)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CollegeCampusCode { get; set; }
- /// <summary>
- /// 校区(此为教室信息所属的院系所对应的校区)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
- public string CollegeCampusName { get; set; }
- /// <summary>
- /// 教室类型CF_ClassroomType
- /// </summary>
- [DisplayName("教室类型")]
- public IEnumerable<EMIS.Entities.CF_ClassroomType> CF_ClassroomType { get; set; }
- /// <summary>
- /// 教室类型List
- /// </summary>
- [DisplayName("教室类型")]
- public List<int> ClassroomTypeID { get; set; }
- /// <summary>
- /// 教室类型List
- /// </summary>
- [DisplayName("教室类型")]
- public List<int?> ClassroomTypeIDList { get; set; }
- /// <summary>
- /// 教室类型List(Excel导入用,可存在多个教室类型--用顿号隔开)
- /// </summary>
- [DisplayName("教室类型")]
- public string ClassroomTypeIDListStr { get; set; }
- /// <summary>
- /// 教室类型(可存在多个教室类型--用顿号隔开)
- /// </summary>
- [DisplayName("教室类型")]
- public string ClassroomTypeName
- {
- get
- {
- if (CF_ClassroomType != null && CF_ClassroomType.Count() > 0)
- {
- return string.Join("、", CF_ClassroomType.Select(x =>
- IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString()).Where(w => w.Value == x.ClassroomType).Select(w => w.Name).FirstOrDefault()));
- }
- else
- {
- return "";
- }
- }
- }
- /// <summary>
- /// 布局类型(暂时无效)
- /// </summary>
- [DisplayName("布局类型")]
- public Guid? LayoutTypeID { get; set; }
- /// <summary>
- /// 房间用途
- /// </summary>
- [DisplayName("房间用途")]
- public int? RoomUseID { get; set; }
- /// <summary>
- /// 房间用途(Excel导入用)
- /// </summary>
- [DisplayName("房间用途")]
- public string RoomUseStr { get; set; }
- /// <summary>
- /// 房间用途
- /// </summary>
- [DisplayName("房间用途")]
- public string RoomUseName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_RoomUse.ToString()).Where(x => x.Value == RoomUseID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 所在楼层
- /// </summary>
- [DisplayName("所在楼层")]
- [RegularExpression(@"^-?\d+$", ErrorMessage = "请输入整数")]
- public int? FloorLevel { get; set; }
- /// <summary>
- /// 所在楼层(Excel导入用)
- /// </summary>
- [DisplayName("所在楼层")]
- public string FloorLevelStr { get; set; }
- /// <summary>
- /// 面积
- /// </summary>
- [DisplayName("面积")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public decimal? Acreage { get; set; }
- /// <summary>
- /// 面积(Excel导入用)
- /// </summary>
- [DisplayName("面积")]
- public string AcreageStr { get; set; }
- /// <summary>
- /// 行数
- /// </summary>
- [DisplayName("行数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? RowCout { get; set; }
- /// <summary>
- /// 行数(Excel导入用)
- /// </summary>
- [DisplayName("行数")]
- public string RowCoutStr { get; set; }
- /// <summary>
- /// 列数
- /// </summary>
- [DisplayName("列数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? ColumnCount { get; set; }
- /// <summary>
- /// 列数(Excel导入用)
- /// </summary>
- [DisplayName("列数")]
- public string ColumnCountStr { get; set; }
- /// <summary>
- /// 总座位数
- /// </summary>
- [DisplayName("总座位数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Totalseating { get; set; }
- /// <summary>
- /// 总座位数(Excel导入用)
- /// </summary>
- [DisplayName("总座位数")]
- public string TotalseatingStr { get; set; }
- /// <summary>
- /// 有效座位数
- /// </summary>
- [DisplayName("有效座位数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Effectiveseating { get; set; }
- /// <summary>
- /// 有效座位数(Excel导入用)
- /// </summary>
- [DisplayName("有效座位数")]
- public string EffectiveseatingStr { get; set; }
- /// <summary>
- /// 考试座位数
- /// </summary>
- [DisplayName("考试座位数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Examinationseating { get; set; }
- /// <summary>
- /// 考试座位数(Excel导入用)
- /// </summary>
- [DisplayName("考试座位数")]
- public string ExaminationseatingStr { get; set; }
- /// <summary>
- /// 可否笔试
- /// </summary>
- [DisplayName("可否笔试")]
- public bool IsWrittenExam { get; set; }
- /// <summary>
- /// 可否笔试(Excel导入用)
- /// </summary>
- [DisplayName("可否笔试")]
- public string IsWrittenExamStr { get; set; }
- /// <summary>
- /// 可否笔试
- /// </summary>
- [DisplayName("可否笔试")]
- public string IsWrittenExamName
- {
- get { return this.IsWrittenExam == true ? "是" : "否"; }
- }
- /// <summary>
- /// 可否机试
- /// </summary>
- [DisplayName("可否机试")]
- public bool IsMachinetest { get; set; }
- /// <summary>
- /// 可否机试(Excel导入用)
- /// </summary>
- [DisplayName("可否机试")]
- public string IsMachinetestStr { get; set; }
- /// <summary>
- /// 可否机试
- /// </summary>
- [DisplayName("可否机试")]
- public string IsMachinetestName
- {
- get { return this.IsMachinetest == true ? "是" : "否"; }
- }
- /// <summary>
- /// 可否多班教学
- /// </summary>
- [DisplayName("可否多班教学")]
- public bool IsConcurrentUse { get; set; }
- /// <summary>
- /// 可否多班教学(Excel导入用)
- /// </summary>
- [DisplayName("可否多班教学")]
- public string IsConcurrentUseStr { get; set; }
- /// <summary>
- /// 可否多班教学
- /// </summary>
- [DisplayName("可否多班教学")]
- public string IsConcurrentUseName
- {
- get { return this.IsConcurrentUse == true ? "是" : "否"; }
- }
- /// <summary>
- /// 是否预留(排课用)
- /// </summary>
- [DisplayName("是否预留")]
- public bool IsReserve { get; set; }
- /// <summary>
- /// 是否预留(排课用)
- /// </summary>
- [DisplayName("是否预留")]
- public string IsReserveName
- {
- get { return this.IsReserve == true ? "是" : "否"; }
- }
- /// <summary>
- /// 是否可用
- /// </summary>
- [DisplayName("是否可用")]
- public bool IsAvailable { get; set; }
- /// <summary>
- /// 是否可用(Excel导入用)
- /// </summary>
- [DisplayName("是否可用")]
- public string IsAvailableStr { get; set; }
- /// <summary>
- /// 是否可用
- /// </summary>
- [DisplayName("是否可用")]
- public string IsAvailableName
- {
- get { return this.IsAvailable == true ? "是" : "否"; }
- }
- /// <summary>
- /// 排课院系个数(统计排课分配的院系个数)
- /// </summary>
- [DisplayName("排课院系个数")]
- public int? ScheduleCollegeCount { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 错误信息(Excel导入)
- /// </summary>
- [DisplayName("未导入原因")]
- public string ErrorMessage { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|