12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using System.Reflection;
- using EMIS.ViewModel.CacheManage;
- using EMIS.ViewModel.StudentManage.StudentProfile;
- namespace EMIS.ViewModel.StudentManage.OnlineChecking
- {
- public class CheckingHistoryView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid StudentRecordChangeHistoryID { get; set; }
- /// <summary>
- /// 比对表ID
- /// </summary>
- [Required]
- [DisplayName("比对表ID")]
- public Guid? StudentContrastID { get; set; }
- /// <summary>
- /// 校对表名
- /// </summary>
- [DisplayName("校对表名")]
- public string TableName { get; set; }
- /// <summary>
- /// 校对列名
- /// </summary>
- [DisplayName("校对列名")]
- public string ColumnName { get; set; }
- /// <summary>
- /// 显示属性
- /// </summary>
- [DisplayName("显示属性")]
- public string DisplayPropertyName { get; set; }
- /// <summary>
- /// 校对名称
- /// </summary>
- [DisplayName("校对名称")]
- public string Description { get; set; }
- /// <summary>
- /// 校对类型
- /// </summary>
- [Required]
- [DisplayName("校对类型")]
- public int? CheckingTypeID { get; set; }
- /// <summary>
- /// 校对类型
- /// </summary>
- [DisplayName("校对类型")]
- public string CheckingTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CheckingType.ToString()).Where(x => x.Value == CheckingTypeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 用户信息ID
- /// </summary>
- [Required]
- [DisplayName("用户信息ID")]
- public Guid? UserID { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [DisplayName("学号")]
- public string StudentNo { get; set; }
- /// <summary>
- /// 学号
- /// </summary>
- [DisplayName("学号")]
- public string LoginID { get; set; }
- /// <summary>
- /// 考生号
- /// </summary>
- [DisplayName("考生号")]
- public string ExamineeNum { get; set; }
- /// <summary>
- /// 准考证号
- /// </summary>
- [DisplayName("准考证号")]
- public string AdmissionTicketNo { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [DisplayName("姓名")]
- public string UserName { get; set; }
- /// <summary>
- /// 曾用名
- /// </summary>
- [DisplayName("曾用名")]
- public string UsedName { 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>
- /// 班序
- /// </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? 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? GrademajorID { get; set; }
- /// <summary>
- /// 年级专业编号
- /// </summary>
- [DisplayName("年级专业编号")]
- public string GrademajorCode { get; set; }
- /// <summary>
- /// 年级专业名称
- /// </summary>
- [DisplayName("年级专业名称")]
- public string GrademajorName { 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>
- /// 国籍
- /// </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>
- /// 性别
- /// </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>
- /// 民族
- /// </summary>
- [Required]
- [DisplayName("民族")]
- public int? NationID { 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>
- /// 政治面貌
- /// </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>
- /// 证件类型
- /// </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>
- /// 学生类别
- /// </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>
- /// 在校状态
- /// </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>
- /// 学籍状态
- /// </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>
- /// 考生类别
- /// </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 DateTime? EntranceDate { get; set; }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public int? LiteracyLevelID { 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? CultureModelID { 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>
- /// 圆梦计划
- /// </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>
- /// 健康状况
- /// </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>
- /// 血型名称
- /// </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>
- /// 入学方式
- /// </summary>
- [DisplayName("入学方式")]
- public int? EntranceWayID { 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>
- /// 考生特征
- /// </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>
- /// 生源所属地
- /// </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("学籍卡编号")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字和英文字母")]
- public string StudentCardNo { get; set; }
- /// <summary>
- /// 学籍照片Url
- /// </summary>
- [DisplayName("学籍照片")]
- public string PhotoUrl { get; set; }
- /// <summary>
- /// 预计毕业日期
- /// </summary>
- [DisplayName("预计毕业日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? PlanningGraduateDate { get; set; }
- /// <summary>
- /// 毕业日期
- /// </summary>
- [DisplayName("毕业日期")]
- [DataType(DataType.Date)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? GraduateDate { get; set; }
- /// <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>
- /// 学位有无
- /// </summary>
- [DisplayName("学位有无")]
- public string DegreeStatusName
- {
- get { return this.DegreeStatus != true ? "无" : "有"; }
- }
- /// <summary>
- /// 学历照片
- /// </summary>
- [DisplayName("学历照片")]
- public string GraduationPictureUrl { get; set; }
- /// <summary>
- /// 在校经历
- /// </summary>
- [DisplayName("在校经历")]
- public string Career { get; set; }
- /// <summary>
- /// 是否核对
- /// </summary>
- [DisplayName("是否核对")]
- public bool IsProofread { get; set; }
- /// <summary>
- /// 是否核对
- /// </summary>
- [DisplayName("是否核对")]
- public string IsProofreadName
- {
- get { return this.IsProofread != true ? "否" : "是"; }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// IP地址
- /// </summary>
- [DisplayName("IP地址")]
- public string IP { get; set; }
- /// <summary>
- /// 校对前信息StudentViewSource
- /// </summary>
- [DisplayName("校对前信息")]
- public StudentView StudentViewSource { get; set; }
- /// <summary>
- /// 校对后信息StudentViewContrast
- /// </summary>
- [DisplayName("校对后信息")]
- public StudentView StudentViewContrast { get; set; }
- /// <summary>
- /// 校对前值
- /// </summary>
- [DisplayName("校对前值")]
- public object CheckingBeforeValue
- {
- get
- {
- return GetColumnValue(StudentViewSource, ColumnName);
- }
- }
- /// <summary>
- /// 校对前内容
- /// </summary>
- [DisplayName("校对前内容")]
- public string CheckingBeforeContent
- {
- get
- {
- return GetColumnValue(StudentViewSource, ColumnName, DisplayPropertyName);
- }
- }
- /// <summary>
- /// 校对后值
- /// </summary>
- [DisplayName("校对后值")]
- public object CheckingAfterValue
- {
- get
- {
- return GetColumnValue(StudentViewContrast, ColumnName);
- }
- }
- /// <summary>
- /// 校对后内容
- /// </summary>
- [DisplayName("校对后内容")]
- public string CheckingAfterContent
- {
- get
- {
- return GetColumnValue(StudentViewContrast, ColumnName, DisplayPropertyName);
- }
- }
- /// <summary>
- /// ColumnValue
- /// </summary>
- /// <typeparam name="T"></typeparam>
- /// <param name="tableName"></param>
- /// <param name="columnName"></param>
- /// <returns></returns>
- [DisplayName("ColumnValue")]
- public object GetColumnValue<T>(T tableName, string columnName)
- {
- PropertyInfo[] properties = tableName.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
- foreach (PropertyInfo pro in properties)
- {
- if (pro.PropertyType.IsValueType || pro.PropertyType.Name.StartsWith("String"))
- {
- if (String.Equals(pro.Name, columnName, StringComparison.CurrentCultureIgnoreCase))
- {
- return pro.GetValue(tableName, null);
- }
- }
- }
- return null;
- }
- /// <summary>
- /// ColumnValue
- /// </summary>
- /// <typeparam name="T"></typeparam>
- /// <param name="tableName"></param>
- /// <param name="columnName"></param>
- /// <param name="displayPropertyName"></param>
- /// <returns></returns>
- [DisplayName("ColumnValue")]
- public string GetColumnValue<T>(T tableName, string columnName, string displayPropertyName)
- {
- PropertyInfo[] properties = tableName.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
- foreach (PropertyInfo pro in properties)
- {
- if (pro.PropertyType.IsValueType || pro.PropertyType.Name.StartsWith("String"))
- {
- if (string.IsNullOrWhiteSpace(displayPropertyName))
- {
- if (String.Equals(pro.Name, columnName, StringComparison.CurrentCultureIgnoreCase))
- {
- return pro.GetValue(tableName, null) == null ? "" : pro.GetValue(tableName, null).ToString();
- }
- }
- else
- {
- if (String.Equals(pro.Name, displayPropertyName, StringComparison.CurrentCultureIgnoreCase))
- {
- return pro.GetValue(tableName, null) == null ? "" : pro.GetValue(tableName, null).ToString();
- }
- }
- }
- }
- return null;
- }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("审核状态")]
- public int? ApprovalStatus { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [DisplayName("审核状态")]
- public string ApprovalStatusName { get; set; }
- /// <summary>
- /// 处理意见
- /// </summary>
- [DisplayName("处理意见")]
- public string Comment { get; set; }
- /// <summary>
- /// 审核时间
- /// </summary>
- [DisplayName("审核时间")]
- public DateTime? ApprovalTime { 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; }
- }
- }
|