CollegeClassroomView.cs 8.9 KB

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