| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- 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
- {
- /// <summary>
- /// 客户关联关系
- /// </summary>
- [Table("Cs_StaffRelateInfos")]
- public class StaffRelatedInfo : CreationAuditedEntity<int, User>
- {
- /// <summary>
- /// 员工信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string StaffNo { get; set; }
- [ForeignKey("StaffNo")]
- public ClientStaffInfo StaffInfo { get; set; }
- /// <summary>
- /// 公司信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string CompanyNo { get; set; }
- [ForeignKey("CompanyNo")]
- public ClientCompanyInfo CompanyInfo { get; set; }
- /// <summary>
- /// 项目信息
- /// </summary>
- public string CaseNo { get; set; }
- [ForeignKey("CaseNo")]
- public LegalCaseInfo CaseInfo { get; set; }
- /// <summary>
- /// 合同信息
- /// </summary>
- public string ContractNo { get; set; }
- [ForeignKey("ContractNo")]
- public LegalContractInfo ContractInfo { get; set; }
- /// <summary>
- /// 关键点信息
- /// </summary>
- public string KeyPointNo { get; set; }
- [ForeignKey("KeyPointNo")]
- public LegalContractKeyPointInfo KeyPointInfo { get; set; }
- /// <summary>
- /// 关联类型
- /// </summary>
- public int RelatedType { get; set; }
- /// <summary>
- /// 主管类型
- /// </summary>
- public int MasterType { get; set; }
- }
- /// <summary>
- /// 公司关联类型定义
- /// </summary>
- public class StaffRelatedDefinition
- {
- /// <summary>
- /// 公司
- /// </summary>
- public const int Company = 1;
- /// <summary>
- /// 服务项目
- /// </summary>
- public const int LegalCase = 2;
- /// <summary>
- /// 法律合同
- /// </summary>
- public const int LegalContract = 3;
- /// <summary>
- /// 法律关键点
- /// </summary>
- public const int KeyPoint = 4;
- }
- /// <summary>
- /// 主管人类型定义
- /// </summary>
- public class StaffMasterDefinition
- {
- /// <summary>
- /// 公司负责人
- /// </summary>
- public const int CompanyMaster = 1;
- /// <summary>
- /// 主管人员
- /// </summary>
- public const int MasterStaff = 2;
- /// <summary>
- /// 普通人员
- /// </summary>
- public const int CommonStaff = 3;
- }
- }
|