| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using Abp.Domain.Entities.Auditing;
- using ContractService.Authorization.Users;
- using ContractService.Configuration;
- using ContractService.LawFirm;
- namespace ContractService.Client
- {
- /// <summary>
- /// 客户组织结构
- /// </summary>
- [Table("Cs_ClientOrganizations")]
- public class OrganizationInfo : CreationAuditedEntity<string,User>
- {
- [MaxLength(IwbConsts.PrimaryKey)]
- public string ParentNo { get; set; }
- [ForeignKey("ParentNo")]
- public OrganizationInfo ParentInfo { get; set; }
- /// <summary>
- /// 组织名称
- /// </summary>
- [MaxLength(50)]
- public string Name { get; set; }
- /// <summary>
- /// 组织描述
- /// </summary>
- [MaxLength(500)]
- public string Description { get; set; }
- /// <summary>
- /// 路径
- /// </summary>
- [MaxLength(1000)]
- public string Path { get; set; }
- /// <summary>
- /// 排序序号
- /// </summary>
- public int Sort { get; set; }
- /// <summary>
- /// 公司信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string CompanyNo { get; set; }
- [ForeignKey("CompanyNo")]
- public ClientCompanyInfo CompanyInfo { get; set; }
- /// <summary>
- /// 律所信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string LawFirmNo { get; set; }
- [ForeignKey("LawFirmNo")]
- public LawFirmInfo LawFirmInfo { get; set; }
- }
- }
|