123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- using EMIS.ViewModel.Cache;
- namespace EMIS.ViewModel.TeacherManagement
- {
- public partial class StaffView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid UserID { 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 = "CampusName")]
- public string CampusName { 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 = "CollegeID")]
- public string CollegeNo { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 所属教研室ID
- /// </summary>
- [DisplayName("所属教研室ID")]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 所属教研室代码
- /// </summary>
- [DisplayName("所属教研室代码")]
- public string DepartmentCode { get; set; }
- /// <summary>
- /// 所属教研室
- /// </summary>
- [DisplayName("所属教研室")]
- public string DepartmentName { get; set; }
- /// <summary>
- /// 教职工号
- /// </summary>
- [Required]
- [DisplayName("教职工号")]
- public string StaffCode { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [Required]
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- /// 曾用名
- /// </summary>
- [DisplayName("曾用名")]
- public string UsedName { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [Required]
- [DisplayName("性别")]
- public int? Sex { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [Required]
- [DisplayName("性别")]
- public string SexStr { get; set; }
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
- .Where(x => x.Value == Sex)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 出生日期
- /// </summary>
- [DisplayName("出生日期")]
- [DataType(DataType.DateTime)]
- [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
- public DateTime? BirthDate { get; set; }
- [DisplayName("出生日期")]
- public string BirthDateStr { get; set; }
- /// <summary>
- /// 民族
- /// </summary>
- [DisplayName("民族")]
- public int? Nation { get; set; }
- /// <summary>
- /// 民族
- /// </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 == Nation)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 政治面貌
- /// </summary>
- [DisplayName("政治面貌")]
- public string Politics { get; set; }
- /// <summary>
- /// 教师类型
- /// </summary>
- [Required]
- [DisplayName("教师类型")]
- public int? TeacherType { get; set; }
- /// <summary>
- /// 教师类型
- /// </summary>
- [DisplayName("教师类型")]
- public string TeacherTypeStr { get; set; }
- /// <summary>
- /// 教师类型
- /// </summary>
- [DisplayName("教师类型名称")]
- public string TeacherTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString())
- .Where(x => x.Value == TeacherType)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 在职状态
- /// </summary>
- [Required]
- [DisplayName("在职状态")]
- public int? IncumbencyState { get; set; }
- /// <summary>
- /// 在职状态
- /// </summary>
- [DisplayName("在职状态")]
- public string IncumbencyStateStr { get; set; }
- /// <summary>
- /// 在职状态
- /// </summary>
- [DisplayName("在职状态")]
- public string IncumbencyStateName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_IncumbencyState.ToString())
- .Where(x => x.Value == IncumbencyState)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 证件类型
- /// </summary>
- [DisplayName("证件类型")]
- public int? CertificatesType { get; set; }
- /// <summary>
- /// 证件类型
- /// </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>
- [DisplayName("证件号码")]
- public string CertificatesNum { get; set; }
- /// <summary>
- /// 职称
- /// </summary>
- [DisplayName("职称")]
- public int? Title { get; set; }
- /// <summary>
- /// 职称
- /// </summary>
- [DisplayName("职称")]
- public string TitleStr { get; set; }
- /// <summary>
- /// 职称
- /// </summary>
- [DisplayName("职称")]
- public string TitleName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString())
- .Where(x => x.Value == Title)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 任课状况
- /// </summary>
- [DisplayName("任课状况")]
- public int? Situation { get; set; }
- /// <summary>
- /// 任课状况
- /// </summary>
- [DisplayName("任课状况")]
- public string SituationStr { get; set; }
- /// <summary>
- /// 任课状况
- /// </summary>
- [DisplayName("任课状况")]
- public string SituationName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Situation.ToString())
- .Where(x => x.Value == Situation)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public int? LiteracyLevels { get; set; }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public string LiteracyLevelsStr { get; set; }
- /// <summary>
- /// 文化程度
- /// </summary>
- [DisplayName("文化程度")]
- public string LiteracyLevelsName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LiteracyLevels.ToString())
- .Where(x => x.Value == LiteracyLevels)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学位状况
- /// </summary>
- [DisplayName("学位状况")]
- public int? DegreeState { get; set; }
- /// <summary>
- /// 学位状况
- /// </summary>
- [DisplayName("学位状况")]
- public string DegreeStateStr { get; set; }
- /// <summary>
- /// 学位状况
- /// </summary>
- [DisplayName("学位状况")]
- public string DegreeStateName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_DegreeState.ToString())
- .Where(x => x.Value == DegreeState)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 学位
- /// </summary>
- [DisplayName("学位")]
- public int? LearnPosition { get; set; }
- /// <summary>
- /// 学位
- /// </summary>
- [DisplayName("学位")]
- public string LearnPositionStr { get; set; }
- /// <summary>
- /// 学位
- /// </summary>
- [DisplayName("学位")]
- public string LearnPositionName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LearnPosition.ToString())
- .Where(x => x.Value == LearnPosition)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 参加工作年月
- /// </summary>
- [DisplayName("参加工作年月")]
- [DataType(DataType.DateTime)]
- public DateTime? WorkDate { get; set; }
- /// <summary>
- /// 参加工作年月
- /// </summary>
- [DisplayName("参加工作年月")]
- public string WorkDateStr { get; set; }
- /// <summary>
- /// 来校年月
- /// </summary>
- [DisplayName("来校年月")]
- [DataType(DataType.DateTime)]
- public DateTime? ComeSchoolDate { get; set; }
- [DisplayName("来校年月")]
- public string ComeSchoolDateStr { get; set; }
- /// <summary>
- /// 从教年月
- /// </summary>
- [DisplayName("从教年月")]
- [DataType(DataType.DateTime)]
- public DateTime? TeachingDate { get; set; }
- /// <summary>
- /// 从教年月
- /// </summary>
- [DisplayName("从教年月")]
- public string TeachingDateStr { get; set; }
- /// <summary>
- /// 照片地址
- /// </summary>
- [DisplayName("照片地址")]
- public string PhotoUrl { get; set; }
- /// <summary>
- /// 简介
- /// </summary>
- [DisplayName("简介")]
- public string Profile { get; set; }
- /// <summary>
- /// 籍贯
- /// </summary>
- [DisplayName("籍贯")]
- public string Place { get; set; }
- /// <summary>
- /// 学历
- /// </summary>
- [DisplayName("学历")]
- public int? EducationCode { get; set; }
- /// <summary>
- /// 学历
- /// </summary>
- [DisplayName("学历")]
- public string EducationCodeStr { get; set; }
- /// <summary>
- /// 学历
- /// </summary>
- [DisplayName("学历")]
- public string EducationCodeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EducationCode.ToString())
- .Where(x => x.Value == EducationCode)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 家庭电话
- /// </summary>
- [DisplayName("家庭电话")]
- public string Telephone { get; set; }
- /// <summary>
- /// 办公室电话
- /// </summary>
- [DisplayName("办公室电话")]
- public string OfficeTelephone { get; set; }
- /// <summary>
- /// 移动电话
- /// </summary>
- [DisplayName("移动电话")]
- public string Mobile { get; set; }
- /// <summary>
- /// 电子邮箱
- /// </summary>
- [DisplayName("电子邮箱")]
- public string Email { get; set; }
- /// <summary>
- /// QQ
- /// </summary>
- [DisplayName("QQ")]
- public string QQ { get; set; }
- /// <summary>
- /// 国籍
- /// </summary>
- [DisplayName("国籍")]
- public string Nationality { get; set; }
- /// <summary>
- /// 健康状况
- /// </summary>
- [DisplayName("健康状况")]
- public int? HealthState { get; set; }
- /// <summary>
- /// 健康状况
- /// </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 == HealthState)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 住宅电话
- /// </summary>
- [DisplayName("住宅电话")]
- public string HousePhone { get; set; }
- /// <summary>
- /// 通信地址
- /// </summary>
- [DisplayName("通信地址")]
- public string Address { get; set; }
- /// <summary>
- /// 邮政编码
- /// </summary>
- [DisplayName("邮政编码")]
- public string Postcode { get; set; }
- /// <summary>
- /// 家庭住址
- /// </summary>
- [DisplayName("家庭住址")]
- public string HomeAddress { get; set; }
- /// <summary>
- /// 现住地址
- /// </summary>
- [DisplayName("现住地址")]
- public string NowAddress { get; set; }
- /// <summary>
- /// 户口所在地
- /// </summary>
- [DisplayName("户口所在地")]
- public string Residence { get; set; }
- /// <summary>
- /// 特长
- /// </summary>
- [DisplayName("特长")]
- public string Speciality { get; set; }
- /// <summary>
- /// 微信号
- /// </summary>
- [DisplayName("微信号")]
- public string WeChatNum { get; set; }
- /// <summary>
- /// 宗教信仰
- /// </summary>
- [DisplayName("宗教信仰")]
- public int? Religion { get; set; }
- /// <summary>
- /// 宗教信仰
- /// </summary>
- [DisplayName("宗教信仰")]
- public string ReligionStr { get; set; }
- /// <summary>
- /// 宗教信仰
- /// </summary>
- [DisplayName("宗教信仰")]
- public string ReligionName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Religion.ToString())
- .Where(x => x.Value == Religion)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [DisplayName("课酬级别")]
- public int? PaymentLevelID { get; set; }
- public string PaymentLevelStr { get; set; }
- public string PaymentLevelName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.TP_PaymentLevel.ToString())
- .Where(x => x.Value == PaymentLevelID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- [DisplayName("是否双师型教师")]
- public bool IsDualTeacher { get; set; }
- public string IsDualTeacherStr { get; set; }
- public string IsDualTeacherName
- {
- get
- {
- return IsDualTeacher ? "是" : "否";
- }
- }
- /// <summary>
- /// 银行卡号
- /// </summary>
- [RegularExpression(@"^[0-9]*$", ErrorMessage = "只能输入数字")]
- [DisplayName("银行卡号")]
- public string Account { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- private bool _isExcelVaildateOK = true;
- /// <summary>
- /// Excel验证是否通过,默认为true
- /// <para>true:通过;false:不通过</para>
- /// </summary>
- public bool IsExcelVaildateOK
- {
- get { return _isExcelVaildateOK; }
- set { _isExcelVaildateOK = value; }
- }
- /// <summary>
- /// 错误信息
- /// </summary>
- [DisplayName("错误信息")]
- public string ErrorMessage { get; set; }
- }
- }
|