using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ContractService.Authorization.Users; using ContractService.Configuration; using ContractService.LawFirm; using ContractService.LegalCase; using ContractService.LegalContract; namespace ContractService.Lawyer { /// /// 律师关联信息 /// [Table("Ls_LawyerRelatedInfos")] public class LawyerRelatedInfo : CreationAuditedEntity { /// /// 律师信息 /// [Required] [Index] [MaxLength(IwbConsts.PrimaryKey)] public string LawyerNo { get; set; } [ForeignKey("LawyerNo")] public LawyerInfo LawyerInfo { get; set; } /// /// 关联类型 /// [Index] public int RelatedType { get; set; } /// /// 律师主管类型 /// [Index] public int MasterType { get; set; } /// /// 律所信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string LawFirmNo { get; set; } [ForeignKey("LawFirmNo")] public LawFirmInfo LawFirmInfo { get; set; } /// /// 项目信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string CaseNo { get; set; } [ForeignKey("CaseNo")] public LegalCaseInfo CaseInfo { get; set; } /// /// 合同信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string ContractNo { get; set; } [ForeignKey("ContractNo")] public LegalContractInfo ContractInfo { get; set; } [MaxLength(1000)] public string Remark { get; set; } } /// /// 律师关联类型定义 /// public class LawyerRelatedDefinition { /// /// 律所 /// public const int LawFirm = 1; ///// ///// 服务项目 ///// //public const int LegalCase = 2; /// /// 法律合同 /// public const int LegalContract = 3; } /// /// 主管律师类型定义 /// public class LawyerMasterDefinition { /// /// 律所负责人 /// public const int LawFirmMaster = 1; /// /// 主管律师 /// public const int MasterLawyer = 2; /// /// 普通律师 /// public const int CommonLawyer = 3; /// /// 律所合同 /// public const int LawFirmContract = 4; } }