AdoS0EmployeeMaster.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
  2. /// <summary>
  3. /// 雇员主数据(复刻 EmployeeMaster)
  4. /// </summary>
  5. [SugarTable("EmployeeMaster", "雇员主数据(复刻 EmployeeMaster)")]
  6. [SugarIndex("uk_EmployeeMaster_domain_employee", nameof(DomainCode), OrderByType.Asc, nameof(Employee), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0EmployeeMaster : ITenantIdFilter
  8. {
  9. [SugarColumn(ColumnName = "RecID", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  12. public long CompanyRefId { get; set; }
  13. [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  14. public long FactoryRefId { get; set; }
  15. [SugarColumn(ColumnName = "Domain", ColumnDescription = "工厂域编码", Length = 50)]
  16. public string DomainCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "Employee", ColumnDescription = "员工编码", Length = 100)]
  18. public string Employee { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 200, IsNullable = true)]
  20. public string? Name { get; set; }
  21. [SugarColumn(ColumnName = "Sex", ColumnDescription = "性别", Length = 10, IsNullable = true)]
  22. public string? Sex { get; set; }
  23. [SugarColumn(ColumnName = "Phone", ColumnDescription = "电话", Length = 50, IsNullable = true)]
  24. public string? Phone { get; set; }
  25. [SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 200, IsNullable = true)]
  26. public string? Email { get; set; }
  27. [SugarColumn(ColumnName = "BirthDate", ColumnDescription = "出生日期", IsNullable = true)]
  28. public DateTime? BirthDate { get; set; }
  29. [SugarColumn(ColumnName = "Department", ColumnDescription = "部门编码", Length = 100, IsNullable = true)]
  30. public string? Department { get; set; }
  31. [SugarColumn(ColumnName = "DateEmployed", ColumnDescription = "入职日期", IsNullable = true)]
  32. public DateTime? DateEmployed { get; set; }
  33. [SugarColumn(ColumnName = "EmploymentStatus", ColumnDescription = "在职状态", Length = 50, IsNullable = true)]
  34. public string? EmploymentStatus { get; set; }
  35. [SugarColumn(ColumnName = "MaritalStatus", ColumnDescription = "婚姻状况", Length = 50, IsNullable = true)]
  36. public string? MaritalStatus { get; set; }
  37. [SugarColumn(ColumnName = "JobTitle", ColumnDescription = "岗位", Length = 100, IsNullable = true)]
  38. public string? JobTitle { get; set; }
  39. [SugarColumn(ColumnName = "DateTerminated", ColumnDescription = "离职日期", IsNullable = true)]
  40. public DateTime? DateTerminated { get; set; }
  41. [SugarColumn(ColumnName = "WorkCtr", ColumnDescription = "工作中心", Length = 100, IsNullable = true)]
  42. public string? WorkCtr { get; set; }
  43. [SugarColumn(ColumnName = "CarId", ColumnDescription = "工号/卡号", Length = 100, IsNullable = true)]
  44. public string? CarId { get; set; }
  45. [SugarColumn(ColumnName = "DefaultWorkLocation", ColumnDescription = "默认工作地点", Length = 100, IsNullable = true)]
  46. public string? DefaultWorkLocation { get; set; }
  47. [SugarColumn(ColumnName = "City", ColumnDescription = "城市", Length = 100, IsNullable = true)]
  48. public string? City { get; set; }
  49. [SugarColumn(ColumnName = "Country", ColumnDescription = "国家", Length = 100, IsNullable = true)]
  50. public string? Country { get; set; }
  51. [SugarColumn(ColumnName = "BusinessPhone", ColumnDescription = "业务电话", Length = 50, IsNullable = true)]
  52. public string? BusinessPhone { get; set; }
  53. [SugarColumn(ColumnName = "IsActive", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  54. public bool IsActive { get; set; } = true;
  55. [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  56. public string? CreateUser { get; set; }
  57. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间")]
  58. public DateTime CreateTime { get; set; } = DateTime.Now;
  59. [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  60. public string? UpdateUser { get; set; }
  61. [SugarColumn(ColumnName = "UpdateTime", ColumnDescription = "更新时间", IsNullable = true)]
  62. public DateTime? UpdateTime { get; set; }
  63. [SugarColumn(ColumnName = "sys_user_id", ColumnDescription = "关联系统账号ID(SysUser.Id;为空表示未绑定)", ColumnDataType = "bigint", IsNullable = true)]
  64. public long? SysUserId { get; set; }
  65. /// <summary>列表展示:部门说明(不落库,来自 DepartmentMaster 关联)</summary>
  66. [SugarColumn(IsIgnore = true)]
  67. public string? DepartDescr { get; set; }
  68. /// <summary>列表展示:岗位名称(不落库,来自 GeneralizedCodeMaster 翻译)</summary>
  69. [SugarColumn(IsIgnore = true)]
  70. public string? JobTitleDisplay { get; set; }
  71. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  72. public long? TenantId { get; set; }
  73. }