ClientStaffInfo.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using Abp.Domain.Entities.Auditing;
  5. using ContractService.Authorization.Users;
  6. using ContractService.Configuration;
  7. namespace ContractService.Client
  8. {
  9. /// <summary>
  10. /// 客户员工
  11. /// </summary>
  12. [Table("Cs_ClientStaffs")]
  13. public class ClientStaffInfo : FullAuditedEntity<string, User>
  14. {
  15. /// <summary>
  16. /// 员工编号
  17. /// </summary>
  18. [MaxLength(50)]
  19. public string Code { get; set; }
  20. /// <summary>
  21. /// 员工姓名
  22. /// </summary>
  23. [MaxLength(50)]
  24. public string Name { get; set; }
  25. /// <summary>
  26. /// 员工描述
  27. /// </summary>
  28. [MaxLength(500)]
  29. public string Profile { get; set; }
  30. /// <summary>
  31. /// 出生日期
  32. /// </summary>
  33. public DateTime? Birthday { get; set; }
  34. /// <summary>
  35. /// 身份证号
  36. /// </summary>
  37. [MaxLength(20)]
  38. public string IdCard { get; set; }
  39. /// <summary>
  40. /// 联系号码
  41. /// </summary>
  42. [MaxLength(20)]
  43. public string PhoneNumber { get; set; }
  44. /// <summary>
  45. /// 备用号码
  46. /// </summary>
  47. [MaxLength(20)]
  48. public string PhoneNumber2 { get; set; }
  49. /// <summary>
  50. /// 系统登陆账号
  51. /// </summary>
  52. [MaxLength(20)]
  53. public string UserName { get; set; }
  54. /// <summary>
  55. /// 公司信息
  56. /// </summary>
  57. [MaxLength(IwbConsts.PrimaryKey)]
  58. public string CompanyNo { get; set; }
  59. [ForeignKey("CompanyNo")]
  60. public ClientCompanyInfo CompanyInfo { get; set; }
  61. /// <summary>
  62. /// 组织信息
  63. /// </summary>
  64. [MaxLength(IwbConsts.PrimaryKey)]
  65. public string OrganizationNo { get; set; }
  66. [ForeignKey("OrganizationNo")]
  67. public OrganizationInfo OrganizationInfo { get; set; }
  68. /// <summary>
  69. /// 电子邮箱
  70. /// </summary>
  71. [MaxLength(50)]
  72. public string Email { get; set; }
  73. [MaxLength(1000)]
  74. public string Remark { get; set; }
  75. }
  76. }