using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ContractService.Authorization.Users; using ContractService.Configuration; using ContractService.LegalCase; using ContractService.LegalContract; namespace ContractService.Client { /// /// 客户关联关系 /// [Table("Cs_StaffRelateInfos")] public class StaffRelatedInfo : CreationAuditedEntity { /// /// 员工信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string StaffNo { get; set; } [ForeignKey("StaffNo")] public ClientStaffInfo StaffInfo { get; set; } /// /// 公司信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string CompanyNo { get; set; } [ForeignKey("CompanyNo")] public ClientCompanyInfo CompanyInfo { get; set; } /// /// 项目信息 /// public string CaseNo { get; set; } [ForeignKey("CaseNo")] public LegalCaseInfo CaseInfo { get; set; } /// /// 合同信息 /// public string ContractNo { get; set; } [ForeignKey("ContractNo")] public LegalContractInfo ContractInfo { get; set; } /// /// 关键点信息 /// public string KeyPointNo { get; set; } [ForeignKey("KeyPointNo")] public LegalContractKeyPointInfo KeyPointInfo { get; set; } /// /// 关联类型 /// public int RelatedType { get; set; } /// /// 主管类型 /// public int MasterType { get; set; } } /// /// 公司关联类型定义 /// public class StaffRelatedDefinition { /// /// 公司 /// public const int Company = 1; /// /// 服务项目 /// public const int LegalCase = 2; /// /// 法律合同 /// public const int LegalContract = 3; /// /// 法律关键点 /// public const int KeyPoint = 4; } /// /// 主管人类型定义 /// public class StaffMasterDefinition { /// /// 公司负责人 /// public const int CompanyMaster = 1; /// /// 主管人员 /// public const int MasterStaff = 2; /// /// 普通人员 /// public const int CommonStaff = 3; } }