SpecialtyApplyView.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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.EnrollManage.SpecialtyManage
  9. {
  10. public class SpecialtyApplyView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid SpecialtyApplyID { get; set; }
  17. /// <summary>
  18. /// 专业信息ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("专业信息ID")]
  22. public Guid? SpecialtyID { get; set; }
  23. /// <summary>
  24. /// 专业ID(Value)
  25. /// </summary>
  26. [DisplayName("专业ID(Value)")]
  27. public int? StandardID { get; set; }
  28. /// <summary>
  29. /// 专业代码
  30. /// </summary>
  31. [DisplayName("专业代码")]
  32. public string StandardCode { get; set; }
  33. /// <summary>
  34. /// 专业名称
  35. /// </summary>
  36. [DisplayName("专业名称")]
  37. public string StandardName { get; set; }
  38. /// <summary>
  39. /// 专业代码
  40. /// </summary>
  41. [DisplayName("专业代码")]
  42. public string Code
  43. {
  44. get
  45. {
  46. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  47. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  48. }
  49. }
  50. /// <summary>
  51. /// 专业名称
  52. /// </summary>
  53. [DisplayName("专业名称")]
  54. public string Name
  55. {
  56. get
  57. {
  58. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  59. }
  60. }
  61. /// <summary>
  62. /// 院系所ID
  63. /// </summary>
  64. [Required]
  65. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  66. public Guid? CollegeID { get; set; }
  67. /// <summary>
  68. /// 院系所代码
  69. /// </summary>
  70. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  71. public string CollegeCode { get; set; }
  72. /// <summary>
  73. /// 院系所名称
  74. /// </summary>
  75. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  76. public string CollegeName { get; set; }
  77. /// <summary>
  78. /// 校区ID
  79. /// </summary>
  80. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  81. public Guid? CampusID { get; set; }
  82. /// <summary>
  83. /// 校区代码
  84. /// </summary>
  85. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  86. public string CampusCode { get; set; }
  87. /// <summary>
  88. /// 校区名称
  89. /// </summary>
  90. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  91. public string CampusName { get; set; }
  92. /// <summary>
  93. /// 年级
  94. /// </summary>
  95. [Required]
  96. [DisplayName("年级")]
  97. public int? GradeID { get; set; }
  98. /// <summary>
  99. /// 年级
  100. /// </summary>
  101. [DisplayName("年级")]
  102. public string GradeName
  103. {
  104. get
  105. {
  106. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  107. }
  108. }
  109. /// <summary>
  110. /// 学期
  111. /// </summary>
  112. [Required]
  113. [DisplayName("学期")]
  114. public int? SemesterID { get; set; }
  115. /// <summary>
  116. /// 学期
  117. /// </summary>
  118. [DisplayName("学期")]
  119. public string SemesterName
  120. {
  121. get
  122. {
  123. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  124. }
  125. }
  126. /// <summary>
  127. /// 培养层次(所修学历)
  128. /// </summary>
  129. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  130. public int? EducationID { get; set; }
  131. /// <summary>
  132. /// 培养层次(所修学历)
  133. /// </summary>
  134. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  135. public string EducationName
  136. {
  137. get
  138. {
  139. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  140. }
  141. }
  142. /// <summary>
  143. /// 学习形式
  144. /// </summary>
  145. [DisplayName("学习形式")]
  146. public int? LearningformID { get; set; }
  147. /// <summary>
  148. /// 学习形式
  149. /// </summary>
  150. [DisplayName("学习形式")]
  151. public string LearningformName
  152. {
  153. get
  154. {
  155. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  156. }
  157. }
  158. /// <summary>
  159. /// 学制
  160. /// </summary>
  161. [DisplayName("学制")]
  162. [DisplayFormat(DataFormatString = "{0:#.#}")]
  163. public decimal? LearnSystem { get; set; }
  164. /// <summary>
  165. /// 专业科类
  166. /// </summary>
  167. [DisplayName("专业科类")]
  168. public int? ScienceclassID { get; set; }
  169. /// <summary>
  170. /// 专业科类
  171. /// </summary>
  172. [DisplayName("专业科类")]
  173. public string ScienceclassName
  174. {
  175. get
  176. {
  177. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Scienceclass.ToString()).Where(x => x.Value == ScienceclassID).Select(x => x.Name).FirstOrDefault();
  178. }
  179. }
  180. /// <summary>
  181. /// 专业属性
  182. /// </summary>
  183. [DisplayName("专业属性")]
  184. public int? PropertyID { get; set; }
  185. /// <summary>
  186. /// 专业属性
  187. /// </summary>
  188. [DisplayName("专业属性")]
  189. public string PropertyName
  190. {
  191. get
  192. {
  193. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Property.ToString()).Where(x => x.Value == PropertyID).Select(x => x.Name).FirstOrDefault();
  194. }
  195. }
  196. /// <summary>
  197. /// 专业称号
  198. /// </summary>
  199. [DisplayName("专业称号")]
  200. public int? StandardTitle { get; set; }
  201. /// <summary>
  202. /// 专业称号
  203. /// </summary>
  204. [DisplayName("专业称号")]
  205. public string StandardTitleName
  206. {
  207. get
  208. {
  209. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StandardTitle.ToString()).Where(x => x.Value == StandardTitle).Select(x => x.Name).FirstOrDefault();
  210. }
  211. }
  212. /// <summary>
  213. /// 称号级别
  214. /// </summary>
  215. [DisplayName("称号级别")]
  216. public int? StandardLevel { get; set; }
  217. /// <summary>
  218. /// 称号级别
  219. /// </summary>
  220. [DisplayName("称号级别")]
  221. public string StandardLevelName
  222. {
  223. get
  224. {
  225. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StandardLevel.ToString()).Where(x => x.Value == StandardLevel).Select(x => x.Name).FirstOrDefault();
  226. }
  227. }
  228. /// <summary>
  229. /// 审批状态
  230. /// </summary>
  231. [DisplayName("审批状态")]
  232. public int? ApprovalStatus { get; set; }
  233. /// <summary>
  234. /// 审批状态
  235. /// </summary>
  236. [DisplayName("审批状态")]
  237. public string ApprovalStatusName { get; set; }
  238. /// <summary>
  239. /// 处理动作
  240. /// </summary>
  241. [Required]
  242. [DisplayName("处理动作")]
  243. public string Action { get; set; }
  244. /// <summary>
  245. /// 处理意见
  246. /// </summary>
  247. [DisplayName("处理意见")]
  248. public string Comment { get; set; }
  249. /// <summary>
  250. /// 备注
  251. /// </summary>
  252. [DisplayName("备注")]
  253. public string Remark { get; set; }
  254. /// <summary>
  255. /// 状态
  256. /// </summary>
  257. [DisplayName("状态")]
  258. public int? RecordStatus { get; set; }
  259. /// <summary>
  260. /// 申请人
  261. /// </summary>
  262. [DisplayName("申请人")]
  263. public Guid? CreateUserID { get; set; }
  264. /// <summary>
  265. /// 申请工号
  266. /// </summary>
  267. [DisplayName("申请工号")]
  268. public string CreateUserCode { get; set; }
  269. /// <summary>
  270. /// 申请人
  271. /// </summary>
  272. [DisplayName("申请人")]
  273. public string CreateUserName { get; set; }
  274. /// <summary>
  275. /// 申请时间
  276. /// </summary>
  277. [DisplayName("申请时间")]
  278. public DateTime? CreateTime { get; set; }
  279. /// <summary>
  280. /// 修改人
  281. /// </summary>
  282. [DisplayName("修改人")]
  283. public Guid? ModifyUserID { get; set; }
  284. /// <summary>
  285. /// 修改时间
  286. /// </summary>
  287. [DisplayName("修改时间")]
  288. public DateTime? ModifyTime { get; set; }
  289. }
  290. }