using EMIS.ViewModel.Cache; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; namespace EMIS.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? CollegeID { get; set; } /// /// 院系所代码 /// public string CollegeCode { get; set; } public string CollegeName { get; set; } public Guid? DepartmentID { get; set; } /// /// 教研室代码 /// public string DepartmentCode { get; set; } public string DepartmentName { get; set; } public DateTime? BirthDate { get; set; } /// /// 性别码 /// 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(); } } /// /// 角色名称 /// public string RoleTypeName { get; set; } public Guid? RoleID { get; set; } public string RoleName { get; set; } /// /// 数据范围码 /// public int? DataRange { get; set; } /// /// 数据范围 /// [DisplayName("数据范围")] public string DataRangeName { 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; 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; } } }