SpecialtyPlanView.cs 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using System.Web.Mvc;
  8. using Bowin.Common.Mvc;
  9. using EMIS.ViewModel.CacheManage;
  10. namespace EMIS.ViewModel.CultureplanManage.PlanManagement
  11. {
  12. public class SpecialtyPlanView
  13. {
  14. /// <summary>
  15. /// 主键ID
  16. /// </summary>
  17. [DisplayName("主键ID")]
  18. public Guid SpecialtyPlanID { get; set; }
  19. /// <summary>
  20. /// 计划申请ID
  21. /// </summary>
  22. [DisplayName("计划申请ID")]
  23. public Guid? PlanApplicationID { get; set; }
  24. /// <summary>
  25. /// 学年学期
  26. /// </summary>
  27. [Required]
  28. [DisplayName("学年学期")]
  29. public Guid? SchoolyearID { get; set; }
  30. /// <summary>
  31. /// 学年学期
  32. /// </summary>
  33. [DisplayName("学年学期")]
  34. public string SchoolyearCode { get; set; }
  35. /// <summary>
  36. /// 学年学期对应的学年
  37. /// </summary>
  38. [DisplayName("学年")]
  39. public int? YearID { get; set; }
  40. /// <summary>
  41. /// 学年学期对应的Value值
  42. /// </summary>
  43. [DisplayName("Value")]
  44. public int? Value { get; set; }
  45. /// <summary>
  46. /// 开课学年
  47. /// </summary>
  48. [Required]
  49. [DisplayName("开课学年")]
  50. public int? SchoolyearNumID { get; set; }
  51. /// <summary>
  52. /// 开课学年(Excel导入)
  53. /// </summary>
  54. [DisplayName("开课学年")]
  55. public string SchoolyearNumStr { get; set; }
  56. /// <summary>
  57. /// 开课学年
  58. /// </summary>
  59. [DisplayName("开课学年")]
  60. public string SchoolyearNumName
  61. {
  62. get
  63. {
  64. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  65. .Where(x => x.Value == SchoolyearNumID)
  66. .Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. /// <summary>
  70. /// 学期
  71. /// </summary>
  72. [Required]
  73. [DisplayName("学期")]
  74. public int? SchoolcodeID { get; set; }
  75. /// <summary>
  76. /// 学期(Excel导入)
  77. /// </summary>
  78. [DisplayName("学期")]
  79. public string SchoolcodeStr { get; set; }
  80. /// <summary>
  81. /// 学期
  82. /// </summary>
  83. [DisplayName("学期")]
  84. public string SchoolcodeName
  85. {
  86. get
  87. {
  88. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  89. }
  90. }
  91. /// <summary>
  92. /// 开课学期
  93. /// </summary>
  94. [Required]
  95. [DisplayName("开课学期")]
  96. public int? StarttermID { get; set; }
  97. /// <summary>
  98. /// 开课学期
  99. /// </summary>
  100. [DisplayName("开课学期")]
  101. public string StarttermName
  102. {
  103. get
  104. {
  105. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  106. .Where(x => x.Value == StarttermID)
  107. .Select(x => x.Name).FirstOrDefault();
  108. }
  109. }
  110. /// <summary>
  111. /// 年级专业ID
  112. /// </summary>
  113. [Required]
  114. [DisplayName("年级专业")]
  115. public Guid? GrademajorID { get; set; }
  116. /// <summary>
  117. /// 年级专业编号
  118. /// </summary>
  119. [DisplayName("年级专业编号")]
  120. public string GrademajorCode { get; set; }
  121. /// <summary>
  122. /// 年级专业名称
  123. /// </summary>
  124. [DisplayName("年级专业名称")]
  125. public string GrademajorName { get; set; }
  126. /// <summary>
  127. /// 年级专业对应年级(入学学年)
  128. /// </summary>
  129. [Required]
  130. [DisplayName("年级")]
  131. public int? GradeID { get; set; }
  132. /// <summary>
  133. /// 年级专业对应年级-入学学年(Excel导入)
  134. /// </summary>
  135. [DisplayName("年级")]
  136. public string GradeStr { get; set; }
  137. /// <summary>
  138. /// 院系专业ID
  139. /// </summary>
  140. [DisplayName("院系专业ID")]
  141. public Guid? FacultymajorID { get; set; }
  142. /// <summary>
  143. /// 院系专业编号
  144. /// </summary>
  145. [DisplayName("院系专业编号")]
  146. public string FacultymajorCode { get; set; }
  147. /// <summary>
  148. /// 院系专业名称
  149. /// </summary>
  150. [DisplayName("院系专业名称")]
  151. public string FacultymajorName { get; set; }
  152. /// <summary>
  153. /// 院系所ID
  154. /// </summary>
  155. [Required]
  156. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  157. public Guid? CollegeID { get; set; }
  158. /// <summary>
  159. /// 院系所代码
  160. /// </summary>
  161. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  162. public string CollegeCode { get; set; }
  163. /// <summary>
  164. /// 院系所
  165. /// </summary>
  166. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  167. public string CollegeName { get; set; }
  168. /// <summary>
  169. /// 校区ID
  170. /// </summary>
  171. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  172. public Guid? CampusID { get; set; }
  173. /// <summary>
  174. /// 校区代码
  175. /// </summary>
  176. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  177. public string CampusNo { get; set; }
  178. /// <summary>
  179. /// 校区名称
  180. /// </summary>
  181. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  182. public string CampusName { get; set; }
  183. /// <summary>
  184. /// 入学学年学期ID
  185. /// </summary>
  186. [Required]
  187. [DisplayName("入学学年学期ID")]
  188. public Guid? StartSchoolyearID { get; set; }
  189. /// <summary>
  190. /// 入学学年学期
  191. /// </summary>
  192. [DisplayName("入学学年学期")]
  193. public string StartSchoolyearCode { get; set; }
  194. /// <summary>
  195. /// 入学学年学期对应的Value值
  196. /// </summary>
  197. [DisplayName("StartValue")]
  198. public int? StartValue { get; set; }
  199. /// <summary>
  200. /// 入学学期
  201. /// </summary>
  202. [Required]
  203. [DisplayName("入学学期")]
  204. public int? StartSchoolcodeID { get; set; }
  205. /// <summary>
  206. /// 入学学期(Excel导入)
  207. /// </summary>
  208. [DisplayName("入学学期")]
  209. public string StartSchoolcodeStr { get; set; }
  210. /// <summary>
  211. /// 入学学期
  212. /// </summary>
  213. [DisplayName("入学学期")]
  214. public string StartSchoolcodeName
  215. {
  216. get
  217. {
  218. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == StartSchoolcodeID).Select(x => x.Name).FirstOrDefault();
  219. }
  220. }
  221. /// <summary>
  222. /// 毕业学期ID
  223. /// </summary>
  224. [Required]
  225. [DisplayName("毕业学期ID")]
  226. public Guid? GraduatingSemesterID { get; set; }
  227. /// <summary>
  228. /// 毕业学期
  229. /// </summary>
  230. [DisplayName("毕业学期")]
  231. public string GraduatingSemesterCode { get; set; }
  232. /// <summary>
  233. /// 毕业学期对应的Value值
  234. /// </summary>
  235. [DisplayName("GraduatingSemesterValue")]
  236. public int? GraduatingSemesterValue { get; set; }
  237. /// <summary>
  238. /// 专业信息ID
  239. /// </summary>
  240. [Required]
  241. [DisplayName("专业信息ID")]
  242. public Guid? SpecialtyID { get; set; }
  243. /// <summary>
  244. /// 专业ID(Value)
  245. /// </summary>
  246. [DisplayName("专业ID(Value)")]
  247. public int? StandardID { get; set; }
  248. /// <summary>
  249. /// 专业代码(Excel导入)
  250. /// </summary>
  251. [DisplayName("专业代码")]
  252. public string StandardCodeStr { get; set; }
  253. /// <summary>
  254. /// 专业名称(Excel导入)
  255. /// </summary>
  256. [DisplayName("专业名称")]
  257. public string StandardNameStr { get; set; }
  258. /// <summary>
  259. /// 专业代码
  260. /// </summary>
  261. [DisplayName("专业代码")]
  262. public string StandardCode
  263. {
  264. get
  265. {
  266. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  267. .Where(x => x.Value == StandardID)
  268. .Select(x => x.Code).FirstOrDefault();
  269. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  270. }
  271. }
  272. /// <summary>
  273. /// 专业名称
  274. /// </summary>
  275. [DisplayName("专业名称")]
  276. public string StandardName { get; set; }
  277. /// <summary>
  278. /// 培养层次
  279. /// </summary>
  280. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  281. public int? EducationID { get; set; }
  282. /// <summary>
  283. /// 培养层次(Excel导入)
  284. /// </summary>
  285. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  286. public string EducationStr { get; set; }
  287. /// <summary>
  288. /// 培养层次
  289. /// </summary>
  290. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  291. public string EducationName
  292. {
  293. get
  294. {
  295. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  296. .Where(x => x.Value == EducationID)
  297. .Select(x => x.Name).FirstOrDefault();
  298. }
  299. }
  300. /// <summary>
  301. /// 学习形式
  302. /// </summary>
  303. [DisplayName("学习形式")]
  304. public int? LearningformID { get; set; }
  305. /// <summary>
  306. /// 学习形式(Excel导入)
  307. /// </summary>
  308. [DisplayName("学习形式")]
  309. public string LearningformStr { get; set; }
  310. /// <summary>
  311. /// 学习形式
  312. /// </summary>
  313. [DisplayName("学习形式")]
  314. public string LearningformName
  315. {
  316. get
  317. {
  318. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  319. .Where(x => x.Value == LearningformID)
  320. .Select(x => x.Name).FirstOrDefault();
  321. }
  322. }
  323. /// <summary>
  324. /// 学制
  325. /// </summary>
  326. [DisplayName("学制")]
  327. public decimal? LearnSystem { get; set; }
  328. /// <summary>
  329. /// 学制(Excel导入)
  330. /// </summary>
  331. [DisplayName("学制")]
  332. public string LearnSystemStr { get; set; }
  333. /// <summary>
  334. /// 课程信息ID
  335. /// </summary>
  336. [Required]
  337. [DisplayName("课程信息ID")]
  338. public Guid? CoursematerialID { get; set; }
  339. /// <summary>
  340. /// 课程代码
  341. /// </summary>
  342. [DisplayName("课程代码")]
  343. public string CourseCode { get; set; }
  344. /// <summary>
  345. /// 课程名称
  346. /// </summary>
  347. [DisplayName("课程名称")]
  348. public string CourseName { get; set; }
  349. /// <summary>
  350. /// 课程结构
  351. /// </summary>
  352. [DisplayName("课程结构")]
  353. public int? CourseStructureID { get; set; }
  354. /// <summary>
  355. /// 课程结构(Excel导入)
  356. /// </summary>
  357. [DisplayName("课程结构")]
  358. public string CourseStructureStr { get; set; }
  359. /// <summary>
  360. /// 课程结构
  361. /// </summary>
  362. [DisplayName("课程结构")]
  363. public string CourseStructureName
  364. {
  365. get
  366. {
  367. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString())
  368. .Where(x => x.Value == CourseStructureID)
  369. .Select(x => x.Name).FirstOrDefault();
  370. }
  371. }
  372. /// <summary>
  373. /// 课程属性
  374. /// </summary>
  375. [DisplayName("课程属性")]
  376. public int? CourseCategoryID { get; set; }
  377. /// <summary>
  378. /// 课程属性(Excel导入)
  379. /// </summary>
  380. [DisplayName("课程属性")]
  381. public string CourseCategoryStr { get; set; }
  382. /// <summary>
  383. /// 课程属性
  384. /// </summary>
  385. [DisplayName("课程属性")]
  386. public string CourseCategoryName
  387. {
  388. get
  389. {
  390. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
  391. .Where(x => x.Value == CourseCategoryID)
  392. .Select(x => x.Name).FirstOrDefault();
  393. }
  394. }
  395. /// <summary>
  396. /// 课程类型
  397. /// </summary>
  398. [Required]
  399. [DisplayName("课程类型")]
  400. public int? CourseTypeID { get; set; }
  401. /// <summary>
  402. /// 课程类型(Excel导入)
  403. /// </summary>
  404. [DisplayName("课程类型")]
  405. public string CourseTypeStr { get; set; }
  406. /// <summary>
  407. /// 课程类型
  408. /// </summary>
  409. [DisplayName("课程类型")]
  410. public string CourseTypeName
  411. {
  412. get
  413. {
  414. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  415. .Where(x => x.Value == CourseTypeID)
  416. .Select(x => x.Name).FirstOrDefault();
  417. }
  418. }
  419. /// <summary>
  420. /// 课程性质
  421. /// </summary>
  422. [DisplayName("课程性质")]
  423. public int? CourseQualityID { get; set; }
  424. /// <summary>
  425. /// 课程性质(Excel导入)
  426. /// </summary>
  427. [DisplayName("课程性质")]
  428. public string CourseQualityStr { get; set; }
  429. /// <summary>
  430. /// 课程性质
  431. /// </summary>
  432. [DisplayName("课程性质")]
  433. public string CourseQualityName
  434. {
  435. get
  436. {
  437. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString())
  438. .Where(x => x.Value == CourseQualityID)
  439. .Select(x => x.Name).FirstOrDefault();
  440. }
  441. }
  442. /// <summary>
  443. /// 课程学分
  444. /// </summary>
  445. [Required]
  446. [DisplayName("课程学分")]
  447. //[DisplayFormat(DataFormatString = "{0:N1}")]
  448. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  449. public decimal? Credit { get; set; }
  450. /// <summary>
  451. /// 课程学分(Excel导入)
  452. /// </summary>
  453. [DisplayName("课程学分")]
  454. public string CreditStr { get; set; }
  455. /// <summary>
  456. /// 理论学时
  457. /// </summary>
  458. [Required]
  459. [DisplayName("理论学时")]
  460. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  461. public int? TheoryCourse { get; set; }
  462. /// <summary>
  463. /// 理论学时(Excel导入)
  464. /// </summary>
  465. [DisplayName("理论学时")]
  466. public string TheoryCourseStr { get; set; }
  467. /// <summary>
  468. /// 实践学时
  469. /// </summary>
  470. [Required]
  471. [DisplayName("实践学时")]
  472. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  473. public int? Practicehours { get; set; }
  474. /// <summary>
  475. /// 实践学时(Excel导入)
  476. /// </summary>
  477. [DisplayName("实践学时")]
  478. public string PracticehoursStr { get; set; }
  479. /// <summary>
  480. /// 实验学时
  481. /// </summary>
  482. [Required]
  483. [DisplayName("实验学时")]
  484. //[Compare("Practicehours")]
  485. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  486. public int? Trialhours { get; set; }
  487. /// <summary>
  488. /// 实验学时(Excel导入)
  489. /// </summary>
  490. [DisplayName("实验学时")]
  491. public string TrialhoursStr { get; set; }
  492. /// <summary>
  493. /// 总学时
  494. /// </summary>
  495. [Required]
  496. [DisplayName("总学时")]
  497. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  498. public int? Totalhours { get; set; }
  499. /// <summary>
  500. /// 理论周次
  501. /// </summary>
  502. [Required]
  503. [DisplayName("理论周次")]
  504. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  505. public int? TheoryWeeklyNum { get; set; }
  506. /// <summary>
  507. /// 理论周次(Excel导入)
  508. /// </summary>
  509. [DisplayName("理论周次")]
  510. public string TheoryWeeklyNumStr { get; set; }
  511. /// <summary>
  512. /// 实践周次
  513. /// </summary>
  514. [Required]
  515. [DisplayName("实践周次")]
  516. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  517. public int? PracticeWeeklyNum { get; set; }
  518. /// <summary>
  519. /// 实践周次(Excel导入)
  520. /// </summary>
  521. [DisplayName("实践周次")]
  522. public string PracticeWeeklyNumStr { get; set; }
  523. /// <summary>
  524. /// 实验周次
  525. /// </summary>
  526. [Required]
  527. [DisplayName("实验周次")]
  528. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  529. public int? TrialWeeklyNum { get; set; }
  530. /// <summary>
  531. /// 实验周次(Excel导入)
  532. /// </summary>
  533. [DisplayName("实验周次")]
  534. public string TrialWeeklyNumStr { get; set; }
  535. /// <summary>
  536. /// 总周次
  537. /// </summary>
  538. [Required]
  539. [DisplayName("总周次")]
  540. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  541. public int? SchoolweeksNum { get; set; }
  542. /// <summary>
  543. /// 周学时
  544. /// </summary>
  545. [Required]
  546. [DisplayName("周学时")]
  547. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  548. public int? WeeklyHours { get; set; }
  549. /// <summary>
  550. /// 每周次数
  551. /// </summary>
  552. [Required]
  553. [DisplayName("每周次数")]
  554. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  555. public int? WeeklyNum { get; set; }
  556. /// <summary>
  557. /// 开始周次
  558. /// </summary>
  559. [Required]
  560. [DisplayName("开始周次")]
  561. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  562. public int? StartWeeklyNum { get; set; }
  563. /// <summary>
  564. /// 结束周次
  565. /// </summary>
  566. [Required]
  567. [DisplayName("结束周次")]
  568. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  569. public int? EndWeeklyNum { get; set; }
  570. /// <summary>
  571. /// 起止周次
  572. /// </summary>
  573. [DisplayName("起止周次")]
  574. public string StartEndWeeklyNum { get; set; }
  575. /// <summary>
  576. /// 开课教研室ID
  577. /// </summary>
  578. [Required]
  579. [DisplayName("开课教研室ID")]
  580. public Guid? DepartmentID { get; set; }
  581. /// <summary>
  582. /// 开课教研室代码
  583. /// </summary>
  584. [DisplayName("开课教研室代码")]
  585. public string DepartmentCode { get; set; }
  586. /// <summary>
  587. /// 开课教研室
  588. /// </summary>
  589. [DisplayName("开课教研室")]
  590. public string DepartmentName { get; set; }
  591. /// <summary>
  592. /// 开课院系ID
  593. /// </summary>
  594. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  595. public Guid? CourseCollegeID { get; set; }
  596. /// <summary>
  597. /// 开课院系代码
  598. /// </summary>
  599. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  600. public string CourseCollegeCode { get; set; }
  601. /// <summary>
  602. /// 开课院系
  603. /// </summary>
  604. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  605. public string CourseCollegeName { get; set; }
  606. /// <summary>
  607. /// 是否专业核心
  608. /// </summary>
  609. [Required]
  610. [DisplayName("是否专业核心")]
  611. public bool IsSpecialtycore { get; set; }
  612. /// <summary>
  613. /// 是否专业核心(Excel导入用)
  614. /// </summary>
  615. [DisplayName("是否专业核心")]
  616. public string IsSpecialtycoreStr { get; set; }
  617. /// <summary>
  618. /// 是否专业核心
  619. /// </summary>
  620. [DisplayName("是否专业核心")]
  621. public string IsSpecialtycoreName
  622. {
  623. get { return this.IsSpecialtycore != true ? "否" : "是"; }
  624. }
  625. /// <summary>
  626. /// 是否合作开发
  627. /// </summary>
  628. [Required]
  629. [DisplayName("是否合作开发")]
  630. public bool IsCooperation { get; set; }
  631. /// <summary>
  632. /// 是否合作开发(Excel导入用)
  633. /// </summary>
  634. [DisplayName("是否合作开发")]
  635. public string IsCooperationStr { get; set; }
  636. /// <summary>
  637. /// 是否合作开发
  638. /// </summary>
  639. [DisplayName("是否合作开发")]
  640. public string IsCooperationName
  641. {
  642. get { return this.IsCooperation != true ? "否" : "是"; }
  643. }
  644. /// <summary>
  645. /// 是否必修课
  646. /// </summary>
  647. [Required]
  648. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  649. public bool IsRequired { get; set; }
  650. /// <summary>
  651. /// 是否必修课(Excel导入用)
  652. /// </summary>
  653. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  654. public string IsRequiredStr { get; set; }
  655. /// <summary>
  656. /// 是否必修课
  657. /// </summary>
  658. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  659. public string IsRequiredName
  660. {
  661. get { return this.IsRequired != true ? "否" : "是"; }
  662. }
  663. /// <summary>
  664. /// 是否网上选修
  665. /// </summary>
  666. [Required]
  667. [DisplayName("是否网上选修")]
  668. public bool IsElective { get; set; }
  669. /// <summary>
  670. /// 是否网上选修(Excel导入用)
  671. /// </summary>
  672. [DisplayName("是否网上选修")]
  673. public string IsElectiveStr { get; set; }
  674. /// <summary>
  675. /// 是否网上选修
  676. /// </summary>
  677. [DisplayName("是否网上选修")]
  678. public string IsElectiveName
  679. {
  680. get { return this.IsElective != true ? "否" : "是"; }
  681. }
  682. /// <summary>
  683. /// 是否网络课程
  684. /// </summary>
  685. [Required]
  686. [DisplayName("是否网络课程")]
  687. public bool IsNetworkCourse { get; set; }
  688. /// <summary>
  689. /// 是否网络课程(Excel导入用)
  690. /// </summary>
  691. [DisplayName("是否网络课程")]
  692. public string IsNetworkCourseStr { get; set; }
  693. /// <summary>
  694. /// 是否网络课程
  695. /// </summary>
  696. [DisplayName("是否网络课程")]
  697. public string IsNetworkCourseName
  698. {
  699. get { return this.IsNetworkCourse != true ? "否" : "是"; }
  700. }
  701. /// <summary>
  702. /// 是否学位课程
  703. /// </summary>
  704. [Required]
  705. [DisplayName("是否学位课程")]
  706. public bool IsMainCourse { get; set; }
  707. /// <summary>
  708. /// 是否学位课程(Excel导入用)
  709. /// </summary>
  710. [DisplayName("是否学位课程")]
  711. public string IsMainCourseStr { get; set; }
  712. /// <summary>
  713. /// 是否学位课程
  714. /// </summary>
  715. [DisplayName("是否学位课程")]
  716. public string IsMainCourseName
  717. {
  718. get { return this.IsMainCourse != true ? "否" : "是"; }
  719. }
  720. /// <summary>
  721. /// 是否需要教材
  722. /// </summary>
  723. [DisplayName("是否需要教材")]
  724. public bool IsNeedMaterial { get; set; }
  725. /// <summary>
  726. /// 是否需要教材(Excel导入用)
  727. /// </summary>
  728. [DisplayName("是否需要教材")]
  729. public string IsNeedMaterialStr { get; set; }
  730. /// <summary>
  731. /// 是否需要教材
  732. /// </summary>
  733. [DisplayName("是否需要教材")]
  734. public string IsNeedMaterialName
  735. {
  736. get { return this.IsNeedMaterial != true ? "否" : "是"; }
  737. }
  738. /// <summary>
  739. /// 精品课程
  740. /// </summary>
  741. [DisplayName("精品课程")]
  742. public int? CourseFineID { get; set; }
  743. /// <summary>
  744. /// 精品课程(Excel导入用)
  745. /// </summary>
  746. [DisplayName("精品课程")]
  747. public string CourseFineStr { get; set; }
  748. /// <summary>
  749. /// 精品课程
  750. /// </summary>
  751. [DisplayName("精品课程")]
  752. public string CourseFineName
  753. {
  754. get
  755. {
  756. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseFine.ToString())
  757. .Where(x => x.Value == CourseFineID)
  758. .Select(x => x.Name).FirstOrDefault();
  759. }
  760. }
  761. /// <summary>
  762. /// 实践类型
  763. /// </summary>
  764. [DisplayName("实践类型")]
  765. public int? PracticeTypeID { get; set; }
  766. /// <summary>
  767. /// 实践类型(Excel导入用)
  768. /// </summary>
  769. [DisplayName("实践类型")]
  770. public string PracticeTypeStr { get; set; }
  771. /// <summary>
  772. /// 实践类型
  773. /// </summary>
  774. [DisplayName("实践类型")]
  775. public string PracticeTypeName
  776. {
  777. get
  778. {
  779. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PracticeType.ToString())
  780. .Where(x => x.Value == PracticeTypeID)
  781. .Select(x => x.Name).FirstOrDefault();
  782. }
  783. }
  784. /// <summary>
  785. /// 授课语言
  786. /// </summary>
  787. [DisplayName("授课语言")]
  788. public int? TeachinglanguageID { get; set; }
  789. /// <summary>
  790. /// 授课语言(Excel导入用)
  791. /// </summary>
  792. [DisplayName("授课语言")]
  793. public string TeachinglanguageStr { get; set; }
  794. /// <summary>
  795. /// 授课语言
  796. /// </summary>
  797. [DisplayName("授课语言")]
  798. public string TeachinglanguageName
  799. {
  800. get
  801. {
  802. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString())
  803. .Where(x => x.Value == TeachinglanguageID)
  804. .Select(x => x.Name).FirstOrDefault();
  805. }
  806. }
  807. /// <summary>
  808. /// 考试方式
  809. /// </summary>
  810. [Required]
  811. [DisplayName("考试方式")]
  812. public int? ExaminationModeID { get; set; }
  813. /// <summary>
  814. /// 考试方式(Excel导入用)
  815. /// </summary>
  816. [DisplayName("考试方式")]
  817. public string ExaminationModeStr { get; set; }
  818. /// <summary>
  819. /// 考试方式
  820. /// </summary>
  821. [DisplayName("考试方式")]
  822. public string ExaminationModeName
  823. {
  824. get
  825. {
  826. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  827. .Where(x => x.Value == ExaminationModeID)
  828. .Select(x => x.Name).FirstOrDefault();
  829. }
  830. }
  831. /// <summary>
  832. /// 成绩类型
  833. /// </summary>
  834. [Required]
  835. [DisplayName("成绩类型")]
  836. public int? ResultTypeID { get; set; }
  837. /// <summary>
  838. /// 成绩类型(Excel导入用)
  839. /// </summary>
  840. [DisplayName("成绩类型")]
  841. public string ResultTypeStr { get; set; }
  842. /// <summary>
  843. /// 成绩类型
  844. /// </summary>
  845. [DisplayName("成绩类型")]
  846. public string ResultTypeName
  847. {
  848. get
  849. {
  850. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  851. .Where(x => x.Value == ResultTypeID)
  852. .Select(x => x.Name).FirstOrDefault();
  853. }
  854. }
  855. /// <summary>
  856. /// 处理方式
  857. /// </summary>
  858. [Required]
  859. [DisplayName("处理方式")]
  860. public int? HandleModeID { get; set; }
  861. /// <summary>
  862. /// 处理方式(Excel导入用)
  863. /// </summary>
  864. [DisplayName("处理方式")]
  865. public string HandleModeStr { get; set; }
  866. /// <summary>
  867. /// 处理方式
  868. /// </summary>
  869. [DisplayName("处理方式")]
  870. public string HandleModeName
  871. {
  872. get
  873. {
  874. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  875. .Where(x => x.Value == HandleModeID)
  876. .Select(x => x.Name).FirstOrDefault();
  877. }
  878. }
  879. /// <summary>
  880. /// 授课方式
  881. /// </summary>
  882. [DisplayName("授课方式")]
  883. public List<int?> TeachingModeIDList { get; set; }
  884. /// <summary>
  885. /// 授课方式List(Excel导入用,可存在多个授课方式--用顿号隔开)
  886. /// </summary>
  887. [DisplayName("授课方式")]
  888. public string TeachingModeIDListStr { get; set; }
  889. /// <summary>
  890. /// 授课方式(可存在多个授课方式--用顿号隔开)
  891. /// </summary>
  892. [DisplayName("授课方式")]
  893. public string TeachingModeIDListName
  894. {
  895. get
  896. {
  897. if (TeachingModeIDList != null && TeachingModeIDList.Count() > 0)
  898. {
  899. return string.Join("、", TeachingModeIDList.Select(x =>
  900. IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  901. .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
  902. }
  903. else
  904. {
  905. return "";
  906. }
  907. }
  908. }
  909. /// <summary>
  910. /// 授课地点
  911. /// </summary>
  912. [DisplayName("授课地点")]
  913. public List<int?> TeachingPlaceIDList { get; set; }
  914. /// <summary>
  915. /// 授课地点List(Excel导入用,可存在多个授课地点--用顿号隔开)
  916. /// </summary>
  917. [DisplayName("授课地点")]
  918. public string TeachingPlaceIDListStr { get; set; }
  919. /// <summary>
  920. /// 授课地点(可存在多个授课地点--用顿号隔开)
  921. /// </summary>
  922. [DisplayName("授课地点")]
  923. public string TeachingPlaceIDListName
  924. {
  925. get
  926. {
  927. if (TeachingPlaceIDList != null && TeachingPlaceIDList.Count() > 0)
  928. {
  929. return string.Join("、", TeachingPlaceIDList.Select(x =>
  930. IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingPlace.ToString())
  931. .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
  932. }
  933. else
  934. {
  935. return "";
  936. }
  937. }
  938. }
  939. /// <summary>
  940. /// 计划范围
  941. /// </summary>
  942. [DisplayName("计划范围")]
  943. public int? PlanRange { get; set; }
  944. /// <summary>
  945. /// 人数
  946. /// </summary>
  947. [DisplayName("人数")]
  948. public int? StudentCount { get; set; }
  949. /// <summary>
  950. /// 备注
  951. /// </summary>
  952. [DisplayName("备注")]
  953. public string Remark { get; set; }
  954. /// <summary>
  955. /// 错误信息(Excel导入)
  956. /// </summary>
  957. [DisplayName("未导入原因")]
  958. public string ErrorMessage { get; set; }
  959. /// <summary>
  960. /// 计划状态
  961. /// </summary>
  962. [DisplayName("计划状态")]
  963. public int? PlanStatus { get; set; }
  964. /// <summary>
  965. /// 计划状态
  966. /// </summary>
  967. [DisplayName("计划状态")]
  968. public string PlanStatusName
  969. {
  970. get
  971. {
  972. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PlanStatus.ToString())
  973. .Where(x => x.Value == PlanStatus)
  974. .Select(x => x.Name).FirstOrDefault();
  975. }
  976. }
  977. /// <summary>
  978. /// 状态
  979. /// </summary>
  980. [DisplayName("状态")]
  981. public int? RecordStatus { get; set; }
  982. /// <summary>
  983. /// 创建人
  984. /// </summary>
  985. [DisplayName("创建人")]
  986. public Guid? CreateUserID { get; set; }
  987. /// <summary>
  988. /// 创建时间
  989. /// </summary>
  990. [DisplayName("创建时间")]
  991. public DateTime? CreateTime { get; set; }
  992. /// <summary>
  993. /// 修改人
  994. /// </summary>
  995. [DisplayName("修改人")]
  996. public Guid? ModifyUserID { get; set; }
  997. /// <summary>
  998. /// 修改时间
  999. /// </summary>
  1000. [DisplayName("修改时间")]
  1001. public DateTime? ModifyTime { get; set; }
  1002. }
  1003. }