using EMIS.ViewModel.CacheManage; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; namespace EMIS.ViewModel.SystemView { public class StudentUserView { /// /// UserID /// public System.Guid UserID { get; set; } /// /// CollegeID /// public Guid? CollegeID { get; set; } /// /// LoginID /// public string LoginID { get; set; } /// /// Name /// public string Name { get; set; } public DateTime? BirthDate { get; set; } /// /// 性别 /// public int? SexID { get; set; } /// /// 性别 /// [DisplayName("性别")] public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == SexID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 角色名称 /// public string RoleTypeName { get; set; } public Guid? RoleID { get; set; } public string RoleName { get; set; } /// /// 年级 /// public int? Grade { get; set; } /// /// 年级 /// [DisplayName("年级")] public string GradeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == Grade).Select(x => x.Name).FirstOrDefault(); } } public Guid? ClassmajorID { get; set; } /// /// 班级编号 /// public string ClassNo { get; set; } public string ClassmajorName { get; set; } /// /// 在校状态 /// public int? InSchool { get; set; } /// /// 在校状态 /// [DisplayName("在校状态")] public string InSchoolName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()) .Where(x => x.Value == InSchool) .Select(x => x.Name).FirstOrDefault(); } } public string Remarks { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } public string RecordStatusDesc { get; set; } /// /// CreateUserID /// public Nullable CreateUserID { get; set; } public string CreateUserName { get; set; } /// /// CreateTime /// public Nullable CreateTime { get; set; } /// /// ModifyUserID /// public Nullable ModifyUserID { get; set; } public string ModifyUserName { get; set; } /// /// ModifyTime /// public Nullable ModifyTime { get; set; } } }