using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMISOnline.ViewModel.Cache; namespace EMISOnline.ViewModel.SystemView { public class UserView { /// /// UserID /// public System.Guid UserID { get; set; } /// /// LoginID /// public string LoginID { get; set; } /// /// Name /// public string Name { get; set; } public Guid? UniversityID { get; set; } public Guid? CampusID { get; set; } public Guid? CollegeID { get; set; } public string CollegeName { get; set; } public Guid? DepartmentID { get; set; } public string DepartmentName { get; set; } public string HierarchyID { get; set; } public Guid? StaffID { get; set; } public Guid? StudentID { get; set; } public DateTime? BirthDate { get; set; } public int? Sex { get; set; } public string SexDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == Sex) .Select(x => x.Name).FirstOrDefault(); } } public Guid? RoleID { get; set; } public string RoleName { get; set; } public int? DataRange { get; set; } public string DataRangeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_DataRange.ToString()) .Where(x => x.Value == DataRange) .Select(x => x.Name).FirstOrDefault(); } } public string Remarks { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } public string RecordStatusDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString()) .Where(x => x.Value == RecordStatus) .Select(x => x.Name).FirstOrDefault(); } } /// /// 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; } } }