using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.Cache; namespace EMIS.ViewModel.EducationManage { public class TrainingClassStudentView { public Guid UserID { get; set; } public int? SchoolAreaID { get; set; } public string SchoolAreaName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString()) .Where(x => x.Value == SchoolAreaID) .Select(x => x.Name).FirstOrDefault(); } } public Guid? CollegeID { get; set; } public string CollegeName { get; set; } public Guid? GrademajorID { get; set; } public int? Year { get; set; } public Guid? ClassmajorID { get; set; } public string ClassmajorName { get; set; } public string UserName { get; set; } public int? Sex { get; set; } public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == Sex) .Select(x => x.Name).FirstOrDefault(); } } public Nullable 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 string Mobile { get; set; } } }