12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using EMIS.ViewModel.CacheManage;
- using System.ComponentModel.DataAnnotations;
- namespace EMIS.ViewModel.SelectCourse.SelectCourseResult
- {
- public class SelectCourseListView
- {
- //////学生相关信息
- /// <summary>
- /// 用户ID
- /// </summary>
- [DisplayName("用户ID")]
- public Guid UserID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [Required]
- [DisplayName("学号")]
- public string LoginID { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [Required]
- [DisplayName("姓名")]
- public string UserName { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [Required]
- [DisplayName("性别")]
- public int? Sex { get; set; }
- /// <summary>
- /// 性别名称
- /// </summary>
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
- .Where(x => x.Value == Sex)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件类型
- /// </summary>
- [Required]
- [DisplayName("证件类型")]
- public int? CertificatesType { get; set; }
- /// <summary>
- /// 证件号码
- /// </summary>
- [Required]
- [DisplayName("证件号码")]
- public string IDNumber { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [Required]
- [DisplayName("班级名称")]
- public Guid? ClassMajorID { get; set; }
- /// <summary>
- /// 班级编号
- /// </summary>
- [DisplayName("班级编号")]
- public string ClassMajorCode { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级名称")]
- public string ClassMajorName { get; set; }
- /// <summary>
- /// 照片
- /// </summary>
- [DisplayName("照片")]
- public string PhotoUrl { get; set; }
- /// <summary>
- /// 学籍状态
- /// </summary>
- [Required]
- [DisplayName("学籍状态")]
- public int? StudentStatus { get; set; }
- /// <summary>
- /// 学籍状态名称
- /// </summary>
- [DisplayName("学籍状态")]
- public string StudentStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
- .Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学生类别
- /// </summary>
- [Required]
- [DisplayName("学生类别")]
- public int? StudentType { get; set; }
- /// <summary>
- /// 学生类别名称
- /// </summary>
- [DisplayName("学生类别名称")]
- public string StudentTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
- .Where(x => x.Value == StudentType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学籍卡编号
- /// </summary>
- [DisplayName("学籍卡编号")]
- public string StudentCardNo { get; set; }
- /// <summary>
- /// 培养方式
- /// </summary>
- [DisplayName("培养方式")]
- public int? CultureModel { get; set; }
- /// <summary>
- /// 培养方式
- /// </summary>
- [DisplayName("培养方式名称")]
- public string CultureModelName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CULTUREMODEL.ToString())
- .Where(x => x.Value == CultureModel)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 在校状态
- /// </summary>
- [DisplayName("在校状态")]
- [Required]
- public int? InSchoolStatusID { get; set; }
- /// <summary>
- /// 在校状态名称
- /// </summary>
- [DisplayName("在校状态")]
- public string InSchoolStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
- .Where(x => x.Value == InSchoolStatusID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 报到状态
- /// </summary>
- [DisplayName("报到状态")]
- public int? ReportStatusID { get; set; }
- /// <summary>
- /// 报到状态Name
- /// </summary>
- [DisplayName("报到状态")]
- public string ReportStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ReportStatus.ToString())
- .Where(x => x.Value == ReportStatusID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 出生日期
- /// </summary>
- [DisplayName("出生日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 国籍
- /// </summary>
- [DisplayName("国籍")]
- public string Country { get; set; }
- /// <summary>
- /// 政治面貌
- /// </summary>
- [DisplayName("政治面貌")]
- public int? Politics { get; set; }
- //<summary>
- //政治面貌
- //</summary>
- [DisplayName("政治面貌")]
- public string PoliticsName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
- .Where(x => x.Value == Politics)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 民族
- /// </summary>
- [DisplayName("民族")]
- public int? Nation { get; set; }
- /// <summary>
- /// 考生号
- /// </summary>
- [DisplayName("考生号")]
- public string ExamineeNum { get; set; }
- /// <summary>
- /// 考生类别
- /// </summary>
- [DisplayName("考生类别")]
- public int? ExamineeType { get; set; }
- /// <summary>
- /// 入学日期
- /// </summary>
- [DisplayName("入学日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? EntranceDate { get; set; }
- /// <summary>
- /// 入学学期
- /// </summary>
- [Required]
- [DisplayName("入学学期")]
- public Guid? EnteringSchoolYearID { get; set; }
- /// <summary>
- /// 入学学期
- /// </summary>
- [DisplayName("入学学期")]
- public string EnteringSchoolYearCode { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public int? EntranceWay { get; set; }
- /// <summary>
- /// 生源所属地
- /// </summary>
- [DisplayName("生源所属地")]
- public int? Territorial { get; set; }
- /// <summary>
- /// 生源所属地名称
- /// </summary>
- [DisplayName("生源所属地名称")]
- public string TerritorialName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
- .Where(x => x.Value == Territorial)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 来源地区
- /// </summary>
- [DisplayName("来源地区")]
- public string Area { get; set; }
- /// <summary>
- /// 高考总分
- /// </summary>
- [DisplayName("高考总分")]
- public decimal? Score { get; set; }
- /// <summary>
- /// 考生特征
- /// </summary>
- [DisplayName("考生特征")]
- public int? Features { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public int? Grade { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public int? Years { get; set; }
- /// <summary>
- /// 出生地
- /// </summary>
- [DisplayName("出生地")]
- public string Placebirth { get; set; }
- /// <summary>
- /// 民族姓名
- /// </summary>
- [DisplayName("民族")]
- public string NationName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
- .Where(x => x.Value == Nation)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
- public string CampusName { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public int? EducationID { get; set; }
- /// <summary>
- /// 学制
- /// </summary>
- [DisplayName("学制")]
- public decimal? LearnSystem { 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? StandardID { 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
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- .Where(x => x.Value == StandardID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学习形式
- /// </summary>
- [DisplayName("学习形式")]
- public int? LearningformID { 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 string CertificatesTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
- .Where(x => x.Value == CertificatesType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考生类别
- /// </summary>
- [DisplayName("考生类别")]
- public string ExamineeTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString())
- .Where(x => x.Value == ExamineeType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public string EntranceWayName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString())
- .Where(x => x.Value == EntranceWay)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考生特征
- /// </summary>
- [DisplayName("考生特征")]
- public string FeaturesName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
- .Where(x => x.Value == Features)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 年级专业ID
- /// </summary>
- public Guid? GradeMajorID { get; set; }
- /// <summary>
- /// 年级专业代码
- /// </summary>
- [DisplayName("专业代码")]
- public string GradeMajorCode { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- [DisplayName("年级专业名称")]
- public string GradeMajorName { get; set; }
- /// <summary>
- /// 院系所专业
- /// </summary>
- [DisplayName("院系所专业")]
- public string FacultymajorName { get; set; }
- //下面选课结果信息
- ////////////////////////////////////////////
- /// <summary>
- /// ID
- /// </summary>
- [DisplayName("选修类型")]
- public Guid ID { get; set; }
- /// <summary>
- /// 选课编号
- /// </summary>
- [DisplayName("选课编号")]
- public string SelectionCouseNo { get; set; }
- /// <summary>
- /// 选修任务班名称
- /// </summary>
- [DisplayName("选修任务班名称")]
- public string DefaultClassName { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期ID")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolYearCode { get; set; }
- /// <summary>
- /// 学年(学年学期对应学年)
- /// </summary>
- [DisplayName("学年")]
- public int? YearID { get; set; }
- /// <summary>
- /// 选修类型
- /// </summary>
- [DisplayName("选修类型")]
- public int SelectCourseType { get; set; }
- /// <summary>
- /// 选修类型
- /// </summary>
- [DisplayName("选修类型")]
- public string SelectCourseTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_SelectCourseType.ToString())
- .Where(x => x.Value == SelectCourseType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 开课教研室
- /// </summary>
- [DisplayName("开课教研室")]
- [Required]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 开课教研室编号
- /// </summary>
- [DisplayName("开课教研室编号")]
- public string DepartmentCode { get; set; }
- /// <summary>
- /// 开课教研室
- /// </summary>
- [DisplayName("开课教研室")]
- public string DepartmentName { get; set; }
- /// <summary>
- /// 开课院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 开课院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 课程信息ID
- /// </summary>
- 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? CourseTypeID { 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>
- //[Required]
- [DisplayName("课程结构")]
- public int? CourseStructureID { 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>
- //[Required]
- [DisplayName("课程属性")]
- public int? CourseCategoryID { 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>
- [DisplayName("课程性质")]
- public int? CourseQualityID { 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>
- [DisplayName("学分")]
- public decimal? Credit { get; set; }
- /// <summary>
- /// 理论学时
- /// </summary>
- [DisplayName("理论学时")]
- public int? TheoryCourse { get; set; }
- /// <summary>
- /// 实践学时
- /// </summary>
- [DisplayName("实践学时")]
- public int? Practicehours { get; set; }
- /// <summary>
- /// 实验学时
- /// </summary>
- [DisplayName("实验学时")]
- public int? Trialhours { get; set; }
- /// <summary>
- /// 总学时
- /// </summary>
- [DisplayName("总学时")]
- public int? Totalhours
- {
- get
- {
- if (TheoryCourse == null)
- TheoryCourse = 0;
- if (Practicehours == null)
- Practicehours = 0;
- return (TheoryCourse + Practicehours);
- //return this.TheoryCourse ?? 0 + this.Practicehours ?? 0 + this.Trialhours ?? 0; }
- }
- }
- /// <summary>
- /// 上课周数
- /// </summary>
- [DisplayName("上课周数")]
- public int? SchoolweeksNum
- {
- get
- {
- return (TheoryWeeklyNum ?? 0) + (PracticeWeeklyNum ?? 0) + (TrialWeeklyNum ?? 0);
- }
- }
- /// <summary>
- /// 每周次数
- /// </summary>
- [DisplayName("每周次数")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? WeeklyNum { get; set; }
- /// <summary>
- /// 理论周次
- /// </summary>
- [DisplayName("理论周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? TheoryWeeklyNum { get; set; }
- /// <summary>
- /// 实践周次
- /// </summary>
- [DisplayName("实践周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? PracticeWeeklyNum { get; set; }
- /// <summary>
- /// 实验周次
- /// </summary>
- [DisplayName("实验周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? TrialWeeklyNum { get; set; }
- /// <summary>
- /// 周学时
- /// </summary>
- [DisplayName("周学时")]
- [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输入数字")]//^[1-9]\d*|0$
- public int? WeeklyHours { get; set; }
- /// <summary>
- /// 开始周次
- /// </summary>
- [DisplayName("开始周次")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? StartWeeklyNum { get; set; }
- /// <summary>
- /// 结束周次
- /// </summary>
- [DisplayName("结束周次")]
- //[RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? EndWeeklyNum { get; set; }
- /// <summary>
- /// 起止周次
- /// </summary>
- [DisplayName("起止周次")]
- public string StartEndWeeklyNum
- {
- get
- {
- if (StartWeeklyNum != null && EndWeeklyNum != null)
- return StartWeeklyNum + "-" + EndWeeklyNum;
- else
- return "";
- }
- }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public int? TeachingModeID { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public string TeachingModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- .Where(x => x.Value == TeachingModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 实践类型
- /// </summary>
- [DisplayName("实践类型")]
- public int? PracticeTypeID { get; set; }
- // <summary>
- /// 实践类型
- /// </summary>
- [DisplayName("实践类型")]
- public string PracticeTypeNameStr { 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? ExaminationModeID { get; set; }
- /// <summary>
- /// 考试方式
- /// </summary>
- [DisplayName("考试方式")]
- public string ExaminationModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
- .Where(x => x.Value == CourseTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 授课语言
- /// </summary>
- [DisplayName("授课语言")]
- public int? TeachinglanguageID { 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>
- [DisplayName("开课学年")]
- public int? SchoolyearNumID { get; set; }
- /// <summary>
- /// 开课学年
- /// </summary>
- [DisplayName("开课学年")]
- public string SchoolyearNumName { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [DisplayName("学期")]
- public int? SchoolcodeID { get; set; }
- /// <summary>
- /// 学期
- /// </summary>
- [DisplayName("学期")]
- public string SchoolcodeName { get; set; }
- /// <summary>
- /// 开课学期
- /// </summary>
- [DisplayName("开课学期")]
- public int? StarttermID { get; set; }
- /// <summary>
- /// 开课学期
- /// </summary>
- [DisplayName("开课学期")]
- public string StarttermName { get; set; }
- /// <summary>
- /// 处理方式
- /// </summary>
- [DisplayName("处理方式")]
- public int? HandleModeID { 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 bool IsNeedMaterial { get; set; }
- /// <summary>
- /// 是否需要教材
- /// </summary>
- [DisplayName("是否需要教材")]
- public string IsNeedMaterialName { get; set; }
- /// <summary>
- /// 人数下限
- /// </summary>
- [DisplayName("人数下限")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? PeopleNumlower { get; set; }
- /// <summary>
- /// 人数上限
- /// </summary>
- [DisplayName("人数上限")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public int? PeopleNumlimit { get; set; }
- /// <summary>
- /// 排课明细
- /// </summary>
- [DisplayName("排课明细")]
- public string Scheduling { get; set; }
- /// <summary>
- /// 星期
- /// </summary>
- [DisplayName("星期")]
- public int? Weekday { get; set; }
- /// <summary>
- /// 星期
- /// </summary>
- [DisplayName("星期")]
- public string WeekdayName { get; set; }
- /// <summary>
- /// 节次
- /// </summary>
- [DisplayName("节次")]
- public Guid? CoursesTimeID { get; set; }
- /// <summary>
- /// 节次
- /// </summary>
- [DisplayName("节次")]
- public string CoursesTimeName { get; set; }
- /// <summary>
- /// 教室ID
- /// </summary>
- [DisplayName("教室ID")]
- public Guid? ClassroomID { get; set; }
- /// <summary>
- /// 教室
- /// </summary>
- [DisplayName("教室")]
- public string ClassroomName { get; set; }
- /// <summary>
- /// 上课时间
- /// </summary>
- [DisplayName("上课时间")]
- public string WeekdayTimesSegmentName { get; set; }
- /// <summary>
- /// 任课教师
- /// </summary>
- [DisplayName("任课教师")]
- public Guid? TeacherUserID { get; set; }
- /// <summary>
- /// 教职工号
- /// </summary>
- [DisplayName("教职工号")]
- public string TeacherUserCode { get; set; }
- /// <summary>
- /// 任课教师
- /// </summary>
- [DisplayName("任课教师")]
- public string TeacherName { get; set; }
- /// <summary>
- /// 已选人数
- /// </summary>
- [DisplayName("已选人数")]
- public int? StudentTotalNum { get; set; }
- /// <summary>
- /// 开放状态
- /// </summary>
- [DisplayName("开放状态")]
- public bool IsOpened { get; set; }
- /// <summary>
- /// 开放状态
- /// </summary>
- public string IsOpenedDesc
- {
- get { return this.IsOpened == true ? "是" : "否"; }
- }
- /// <summary>
- /// 状态
- /// </summary>
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("状态")]
- public string RecordStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_SelectCourseResultStatus.ToString())
- .Where(x => x.Value == RecordStatus)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public string RecordStatusCode
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_SelectCourseResultStatus.ToString())
- .Where(x => x.Value == RecordStatus)
- .Select(x => x.Code).FirstOrDefault();
- }
- }
- }
- }
|