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.TeachingMaterial
{
public class StudentDistribute_UserView
{
///
/// 学生发放ID
///
[DisplayName("学生发放ID")]
public Guid StudentDistributeID { get; set; }
///
/// 用户ID
///
[DisplayName("用户ID")]
public Guid UserID { get; set; }
///
/// 学号
///
[Required]
[DisplayName("学号")]
public string LoginID { get; set; }
///
/// 姓名
///
[DisplayName("姓名")]
public string Name { 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();
}
}
///
/// 班级ID
///
[DisplayName("班级名称")]
public Guid? ClassMajorID { get; set; }
///
/// 班级编号
///
[DisplayName("班级编号")]
public string ClassMajorCode { get; set; }
///
/// 班级名称
///
[DisplayName("班级名称")]
public string ClassMajorName { get; set; }
///
/// 学籍状态
///
[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("在校状态")]
[Required]
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 string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 教材编号
///
[DisplayName("教材编号")]
public string TeachingMaterialCode { get; set; }
///
/// 教材名称
///
[DisplayName("教材名称")]
public string TeachingMaterialName { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public string CreateUserName { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime CreateTime { get; set; }
///
/// 备注
///
[DisplayName("备注")]
public string Remark { get; set; }
}
}