AdoS0EmployeeMaster.cs 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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
  8. {
  9. [SugarColumn(ColumnName = "rec_id", 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_code", 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 = "birth_date", 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 = "date_employed", ColumnDescription = "入职日期", IsNullable = true)]
  32. public DateTime? DateEmployed { get; set; }
  33. [SugarColumn(ColumnName = "employment_status", ColumnDescription = "在职状态", Length = 50, IsNullable = true)]
  34. public string? EmploymentStatus { get; set; }
  35. [SugarColumn(ColumnName = "marital_status", ColumnDescription = "婚姻状况", Length = 50, IsNullable = true)]
  36. public string? MaritalStatus { get; set; }
  37. [SugarColumn(ColumnName = "job_title", ColumnDescription = "岗位", Length = 100, IsNullable = true)]
  38. public string? JobTitle { get; set; }
  39. [SugarColumn(ColumnName = "date_terminated", ColumnDescription = "离职日期", IsNullable = true)]
  40. public DateTime? DateTerminated { get; set; }
  41. [SugarColumn(ColumnName = "work_ctr", ColumnDescription = "工作中心", Length = 100, IsNullable = true)]
  42. public string? WorkCtr { get; set; }
  43. [SugarColumn(ColumnName = "car_id", ColumnDescription = "工号/卡号", Length = 100, IsNullable = true)]
  44. public string? CarId { get; set; }
  45. [SugarColumn(ColumnName = "default_work_location", ColumnDescription = "默认工作地点", Length = 100, IsNullable = true)]
  46. public string? DefaultWorkLocation { get; set; }
  47. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  48. public bool IsActive { get; set; } = true;
  49. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  50. public string? CreateUser { get; set; }
  51. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  52. public DateTime CreateTime { get; set; } = DateTime.Now;
  53. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  54. public string? UpdateUser { get; set; }
  55. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  56. public DateTime? UpdateTime { get; set; }
  57. /// <summary>列表展示:部门说明(不落库,来自 DepartmentMaster 关联)</summary>
  58. [SugarColumn(IsIgnore = true)]
  59. public string? DepartDescr { get; set; }
  60. /// <summary>列表展示:岗位名称(不落库,来自 GeneralizedCodeMaster 翻译)</summary>
  61. [SugarColumn(IsIgnore = true)]
  62. public string? JobTitleDisplay { get; set; }
  63. }