123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- 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; }
- /// <summary>
- /// 性别名称
- /// </summary>
- [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; }
- /// <summary>
- /// 生源所属地名称
- /// </summary>
- [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; }
- /// <summary>
- /// 健康状态
- /// </summary>
- [DisplayName("健康状态")]
- public string HealthyName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString())
- .Where(x => x.Value == Healthy)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 特长
- /// </summary>
- [DisplayName("特长")]
- public string Specialty { get; set; }
- /// <summary>
- /// 身高
- /// </summary>
- [DisplayName("身高")]
- public string Height { get; set; }
- /// <summary>
- /// 体重
- /// </summary>
- [DisplayName("体重")]
- public string Weight { 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 Dormitory { get; set; }
- /// <summary>
- /// 移动电话
- /// </summary>
- [DisplayName("移动电话")]
- public string Mobile { get; set; }
- /// <summary>
- /// 固定电话
- /// </summary>
- [DisplayName("固定电话")]
- public string Telephone { get; set; }
- /// <summary>
- /// 通信地址
- /// </summary>
- [DisplayName("通信地址")]
- public string Address { 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("开户银行")]
- public string BankName { get; set; }
- /// <summary>
- /// 银行卡号
- /// </summary>
- [DisplayName("银行卡号")]
- public string CardNo { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- }
- }
|