123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.Cache;
- namespace EMIS.ViewModel.Students
- {
- public class StudentRecordView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid UserID { get; set; }
- /// <summary>
- /// 相片
- /// </summary>
- [DisplayName("相片")]
- public string PhotoUrl { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [DisplayName("学号")]
- public string LoginID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [DisplayName("学号")]
- public string StudentNo { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [Required]
- [DisplayName("姓名")]
- public string UserName { get; set; }
- /// <summary>
- /// 曾用名
- /// </summary>
- [DisplayName("曾用名")]
- public string UsedName { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [Required]
- [DisplayName("性别")]
- public int? Sex { get; set; }
- /// <summary>
- /// 出生日期
- /// </summary>
- [Required]
- [DisplayName("出生日期")]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 民族
- /// </summary>
- [DisplayName("民族")]
- public int? Nation { get; set; }
- /// <summary>
- /// 政治面貌
- /// </summary>
- [DisplayName("政治面貌")]
- public int? Politics { get; set; }
- //<summary>
- //政治面貌
- //</summary>
- [DisplayName("政治面貌")]
- [Required]
- public string PoliticsName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
- .Where(x => x.Value == Politics)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件类型
- /// </summary>
- [Required]
- [DisplayName("证件类型")]
- public int? CertificatesType { get; set; }
- public string CertificatesTypeStr
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
- .Where(x => x.Value == CertificatesType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 身份证
- /// </summary>
- [Required]
- [DisplayName("证件号")]
- public string IDNumber { get; set; }
- /// <summary>
- /// 准考证号
- /// </summary>
- //[DisplayName("准考证号")]
- //public string ExamineeNum { get; set; }
- /// <summary>
- /// 学院
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 年级
- /// </summary>
- [DisplayName("年级专业")]
- public string GradeName { get; set; }
- /// <summary>
- /// 年级专业
- /// </summary>
- [DisplayName("年级专业代码")]
- public string GradeCode { get; set; }
- /// <summary>
- /// 年级ID
- /// </summary>
- [DisplayName("年级专业ID")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- [DisplayName("班级名称")]
- public string ClassName { get; set; }
- /// <summary>
- /// 班级ID
- /// </summary>
- [DisplayName("班级ID")]
- public Guid ClassID { get; set; }
- /// <summary>
- /// 学制
- /// </summary>
- [DisplayName("学制")]
- public decimal? LearnSystem { get; set; }
- /// <summary>
- /// 班序
- /// </summary>
- [DisplayName("班级编号")]
- public string No { get; set; }
- /// <summary>
- /// 培养层次
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
- public int? EducationID { get; set; }
- /// <summary>
- /// 学习形式
- /// </summary>
- [DisplayName("学习形式")]
- public int? LearningformID { get; set; }
- /// <summary>
- /// 学习方式
- /// </summary>
- [DisplayName("学习方式")]
- public int? LearningstyleID { get; set; }
- /// <summary>
- /// 培养方式/办学类型
- /// </summary>
- [DisplayName("培养方式/办学类型")]
- public int? CultureModel { get; set; }
- /// <summary>
- /// 学生类别
- /// </summary>
- [DisplayName("学生类别")]
- public int? StudentType { get; set; }
- /// <summary>
- /// 学籍状态
- /// </summary>
- [DisplayName("学籍状态")]
- public int? StudentStatus { get; set; }
- /// <summary>
- /// 在校状态
- /// </summary>
- [DisplayName("在校状态")]
- public int? InSchoolStatusID { get; set; }
- /// <summary>
- /// 在校状态名称
- /// </summary>
- [DisplayName("在校状态")]
- public string InSchoolStatusName
- {
- get
- {
- return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
- }
- }
- /// <summary>
- /// 入学日期
- /// </summary>
- [DisplayName("入学日期")]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? EntranceDate { get; set; }
- /// <summary>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public int? EntranceWay { get; set; }
- /// <summary>
- /// 教育部考生号
- /// </summary>
- [DisplayName("教育部考生号")]
- public string ExamineeNum { get; set; }
- /// <summary>
- /// 考生类别
- /// </summary>
- [DisplayName("考生类别")]
- public int? ExamineeType { get; set; }
- /// <summary>
- /// 考生特征
- /// </summary>
- [DisplayName("考生特征")]
- public int? Features { get; set; }
- public string FeaturesStr
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
- .Where(x => x.Value == Features)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 高考总分
- /// </summary>
- [DisplayName("高考总分")]
- public decimal? Score { 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 string Place { get; set; }
- /// <summary>
- /// 出生地
- /// </summary>
- [DisplayName("出生地")]
- public string BornPlace { get; set; }
- /// <summary>
- /// 健康状况
- /// </summary>
- [DisplayName("健康状况")]
- public int? Healthy { get; set; }
- /// <summary>
- /// 特长
- /// </summary>
- [DisplayName("特长")]
- public string Specialty { get; set; }
- /// <summary>
- /// 身高(CM)
- /// </summary>
- [DisplayName("身高(CM)")]
- public string Height { get; set; }
- /// <summary>
- /// 体重(KG)
- /// </summary>
- [DisplayName("体重(KG)")]
- public string Weight { get; set; }
- /// <summary>
- /// Email
- /// </summary>
- [DisplayName("Email")]
- [RegularExpression(@"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$", ErrorMessage = "请输入正确的邮箱地址")]
- public string Email { get; set; }
- /// <summary>
- /// QQ
- /// </summary>
- [DisplayName("QQ")]
- public string QQ { get; set; }
- /// <summary>
- /// 宿舍
- /// </summary>
- [DisplayName("宿舍")]
- public string Dormitory { get; set; }
- /// <summary>
- /// 固定电话
- /// </summary>
- [DisplayName("固定电话")]
- public string Telephone { get; set; }
- /// <summary>
- /// 移动电话
- /// </summary>
- [Required]
- [DisplayName("移动电话")]
- [RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
- public string Mobile { get; set; }
- /// <summary>
- /// 地址
- /// </summary>
- [DisplayName("地址")]
- public string HomeAddress { get; set; }
- /// <summary>
- /// 工作单位
- /// </summary>
- [DisplayName("工作单位")]
- public string WorkUnit { get; set; }
- /// <summary>
- /// 邮编
- /// </summary>
- [DisplayName("邮编")]
- public string Zipcode { get; set; }
- /// <summary>
- /// 收件人
- /// </summary>
- [DisplayName("收件人")]
- public string Recipient { get; set; }
- /// <summary>
- /// 拟毕业日期
- /// </summary>
- [DisplayName("拟毕业日期")]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? PlanningGraduateDate { get; set; }
- /// <summary>
- /// 银行卡号
- /// </summary>
- [DisplayName("银行卡号")]
- public string CardNo { get; set; }
- /// <summary>
- /// 开户银行
- /// </summary>
- [DisplayName("开户银行")]
- public string BankName { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- /// <summary>
- /// 是否是圆梦计划
- /// </summary>
- [Required]
- [DisplayName("是否是圆梦计划")]
- public bool IsDreamProject { get; set; }
- /// <summary>
- /// 是否是圆梦计划
- /// </summary>
- [DisplayName("是否是圆梦计划")]
- public string IsDreamProjectName
- {
- get { return this.IsDreamProject != true ? "否" : "是"; }
- }
- /// <summary>
- /// 在校经历
- /// </summary>
- [DisplayName("在校经历")]
- public string Career { get; set; }
- public Guid? FacultymajorID { get; set; }
- public int? StartSchoolcodeID { get; set; }
- public int? StartSchoolyearValue { get; set; }
- }
- }
|