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
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid ClassroomReserveID { get; set; }
///
/// 教室信息ID
///
[Required]
[DisplayName("教室信息ID")]
public Guid? ClassroomID { get; set; }
///
/// 教室编号
///
[DisplayName("教室编号")]
public string ClassroomCode { get; set; }
///
/// 教室名称
///
[DisplayName("教室名称")]
public string ClassroomName { get; set; }
///
/// 建筑名称
///
[DisplayName("建筑名称")]
public Guid? BuildingsInfoID { get; set; }
///
/// 建筑编号
///
[DisplayName("建筑编号")]
public string BuildingsInfoCode { get; set; }
///
/// 建筑名称
///
[DisplayName("建筑名称")]
public string BuildingsInfoName { get; set; }
///
/// 校区ID(此为建筑信息对应的校区ID)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
public Guid? CampusID { get; set; }
///
/// 校区代码(此为建筑信息对应的校区代码)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
public string CampusNo { get; set; }
///
/// 校区(此为建筑信息对应的校区)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
public string CampusName { get; set; }
///
/// 院系所ID(此为教室信息所属的院系所ID)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public Guid? CollegeID { get; set; }
///
/// 院系所代码(此为教室信息所属的院系所代码)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
public string CollegeCode { get; set; }
///
/// 院系所(此为教室信息所属的院系所)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
public string CollegeName { get; set; }
///
/// 单位类别
///
[DisplayName("单位类别")]
public int? UnitCategoryID { get; set; }
///
/// 单位类别
///
[DisplayName("单位类别")]
public string UnitCategoryName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString())
.Where(x => x.Value == UnitCategoryID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 校区ID(此为教室信息所属的院系所对应的校区ID)
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
public Guid? CollegeCampusID { get; set; }
///
/// 校区代码(此为教室信息所属的院系所对应的校区代码)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
public string CollegeCampusCode { get; set; }
///
/// 校区(此为教室信息所属的院系所对应的校区)
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
public string CollegeCampusName { get; set; }
///
/// 教室类型CF_ClassroomType
///
[DisplayName("教室类型")]
public IEnumerable CF_ClassroomType { get; set; }
///
/// 教室类型List
///
[DisplayName("教室类型")]
public List ClassroomTypeIDList { get; set; }
///
/// 教室类型(可存在多个教室类型--用顿号隔开)
///
[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 "";
}
}
}
///
/// 房间用途
///
[DisplayName("房间用途")]
public int? RoomUseID { get; set; }
///
/// 房间用途
///
[DisplayName("房间用途")]
public string RoomUseName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_RoomUse.ToString())
.Where(x => x.Value == RoomUseID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 总座位数
///
[DisplayName("总座位数")]
public int? Totalseating { get; set; }
///
/// 有效座位数
///
[DisplayName("有效座位数")]
public int? Effectiveseating { get; set; }
///
/// 可否多班教学
///
[DisplayName("可否多班教学")]
public bool IsConcurrentUse { get; set; }
///
/// 可否多班教学
///
[DisplayName("可否多班教学")]
public string IsConcurrentUseName
{
get { return this.IsConcurrentUse == true ? "是" : "否"; }
}
///
/// 是否预留
///
[DisplayName("是否预留")]
public bool IsReserve { get; set; }
///
/// 是否预留
///
[DisplayName("是否预留")]
public string IsReserveName
{
get { return this.IsReserve == true ? "是" : "否"; }
}
///
/// 是否可用
///
[DisplayName("是否可用")]
public bool IsAvailable { get; set; }
///
/// 是否可用
///
[DisplayName("是否可用")]
public string IsAvailableName
{
get { return this.IsAvailable == true ? "是" : "否"; }
}
///
/// 排课院系个数(统计排课分配的院系个数)
///
[DisplayName("排课院系个数")]
public int? ScheduleCollegeCount { get; set; }
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUserName { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}