using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities; using Abp.Domain.Entities.Auditing; using IwbZero.Authorization.Users; using ShwasherSys.Authorization.Users; namespace ShwasherSys.CompanyInfo { /// /// 人员信息维护 /// [Table("EmployeeInfo")] public class Employee:FullAuditedEntity { public const int NoMaxLength = 20; public const int NameMaxLength = 50; public const int CardIdMaxLength = 18; public const int PhoneMaxLength = 18; public const int DescMaxLength = 500; /// /// 人员编号 /// [MaxLength(NoMaxLength)] public string No { get; set; } /// /// 人员姓名 /// [MaxLength(NameMaxLength)] public string Name { get; set; } /// /// 身份证号 /// [MaxLength(CardIdMaxLength)] public string CardId { get; set; } /// /// 性别 /// public int Gender { get; set; } /// /// 手机号 /// [MaxLength(PhoneMaxLength)] public string PhoneNumber { get; set; } /// /// 部门 /// [MaxLength(20)] public string DepartmentNo { get; set; } /// /// 职务 /// [MaxLength(20)] public string DutyNo { get; set; } /// /// 详情 /// [MaxLength(DescMaxLength)] public string Description { get; set; } /// /// 登陆账号 /// [MaxLength(UserBase.MaxNameLength)] public string UserName { get; set; } public const int RemarkMaxLength = 500; [MaxLength(RemarkMaxLength)] public string Remark { get; set; } } [Table("NV_ViewEmployeeInfo")] public class ViewEmployee:Entity { public string No { get; set; } public string Name { get; set; } public string CardId { get; set; } public int Gender { get; set; } public string PhoneNumber { get; set; } public string DepartmentNo { get; set; } public string DepartmentName { get; set; } public string DutyNo { get; set; } public string DutyName { get; set; } public string Description { get; set; } public string UserName { get; set; } public string Remark { get; set; } } }