ClassroomReserveView.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.UniversityManage.ClassroomManage;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.SchedulingManage.SchedulingSettings
  10. {
  11. public class ClassroomReserveView
  12. {
  13. /// <summary>
  14. /// 主键ID
  15. /// </summary>
  16. [DisplayName("主键ID")]
  17. public Guid ClassroomReserveID { get; set; }
  18. /// <summary>
  19. /// 教室信息ID
  20. /// </summary>
  21. [Required]
  22. [DisplayName("教室信息ID")]
  23. public Guid? ClassroomID { get; set; }
  24. /// <summary>
  25. /// 教室编号
  26. /// </summary>
  27. [DisplayName("教室编号")]
  28. public string ClassroomCode { get; set; }
  29. /// <summary>
  30. /// 教室名称
  31. /// </summary>
  32. [DisplayName("教室名称")]
  33. public string ClassroomName { get; set; }
  34. /// <summary>
  35. /// 建筑名称
  36. /// </summary>
  37. [DisplayName("建筑名称")]
  38. public Guid? BuildingsInfoID { get; set; }
  39. /// <summary>
  40. /// 建筑编号
  41. /// </summary>
  42. [DisplayName("建筑编号")]
  43. public string BuildingsInfoCode { get; set; }
  44. /// <summary>
  45. /// 建筑名称
  46. /// </summary>
  47. [DisplayName("建筑名称")]
  48. public string BuildingsInfoName { get; set; }
  49. /// <summary>
  50. /// 校区ID(此为建筑信息对应的校区ID)
  51. /// </summary>
  52. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  53. public Guid? CampusID { get; set; }
  54. /// <summary>
  55. /// 校区代码(此为建筑信息对应的校区代码)
  56. /// </summary>
  57. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  58. public string CampusNo { get; set; }
  59. /// <summary>
  60. /// 校区(此为建筑信息对应的校区)
  61. /// </summary>
  62. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  63. public string CampusName { get; set; }
  64. /// <summary>
  65. /// 院系所ID(此为教室信息所属的院系所ID)
  66. /// </summary>
  67. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  68. public Guid? CollegeID { get; set; }
  69. /// <summary>
  70. /// 院系所代码(此为教室信息所属的院系所代码)
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  73. public string CollegeCode { get; set; }
  74. /// <summary>
  75. /// 院系所(此为教室信息所属的院系所)
  76. /// </summary>
  77. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  78. public string CollegeName { get; set; }
  79. /// <summary>
  80. /// 单位类别
  81. /// </summary>
  82. [DisplayName("单位类别")]
  83. public int? UnitCategoryID { get; set; }
  84. /// <summary>
  85. /// 单位类别
  86. /// </summary>
  87. [DisplayName("单位类别")]
  88. public string UnitCategoryName
  89. {
  90. get
  91. {
  92. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString())
  93. .Where(x => x.Value == UnitCategoryID)
  94. .Select(x => x.Name).FirstOrDefault();
  95. }
  96. }
  97. /// <summary>
  98. /// 校区ID(此为教室信息所属的院系所对应的校区ID)
  99. /// </summary>
  100. [Required]
  101. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  102. public Guid? CollegeCampusID { get; set; }
  103. /// <summary>
  104. /// 校区代码(此为教室信息所属的院系所对应的校区代码)
  105. /// </summary>
  106. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  107. public string CollegeCampusCode { get; set; }
  108. /// <summary>
  109. /// 校区(此为教室信息所属的院系所对应的校区)
  110. /// </summary>
  111. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  112. public string CollegeCampusName { get; set; }
  113. /// <summary>
  114. /// 教室类型CF_ClassroomType
  115. /// </summary>
  116. [DisplayName("教室类型")]
  117. public IEnumerable<EMIS.Entities.CF_ClassroomType> CF_ClassroomType { get; set; }
  118. /// <summary>
  119. /// 教室类型List
  120. /// </summary>
  121. [DisplayName("教室类型")]
  122. public List<int?> ClassroomTypeIDList { get; set; }
  123. /// <summary>
  124. /// 教室类型(可存在多个教室类型--用顿号隔开)
  125. /// </summary>
  126. [DisplayName("教室类型")]
  127. public string ClassroomTypeName
  128. {
  129. get
  130. {
  131. if (CF_ClassroomType != null && CF_ClassroomType.Count() > 0)
  132. {
  133. return string.Join("、", CF_ClassroomType.Select(x =>
  134. IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
  135. .Where(w => w.Value == x.ClassroomType).Select(w => w.Name).FirstOrDefault()));
  136. }
  137. else
  138. {
  139. return "";
  140. }
  141. }
  142. }
  143. /// <summary>
  144. /// 房间用途
  145. /// </summary>
  146. [DisplayName("房间用途")]
  147. public int? RoomUseID { get; set; }
  148. /// <summary>
  149. /// 房间用途
  150. /// </summary>
  151. [DisplayName("房间用途")]
  152. public string RoomUseName
  153. {
  154. get
  155. {
  156. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_RoomUse.ToString())
  157. .Where(x => x.Value == RoomUseID)
  158. .Select(x => x.Name).FirstOrDefault();
  159. }
  160. }
  161. /// <summary>
  162. /// 总座位数
  163. /// </summary>
  164. [DisplayName("总座位数")]
  165. public int? Totalseating { get; set; }
  166. /// <summary>
  167. /// 有效座位数
  168. /// </summary>
  169. [DisplayName("有效座位数")]
  170. public int? Effectiveseating { get; set; }
  171. /// <summary>
  172. /// 可否多班教学
  173. /// </summary>
  174. [DisplayName("可否多班教学")]
  175. public bool IsConcurrentUse { get; set; }
  176. /// <summary>
  177. /// 可否多班教学
  178. /// </summary>
  179. [DisplayName("可否多班教学")]
  180. public string IsConcurrentUseName
  181. {
  182. get { return this.IsConcurrentUse == true ? "是" : "否"; }
  183. }
  184. /// <summary>
  185. /// 是否预留
  186. /// </summary>
  187. [DisplayName("是否预留")]
  188. public bool IsReserve { get; set; }
  189. /// <summary>
  190. /// 是否预留
  191. /// </summary>
  192. [DisplayName("是否预留")]
  193. public string IsReserveName
  194. {
  195. get { return this.IsReserve == true ? "是" : "否"; }
  196. }
  197. /// <summary>
  198. /// 是否可用
  199. /// </summary>
  200. [DisplayName("是否可用")]
  201. public bool IsAvailable { get; set; }
  202. /// <summary>
  203. /// 是否可用
  204. /// </summary>
  205. [DisplayName("是否可用")]
  206. public string IsAvailableName
  207. {
  208. get { return this.IsAvailable == true ? "是" : "否"; }
  209. }
  210. /// <summary>
  211. /// 排课院系个数(统计排课分配的院系个数)
  212. /// </summary>
  213. [DisplayName("排课院系个数")]
  214. public int? ScheduleCollegeCount { get; set; }
  215. /// <summary>
  216. /// 状态
  217. /// </summary>
  218. [DisplayName("状态")]
  219. public int? RecordStatus { get; set; }
  220. /// <summary>
  221. /// 创建人
  222. /// </summary>
  223. [DisplayName("创建人")]
  224. public Guid? CreateUserID { get; set; }
  225. /// <summary>
  226. /// 创建人
  227. /// </summary>
  228. [DisplayName("创建人")]
  229. public string CreateUserName { get; set; }
  230. /// <summary>
  231. /// 创建时间
  232. /// </summary>
  233. [DisplayName("创建时间")]
  234. public DateTime? CreateTime { get; set; }
  235. /// <summary>
  236. /// 修改人
  237. /// </summary>
  238. [DisplayName("修改人")]
  239. public Guid? ModifyUserID { get; set; }
  240. /// <summary>
  241. /// 修改时间
  242. /// </summary>
  243. [DisplayName("修改时间")]
  244. public DateTime? ModifyTime { get; set; }
  245. }
  246. }