CustomStandardSettingView.cs 10 KB

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