123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.UniversityManage.ClassroomManage;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.SchedulingManage.SchedulingSettings
- {
- public class ClassroomReserveView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid ClassroomReserveID { get; set; }
- /// <summary>
- /// 教室信息ID
- /// </summary>
- [Required]
- [DisplayName("教室信息ID")]
- public Guid? ClassroomID { get; set; }
- /// <summary>
- /// 教室编号
- /// </summary>
- [DisplayName("教室编号")]
- public string ClassroomCode { get; set; }
- /// <summary>
- /// 教室名称
- /// </summary>
- [DisplayName("教室名称")]
- public string ClassroomName { get; set; }
- /// <summary>
- /// 建筑名称
- /// </summary>
- [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 CampusNo { 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?> ClassroomTypeIDList { 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 int? RoomUseID { 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("总座位数")]
- public int? Totalseating { get; set; }
- /// <summary>
- /// 有效座位数
- /// </summary>
- [DisplayName("有效座位数")]
- public int? Effectiveseating { get; set; }
- /// <summary>
- /// 可否多班教学
- /// </summary>
- [DisplayName("可否多班教学")]
- public bool IsConcurrentUse { 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>
- /// 是否可用
- /// </summary>
- [DisplayName("是否可用")]
- public string IsAvailableName
- {
- get { return this.IsAvailable == true ? "是" : "否"; }
- }
- /// <summary>
- /// 排课院系个数(统计排课分配的院系个数)
- /// </summary>
- [DisplayName("排课院系个数")]
- public int? ScheduleCollegeCount { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public string CreateUserName { 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; }
- }
- }
|