123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- 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
- {
- /// <summary>
- /// UserID
- /// </summary>
- public System.Guid UserID { get; set; }
- /// <summary>
- /// LoginID
- /// </summary>
- public string LoginID { get; set; }
- /// <summary>
- /// Name
- /// </summary>
- public string Name { get; set; }
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码
- /// </summary>
- public string CollegeCode { get; set; }
- public string CollegeName { get; set; }
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 教研室代码
- /// </summary>
- public string DepartmentCode { get; set; }
- public string DepartmentName { get; set; }
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 性别码
- /// </summary>
- public int? Sex { get; set; }
- /// <summary>
- /// 性别名称
- /// </summary>
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
- .Where(x => x.Value == Sex)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 角色名称
- /// </summary>
- public string RoleTypeName { get; set; }
- public Guid? RoleID { get; set; }
- public string RoleName { get; set; }
- /// <summary>
- /// 数据范围码
- /// </summary>
- public int? DataRange { get; set; }
- /// <summary>
- /// 数据范围
- /// </summary>
- [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; }
- /// <summary>
- /// RecordStatus
- /// </summary>
- public Nullable<int> RecordStatus { get; set; }
- public string RecordStatusDesc { get; set; }
- /// <summary>
- /// CreateUserID
- /// </summary>
- public Nullable<System.Guid> CreateUserID { get; set; }
- public string CreateUserName { get; set; }
- /// <summary>
- /// CreateTime
- /// </summary>
- public Nullable<System.DateTime> CreateTime { get; set; }
- /// <summary>
- /// ModifyUserID
- /// </summary>
- public Nullable<System.Guid> ModifyUserID { get; set; }
- public string ModifyUserName { get; set; }
- /// <summary>
- /// ModifyTime
- /// </summary>
- public Nullable<System.DateTime> ModifyTime { get; set; }
- }
- }
|