LawyerInfo.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.Client;
  7. using ContractService.Configuration;
  8. using ContractService.LawFirm;
  9. namespace ContractService.Lawyer
  10. {
  11. /// <summary>
  12. /// 律师信息
  13. /// </summary>
  14. [Table("Ls_Lawyers")]
  15. public class LawyerInfo:FullAuditedEntity<string,User>
  16. {
  17. /// <summary>
  18. /// 律师编号
  19. /// </summary>
  20. [MaxLength(50)]
  21. public string Code { get; set; }
  22. /// <summary>
  23. /// 律师姓名
  24. /// </summary>
  25. [MaxLength(50)]
  26. public string Name { get; set; }
  27. /// <summary>
  28. /// 律师简介
  29. /// </summary>
  30. [MaxLength(500)]
  31. public string Profile { get; set; }
  32. /// <summary>
  33. /// 电子邮箱
  34. /// </summary>
  35. [MaxLength(50)]
  36. public string Email { get; set; }
  37. /// <summary>
  38. /// 出生日期
  39. /// </summary>
  40. public DateTime? Birthday { get; set; }
  41. /// <summary>
  42. /// 身份证号
  43. /// </summary>
  44. [MaxLength(20)]
  45. public string IdCard { get; set; }
  46. /// <summary>
  47. /// 联系号码
  48. /// </summary>
  49. [MaxLength(20)]
  50. public string PhoneNumber { get; set; }
  51. /// <summary>
  52. /// 备用号码
  53. /// </summary>
  54. [MaxLength(20)]
  55. public string PhoneNumber2 { get; set; }
  56. /// <summary>
  57. /// 系统登陆账号
  58. /// </summary>
  59. [MaxLength(20)]
  60. public string UserName { get; set; }
  61. /// <summary>
  62. /// 律所信息
  63. /// </summary>
  64. [MaxLength(IwbConsts.PrimaryKey)]
  65. public string LawFirmNo { get; set; }
  66. [ForeignKey("LawFirmNo")]
  67. public LawFirmInfo LawFirmInfo { get; set; }
  68. /// <summary>
  69. /// 组织信息
  70. /// </summary>
  71. [MaxLength(IwbConsts.PrimaryKey)]
  72. public string OrganizationNo { get; set; }
  73. [ForeignKey("OrganizationNo")]
  74. public OrganizationInfo OrganizationInfo { get; set; }
  75. [MaxLength(1000)]
  76. public string Remark { get; set; }
  77. [NotMapped]
  78. public bool IsMaster { get; set; }
  79. }
  80. }