123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.StudentManage.StudentProfile
- {
- public class StudentView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid UserID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [Required]
- [DisplayName("学号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字或英文字母")]
- public string StudentNo { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [Required]
- [DisplayName("学号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字或英文字母")]
- public string LoginID { get; set; }
- /// <summary>
- /// 考生号
- /// </summary>
- [Required]
- [DisplayName("考生号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入字符或数字")]
- public string ExamineeNum { get; set; }
- /// <summary>
- /// 准考证号
- /// </summary>
- [DisplayName("准考证号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入字符或数字")]
- public string AdmissionTicketNo { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [Required]
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [Required]
- [DisplayName("姓名")]
- public string UserName { get; set; }
- /// <summary>
- /// 曾用名
- /// </summary>
- [DisplayName("曾用名")]
- public string UsedName { get; set; }
- /// <summary>
- /// 班级信息ID
- /// </summary>
- [Required]
- [DisplayName("班级信息ID")]
- public Guid? ClassmajorID { get; set; }
- /// <summary>
- /// 班级编号
- /// </summary>
- [DisplayName("班级编号")]
- public string ClassmajorNo { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级名称")]
- public string ClassmajorName { get; set; }
- /// <summary>
- /// 班序
- /// </summary>
- [DisplayName("班序")]
- public int? ClassNum { get; set; }
- /// <summary>
- /// 专业ID(Value)
- /// </summary>
- [DisplayName("专业ID(Value)")]
- 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>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public int? EducationID { 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>
- /// 学习形式
- /// </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>
- /// 院系专业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>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public int? YearID { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public int? GradeID { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级")]
- public string GradeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 入学学期
- /// </summary>
- [DisplayName("入学学期")]
- public int? SemesterID { get; set; }
- /// <summary>
- /// 入学学期
- /// </summary>
- [DisplayName("入学学期")]
- public string SemesterName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 入学学年学期ID
- /// </summary>
- [DisplayName("入学学年学期ID")]
- public Guid? StartSchoolyearID { get; set; }
- /// <summary>
- /// 入学学年学期对应的Value值
- /// </summary>
- [DisplayName("StartSchoolyearValue")]
- public int? StartSchoolyearValue { get; set; }
- /// <summary>
- /// 入学学年学期
- /// </summary>
- [DisplayName("入学学年学期")]
- public string StartSchoolyearCode { get; set; }
- /// <summary>
- /// 年级专业ID
- /// </summary>
- [DisplayName("年级专业ID")]
- 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 Guid? GraduateSchoolyearID { get; set; }
- /// <summary>
- /// 毕业学期Value
- /// </summary>
- [DisplayName("GraduateSchoolyearValue")]
- public int? GraduateSchoolyearValue { get; set; }
- /// <summary>
- /// 毕业学期
- /// </summary>
- [DisplayName("毕业学期")]
- public string GraduateSchoolyearCode { get; set; }
- /// <summary>
- /// 院系所ID
- /// </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 = "CollegeCode")]
- public string CollegeNo { 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 = "Campus")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CampusCode { get; set; }
- /// <summary>
- /// 校区名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
- public string CampusName { get; set; }
- /// <summary>
- /// 学校ID
- /// </summary>
- [DisplayName("学校ID")]
- public Guid? UniversityID { get; set; }
- /// <summary>
- /// 学校代码
- /// </summary>
- [DisplayName("学校代码")]
- public string UniversityCode { get; set; }
- /// <summary>
- /// 学校名称
- /// </summary>
- [DisplayName("学校名称")]
- public string UniversityName { get; set; }
- /// <summary>
- /// 校长名
- /// </summary>
- [DisplayName("校长名")]
- public string HeadMasterName { get; set; }
- /// <summary>
- /// 国籍
- /// </summary>
- [DisplayName("国籍")]
- public string Country { get; set; }
- /// <summary>
- /// 籍贯
- /// </summary>
- [DisplayName("籍贯")]
- public string Place { get; set; }
- /// <summary>
- /// 出生地
- /// </summary>
- [DisplayName("出生地")]
- public string BornPlace { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [Required]
- [DisplayName("性别")]
- public int? SexID { get; set; }
- /// <summary>
- /// 性别(Excel导入)
- /// </summary>
- [DisplayName("性别")]
- public string SexStr { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 出生日期
- /// </summary>
- [Required]
- [DisplayName("出生日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 出生日期(Excel导入)
- /// </summary>
- [DisplayName("出生日期")]
- public string BirthDateStr { get; set; }
- /// <summary>
- /// 民族
- /// </summary>
- [Required]
- [DisplayName("民族")]
- public int? NationID { get; set; }
- /// <summary>
- /// 民族(Excel导入)
- /// </summary>
- [DisplayName("民族")]
- public string NationStr { get; set; }
- /// <summary>
- /// 民族
- /// </summary>
- [DisplayName("民族")]
- public string NationName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 政治面貌
- /// </summary>
- [Required]
- [DisplayName("政治面貌")]
- public int? PoliticsID { get; set; }
- /// <summary>
- /// 政治面貌(Excel导入)
- /// </summary>
- [DisplayName("政治面貌")]
- public string PoliticsStr { get; set; }
- /// <summary>
- /// 政治面貌
- /// </summary>
- [DisplayName("政治面貌")]
- public string PoliticsName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件类型
- /// </summary>
- [Required]
- [DisplayName("证件类型")]
- public int? CertificatesType { get; set; }
- /// <summary>
- /// 证件类型(Excel导入)
- /// </summary>
- [DisplayName("证件类型")]
- public string CertificatesTypeStr { get; set; }
- /// <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>
- [Required]
- [DisplayName("证件号码")]
- //[RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入正确的证件号码格式")]
- public string IDNumber { get; set; }
- /// <summary>
- /// 学生类别
- /// </summary>
- [Required]
- [DisplayName("学生类别")]
- public int? StudentType { get; set; }
- /// <summary>
- /// 学生类别(Excel导入)
- /// </summary>
- [DisplayName("学生类别")]
- public string StudentTypeStr { 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>
- [Required]
- [DisplayName("在校状态")]
- public int? InSchoolStatusID { get; set; }
- /// <summary>
- /// 在校状态(Excel导入)
- /// </summary>
- [DisplayName("在校状态")]
- public string InSchoolStatusStr { 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>
- [Required]
- [DisplayName("学籍状态")]
- public int? StudentStatus { get; set; }
- /// <summary>
- /// 学籍状态(Excel导入)
- /// </summary>
- [DisplayName("学籍状态")]
- public string StudentStatusStr { 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>
- [DisplayName("考生类别")]
- public int? ExamineeType { get; set; }
- /// <summary>
- /// 考生类别(Excel导入用)
- /// </summary>
- [DisplayName("考生类别")]
- public string ExamineeTypeStr { get; set; }
- /// <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("入学日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? EntranceDate { get; set; }
- /// <summary>
- /// 入学日期(Excel导入用)
- /// </summary>
- [DisplayName("入学日期")]
- public string EntranceDateStr { get; set; }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public int? LiteracyLevelID { get; set; }
- /// <summary>
- /// 文化程度(Excel导入)
- /// </summary>
- [DisplayName("文化程度")]
- public string LiteracyLevelStr { get; set; }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public string LiteracyLevelName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LiteracyLevel.ToString()).Where(x => x.Value == LiteracyLevelID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 办学类型
- /// </summary>
- [DisplayName("办学类型")]
- public int? SchoolTypeID { get; set; }
- /// <summary>
- /// 办学类型
- /// </summary>
- [DisplayName("办学类型")]
- public string SchoolTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolType.ToString()).Where(x => x.Value == SchoolTypeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 培养方式
- /// </summary>
- [DisplayName("培养方式")]
- public int? CultureModelID { get; set; }
- /// <summary>
- /// 培养方式(Excel导入)
- /// </summary>
- [DisplayName("培养方式")]
- public string CultureModelStr { get; set; }
- /// <summary>
- /// 培养方式
- /// </summary>
- [DisplayName("培养方式")]
- public string CultureModelName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CULTUREMODEL.ToString()).Where(x => x.Value == CultureModelID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 圆梦计划
- /// </summary>
- [DisplayName("圆梦计划")]
- public bool IsDreamProject { get; set; }
- /// <summary>
- /// 圆梦计划(Excel导入用)
- /// </summary>
- [DisplayName("圆梦计划")]
- public string IsDreamProjectStr { get; set; }
- /// <summary>
- /// 圆梦计划
- /// </summary>
- [DisplayName("圆梦计划")]
- public string IsDreamProjectName
- {
- get { return this.IsDreamProject != true ? "否" : "是"; }
- }
- /// <summary>
- /// 电子邮箱
- /// </summary>
- [DisplayName("电子邮箱")]
- [RegularExpression(@"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", ErrorMessage = "请输入正确的格式")]
- public string Email { get; set; }
- /// <summary>
- /// 家庭电话
- /// </summary>
- [DisplayName("家庭电话")]
- public string Telephone { get; set; }
- /// <summary>
- /// 移动电话
- /// </summary>
- [DisplayName("移动电话")]
- public string Mobile { get; set; }
- /// <summary>
- /// 邮政编码
- /// </summary>
- [DisplayName("邮政编码")]
- [RegularExpression(@"[1-9]\d{5}(?!\d)", ErrorMessage = "请输入正确的格式")]
- public string ZIPCode { get; set; }
- /// <summary>
- /// 微信号
- /// </summary>
- [DisplayName("微信号")]
- public string WeChatNum { get; set; }
- /// <summary>
- /// QQ
- /// </summary>
- [DisplayName("QQ")]
- [RegularExpression(@"[1-9][0-9]{4,}", ErrorMessage = "请输入正确的格式")]
- public string QQ { get; set; }
- /// <summary>
- /// 健康状况
- /// </summary>
- [DisplayName("健康状况")]
- public int? HealthStateID { get; set; }
- /// <summary>
- /// 健康状况(Excel导入)
- /// </summary>
- [DisplayName("健康状况")]
- public string HealthStateStr { get; set; }
- /// <summary>
- /// 健康状况
- /// </summary>
- [DisplayName("健康状况")]
- public string HealthStateName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString()).Where(x => x.Value == HealthStateID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 血型
- /// </summary>
- [DisplayName("血型")]
- public int? BloodGroup { get; set; }
- /// <summary>
- /// 血型(Excel导入)
- /// </summary>
- [DisplayName("血型")]
- public string BloodGroupStr { get; set; }
- /// <summary>
- /// 血型名称
- /// </summary>
- [DisplayName("血型名称")]
- public string BloodGroupName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_BLOODGROUP.ToString()).Where(x => x.Value == BloodGroup).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 特长
- /// </summary>
- [DisplayName("特长")]
- public string Specialty { get; set; }
- /// <summary>
- /// 身高(cm)
- /// </summary>
- [DisplayName("身高(cm)")]
- [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入数字")]
- public string Height { get; set; }
- /// <summary>
- /// 体重(kg)
- /// </summary>
- [DisplayName("体重(kg)")]
- [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入数字")]
- public string Weight { get; set; }
- /// <summary>
- /// 导师姓名
- /// </summary>
- [DisplayName("导师姓名")]
- public string DirectorName { get; set; }
- /// <summary>
- /// 总分
- /// </summary>
- [DisplayName("总分")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public decimal? Score { get; set; }
- /// <summary>
- /// 总分(Excel导入用)
- /// </summary>
- [DisplayName("总分")]
- public string ScoreStr { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public int? EntranceWayID { get; set; }
- /// <summary>
- /// 入学方式(Excel导入用)
- /// </summary>
- [DisplayName("入学方式")]
- public string EntranceWayStr { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public string EntranceWayName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString()).Where(x => x.Value == EntranceWayID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 考生特征
- /// </summary>
- [DisplayName("考生特征")]
- public int? FeaturesID { get; set; }
- /// <summary>
- /// 考生特征(Excel导入用)
- /// </summary>
- [DisplayName("考生特征")]
- public string FeaturesStr { get; set; }
- /// <summary>
- /// 考生特征
- /// </summary>
- [DisplayName("考生特征")]
- public string FeaturesName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString()).Where(x => x.Value == FeaturesID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 生源所属地
- /// </summary>
- [DisplayName("生源所属地")]
- public int? TerritorialID { get; set; }
- /// <summary>
- /// 生源所属地(Excel导入用)
- /// </summary>
- [DisplayName("生源所属地")]
- public string TerritorialStr { get; set; }
- /// <summary>
- /// 生源所属地
- /// </summary>
- [DisplayName("生源所属地")]
- public string TerritorialName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString()).Where(x => x.Value == TerritorialID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 来源地区
- /// </summary>
- [DisplayName("来源地区")]
- public string Area { get; set; }
- /// <summary>
- /// 家庭住址
- /// </summary>
- [DisplayName("家庭住址")]
- public string HomeAddress { get; set; }
- /// <summary>
- /// 工作单位
- /// </summary>
- [DisplayName("工作单位")]
- public string WorkUnit { get; set; }
- /// <summary>
- /// 通信地址
- /// </summary>
- [DisplayName("通信地址")]
- public string Address { get; set; }
- /// <summary>
- /// 收件人
- /// </summary>
- [DisplayName("收件人")]
- public string Recipient { get; set; }
- /// <summary>
- /// 宿舍地址
- /// </summary>
- [DisplayName("宿舍地址")]
- public string Dormitory { get; set; }
- /// <summary>
- /// 开户银行
- /// </summary>
- [DisplayName("开户银行")]
- public string BankName { get; set; }
- /// <summary>
- /// 银行卡号
- /// </summary>
- [DisplayName("银行卡号")]
- [RegularExpression(@"^[0-9]*$", ErrorMessage = "只能输入数字")]
- public string CardNo { get; set; }
- /// <summary>
- /// 录取照片
- /// </summary>
- [DisplayName("录取照片")]
- public string RecruitPictureUrl { get; set; }
- /// <summary>
- /// 录取照片
- /// </summary>
- [DisplayName("录取照片")]
- public string RecruitPictureUrlStr
- {
- get
- {
- if (string.IsNullOrWhiteSpace(this.RecruitPictureUrl))
- {
- return "/Content/images/noPhoto.png";
- }
- else
- {
- return this.RecruitPictureUrl;
- }
- }
- }
- /// <summary>
- /// 录取照片有无
- /// </summary>
- [DisplayName("录取照片有无")]
- public bool RecruitPictureHasValue { get; set; }
- /// <summary>
- /// 录取照片有无
- /// </summary>
- [DisplayName("录取照片有无")]
- public string RecruitPictureHasValueName
- {
- get { return this.RecruitPictureHasValue != true ? "无" : "有"; }
- }
- /// <summary>
- /// 学籍卡编号
- /// </summary>
- [DisplayName("学籍卡编号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字和英文字母")]
- public string StudentCardNo { get; set; }
- /// <summary>
- /// 学籍照片
- /// </summary>
- [DisplayName("学籍照片")]
- public string PhotoUrl { get; set; }
- /// <summary>
- /// 学籍照片
- /// </summary>
- [DisplayName("学籍照片")]
- public string PhotoUrlStr
- {
- get
- {
- if (string.IsNullOrWhiteSpace(this.PhotoUrl))
- {
- return "/Content/images/noPhoto.png";
- }
- else
- {
- return this.PhotoUrl;
- }
- }
- }
- /// <summary>
- /// 学籍照片有无
- /// </summary>
- [DisplayName("学籍照片有无")]
- public bool PhotoHasValue { get; set; }
- /// <summary>
- /// 学籍照片有无
- /// </summary>
- [DisplayName("学籍照片有无")]
- public string PhotoHasValueName
- {
- get { return this.PhotoHasValue != true ? "无" : "有"; }
- }
- /// <summary>
- /// 预计毕业日期
- /// </summary>
- [DisplayName("预计毕业日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? PlanningGraduateDate { get; set; }
- /// <summary>
- /// 预计毕业日期(yyyyMMdd)
- /// </summary>
- [DisplayName("预计毕业日期")]
- public string PlanningGraduateDateStr { get; set; }
- /// <summary>
- /// 毕业日期
- /// </summary>
- [DisplayName("毕业日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? GraduateDate { get; set; }
- /// <summary>
- /// 毕业日期(yyyyMMdd)
- /// </summary>
- [DisplayName("毕业日期")]
- public string GraduateDateStr { get; set; }
- /// <summary>
- /// 毕业结论
- /// </summary>
- [Required]
- [DisplayName("毕业结论")]
- public int? GraduationResult { get; set; }
- /// <summary>
- /// 毕业结论
- /// </summary>
- [DisplayName("毕业结论")]
- public string GraduationResultName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.ER_GraduationResult.ToString()).Where(x => x.Value == GraduationResult).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 毕结业证书编号
- /// </summary>
- [DisplayName("毕结业证书编号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
- public string GraduateCardNo { get; set; }
- /// <summary>
- /// 补证编号(补办证书编号)
- /// </summary>
- [DisplayName("补证编号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
- public string ReplaceGraduateNo { get; set; }
- /// <summary>
- /// 学位有无
- /// </summary>
- [DisplayName("学位有无")]
- public bool DegreeStatus { get; set; }
- /// <summary>
- /// 学位有无(Excel导入用)
- /// </summary>
- [DisplayName("学位有无")]
- public string DegreeStatusStr { get; set; }
- /// <summary>
- /// 学位有无
- /// </summary>
- [DisplayName("学位有无")]
- public string DegreeStatusName
- {
- get { return this.DegreeStatus != true ? "无" : "有"; }
- }
- /// <summary>
- /// 学历照片
- /// </summary>
- [DisplayName("学历照片")]
- public string GraduationPictureUrl { get; set; }
- /// <summary>
- /// 学历照片
- /// </summary>
- [DisplayName("学历照片")]
- public string GraduationPictureUrlStr
- {
- get
- {
- if (string.IsNullOrWhiteSpace(this.GraduationPictureUrl))
- {
- return "/Content/images/noPhoto.png";
- }
- else
- {
- return this.GraduationPictureUrl;
- }
- }
- }
- /// <summary>
- /// 学历照片有无
- /// </summary>
- [DisplayName("学历照片有无")]
- public bool GraduationPictureHasValue { get; set; }
- /// <summary>
- /// 学历照片有无
- /// </summary>
- [DisplayName("学历照片有无")]
- public string GraduationPictureHasValueName
- {
- get { return this.GraduationPictureHasValue != true ? "无" : "有"; }
- }
- /// <summary>
- /// 在校经历
- /// </summary>
- [DisplayName("在校经历")]
- public string Career { get; set; }
- /// <summary>
- /// 照片比对
- /// </summary>
- [DisplayName("照片比对")]
- public bool IsPhotoComparison { get; set; }
- /// <summary>
- /// 照片比对
- /// </summary>
- [DisplayName("照片比对")]
- public string IsPhotoComparisonName
- {
- get { return this.IsPhotoComparison != true ? "否" : "是"; }
- }
- /// <summary>
- /// 是否核对
- /// </summary>
- [DisplayName("是否核对")]
- public bool IsProofread { get; set; }
- /// <summary>
- /// 是否核对
- /// </summary>
- [DisplayName("是否核对")]
- public string IsProofreadName
- {
- get { return this.IsProofread != true ? "否" : "是"; }
- }
- /// <summary>
- /// 异动数
- /// </summary>
- [DisplayName("异动数")]
- public int? ChangeCount { get; set; }
- /// <summary>
- /// 注册状态
- /// </summary>
- [DisplayName("注册状态")]
- public int? ReportStatus { get; set; }
- /// <summary>
- /// 注册状态
- /// </summary>
- [DisplayName("注册状态")]
- public string ReportStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ReportStatus.ToString()).Where(x => x.Value == ReportStatus).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 帐号状态
- /// </summary>
- [DisplayName("帐号状态")]
- public int? AccountStatus { get; set; }
- /// <summary>
- /// 帐号状态
- /// </summary>
- [DisplayName("帐号状态")]
- public string AccountStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString()).Where(x => x.Value == AccountStatus).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 错误信息(Excel导入)
- /// </summary>
- [DisplayName("未导入原因")]
- public string ErrorMessage { get; set; }
- /// <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; }
- }
- }
|