1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- using System.Web.Mvc;
- using Bowin.Common.Mvc;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.CultureplanManage.PlanManagement
- {
- public class SpecialtyPlanView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid SpecialtyPlanID { get; set; }
- /// <summary>
- /// 计划申请ID
- /// </summary>
- [DisplayName("计划申请ID")]
- public Guid? PlanApplicationID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [Required]
- [DisplayName("学年学期")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 学年学期对应的学年
- /// </summary>
- [DisplayName("学年")]
- public int? YearID { get; set; }
- /// <summary>
- /// 学年学期对应的Value值
- /// </summary>
- [DisplayName("Value")]
- public int? Value { get; set; }
- /// <summary>
- /// 开课学年
- /// </summary>
- [Required]
- [DisplayName("开课学年")]
- public int? SchoolyearNumID { get; set; }
- /// <summary>
- /// 开课学年(Excel导入)
- /// </summary>
- [DisplayName("开课学年")]
- public string SchoolyearNumStr { get; set; }
- /// <summary>
- /// 开课学年
- /// </summary>
- [DisplayName("开课学年")]
- public string SchoolyearNumName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
- .Where(x => x.Value == SchoolyearNumID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学期
- /// </summary>
- [Required]
- [DisplayName("学期")]
- public int? SchoolcodeID { get; set; }
- /// <summary>
- /// 学期(Excel导入)
- /// </summary>
- [DisplayName("学期")]
- public string SchoolcodeStr { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [DisplayName("学期")]
- public string SchoolcodeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 开课学期
- /// </summary>
- [Required]
- [DisplayName("开课学期")]
- public int? StarttermID { get; set; }
- /// <summary>
- /// 开课学期
- /// </summary>
- [DisplayName("开课学期")]
- public string StarttermName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
- .Where(x => x.Value == StarttermID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 年级专业ID
- /// </summary>
- [Required]
- [DisplayName("年级专业")]
- public Guid? GrademajorID { get; set; }
- /// <summary>
- /// 年级专业编号
- /// </summary>
- [DisplayName("年级专业编号")]
- public string GrademajorCode { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- [DisplayName("年级专业名称")]
- public string GrademajorName { get; set; }
- /// <summary>
- /// 年级专业对应年级(入学学年)
- /// </summary>
- [Required]
- [DisplayName("年级")]
- public int? GradeID { get; set; }
- /// <summary>
- /// 年级专业对应年级-入学学年(Excel导入)
- /// </summary>
- [DisplayName("年级")]
- public string GradeStr { get; set; }
- /// <summary>
- /// 院系专业ID
- /// </summary>
- [DisplayName("院系专业ID")]
- public Guid? FacultymajorID { get; set; }
- /// <summary>
- /// 院系专业编号
- /// </summary>
- [DisplayName("院系专业编号")]
- public string FacultymajorCode { get; set; }
- /// <summary>
- /// 院系专业名称
- /// </summary>
- [DisplayName("院系专业名称")]
- public string FacultymajorName { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- public string CollegeCode { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CampusNo { get; set; }
- /// <summary>
- /// 校区名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
- public string CampusName { get; set; }
- /// <summary>
- /// 入学学年学期ID
- /// </summary>
- [Required]
- [DisplayName("入学学年学期ID")]
- public Guid? StartSchoolyearID { get; set; }
- /// <summary>
- /// 入学学年学期
- /// </summary>
- [DisplayName("入学学年学期")]
- public string StartSchoolyearCode { get; set; }
- /// <summary>
- /// 入学学年学期对应的Value值
- /// </summary>
- [DisplayName("StartValue")]
- public int? StartValue { get; set; }
- /// <summary>
- /// 入学学期
- /// </summary>
- [Required]
- [DisplayName("入学学期")]
- public int? StartSchoolcodeID { get; set; }
- /// <summary>
- /// 入学学期(Excel导入)
- /// </summary>
- [DisplayName("入学学期")]
- public string StartSchoolcodeStr { get; set; }
- /// <summary>
- /// 入学学期
- /// </summary>
- [DisplayName("入学学期")]
- public string StartSchoolcodeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == StartSchoolcodeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 毕业学期ID
- /// </summary>
- [Required]
- [DisplayName("毕业学期ID")]
- public Guid? GraduatingSemesterID { get; set; }
- /// <summary>
- /// 毕业学期
- /// </summary>
- [DisplayName("毕业学期")]
- public string GraduatingSemesterCode { get; set; }
- /// <summary>
- /// 毕业学期对应的Value值
- /// </summary>
- [DisplayName("GraduatingSemesterValue")]
- public int? GraduatingSemesterValue { get; set; }
- /// <summary>
- /// 专业信息ID
- /// </summary>
- [Required]
- [DisplayName("专业信息ID")]
- public Guid? SpecialtyID { get; set; }
- /// <summary>
- /// 专业ID(Value)
- /// </summary>
- [DisplayName("专业ID(Value)")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码(Excel导入)
- /// </summary>
- [DisplayName("专业代码")]
- public string StandardCodeStr { get; set; }
- /// <summary>
- /// 专业名称(Excel导入)
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardNameStr { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [DisplayName("专业代码")]
- public string StandardCode
- {
- get
- {
- var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Code).FirstOrDefault();
- return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
- }
- }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardName { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public int? EducationID { get; set; }
- /// <summary>
- /// 培养层次(Excel导入)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
- public string EducationStr { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
- public string EducationName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
- .Where(x => x.Value == EducationID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学习形式
- /// </summary>
- [DisplayName("学习形式")]
- public int? LearningformID { get; set; }
- /// <summary>
- /// 学习形式(Excel导入)
- /// </summary>
- [DisplayName("学习形式")]
- public string LearningformStr { get; set; }
- /// <summary>
- /// 学习形式
- /// </summary>
- [DisplayName("学习形式")]
- public string LearningformName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
- .Where(x => x.Value == LearningformID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学制
- /// </summary>
- [DisplayName("学制")]
- public decimal? LearnSystem { get; set; }
- /// <summary>
- /// 学制(Excel导入)
- /// </summary>
- [DisplayName("学制")]
- public string LearnSystemStr { get; set; }
- /// <summary>
- /// 课程信息ID
- /// </summary>
- [Required]
- [DisplayName("课程信息ID")]
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程代码
- /// </summary>
- [DisplayName("课程代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 课程结构
- /// </summary>
- [DisplayName("课程结构")]
- public int? CourseStructureID { get; set; }
- /// <summary>
- /// 课程结构(Excel导入)
- /// </summary>
- [DisplayName("课程结构")]
- public string CourseStructureStr { get; set; }
- /// <summary>
- /// 课程结构
- /// </summary>
- [DisplayName("课程结构")]
- public string CourseStructureName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString())
- .Where(x => x.Value == CourseStructureID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程属性
- /// </summary>
- [DisplayName("课程属性")]
- public int? CourseCategoryID { get; set; }
- /// <summary>
- /// 课程属性(Excel导入)
- /// </summary>
- [DisplayName("课程属性")]
- public string CourseCategoryStr { get; set; }
- /// <summary>
- /// 课程属性
- /// </summary>
- [DisplayName("课程属性")]
- public string CourseCategoryName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
- .Where(x => x.Value == CourseCategoryID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程类型
- /// </summary>
- [Required]
- [DisplayName("课程类型")]
- public int? CourseTypeID { get; set; }
- /// <summary>
- /// 课程类型(Excel导入)
- /// </summary>
- [DisplayName("课程类型")]
- public string CourseTypeStr { get; set; }
- /// <summary>
- /// 课程类型
- /// </summary>
- [DisplayName("课程类型")]
- public string CourseTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
- .Where(x => x.Value == CourseTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程性质
- /// </summary>
- [DisplayName("课程性质")]
- public int? CourseQualityID { get; set; }
- /// <summary>
- /// 课程性质(Excel导入)
- /// </summary>
- [DisplayName("课程性质")]
- public string CourseQualityStr { get; set; }
- /// <summary>
- /// 课程性质
- /// </summary>
- [DisplayName("课程性质")]
- public string CourseQualityName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString())
- .Where(x => x.Value == CourseQualityID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程学分
- /// </summary>
- [Required]
- [DisplayName("课程学分")]
- //[DisplayFormat(DataFormatString = "{0:N1}")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public decimal? Credit { get; set; }
- /// <summary>
- /// 课程学分(Excel导入)
- /// </summary>
- [DisplayName("课程学分")]
- public string CreditStr { get; set; }
- /// <summary>
- /// 理论学时
- /// </summary>
- [Required]
- [DisplayName("理论学时")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? TheoryCourse { get; set; }
- /// <summary>
- /// 理论学时(Excel导入)
- /// </summary>
- [DisplayName("理论学时")]
- public string TheoryCourseStr { get; set; }
- /// <summary>
- /// 实践学时
- /// </summary>
- [Required]
- [DisplayName("实践学时")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Practicehours { get; set; }
- /// <summary>
- /// 实践学时(Excel导入)
- /// </summary>
- [DisplayName("实践学时")]
- public string PracticehoursStr { get; set; }
- /// <summary>
- /// 实验学时
- /// </summary>
- [Required]
- [DisplayName("实验学时")]
- //[Compare("Practicehours")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Trialhours { get; set; }
- /// <summary>
- /// 实验学时(Excel导入)
- /// </summary>
- [DisplayName("实验学时")]
- public string TrialhoursStr { get; set; }
- /// <summary>
- /// 总学时
- /// </summary>
- [Required]
- [DisplayName("总学时")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? Totalhours { get; set; }
- /// <summary>
- /// 理论周次
- /// </summary>
- [Required]
- [DisplayName("理论周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? TheoryWeeklyNum { get; set; }
- /// <summary>
- /// 理论周次(Excel导入)
- /// </summary>
- [DisplayName("理论周次")]
- public string TheoryWeeklyNumStr { get; set; }
- /// <summary>
- /// 实践周次
- /// </summary>
- [Required]
- [DisplayName("实践周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? PracticeWeeklyNum { get; set; }
- /// <summary>
- /// 实践周次(Excel导入)
- /// </summary>
- [DisplayName("实践周次")]
- public string PracticeWeeklyNumStr { get; set; }
- /// <summary>
- /// 实验周次
- /// </summary>
- [Required]
- [DisplayName("实验周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? TrialWeeklyNum { get; set; }
- /// <summary>
- /// 实验周次(Excel导入)
- /// </summary>
- [DisplayName("实验周次")]
- public string TrialWeeklyNumStr { get; set; }
- /// <summary>
- /// 总周次
- /// </summary>
- [Required]
- [DisplayName("总周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? SchoolweeksNum { get; set; }
- /// <summary>
- /// 周学时
- /// </summary>
- [Required]
- [DisplayName("周学时")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? WeeklyHours { get; set; }
- /// <summary>
- /// 每周次数
- /// </summary>
- [Required]
- [DisplayName("每周次数")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? WeeklyNum { get; set; }
- /// <summary>
- /// 开始周次
- /// </summary>
- [Required]
- [DisplayName("开始周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? StartWeeklyNum { get; set; }
- /// <summary>
- /// 结束周次
- /// </summary>
- [Required]
- [DisplayName("结束周次")]
- [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
- public int? EndWeeklyNum { get; set; }
- /// <summary>
- /// 起止周次
- /// </summary>
- [DisplayName("起止周次")]
- public string StartEndWeeklyNum { get; set; }
- /// <summary>
- /// 开课教研室ID
- /// </summary>
- [Required]
- [DisplayName("开课教研室ID")]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 开课教研室代码
- /// </summary>
- [DisplayName("开课教研室代码")]
- public string DepartmentCode { get; set; }
- /// <summary>
- /// 开课教研室
- /// </summary>
- [DisplayName("开课教研室")]
- public string DepartmentName { get; set; }
- /// <summary>
- /// 开课院系ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
- public Guid? CourseCollegeID { get; set; }
- /// <summary>
- /// 开课院系代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
- public string CourseCollegeCode { get; set; }
- /// <summary>
- /// 开课院系
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
- public string CourseCollegeName { get; set; }
- /// <summary>
- /// 是否专业核心
- /// </summary>
- [Required]
- [DisplayName("是否专业核心")]
- public bool IsSpecialtycore { get; set; }
- /// <summary>
- /// 是否专业核心(Excel导入用)
- /// </summary>
- [DisplayName("是否专业核心")]
- public string IsSpecialtycoreStr { get; set; }
- /// <summary>
- /// 是否专业核心
- /// </summary>
- [DisplayName("是否专业核心")]
- public string IsSpecialtycoreName
- {
- get { return this.IsSpecialtycore != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否合作开发
- /// </summary>
- [Required]
- [DisplayName("是否合作开发")]
- public bool IsCooperation { get; set; }
- /// <summary>
- /// 是否合作开发(Excel导入用)
- /// </summary>
- [DisplayName("是否合作开发")]
- public string IsCooperationStr { get; set; }
- /// <summary>
- /// 是否合作开发
- /// </summary>
- [DisplayName("是否合作开发")]
- public string IsCooperationName
- {
- get { return this.IsCooperation != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否必修课
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
- public bool IsRequired { get; set; }
- /// <summary>
- /// 是否必修课(Excel导入用)
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
- public string IsRequiredStr { get; set; }
- /// <summary>
- /// 是否必修课
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "IsRequired")]
- public string IsRequiredName
- {
- get { return this.IsRequired != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否网上选修
- /// </summary>
- [Required]
- [DisplayName("是否网上选修")]
- public bool IsElective { get; set; }
- /// <summary>
- /// 是否网上选修(Excel导入用)
- /// </summary>
- [DisplayName("是否网上选修")]
- public string IsElectiveStr { get; set; }
- /// <summary>
- /// 是否网上选修
- /// </summary>
- [DisplayName("是否网上选修")]
- public string IsElectiveName
- {
- get { return this.IsElective != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否网络课程
- /// </summary>
- [Required]
- [DisplayName("是否网络课程")]
- public bool IsNetworkCourse { get; set; }
- /// <summary>
- /// 是否网络课程(Excel导入用)
- /// </summary>
- [DisplayName("是否网络课程")]
- public string IsNetworkCourseStr { get; set; }
- /// <summary>
- /// 是否网络课程
- /// </summary>
- [DisplayName("是否网络课程")]
- public string IsNetworkCourseName
- {
- get { return this.IsNetworkCourse != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否学位课程
- /// </summary>
- [Required]
- [DisplayName("是否学位课程")]
- public bool IsMainCourse { get; set; }
- /// <summary>
- /// 是否学位课程(Excel导入用)
- /// </summary>
- [DisplayName("是否学位课程")]
- public string IsMainCourseStr { get; set; }
- /// <summary>
- /// 是否学位课程
- /// </summary>
- [DisplayName("是否学位课程")]
- public string IsMainCourseName
- {
- get { return this.IsMainCourse != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否需要教材
- /// </summary>
- [DisplayName("是否需要教材")]
- public bool IsNeedMaterial { get; set; }
- /// <summary>
- /// 是否需要教材(Excel导入用)
- /// </summary>
- [DisplayName("是否需要教材")]
- public string IsNeedMaterialStr { get; set; }
- /// <summary>
- /// 是否需要教材
- /// </summary>
- [DisplayName("是否需要教材")]
- public string IsNeedMaterialName
- {
- get { return this.IsNeedMaterial != true ? "否" : "是"; }
- }
- /// <summary>
- /// 精品课程
- /// </summary>
- [DisplayName("精品课程")]
- public int? CourseFineID { get; set; }
- /// <summary>
- /// 精品课程(Excel导入用)
- /// </summary>
- [DisplayName("精品课程")]
- public string CourseFineStr { get; set; }
- /// <summary>
- /// 精品课程
- /// </summary>
- [DisplayName("精品课程")]
- public string CourseFineName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseFine.ToString())
- .Where(x => x.Value == CourseFineID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 实践类型
- /// </summary>
- [DisplayName("实践类型")]
- public int? PracticeTypeID { get; set; }
- /// <summary>
- /// 实践类型(Excel导入用)
- /// </summary>
- [DisplayName("实践类型")]
- public string PracticeTypeStr { get; set; }
- /// <summary>
- /// 实践类型
- /// </summary>
- [DisplayName("实践类型")]
- public string PracticeTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PracticeType.ToString())
- .Where(x => x.Value == PracticeTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 授课语言
- /// </summary>
- [DisplayName("授课语言")]
- public int? TeachinglanguageID { get; set; }
- /// <summary>
- /// 授课语言(Excel导入用)
- /// </summary>
- [DisplayName("授课语言")]
- public string TeachinglanguageStr { get; set; }
- /// <summary>
- /// 授课语言
- /// </summary>
- [DisplayName("授课语言")]
- public string TeachinglanguageName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString())
- .Where(x => x.Value == TeachinglanguageID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考试方式
- /// </summary>
- [Required]
- [DisplayName("考试方式")]
- public int? ExaminationModeID { get; set; }
- /// <summary>
- /// 考试方式(Excel导入用)
- /// </summary>
- [DisplayName("考试方式")]
- public string ExaminationModeStr { get; set; }
- /// <summary>
- /// 考试方式
- /// </summary>
- [DisplayName("考试方式")]
- public string ExaminationModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
- .Where(x => x.Value == ExaminationModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 成绩类型
- /// </summary>
- [Required]
- [DisplayName("成绩类型")]
- public int? ResultTypeID { get; set; }
- /// <summary>
- /// 成绩类型(Excel导入用)
- /// </summary>
- [DisplayName("成绩类型")]
- public string ResultTypeStr { get; set; }
- /// <summary>
- /// 成绩类型
- /// </summary>
- [DisplayName("成绩类型")]
- public string ResultTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
- .Where(x => x.Value == ResultTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 处理方式
- /// </summary>
- [Required]
- [DisplayName("处理方式")]
- public int? HandleModeID { get; set; }
- /// <summary>
- /// 处理方式(Excel导入用)
- /// </summary>
- [DisplayName("处理方式")]
- public string HandleModeStr { get; set; }
- /// <summary>
- /// 处理方式
- /// </summary>
- [DisplayName("处理方式")]
- public string HandleModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
- .Where(x => x.Value == HandleModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public List<int?> TeachingModeIDList { get; set; }
- /// <summary>
- /// 授课方式List(Excel导入用,可存在多个授课方式--用顿号隔开)
- /// </summary>
- [DisplayName("授课方式")]
- public string TeachingModeIDListStr { get; set; }
- /// <summary>
- /// 授课方式(可存在多个授课方式--用顿号隔开)
- /// </summary>
- [DisplayName("授课方式")]
- public string TeachingModeIDListName
- {
- get
- {
- if (TeachingModeIDList != null && TeachingModeIDList.Count() > 0)
- {
- return string.Join("、", TeachingModeIDList.Select(x =>
- IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
- }
- else
- {
- return "";
- }
- }
- }
- /// <summary>
- /// 授课地点
- /// </summary>
- [DisplayName("授课地点")]
- public List<int?> TeachingPlaceIDList { get; set; }
- /// <summary>
- /// 授课地点List(Excel导入用,可存在多个授课地点--用顿号隔开)
- /// </summary>
- [DisplayName("授课地点")]
- public string TeachingPlaceIDListStr { get; set; }
- /// <summary>
- /// 授课地点(可存在多个授课地点--用顿号隔开)
- /// </summary>
- [DisplayName("授课地点")]
- public string TeachingPlaceIDListName
- {
- get
- {
- if (TeachingPlaceIDList != null && TeachingPlaceIDList.Count() > 0)
- {
- return string.Join("、", TeachingPlaceIDList.Select(x =>
- IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingPlace.ToString())
- .Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
- }
- else
- {
- return "";
- }
- }
- }
- /// <summary>
- /// 计划范围
- /// </summary>
- [DisplayName("计划范围")]
- public int? PlanRange { get; set; }
- /// <summary>
- /// 人数
- /// </summary>
- [DisplayName("人数")]
- public int? StudentCount { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 错误信息(Excel导入)
- /// </summary>
- [DisplayName("未导入原因")]
- public string ErrorMessage { get; set; }
- /// <summary>
- /// 计划状态
- /// </summary>
- [DisplayName("计划状态")]
- public int? PlanStatus { get; set; }
- /// <summary>
- /// 计划状态
- /// </summary>
- [DisplayName("计划状态")]
- public string PlanStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PlanStatus.ToString())
- .Where(x => x.Value == PlanStatus)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|