MinorSpecialtyPlanView.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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 EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.MinorManage.MinorPlanManage
  9. {
  10. public class MinorSpecialtyPlanView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. public Guid? MinorPlanID { get; set; }
  16. /// <summary>
  17. /// 辅修计划申请ID
  18. /// </summary>
  19. public Guid? MinorPlanApplicationID { get; set; }
  20. /// <summary>
  21. /// 主键ID
  22. /// </summary>
  23. public Guid? MinorCourseID { get; set; }
  24. /// <summary>
  25. /// 学年学期ID
  26. /// </summary>
  27. [DisplayName("学年学期")]
  28. public Guid? SchoolyearID { get; set; }
  29. public string SchoolyearCode { get; set; }
  30. /// <summary>
  31. /// 院系所ID
  32. /// </summary>
  33. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  34. public Guid? CollegeID { get; set; }
  35. /// <summary>
  36. /// 院系所
  37. /// </summary>
  38. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  39. public string CollegeName { get; set; }
  40. /// <summary>
  41. /// 教研室
  42. /// </summary>
  43. [Required]
  44. [DisplayName("教研室")]
  45. public Guid? DepartmentID { get; set; }
  46. /// <summary>
  47. /// 教研室代码
  48. /// </summary>
  49. [DisplayName("教研室代码")]
  50. public string DepartmentCode { get; set; }
  51. /// <summary>
  52. /// 教研室
  53. /// </summary>
  54. [DisplayName("教研室")]
  55. public string DepartmentName { get; set; }
  56. /// <summary>
  57. /// 标准专业
  58. /// </summary>
  59. [DisplayName("专业名称")]
  60. public int? StandardID { get; set; }
  61. /// <summary>
  62. /// 年级
  63. /// </summary>
  64. [DisplayName("年级")]
  65. public int? YearID { get; set; }
  66. /// <summary>
  67. /// 专业代码(国标码)
  68. /// </summary>
  69. [DisplayName("专业代码")]
  70. public string Code { get; set; }
  71. /// <summary>
  72. /// 专业代码(国标码)
  73. /// </summary>
  74. [DisplayName("专业代码")]
  75. public string SpecialtyCode
  76. {
  77. get
  78. {
  79. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  80. .Where(x => x.Value == StandardID)
  81. .Select(x => x.Code).FirstOrDefault();
  82. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  83. }
  84. }
  85. [DisplayName("专业代码")]
  86. public string SpecialtyCodeStr { get; set; }
  87. /// <summary>
  88. /// 专业名称
  89. /// </summary>
  90. [DisplayName("专业名称")]
  91. public string StandardName
  92. {
  93. get
  94. {
  95. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  96. .Where(x => x.Value == StandardID)
  97. .Select(x => x.Name).FirstOrDefault();
  98. }
  99. }
  100. [DisplayName("专业名称")]
  101. public string StandardNameStr { get; set; }
  102. [DisplayName("学制")]
  103. public string LearnSystemStr { get; set; }
  104. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  105. public string EducationNameStr { get; set; }
  106. [DisplayName("学习形式")]
  107. public string LearningformNameStr { get; set; }
  108. /// <summary>
  109. /// 学制
  110. /// </summary>
  111. [DisplayName("学制")]
  112. public decimal? LearnSystem { get; set; }
  113. /// <summary>
  114. /// 培养层次
  115. /// </summary>
  116. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  117. public int? EducationID { get; set; }
  118. /// <summary>
  119. /// 培养层次名称
  120. /// </summary>
  121. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  122. public string EducationName
  123. {
  124. get
  125. {
  126. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  127. .Where(x => x.Value == EducationID)
  128. .Select(x => x.Name).FirstOrDefault();
  129. }
  130. }
  131. /// <summary>
  132. /// 学习形式
  133. /// </summary>
  134. [DisplayName("学习形式")]
  135. public int? LearningformID { get; set; }
  136. /// <summary>
  137. /// 学习形式名称
  138. /// </summary>
  139. [DisplayName("学习形式名称")]
  140. public string LearningformName
  141. {
  142. get
  143. {
  144. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  145. .Where(x => x.Value == LearningformID)
  146. .Select(x => x.Name).FirstOrDefault();
  147. }
  148. }
  149. /// <summary>
  150. /// 课程资料
  151. /// </summary>
  152. [Required]
  153. [DisplayName("课程资料")]
  154. public Guid? CoursematerialID { get; set; }
  155. /// <summary>
  156. /// 课程资料代码
  157. /// </summary>
  158. [DisplayName("课程资料代码")]
  159. public string CourseCode { get; set; }
  160. /// <summary>
  161. /// 课程名称
  162. /// </summary>
  163. [DisplayName("课程名称")]
  164. public string CourseName { get; set; }
  165. /// <summary>
  166. /// 课程结构
  167. /// </summary>
  168. [DisplayName("课程结构")]
  169. public int? CourseStructureID { get; set; }
  170. [DisplayName("课程结构")]
  171. public string CourseStructureNameStr { get; set; }
  172. /// <summary>
  173. /// 课程结构
  174. /// </summary>
  175. [DisplayName("课程结构")]
  176. public string CourseStructureName
  177. {
  178. get
  179. {
  180. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString())
  181. .Where(x => x.Value == CourseStructureID)
  182. .Select(x => x.Name).FirstOrDefault();
  183. }
  184. }
  185. /// <summary>
  186. /// 处理方式
  187. /// </summary>
  188. [Required]
  189. [DisplayName("处理方式")]
  190. public int? HandleModeID { get; set; }
  191. /// <summary>
  192. /// 处理方式
  193. /// </summary>
  194. [DisplayName("处理方式")]
  195. public string HandleModeName
  196. {
  197. get
  198. {
  199. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  200. .Where(x => x.Value == HandleModeID)
  201. .Select(x => x.Name).FirstOrDefault();
  202. }
  203. }
  204. /// <summary>
  205. /// 是否需要教材
  206. /// </summary>
  207. [DisplayName("是否需要教材")]
  208. public bool IsNeedMaterial { get; set; }
  209. /// <summary>
  210. /// 是否需要教材
  211. /// </summary>
  212. [DisplayName("是否需要教材")]
  213. public string IsNeedMaterialName
  214. {
  215. get { return this.IsNeedMaterial != true ? "否" : "是"; }
  216. }
  217. /// <summary>
  218. /// 课程类别
  219. /// </summary>
  220. [Required]
  221. [DisplayName("课程属性")]
  222. public int? CourseCategoryID { get; set; }
  223. [DisplayName("课程属性")]
  224. public string CourseCategoryNameStr { get; set; }
  225. /// <summary>
  226. /// 课程类别
  227. /// </summary>
  228. [DisplayName("课程属性")]
  229. public string CourseCategoryName
  230. {
  231. get
  232. {
  233. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
  234. .Where(x => x.Value == CourseCategoryID)
  235. .Select(x => x.Name).FirstOrDefault();
  236. }
  237. }
  238. /// <summary>
  239. /// 课程类型
  240. /// </summary>
  241. [Required]
  242. [DisplayName("课程类型")]
  243. public int? CourseTypeID { get; set; }
  244. [DisplayName("课程类型")]
  245. public string CourseTypeStr { get; set; }
  246. /// <summary>
  247. /// 课程类型名称
  248. /// </summary>
  249. [DisplayName("课程类型名称")]
  250. public string CourseTypeName
  251. {
  252. get
  253. {
  254. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  255. .Where(x => x.Value == CourseTypeID)
  256. .Select(x => x.Name).FirstOrDefault();
  257. }
  258. }
  259. /// <summary>
  260. /// 课程性质
  261. /// </summary>
  262. [Required]
  263. [DisplayName("课程性质")]
  264. public int? CourseQualityID { get; set; }
  265. [DisplayName("课程性质名称")]
  266. public string CourseQualityNameStr { get; set; }
  267. ///<summary>
  268. ///学生课程类型
  269. /// </summary>
  270. [DisplayName("课程类型")]
  271. public string StuCourseTypeName
  272. {
  273. get
  274. {
  275. var type = CourseQualityName;
  276. if (type == "必修课")
  277. {
  278. return "是";
  279. }
  280. else
  281. {
  282. return "否";
  283. }
  284. }
  285. }
  286. /// <summary>
  287. /// 课程性质
  288. /// </summary>
  289. [DisplayName("课程性质名称")]
  290. public string CourseQualityName
  291. {
  292. get
  293. {
  294. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString())
  295. .Where(x => x.Value == CourseQualityID)
  296. .Select(x => x.Name).FirstOrDefault();
  297. }
  298. }
  299. /// <summary>
  300. /// 授课方式
  301. /// </summary>
  302. [DisplayName("授课方式")]
  303. public List<int> TeachingModeID { get; set; }
  304. [DisplayName("授课方式")]
  305. public string TeachingModeStr { get; set; }
  306. /// <summary>
  307. /// 授课地点
  308. /// </summary>
  309. [DisplayName("授课地点")]
  310. public List<int> TeachingPlaceID { get; set; }
  311. [DisplayName("授课地点")]
  312. public string TeachingPlaceStr { get; set; }
  313. /// <summary>
  314. /// 实践类型
  315. /// </summary>
  316. [DisplayName("实践类型")]
  317. public int? PracticeTypeID { get; set; }
  318. [DisplayName("实践类型")]
  319. public string PracticeTypeNameStr { get; set; }
  320. /// <summary>
  321. /// 实践类型
  322. /// </summary>
  323. [DisplayName("实践类型")]
  324. public string PracticeTypeName
  325. {
  326. get
  327. {
  328. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PracticeType.ToString())
  329. .Where(x => x.Value == PracticeTypeID)
  330. .Select(x => x.Name).FirstOrDefault();
  331. }
  332. }
  333. /// <summary>
  334. /// 考试方式
  335. /// </summary>
  336. [Required]
  337. [DisplayName("考试方式")]
  338. public int? ExaminationModeID { get; set; }
  339. [DisplayName("考试方式名称")]
  340. public string ExaminationModeNameStr { get; set; }
  341. /// <summary>
  342. /// 考试方式名称
  343. /// </summary>
  344. [DisplayName("考试方式名称")]
  345. public string ExaminationModeName
  346. {
  347. get
  348. {
  349. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  350. .Where(x => x.Value == ExaminationModeID)
  351. .Select(x => x.Name).FirstOrDefault();
  352. }
  353. }
  354. /// <summary>
  355. /// 授课语言
  356. /// </summary>
  357. [DisplayName("授课语言")]
  358. public int? TeachinglanguageID { get; set; }
  359. [DisplayName("授课语言")]
  360. public string TeachinglanguageNameStr { get; set; }
  361. /// <summary>
  362. /// 授课语言
  363. /// </summary>
  364. [DisplayName("授课语言")]
  365. public string TeachinglanguageName
  366. {
  367. get
  368. {
  369. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString())
  370. .Where(x => x.Value == TeachinglanguageID)
  371. .Select(x => x.Name).FirstOrDefault();
  372. }
  373. }
  374. /// <summary>
  375. /// 开课学年
  376. /// </summary>
  377. [Required]
  378. [DisplayName("开课学年")]
  379. public int? SchoolyearNumID { get; set; }
  380. [DisplayName("开课学年")]
  381. public string SchoolyearNumNameStr { get; set; }
  382. /// <summary>
  383. /// 开课学年
  384. /// </summary>
  385. [DisplayName("开课学年")]
  386. public string SchoolyearNumName
  387. {
  388. get
  389. {
  390. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  391. .Where(x => x.Value == SchoolyearNumID)
  392. .Select(x => x.Name).FirstOrDefault();
  393. }
  394. }
  395. /// <summary>
  396. /// 学期
  397. /// </summary>
  398. [Required]
  399. [DisplayName("学期")]
  400. public int? SchoolcodeID { get; set; }
  401. [DisplayName("学期")]
  402. public string SchoolcodeStr { get; set; }
  403. /// <summary>
  404. /// 学期
  405. /// </summary>
  406. [DisplayName("学期")]
  407. public string SchoolcodeName
  408. {
  409. get
  410. {
  411. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  412. }
  413. }
  414. /// <summary>
  415. /// 开课学期
  416. /// </summary>
  417. [Required]
  418. [DisplayName("开课学期")]
  419. public int? StarttermID { get; set; }
  420. /// <summary>
  421. /// 开课学期
  422. /// </summary>
  423. [DisplayName("开课学期")]
  424. public string StarttermName
  425. {
  426. get
  427. {
  428. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  429. .Where(x => x.Value == StarttermID)
  430. .Select(x => x.Name).FirstOrDefault();
  431. }
  432. }
  433. /// <summary>
  434. /// 精品课程
  435. /// </summary>
  436. [DisplayName("精品课程")]
  437. public int? CourseFineID { get; set; }
  438. [DisplayName("精品课程")]
  439. public string CourseFineNameStr { get; set; }
  440. /// <summary>
  441. /// 精品课程
  442. /// </summary>
  443. [DisplayName("精品课程")]
  444. public string CourseFineName
  445. {
  446. get
  447. {
  448. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseFine.ToString())
  449. .Where(x => x.Value == CourseFineID)
  450. .Select(x => x.Name).FirstOrDefault();
  451. }
  452. }
  453. /// <summary>
  454. /// 成绩类型
  455. /// </summary>
  456. [Required]
  457. [DisplayName("成绩类型")]
  458. public int? ResultTypeID { get; set; }
  459. /// <summary>
  460. /// 成绩类型
  461. /// </summary>
  462. [DisplayName("成绩类型")]
  463. public string ResultTypeName
  464. {
  465. get
  466. {
  467. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  468. .Where(x => x.Value == ResultTypeID)
  469. .Select(x => x.Name).FirstOrDefault();
  470. }
  471. }
  472. /// <summary>
  473. /// 成绩类型
  474. /// </summary>
  475. [DisplayName("成绩类型")]
  476. public string ResultTypeNameStr { get; set; }
  477. /// <summary>
  478. /// 是否专业核心
  479. /// </summary>
  480. [DisplayName("是否专业核心")]
  481. public bool IsSpecialtycore { get; set; }
  482. /// <summary>
  483. /// 是否专业核心
  484. /// </summary>
  485. [DisplayName("是否专业核心")]
  486. public string IsSpecialtycoreName
  487. {
  488. get { return this.IsSpecialtycore != true ? "否" : "是"; }
  489. }
  490. /// <summary>
  491. /// 是否合作开发课
  492. /// </summary>
  493. [DisplayName("是否合作开发课")]
  494. public bool IsCooperation { get; set; }
  495. /// <summary>
  496. /// 是否合作开发课
  497. /// </summary>
  498. [DisplayName("是否合作开发课")]
  499. public string IsCooperationName
  500. {
  501. get { return this.IsCooperation != true ? "否" : "是"; }
  502. }
  503. /// <summary>
  504. /// 是否必修课
  505. /// </summary>
  506. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
  507. public bool IsRequired { get; set; }
  508. /// <summary>
  509. /// 是否必修课
  510. /// </summary>
  511. [DisplayName("是否必修课")]
  512. public string IsRequiredName
  513. {
  514. get { return this.IsRequired != true ? "否" : "是"; }
  515. }
  516. /// <summary>
  517. /// 是否网上选修课
  518. /// </summary>
  519. [DisplayName("是否网上选修课")]
  520. public bool IsElective { get; set; }
  521. /// <summary>
  522. /// 是否网上选修课
  523. /// </summary>
  524. [DisplayName("是否网上选修课")]
  525. public string IsElectiveName
  526. {
  527. get { return this.IsElective != true ? "否" : "是"; }
  528. }
  529. /// <summary>
  530. /// 是否网络课程
  531. /// </summary>
  532. [DisplayName("是否网络课程")]
  533. public bool IsNetworkCourse { get; set; }
  534. /// <summary>
  535. /// 是否网络课程名称
  536. /// </summary>
  537. [DisplayName("是否网络课程名称")]
  538. public string IsNetworkCourseName
  539. {
  540. get { return this.IsNetworkCourse != true ? "否" : "是"; }
  541. }
  542. /// <summary>
  543. /// 是否学位主干课
  544. /// </summary>
  545. [DisplayName("是否学位主干课")]
  546. public bool IsMainCourse { get; set; }
  547. /// <summary>
  548. /// 是否学位或主干课名称
  549. /// </summary>
  550. [DisplayName("是否学位或主干课")]
  551. public string IsMainCourseName
  552. {
  553. get { return this.IsMainCourse != true ? "否" : "是"; }
  554. }
  555. /// <summary>
  556. /// 是否启用
  557. /// </summary>
  558. public bool IsCourseEnable { get; set; }
  559. /// <summary>
  560. /// 是否启用名称
  561. /// </summary>
  562. [DisplayName("是否启用")]
  563. public string IsCourseEnableName
  564. {
  565. get { return this.IsCourseEnable != true ? "否" : "是"; }
  566. }
  567. /// <summary>
  568. /// 是否启用
  569. /// </summary>
  570. [DisplayName("是否启用")]
  571. public bool IsEnable { get; set; }
  572. /// <summary>
  573. /// 是否启用
  574. /// </summary>
  575. [DisplayName("是否启用")]
  576. public string IsEnableName
  577. {
  578. get
  579. {
  580. int value = 0;
  581. if (IsEnable == true)
  582. {
  583. value = 1;
  584. }
  585. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GeneralPurpose.ToString())
  586. .Where(x => x.Value == value)
  587. .Select(x => x.Name).FirstOrDefault();
  588. }
  589. }
  590. /// <summary>
  591. /// 是否启用
  592. /// </summary>
  593. [DisplayName("是否启用")]
  594. public string IsEnableStr { get; set; }
  595. /// <summary>
  596. /// 学分
  597. /// </summary>
  598. [Required]
  599. [DisplayName("学分")]
  600. [DisplayFormat(DataFormatString = "{0:#.0}")]
  601. [RegularExpression(@"^\d+(\.\d{1,1})?$", ErrorMessage = "请输整数或保留1位小数")]
  602. public decimal? Credit { get; set; }
  603. [DisplayName("学分")]
  604. public string CreditStr { get; set; }
  605. /// <summary>
  606. /// 总学时
  607. /// </summary>
  608. [DisplayName("总学时")]
  609. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  610. public int? Totalhours { get; set; }
  611. /// <summary>
  612. /// 理论学时
  613. /// </summary>
  614. [Required]
  615. [DisplayName("理论学时")]
  616. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  617. public int? TheoryCourse { get; set; }
  618. [DisplayName("理论学时")]
  619. public string TheoryCourseStr { get; set; }
  620. /// <summary>
  621. /// 实践学时
  622. /// </summary>
  623. [Required]
  624. [DisplayName("实践学时")]
  625. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  626. public int? Practicehours { get; set; }
  627. [DisplayName("实践学时")]
  628. public string PracticehoursStr { get; set; }
  629. /// <summary>
  630. /// 实验学时
  631. /// </summary>
  632. [Required]
  633. [DisplayName("实验学时")]
  634. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  635. public int? Trialhours { get; set; }
  636. [DisplayName("实验学时")]
  637. public string TrialhoursStr { get; set; }
  638. /// <summary>
  639. /// 总周次
  640. /// </summary>
  641. [DisplayName("总周次")]
  642. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  643. public int? SchoolweeksNum { get; set; }
  644. /// <summary>
  645. /// 每周次数
  646. /// </summary>
  647. [DisplayName("每周次数")]
  648. public int? WeeklyNum { get; set; }
  649. /// <summary>
  650. /// 理论周次
  651. /// </summary>
  652. [DisplayName("理论周次")]
  653. public int? TheoryWeeklyNum { get; set; }
  654. /// <summary>
  655. /// 实践周次
  656. /// </summary>
  657. [DisplayName("实践周次")]
  658. public int? PracticeWeeklyNum { get; set; }
  659. /// <summary>
  660. /// 实验周次
  661. /// </summary>
  662. [DisplayName("实验周次")]
  663. public int? TrialWeeklyNum { get; set; }
  664. /// <summary>
  665. /// 开始周次
  666. /// </summary>
  667. [DisplayName("开始周次")]
  668. [Required]
  669. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  670. public int? StartWeeklyNum { get; set; }
  671. /// <summary>
  672. /// 结束周次
  673. /// </summary>
  674. [DisplayName("结束周次")]
  675. [Required]
  676. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  677. public int? EndWeeklyNum { get; set; }
  678. /// <summary>
  679. /// 周学时
  680. /// </summary>
  681. [DisplayName("周学时")]
  682. public int? WeeklyHours { get; set; }
  683. /// <summary>
  684. /// 创建人
  685. /// </summary>
  686. [DisplayName("创建人")]
  687. public Guid? CreateUserID { get; set; }
  688. /// <summary>
  689. /// 创建时间
  690. /// </summary>
  691. [DisplayName("创建时间")]
  692. public DateTime? CreateTime { get; set; }
  693. /// <summary>
  694. /// 备注
  695. /// </summary>
  696. [DisplayName("备注")]
  697. public string Remarks { get; set; }
  698. /// <summary>
  699. /// 备注
  700. /// </summary>
  701. [DisplayName("错误信息")]
  702. public string ErrorMessage { get; set; }
  703. public bool IsGenerateExecutablePlan { get; set; }
  704. private bool _isExcelVaildateOK = true;
  705. /// <summary>
  706. /// Excel验证是否通过,默认为true
  707. /// <para>true:通过;false:不通过</para>
  708. /// </summary>
  709. public bool IsExcelVaildateOK
  710. {
  711. get { return _isExcelVaildateOK; }
  712. set { _isExcelVaildateOK = value; }
  713. }
  714. }
  715. }