OrganizationInfo.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using ContractService.Authorization.Users;
  5. using ContractService.Configuration;
  6. using ContractService.LawFirm;
  7. namespace ContractService.Client
  8. {
  9. /// <summary>
  10. /// 客户组织结构
  11. /// </summary>
  12. [Table("Cs_ClientOrganizations")]
  13. public class OrganizationInfo : CreationAuditedEntity<string,User>
  14. {
  15. [MaxLength(IwbConsts.PrimaryKey)]
  16. public string ParentNo { get; set; }
  17. [ForeignKey("ParentNo")]
  18. public OrganizationInfo ParentInfo { get; set; }
  19. /// <summary>
  20. /// 组织名称
  21. /// </summary>
  22. [MaxLength(50)]
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// 组织描述
  26. /// </summary>
  27. [MaxLength(500)]
  28. public string Description { get; set; }
  29. /// <summary>
  30. /// 路径
  31. /// </summary>
  32. [MaxLength(1000)]
  33. public string Path { get; set; }
  34. /// <summary>
  35. /// 排序序号
  36. /// </summary>
  37. public int Sort { get; set; }
  38. /// <summary>
  39. /// 公司信息
  40. /// </summary>
  41. [MaxLength(IwbConsts.PrimaryKey)]
  42. public string CompanyNo { get; set; }
  43. [ForeignKey("CompanyNo")]
  44. public ClientCompanyInfo CompanyInfo { get; set; }
  45. /// <summary>
  46. /// 律所信息
  47. /// </summary>
  48. [MaxLength(IwbConsts.PrimaryKey)]
  49. public string LawFirmNo { get; set; }
  50. [ForeignKey("LawFirmNo")]
  51. public LawFirmInfo LawFirmInfo { get; set; }
  52. }
  53. }