using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.Students
{
public class StudentInfoView
{
public Guid? UserID { get; set; }
public string LoginID { get; set; }
public string UserName { get; set; }
public string Name
{
get
{
return UserName;
}
}
public string UsedName { get; set; }
public int? Sex { get; set; }
///
/// 性别名称
///
[DisplayName("性别")]
public string SexName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
.Where(x => x.Value == Sex)
.Select(x => x.Name).FirstOrDefault();
}
}
public int? Nation { get; set; }
public string NationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
.Where(x => x.Value == Nation)
.Select(x => x.Name).FirstOrDefault();
}
}
public DateTime? Birthday { get; set; }
public int? Politics { get; set; }
public string PoliticsName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
.Where(x => x.Value == Politics)
.Select(x => x.Name).FirstOrDefault();
}
}
public int? CertificatesType { get; set; }
public string CertificatesTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
.Where(x => x.Value == CertificatesType)
.Select(x => x.Name).FirstOrDefault();
}
}
public string IDNumber { get; set; }
public int? EducationID { get; set; }
public string EducationName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
.Where(x => x.Value == EducationID)
.Select(x => x.Name).FirstOrDefault();
}
}
public int? StudentType { get; set; }
public string StudentTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
.Where(x => x.Value == StudentType)
.Select(x => x.Name).FirstOrDefault();
}
}
public int? StudentStatus { get; set; }
public string StudentStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
.Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
}
}
public int? InSchoolStatusID { get; set; }
public string InSchoolStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
.Where(x => x.Value == InSchoolStatusID)
.Select(x => x.Name).FirstOrDefault();
}
}
public DateTime? EntranceDate { get; set; }
[DisplayName("入学方式")]
public int? EntranceWay { get; set; }
[DisplayName("入学方式")]
public string EntranceWayName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString())
.Where(x => x.Value == EntranceWay)
.Select(x => x.Name).FirstOrDefault();
}
}
[DisplayName("考生号")]
public string ExamineeNum { get; set; }
[DisplayName("考生类别")]
public int? ExamineeType { get; set; }
[DisplayName("考生类别")]
public string ExamineeTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString())
.Where(x => x.Value == ExamineeType)
.Select(x => x.Name).FirstOrDefault();
}
}
[DisplayName("考生特征")]
public int? Features { get; set; }
public string FeaturesName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
.Where(x => x.Value == Features)
.Select(x => x.Name).FirstOrDefault();
}
}
[DisplayName("高考总分")]
public decimal? Score { get; set; }
[DisplayName("生源所属地")]
public int? Territorial { get; set; }
///
/// 生源所属地名称
///
[DisplayName("生源所属地名称")]
public string TerritorialName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
.Where(x => x.Value == Territorial)
.Select(x => x.Name).FirstOrDefault();
}
}
[DisplayName("来源地区")]
public string Area { get; set; }
[DisplayName("籍贯")]
public string Place { get; set; }
[DisplayName("健康状态")]
public int? Healthy { get; set; }
///
/// 健康状态
///
[DisplayName("健康状态")]
public string HealthyName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString())
.Where(x => x.Value == Healthy)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 特长
///
[DisplayName("特长")]
public string Specialty { get; set; }
///
/// 身高
///
[DisplayName("身高")]
public string Height { get; set; }
///
/// 体重
///
[DisplayName("体重")]
public string Weight { get; set; }
///
/// 电子邮件
///
[DisplayName("电子邮件")]
public string Email { get; set; }
///
/// QQ
///
[DisplayName("QQ")]
public string QQ { get; set; }
///
/// 宿舍编号
///
[DisplayName("宿舍编号")]
public string Dormitory { get; set; }
///
/// 移动电话
///
[DisplayName("移动电话")]
public string Mobile { get; set; }
///
/// 固定电话
///
[DisplayName("固定电话")]
public string Telephone { get; set; }
///
/// 通信地址
///
[DisplayName("通信地址")]
public string Address { get; set; }
///
/// 工作单位
///
[DisplayName("工作单位")]
public string WorkUnit { get; set; }
///
/// 邮编
///
[DisplayName("邮编")]
public string ZipCode { get; set; }
///
/// 收件人
///
[DisplayName("收件人")]
public string Recipient { get; set; }
///
/// 开户银行
///
[DisplayName("开户银行")]
public string BankName { get; set; }
///
/// 银行卡号
///
[DisplayName("银行卡号")]
public string CardNo { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remarks { get; set; }
}
}