StaffRelatedInfo.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.LegalCase;
  7. using ContractService.LegalContract;
  8. namespace ContractService.Client
  9. {
  10. /// <summary>
  11. /// 客户关联关系
  12. /// </summary>
  13. [Table("Cs_StaffRelateInfos")]
  14. public class StaffRelatedInfo : CreationAuditedEntity<int, User>
  15. {
  16. /// <summary>
  17. /// 员工信息
  18. /// </summary>
  19. [MaxLength(IwbConsts.PrimaryKey)]
  20. public string StaffNo { get; set; }
  21. [ForeignKey("StaffNo")]
  22. public ClientStaffInfo StaffInfo { get; set; }
  23. /// <summary>
  24. /// 公司信息
  25. /// </summary>
  26. [MaxLength(IwbConsts.PrimaryKey)]
  27. public string CompanyNo { get; set; }
  28. [ForeignKey("CompanyNo")]
  29. public ClientCompanyInfo CompanyInfo { get; set; }
  30. /// <summary>
  31. /// 项目信息
  32. /// </summary>
  33. public string CaseNo { get; set; }
  34. [ForeignKey("CaseNo")]
  35. public LegalCaseInfo CaseInfo { get; set; }
  36. /// <summary>
  37. /// 合同信息
  38. /// </summary>
  39. public string ContractNo { get; set; }
  40. [ForeignKey("ContractNo")]
  41. public LegalContractInfo ContractInfo { get; set; }
  42. /// <summary>
  43. /// 关键点信息
  44. /// </summary>
  45. public string KeyPointNo { get; set; }
  46. [ForeignKey("KeyPointNo")]
  47. public LegalContractKeyPointInfo KeyPointInfo { get; set; }
  48. /// <summary>
  49. /// 关联类型
  50. /// </summary>
  51. public int RelatedType { get; set; }
  52. /// <summary>
  53. /// 主管类型
  54. /// </summary>
  55. public int MasterType { get; set; }
  56. }
  57. /// <summary>
  58. /// 公司关联类型定义
  59. /// </summary>
  60. public class StaffRelatedDefinition
  61. {
  62. /// <summary>
  63. /// 公司
  64. /// </summary>
  65. public const int Company = 1;
  66. /// <summary>
  67. /// 服务项目
  68. /// </summary>
  69. public const int LegalCase = 2;
  70. /// <summary>
  71. /// 法律合同
  72. /// </summary>
  73. public const int LegalContract = 3;
  74. /// <summary>
  75. /// 法律关键点
  76. /// </summary>
  77. public const int KeyPoint = 4;
  78. }
  79. /// <summary>
  80. /// 主管人类型定义
  81. /// </summary>
  82. public class StaffMasterDefinition
  83. {
  84. /// <summary>
  85. /// 公司负责人
  86. /// </summary>
  87. public const int CompanyMaster = 1;
  88. /// <summary>
  89. /// 主管人员
  90. /// </summary>
  91. public const int MasterStaff = 2;
  92. /// <summary>
  93. /// 普通人员
  94. /// </summary>
  95. public const int CommonStaff = 3;
  96. }
  97. }