using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.Students { public class StudentFamilyView { /// /// StudentFamilyID /// public System.Guid StudentFamilyID { get; set; } /// /// UserID /// public Nullable UserID { get; set; } /// /// Name /// public string Name { get; set; } /// /// Relation /// public string Relation { get; set; } /// /// Age /// public Nullable Age { get; set; } /// /// Politics /// public Nullable Politics { get; set; } public string PoliticsDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()) .Where(x => x.Value == Politics) .Select(x => x.Name).FirstOrDefault(); } } /// /// Unit /// public string Unit { get; set; } /// /// PhoneNumber /// public string PhoneNumber { get; set; } } }