using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.Students
{
public class StudentRecordView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid UserID { get; set; }
///
/// 照片
///
[DisplayName("照片")]
public string PhotoUrl { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 曾用名
///
[DisplayName("曾用名")]
public string UsedName { get; set; }
///
/// 性别
///
[DisplayName("性别")]
public int SexID { get; set; }
///
/// 出生日期
///
[DisplayName("出生日期")]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
public DateTime? BirthDate { get; set; }
///
/// 民族
///
[DisplayName("民族")]
public int? Nation { get; set; }
///
/// 政治面貌
///
[DisplayName("政治面貌")]
public int? Politics { get; set; }
//
//政治面貌
//
[DisplayName("政治面貌")]
[Required]
public string PoliticsName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
.Where(x => x.Value == Politics)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 证件类型
///
[DisplayName("证件类型")]
public int? CertificatesType { get; set; }
public string CertificatesTypeStr
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
.Where(x => x.Value == CertificatesType)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 身份证
///
[DisplayName("证件号")]
public string IDNumber { get; set; }
///
/// 准考证号
///
//[DisplayName("准考证号")]
//public string ExamineeNum { get; set; }
///
/// 学院
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 年级
///
[DisplayName("年级专业")]
public string GradeName { get; set; }
///
/// 年级专业
///
[DisplayName("年级专业代码")]
public string GradeCode { get; set; }
///
/// 年级ID
///
[DisplayName("年级专业ID")]
public int? StandardID { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassName { get; set; }
///
/// 班级ID
///
[DisplayName("班级ID")]
public Guid ClassID { get; set; }
///
/// 学制
///
[DisplayName("学制")]
public decimal? LearnSystem { get; set; }
///
/// 学制
///
[DisplayName("学制")]
public string LearnSystemStr {
get {
return LearnSystem.HasValue ? (LearnSystem % 1 != 0 ? Math.Round(LearnSystem.Value, 1) : Math.Round(LearnSystem.Value, 0)).ToString() : "";
}
}
///
/// 班序
///
[DisplayName("班级编号")]
public string No { get; set; }
///
/// 培养层次
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
public int? EducationID { get; set; }
///
/// 学习形式
///
[DisplayName("学习形式")]
public int? LearningformID { get; set; }
///
/// 学习方式
///
[DisplayName("学习方式")]
public int? LearningstyleID { get; set; }
///
/// 培养方式/办学类型
///
[DisplayName("培养方式/办学类型")]
public int? CultureModel { get; set; }
///
/// 学生类别
///
[DisplayName("学生类别")]
public int? StudentType { get; set; }
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public int? StudentStatus { get; set; }
///
/// 在校状态
///
[DisplayName("在校状态")]
public int? InSchoolStatusID { get; set; }
///
/// 在校状态名称
///
[DisplayName("在校状态")]
public string InSchoolStatusName
{
get
{
return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
}
}
///
/// 入学日期
///
[DisplayName("入学日期")]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
public DateTime? EntranceDate { get; set; }
///
/// 入学方式
///
[DisplayName("入学方式")]
public int? EntranceWay { get; set; }
///
/// 教育部考生号
///
[DisplayName("教育部考生号")]
public string ExamineeNum { get; set; }
///
/// 考生类别
///
[DisplayName("考生类别")]
public int? ExamineeType { get; set; }
///
/// 考生特征
///
[DisplayName("考生特征")]
public int? Features { get; set; }
public string FeaturesStr
{
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 string BornPlace { get; set; }
///
/// 健康状况
///
[DisplayName("健康状况")]
public int? Healthy { get; set; }
///
/// 特长
///
[DisplayName("特长")]
public string Specialty { get; set; }
///
/// 身高(CM)
///
[DisplayName("身高(CM)")]
public string Height { get; set; }
///
/// 体重(KG)
///
[DisplayName("体重(KG)")]
public string Weight { get; set; }
///
/// Email
///
[DisplayName("Email")]
public string Email { get; set; }
///
/// QQ
///
[DisplayName("QQ")]
public string QQ { get; set; }
///
/// 宿舍
///
[DisplayName("宿舍")]
public string Dormitory { get; set; }
///
/// 固定电话
///
[DisplayName("固定电话")]
public string Telephone { get; set; }
///
/// 移动电话
///
[DisplayName("移动电话")]
public string Mobile { get; set; }
///
/// 地址
///
[DisplayName("地址")]
public string HomeAddress { get; set; }
///
/// 工作单位
///
[DisplayName("工作单位")]
public string WorkUnit { get; set; }
///
/// 邮编
///
[DisplayName("邮编")]
public string Zipcode { get; set; }
///
/// 收件人
///
[DisplayName("收件人")]
public string Recipient { get; set; }
///
/// 拟毕业日期
///
[DisplayName("拟毕业日期")]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
public DateTime? PlanningGraduateDate { get; set; }
///
/// 银行卡号
///
[DisplayName("银行卡号")]
public string CardNo { get; set; }
///
/// 开户银行
///
[DisplayName("开户银行")]
public string BankName { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remarks { get; set; }
///
/// 是否是圆梦计划
///
[Required]
[DisplayName("是否是圆梦计划")]
public bool IsDreamProject { get; set; }
///
/// 是否是圆梦计划
///
[DisplayName("是否是圆梦计划")]
public string IsDreamProjectName
{
get { return this.IsDreamProject != true ? "否" : "是"; }
}
///
/// 在校经历
///
[DisplayName("在校经历")]
public string Career { get; set; }
public Guid? FacultymajorID { get; set; }
public int? StartSchoolcodeID { get; set; }
public int? StartSchoolyearValue { get; set; }
}
}