123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.EnrollManage.NewStudentManage
- {
- public class NewStudentView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid NewStudentID { 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 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("民族")]
- 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>
- [DisplayName("出生日期")]
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 出生日期(Excel导入用)
- /// </summary>
- [DisplayName("出生日期")]
- public string BirthDateStr { get; set; }
- /// <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? GradeID { get; set; }
- /// <summary>
- /// 年级(Excel导入用)
- /// </summary>
- [DisplayName("年级")]
- public string GradeStr { 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>
- [Required]
- [DisplayName("学期")]
- public int? SemesterID { get; set; }
- /// <summary>
- /// 学期(Excel导入用)
- /// </summary>
- [DisplayName("学期")]
- public string SemesterStr { 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>
- [Required]
- [DisplayName("专业信息ID")]
- public Guid? SpecialtyID { get; set; }
- /// <summary>
- /// 省招代码(用于匹配省招专业)
- /// </summary>
- [DisplayName("省招代码")]
- public string CustomStandardCode { get; set; }
- /// <summary>
- /// 专业ID(Value)
- /// </summary>
- [DisplayName("专业ID(Value)")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码(6位)
- /// </summary>
- [DisplayName("专业代码")]
- public string Code
- {
- 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 StandardCode { get; set; }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardName { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Required]
- [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 = "EducationID")]
- public string EducationStr { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public string EducationName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学习形式
- /// </summary>
- [Required]
- [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>
- [Required]
- [DisplayName("学制")]
- [DisplayFormat(DataFormatString = "{0:#.#}")]
- [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
- public decimal? LearnSystem { get; set; }
- /// <summary>
- /// 学制(Excel导入用)
- /// </summary>
- [DisplayName("学制")]
- public string LearnSystemStr { get; set; }
- /// <summary>
- /// 入学日期
- /// </summary>
- [DisplayName("入学日期")]
- public DateTime? EntranceDate { get; set; }
- /// <summary>
- /// 入学日期(Excel导入用)
- /// </summary>
- [DisplayName("入学日期")]
- public string EntranceDateStr { 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("联系电话")]
- [RegularExpression(@"^[-0-9]+$", ErrorMessage = "请输入正确格式")]
- public string Telephone { get; set; }
- /// <summary>
- /// 邮政编码
- /// </summary>
- [DisplayName("邮政编码")]
- public string ZIPCode { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public int? EntranceWayID { get; set; }
- /// <summary>
- /// 入学方式(Excel导入用)
- /// </summary>
- [DisplayName("入学方式")]
- public string EntranceWayStr { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public string EntranceWaymName
- {
- 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 Address { get; set; }
- /// <summary>
- /// 宿舍地址
- /// </summary>
- [DisplayName("宿舍地址")]
- public string Dormitory { get; set; }
- /// <summary>
- /// 录取通知书编号
- /// </summary>
- [DisplayName("录取通知书编号")]
- public string EnrollmentNo { 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 PhotoHasValue { get; set; }
- /// <summary>
- /// 照片有无
- /// </summary>
- [DisplayName("照片有无")]
- public string PhotoHasValueName
- {
- get { return this.PhotoHasValue != true ? "无" : "有"; }
- }
- /// <summary>
- /// 标识状态
- /// </summary>
- [DisplayName("标识状态")]
- public bool IsDoubt { get; set; }
- /// <summary>
- /// 标识状态
- /// </summary>
- [DisplayName("标识状态")]
- public string IsDoubtName
- {
- get { return this.IsDoubt == true ? "是" : "否"; }
- }
- /// <summary>
- /// 分配状态
- /// </summary>
- [Required]
- [DisplayName("分配状态")]
- public int? AssignStatus { get; set; }
- /// <summary>
- /// 分配状态
- /// </summary>
- [DisplayName("分配状态")]
- public string AssignStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_AssignStatus.ToString()).Where(x => x.Value == AssignStatus).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 序号
- /// </summary>
- [Required]
- [DisplayName("序号")]
- public int? OrderNo { get; set; }
- /// <summary>
- /// 序号(Excel导入用)
- /// </summary>
- [DisplayName("序号")]
- public string OrderNoStr { 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 CollegeNo { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 校区
- /// </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 = "CampusName")]
- public string CampusName { get; set; }
- /// <summary>
- /// 班级信息ID
- /// </summary>
- [DisplayName("班级信息ID")]
- public Guid? ClassmajorID { get; set; }
- /// <summary>
- /// 班级编号
- /// </summary>
- [DisplayName("班级编号")]
- public string ClassmajorNo { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级名称")]
- public string ClassmajorName { 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>
- /// 院系专业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("学号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入字符或数字")]
- public string StudentNo { get; set; }
- /// <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 string RecordStatusName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_NewStudentEnterStatus.ToString()).Where(x => x.Value == RecordStatus).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <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; }
- }
- }
|