PlanApplicationView.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Web.Mvc;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.CultureplanManage.PlanManagement
  10. {
  11. public class PlanApplicationView
  12. {
  13. /// <summary>
  14. /// 主键ID
  15. /// </summary>
  16. public Guid PlanApplicationID { get; set; }
  17. /// <summary>
  18. /// 学年学期
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学年学期")]
  22. public Guid? SchoolyearID { get; set; }
  23. /// <summary>
  24. /// 学年学期
  25. /// </summary>
  26. [DisplayName("学年学期")]
  27. public string SchoolyearCode { get; set; }
  28. /// <summary>
  29. /// 学年学期对应的学年
  30. /// </summary>
  31. [DisplayName("学年")]
  32. public int? YearID { get; set; }
  33. /// <summary>
  34. /// 学年学期对应的Value值
  35. /// </summary>
  36. [DisplayName("Value")]
  37. public int? Value { get; set; }
  38. /// <summary>
  39. /// 开课学年
  40. /// </summary>
  41. [Required]
  42. [DisplayName("开课学年")]
  43. public int? SchoolyearNumID { get; set; }
  44. /// <summary>
  45. /// 开课学年
  46. /// </summary>
  47. [DisplayName("开课学年")]
  48. public string SchoolyearNumName
  49. {
  50. get
  51. {
  52. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  53. .Where(x => x.Value == SchoolyearNumID)
  54. .Select(x => x.Name).FirstOrDefault();
  55. }
  56. }
  57. /// <summary>
  58. /// 学期
  59. /// </summary>
  60. [Required]
  61. [DisplayName("学期")]
  62. public int? SchoolcodeID { get; set; }
  63. /// <summary>
  64. /// 学期
  65. /// </summary>
  66. [DisplayName("学期")]
  67. public string SchoolcodeName
  68. {
  69. get
  70. {
  71. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 开课学期
  76. /// </summary>
  77. [Required]
  78. [DisplayName("开课学期")]
  79. public int? StarttermID { get; set; }
  80. /// <summary>
  81. /// 开课学期
  82. /// </summary>
  83. [DisplayName("开课学期")]
  84. public string StarttermName
  85. {
  86. get
  87. {
  88. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  89. .Where(x => x.Value == StarttermID)
  90. .Select(x => x.Name).FirstOrDefault();
  91. }
  92. }
  93. /// <summary>
  94. /// 年级专业ID
  95. /// </summary>
  96. [Required]
  97. [DisplayName("年级专业")]
  98. public Guid? GrademajorID { get; set; }
  99. /// <summary>
  100. /// 年级专业编号
  101. /// </summary>
  102. [DisplayName("年级专业编号")]
  103. public string GrademajorCode { get; set; }
  104. /// <summary>
  105. /// 年级专业名称
  106. /// </summary>
  107. [DisplayName("年级专业名称")]
  108. public string GrademajorName { get; set; }
  109. /// <summary>
  110. /// 年级专业对应年级(入学学年)
  111. /// </summary>
  112. [DisplayName("年级")]
  113. public int? GradeID { get; set; }
  114. /// <summary>
  115. /// 院系专业ID
  116. /// </summary>
  117. [DisplayName("院系专业ID")]
  118. public Guid? FacultymajorID { get; set; }
  119. /// <summary>
  120. /// 院系专业编号
  121. /// </summary>
  122. [DisplayName("院系专业编号")]
  123. public string FacultymajorCode { get; set; }
  124. /// <summary>
  125. /// 院系专业名称
  126. /// </summary>
  127. [DisplayName("院系专业名称")]
  128. public string FacultymajorName { get; set; }
  129. /// <summary>
  130. /// 院系所ID
  131. /// </summary>
  132. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  133. public Guid? CollegeID { get; set; }
  134. /// <summary>
  135. /// 院系所代码
  136. /// </summary>
  137. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  138. public string CollegeCode { get; set; }
  139. /// <summary>
  140. /// 院系所
  141. /// </summary>
  142. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  143. public string CollegeName { get; set; }
  144. /// <summary>
  145. /// 校区ID
  146. /// </summary>
  147. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  148. public Guid? CampusID { get; set; }
  149. /// <summary>
  150. /// 校区代码
  151. /// </summary>
  152. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  153. public string CampusNo { get; set; }
  154. /// <summary>
  155. /// 校区名称
  156. /// </summary>
  157. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  158. public string CampusName { get; set; }
  159. /// <summary>
  160. /// 入学学年学期ID
  161. /// </summary>
  162. [Required]
  163. [DisplayName("入学学年学期ID")]
  164. public Guid? StartSchoolyearID { get; set; }
  165. /// <summary>
  166. /// 入学学年学期
  167. /// </summary>
  168. [DisplayName("入学学年学期")]
  169. public string StartSchoolyearCode { get; set; }
  170. /// <summary>
  171. /// 入学学年学期对应的Value值
  172. /// </summary>
  173. [DisplayName("StartValue")]
  174. public int? StartValue { get; set; }
  175. /// <summary>
  176. /// 入学学期
  177. /// </summary>
  178. [DisplayName("入学学期")]
  179. public int? StartSchoolcodeID { get; set; }
  180. /// <summary>
  181. /// 入学学期
  182. /// </summary>
  183. [DisplayName("入学学期")]
  184. public string StartSchoolcodeName
  185. {
  186. get
  187. {
  188. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == StartSchoolcodeID).Select(x => x.Name).FirstOrDefault();
  189. }
  190. }
  191. /// <summary>
  192. /// 专业信息ID
  193. /// </summary>
  194. [Required]
  195. [DisplayName("专业信息ID")]
  196. public Guid? SpecialtyID { get; set; }
  197. /// <summary>
  198. /// 专业ID(Value)
  199. /// </summary>
  200. [DisplayName("专业ID(Value)")]
  201. public int? StandardID { get; set; }
  202. /// <summary>
  203. /// 专业代码
  204. /// </summary>
  205. [DisplayName("专业代码")]
  206. public string StandardCode
  207. {
  208. get
  209. {
  210. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  211. .Where(x => x.Value == StandardID)
  212. .Select(x => x.Code).FirstOrDefault();
  213. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  214. }
  215. }
  216. /// <summary>
  217. /// 专业名称
  218. /// </summary>
  219. [DisplayName("专业名称")]
  220. public string StandardName { get; set; }
  221. /// <summary>
  222. /// 培养层次
  223. /// </summary>
  224. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  225. public int? EducationID { get; set; }
  226. /// <summary>
  227. /// 培养层次
  228. /// </summary>
  229. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  230. public string EducationName
  231. {
  232. get
  233. {
  234. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  235. .Where(x => x.Value == EducationID)
  236. .Select(x => x.Name).FirstOrDefault();
  237. }
  238. }
  239. /// <summary>
  240. /// 学习形式
  241. /// </summary>
  242. [DisplayName("学习形式")]
  243. public int? LearningformID { get; set; }
  244. /// <summary>
  245. /// 学习形式
  246. /// </summary>
  247. [DisplayName("学习形式")]
  248. public string LearningformName
  249. {
  250. get
  251. {
  252. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  253. .Where(x => x.Value == LearningformID)
  254. .Select(x => x.Name).FirstOrDefault();
  255. }
  256. }
  257. /// <summary>
  258. /// 学制
  259. /// </summary>
  260. [DisplayName("学制")]
  261. public decimal? LearnSystem { get; set; }
  262. /// <summary>
  263. /// 课程信息ID
  264. /// </summary>
  265. [Required]
  266. [DisplayName("课程信息ID")]
  267. public Guid? CoursematerialID { get; set; }
  268. /// <summary>
  269. /// 课程代码
  270. /// </summary>
  271. [DisplayName("课程代码")]
  272. public string CourseCode { get; set; }
  273. /// <summary>
  274. /// 课程名称
  275. /// </summary>
  276. [DisplayName("课程名称")]
  277. public string CourseName { get; set; }
  278. /// <summary>
  279. /// 课程结构
  280. /// </summary>
  281. [DisplayName("课程结构")]
  282. public int? CourseStructureID { get; set; }
  283. /// <summary>
  284. /// 课程结构
  285. /// </summary>
  286. [DisplayName("课程结构")]
  287. public string CourseStructureName
  288. {
  289. get
  290. {
  291. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString())
  292. .Where(x => x.Value == CourseStructureID)
  293. .Select(x => x.Name).FirstOrDefault();
  294. }
  295. }
  296. /// <summary>
  297. /// 课程属性
  298. /// </summary>
  299. [DisplayName("课程属性")]
  300. public int? CourseCategoryID { get; set; }
  301. /// <summary>
  302. /// 课程属性
  303. /// </summary>
  304. [DisplayName("课程属性")]
  305. public string CourseCategoryName
  306. {
  307. get
  308. {
  309. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
  310. .Where(x => x.Value == CourseCategoryID)
  311. .Select(x => x.Name).FirstOrDefault();
  312. }
  313. }
  314. /// <summary>
  315. /// 课程类型
  316. /// </summary>
  317. [Required]
  318. [DisplayName("课程类型")]
  319. public int? CourseTypeID { get; set; }
  320. /// <summary>
  321. /// 课程类型
  322. /// </summary>
  323. [DisplayName("课程类型")]
  324. public string CourseTypeName
  325. {
  326. get
  327. {
  328. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  329. .Where(x => x.Value == CourseTypeID)
  330. .Select(x => x.Name).FirstOrDefault();
  331. }
  332. }
  333. /// <summary>
  334. /// 课程性质
  335. /// </summary>
  336. [DisplayName("课程性质")]
  337. public int? CourseQualityID { get; set; }
  338. /// <summary>
  339. /// 课程性质
  340. /// </summary>
  341. [DisplayName("课程性质")]
  342. public string CourseQualityName
  343. {
  344. get
  345. {
  346. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString())
  347. .Where(x => x.Value == CourseQualityID)
  348. .Select(x => x.Name).FirstOrDefault();
  349. }
  350. }
  351. /// <summary>
  352. /// 课程学分
  353. /// </summary>
  354. [Required]
  355. [DisplayName("课程学分")]
  356. //[DisplayFormat(DataFormatString = "{0:N1}")]
  357. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  358. public decimal? Credit { get; set; }
  359. /// <summary>
  360. /// 理论学时
  361. /// </summary>
  362. [Required]
  363. [DisplayName("理论学时")]
  364. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  365. public int? TheoryCourse { get; set; }
  366. /// <summary>
  367. /// 实践学时
  368. /// </summary>
  369. [Required]
  370. [DisplayName("实践学时")]
  371. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  372. public int? Practicehours { get; set; }
  373. /// <summary>
  374. /// 实验学时
  375. /// </summary>
  376. [Required]
  377. [DisplayName("实验学时")]
  378. //[Compare("Practicehours")]
  379. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  380. public int? Trialhours { get; set; }
  381. /// <summary>
  382. /// 总学时
  383. /// </summary>
  384. [Required]
  385. [DisplayName("总学时")]
  386. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  387. public int? Totalhours { get; set; }
  388. /// <summary>
  389. /// 理论周次
  390. /// </summary>
  391. [Required]
  392. [DisplayName("理论周次")]
  393. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  394. public int? TheoryWeeklyNum { get; set; }
  395. /// <summary>
  396. /// 实践周次
  397. /// </summary>
  398. [Required]
  399. [DisplayName("实践周次")]
  400. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  401. public int? PracticeWeeklyNum { get; set; }
  402. /// <summary>
  403. /// 实验周次
  404. /// </summary>
  405. [Required]
  406. [DisplayName("实验周次")]
  407. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  408. public int? TrialWeeklyNum { get; set; }
  409. /// <summary>
  410. /// 总周次
  411. /// </summary>
  412. [Required]
  413. [DisplayName("总周次")]
  414. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  415. public int? SchoolweeksNum { get; set; }
  416. /// <summary>
  417. /// 周学时
  418. /// </summary>
  419. [Required]
  420. [DisplayName("周学时")]
  421. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  422. public int? WeeklyHours { get; set; }
  423. /// <summary>
  424. /// 每周次数
  425. /// </summary>
  426. [Required]
  427. [DisplayName("每周次数")]
  428. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  429. public int? WeeklyNum { get; set; }
  430. /// <summary>
  431. /// 开始周次
  432. /// </summary>
  433. [Required]
  434. [DisplayName("开始周次")]
  435. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  436. public int? StartWeeklyNum { get; set; }
  437. /// <summary>
  438. /// 结束周次
  439. /// </summary>
  440. [Required]
  441. [DisplayName("结束周次")]
  442. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  443. public int? EndWeeklyNum { get; set; }
  444. /// <summary>
  445. /// 起止周次
  446. /// </summary>
  447. [DisplayName("起止周次")]
  448. public string StartEndWeeklyNum { get; set; }
  449. /// <summary>
  450. /// 开课教研室ID
  451. /// </summary>
  452. [Required]
  453. [DisplayName("开课教研室ID")]
  454. public Guid? DepartmentID { get; set; }
  455. /// <summary>
  456. /// 教研室代码
  457. /// </summary>
  458. [DisplayName("教研室代码")]
  459. public string DepartmentCode { get; set; }
  460. /// <summary>
  461. /// 开课教研室
  462. /// </summary>
  463. [DisplayName("开课教研室")]
  464. public string DepartmentName { get; set; }
  465. /// <summary>
  466. /// 开课院系ID
  467. /// </summary>
  468. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  469. public Guid? CourseCollegeID { get; set; }
  470. /// <summary>
  471. /// 开课院系代码
  472. /// </summary>
  473. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  474. public string CourseCollegeCode { get; set; }
  475. /// <summary>
  476. /// 开课院系
  477. /// </summary>
  478. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  479. public string CourseCollegeName { get; set; }
  480. /// <summary>
  481. /// 是否专业核心
  482. /// </summary>
  483. [DisplayName("是否专业核心")]
  484. public bool IsSpecialtycore { get; set; }
  485. /// <summary>
  486. /// 是否专业核心
  487. /// </summary>
  488. [DisplayName("是否专业核心")]
  489. public string IsSpecialtycoreName
  490. {
  491. get { return this.IsSpecialtycore != true ? "否" : "是"; }
  492. }
  493. /// <summary>
  494. /// 是否合作开发
  495. /// </summary>
  496. [DisplayName("是否合作开发")]
  497. public bool IsCooperation { get; set; }
  498. /// <summary>
  499. /// 是否合作开发
  500. /// </summary>
  501. [DisplayName("是否合作开发")]
  502. public string IsCooperationName
  503. {
  504. get { return this.IsCooperation != true ? "否" : "是"; }
  505. }
  506. /// <summary>
  507. /// 是否必修课
  508. /// </summary>
  509. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  510. public bool IsRequired { get; set; }
  511. /// <summary>
  512. /// 是否必修课
  513. /// </summary>
  514. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  515. public string IsRequiredName
  516. {
  517. get { return this.IsRequired != true ? "否" : "是"; }
  518. }
  519. /// <summary>
  520. /// 是否网上选修
  521. /// </summary>
  522. [DisplayName("是否网上选修")]
  523. public bool IsElective { get; set; }
  524. /// <summary>
  525. /// 是否网上选修
  526. /// </summary>
  527. [DisplayName("是否网上选修")]
  528. public string IsElectiveName
  529. {
  530. get { return this.IsElective != true ? "否" : "是"; }
  531. }
  532. /// <summary>
  533. /// 是否网络课程
  534. /// </summary>
  535. [DisplayName("是否网络课程")]
  536. public bool IsNetworkCourse { get; set; }
  537. /// <summary>
  538. /// 是否网络课程
  539. /// </summary>
  540. [DisplayName("是否网络课程")]
  541. public string IsNetworkCourseName
  542. {
  543. get { return this.IsNetworkCourse != true ? "否" : "是"; }
  544. }
  545. /// <summary>
  546. /// 是否学位课程
  547. /// </summary>
  548. [DisplayName("是否学位课程")]
  549. public bool IsMainCourse { get; set; }
  550. /// <summary>
  551. /// 是否学位课程
  552. /// </summary>
  553. [DisplayName("是否学位课程")]
  554. public string IsMainCourseName
  555. {
  556. get { return this.IsMainCourse != true ? "否" : "是"; }
  557. }
  558. /// <summary>
  559. /// 是否需要教材
  560. /// </summary>
  561. [DisplayName("是否需要教材")]
  562. public bool IsNeedMaterial { get; set; }
  563. /// <summary>
  564. /// 是否需要教材
  565. /// </summary>
  566. [DisplayName("是否需要教材")]
  567. public string IsNeedMaterialName
  568. {
  569. get { return this.IsNeedMaterial != true ? "否" : "是"; }
  570. }
  571. /// <summary>
  572. /// 精品课程
  573. /// </summary>
  574. [DisplayName("精品课程")]
  575. public int? CourseFineID { get; set; }
  576. /// <summary>
  577. /// 精品课程
  578. /// </summary>
  579. [DisplayName("精品课程")]
  580. public string CourseFineName
  581. {
  582. get
  583. {
  584. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseFine.ToString())
  585. .Where(x => x.Value == CourseFineID)
  586. .Select(x => x.Name).FirstOrDefault();
  587. }
  588. }
  589. /// <summary>
  590. /// 实践类型
  591. /// </summary>
  592. [DisplayName("实践类型")]
  593. public int? PracticeTypeID { get; set; }
  594. /// <summary>
  595. /// 实践类型
  596. /// </summary>
  597. [DisplayName("实践类型")]
  598. public string PracticeTypeName
  599. {
  600. get
  601. {
  602. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PracticeType.ToString())
  603. .Where(x => x.Value == PracticeTypeID)
  604. .Select(x => x.Name).FirstOrDefault();
  605. }
  606. }
  607. /// <summary>
  608. /// 授课语言
  609. /// </summary>
  610. [DisplayName("授课语言")]
  611. public int? TeachinglanguageID { get; set; }
  612. /// <summary>
  613. /// 授课语言
  614. /// </summary>
  615. [DisplayName("授课语言")]
  616. public string TeachinglanguageName
  617. {
  618. get
  619. {
  620. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString())
  621. .Where(x => x.Value == TeachinglanguageID)
  622. .Select(x => x.Name).FirstOrDefault();
  623. }
  624. }
  625. /// <summary>
  626. /// 考试方式
  627. /// </summary>
  628. [Required]
  629. [DisplayName("考试方式")]
  630. public int? ExaminationModeID { get; set; }
  631. /// <summary>
  632. /// 考试方式
  633. /// </summary>
  634. [DisplayName("考试方式")]
  635. public string ExaminationModeName
  636. {
  637. get
  638. {
  639. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  640. .Where(x => x.Value == ExaminationModeID)
  641. .Select(x => x.Name).FirstOrDefault();
  642. }
  643. }
  644. /// <summary>
  645. /// 成绩类型
  646. /// </summary>
  647. [Required]
  648. [DisplayName("成绩类型")]
  649. public int? ResultTypeID { get; set; }
  650. /// <summary>
  651. /// 成绩类型
  652. /// </summary>
  653. [DisplayName("成绩类型")]
  654. public string ResultTypeName
  655. {
  656. get
  657. {
  658. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  659. .Where(x => x.Value == ResultTypeID)
  660. .Select(x => x.Name).FirstOrDefault();
  661. }
  662. }
  663. /// <summary>
  664. /// 处理方式
  665. /// </summary>
  666. [Required]
  667. [DisplayName("处理方式")]
  668. public int? HandleModeID { get; set; }
  669. /// <summary>
  670. /// 处理方式
  671. /// </summary>
  672. [DisplayName("处理方式")]
  673. public string HandleModeName
  674. {
  675. get
  676. {
  677. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  678. .Where(x => x.Value == HandleModeID)
  679. .Select(x => x.Name).FirstOrDefault();
  680. }
  681. }
  682. /// <summary>
  683. /// 授课方式
  684. /// </summary>
  685. [DisplayName("授课方式")]
  686. public List<int?> TeachingModeIDList { get; set; }
  687. /// <summary>
  688. /// 授课方式(可存在多个授课方式--用顿号隔开)
  689. /// </summary>
  690. [DisplayName("授课方式")]
  691. public string TeachingModeIDListName
  692. {
  693. get
  694. {
  695. if (TeachingModeIDList != null && TeachingModeIDList.Count() > 0)
  696. {
  697. return string.Join("、", TeachingModeIDList.Select(x =>
  698. IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  699. .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
  700. }
  701. else
  702. {
  703. return "";
  704. }
  705. }
  706. }
  707. /// <summary>
  708. /// 授课地点
  709. /// </summary>
  710. [DisplayName("授课地点")]
  711. public List<int?> TeachingPlaceIDList { get; set; }
  712. /// <summary>
  713. /// 授课地点(可存在多个授课地点--用顿号隔开)
  714. /// </summary>
  715. [DisplayName("授课地点")]
  716. public string TeachingPlaceIDListName
  717. {
  718. get
  719. {
  720. if (TeachingPlaceIDList != null && TeachingPlaceIDList.Count() > 0)
  721. {
  722. return string.Join("、", TeachingPlaceIDList.Select(x =>
  723. IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingPlace.ToString())
  724. .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
  725. }
  726. else
  727. {
  728. return "";
  729. }
  730. }
  731. }
  732. /// <summary>
  733. /// 备注
  734. /// </summary>
  735. [DisplayName("备注")]
  736. public string Remark { get; set; }
  737. /// <summary>
  738. /// 审批状态
  739. /// </summary>
  740. [DisplayName("审批状态")]
  741. public int? ApprovalStatus { get; set; }
  742. /// <summary>
  743. /// 审核状态
  744. /// </summary>
  745. [DisplayName("审核状态")]
  746. public string ApprovalStatusName { get; set; }
  747. /// <summary>
  748. /// 处理动作
  749. /// </summary>
  750. [Required]
  751. [DisplayName("处理动作")]
  752. public string Action { get; set; }
  753. /// <summary>
  754. /// 处理意见
  755. /// </summary>
  756. [DisplayName("处理意见")]
  757. public string Comment { get; set; }
  758. /// <summary>
  759. /// 状态
  760. /// </summary>
  761. [DisplayName("状态")]
  762. public int? RecordStatus { get; set; }
  763. /// <summary>
  764. /// 申请人
  765. /// </summary>
  766. [DisplayName("申请人")]
  767. public Guid? CreateUserID { get; set; }
  768. /// <summary>
  769. /// 申请时间
  770. /// </summary>
  771. [DisplayName("申请时间")]
  772. public DateTime? CreateTime { get; set; }
  773. /// <summary>
  774. /// 修改人
  775. /// </summary>
  776. [DisplayName("修改人")]
  777. public Guid? ModifyUserID { get; set; }
  778. /// <summary>
  779. /// 修改时间
  780. /// </summary>
  781. [DisplayName("修改时间")]
  782. public DateTime? ModifyTime { get; set; }
  783. }
  784. }