using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EMIS.ViewModel.Cache;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace EMIS.ViewModel.Students
{
public class BaseStudentView
{
///
/// 用户ID
///
[DisplayName("用户ID")]
public Guid UserID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 学号
///
[DisplayName("学号")]
public string StudentNo { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string UserName { get; set; }
///
/// 性别
///
[DisplayName("性别")]
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();
}
}
///
/// 身份证号
///
[DisplayName("身份证号")]
public string IDNumber { get; set; }
///
/// 在校状态
///
[DisplayName("在校状态")]
public int? InSchoolStatusID { get; set; }
///
/// 在校状态
///
[DisplayName("在校状态")]
public string InSchoolStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
.Where(x => x.Value == InSchoolStatusID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public int? StudentStatus { get; set; }
///
/// 学籍状态
///
[DisplayName("学籍状态")]
public string StudentStatusName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTSTATUS.ToString())
.Where(x => x.Value == StudentStatus)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 年级
///
[DisplayName("年级")]
public int? Years { get; set; }
///
/// 年级
///
[DisplayName("年级")]
public int? SchoolyearID { get; set; }
///
/// 学期
///
[DisplayName("学期")]
public int? SchoolcodeID { get; set; }
///
/// 学期
///
[DisplayName("学期")]
public string SchoolcodeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Schoolcode.ToString())
.Where(x => x.Value == SchoolcodeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 专业信息ID
///
[DisplayName("专业信息ID")]
public Guid? SpecialtyID { get; set; }
///
/// 专业名称
///
[DisplayName("专业名称")]
public string SpecialtyName { get; set; }
///
/// 班级信息ID
///
[DisplayName("班级信息ID")]
public Guid? ClassmajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassmajorCode { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassmajorName { get; set; }
///
/// 班序
///
[DisplayName("班序")]
public int? ClassNum { get; set; }
///
/// 年级专业ID
///
[DisplayName("年级专业ID")]
public Guid? GrademajorID { get; set; }
///
/// 年级专业编号
///
[DisplayName("年级专业编号")]
public string GrademajorCode { get; set; }
///
/// 年级专业名称
///
[DisplayName("年级专业名称")]
public string GrademajorName { get; set; }
///
/// 院系专业ID
///
[DisplayName("院系专业ID")]
public Guid? FacultymajorID { get; set; }
///
/// 院系专业代码
///
[DisplayName("院系专业代码")]
public string FacultymajorCode { get; set; }
///
/// 院系专业名称
///
[DisplayName("院系专业名称")]
public string FacultymajorName { get; set; }
///
/// 院系所ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
public Guid? CollegeID { get; set; }
///
/// 院系所代码
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
public string CollegeNo { get; set; }
///
/// 院系所名称
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
public string CollegeName { get; set; }
///
/// 校区ID
///
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
public Guid? CampusID { get; set; }
///
/// 校区代码
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
public string CampusNo { get; set; }
///
/// 校区名称
///
[Required]
[Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
public string CampusName { get; set; }
///
/// 学年学期
///
[DisplayName("学年学期")]
public string SchoolYearCode { get; set; }
///
/// 选修任务班名称
///
[DisplayName("选修任务班名称")]
public string DefaultClassName { get; set; }
///
/// 课程信息ID
///
[DisplayName("课程信息ID")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CoursematerialCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CoursematerialName { get; set; }
///
/// 课程类型
///
[DisplayName("课程类型")]
public int? CourseTypeID { get; set; }
///
/// 课程类型
///
[DisplayName("课程类型")]
public string CourseTypeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
.Where(x => x.Value == CourseTypeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 开课学年
///
[DisplayName("开课学年")]
public int? GradeYear { get; set; }
///
/// 开课学期(期末设定、补考设定)
///
[DisplayName("开课学期")]
public int? StarttermID { get; set; }
///
/// 开课学期
///
[DisplayName("开课学期")]
public string Startterm
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
.Where(x => x.Value == StarttermID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 是否异动
///
[DisplayName("是否异动")]
public bool IsDifferentDynamic { get; set; }
///
/// 是否可用
///
[DisplayName("是否可用")]
public int? RecordStatus { get; set; }
}
}