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