ClientStaffInfoClone.cs 2.3 KB

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