LawyerRelatedInfo.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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.LawFirm;
  7. using ContractService.LegalCase;
  8. using ContractService.LegalContract;
  9. namespace ContractService.Lawyer
  10. {
  11. /// <summary>
  12. /// 律师关联信息
  13. /// </summary>
  14. [Table("Ls_LawyerRelatedInfos")]
  15. public class LawyerRelatedInfo : CreationAuditedEntity<int, User>
  16. {
  17. /// <summary>
  18. /// 律师信息
  19. /// </summary>
  20. [Required]
  21. [Index]
  22. [MaxLength(IwbConsts.PrimaryKey)]
  23. public string LawyerNo { get; set; }
  24. [ForeignKey("LawyerNo")]
  25. public LawyerInfo LawyerInfo { get; set; }
  26. /// <summary>
  27. /// 关联类型
  28. /// </summary>
  29. [Index]
  30. public int RelatedType { get; set; }
  31. /// <summary>
  32. /// 律师主管类型
  33. /// </summary>
  34. [Index]
  35. public int MasterType { get; set; }
  36. /// <summary>
  37. /// 律所信息
  38. /// </summary>
  39. [MaxLength(IwbConsts.PrimaryKey)]
  40. public string LawFirmNo { get; set; }
  41. [ForeignKey("LawFirmNo")]
  42. public LawFirmInfo LawFirmInfo { get; set; }
  43. /// <summary>
  44. /// 项目信息
  45. /// </summary>
  46. [MaxLength(IwbConsts.PrimaryKey)]
  47. public string CaseNo { get; set; }
  48. [ForeignKey("CaseNo")]
  49. public LegalCaseInfo CaseInfo { get; set; }
  50. /// <summary>
  51. /// 合同信息
  52. /// </summary>
  53. [MaxLength(IwbConsts.PrimaryKey)]
  54. public string ContractNo { get; set; }
  55. [ForeignKey("ContractNo")]
  56. public LegalContractInfo ContractInfo { get; set; }
  57. [MaxLength(1000)]
  58. public string Remark { get; set; }
  59. }
  60. /// <summary>
  61. /// 律师关联类型定义
  62. /// </summary>
  63. public class LawyerRelatedDefinition
  64. {
  65. /// <summary>
  66. /// 律所
  67. /// </summary>
  68. public const int LawFirm = 1;
  69. ///// <summary>
  70. ///// 服务项目
  71. ///// </summary>
  72. //public const int LegalCase = 2;
  73. /// <summary>
  74. /// 法律合同
  75. /// </summary>
  76. public const int LegalContract = 3;
  77. }
  78. /// <summary>
  79. /// 主管律师类型定义
  80. /// </summary>
  81. public class LawyerMasterDefinition
  82. {
  83. /// <summary>
  84. /// 律所负责人
  85. /// </summary>
  86. public const int LawFirmMaster = 1;
  87. /// <summary>
  88. /// 主管律师
  89. /// </summary>
  90. public const int MasterLawyer = 2;
  91. /// <summary>
  92. /// 普通律师
  93. /// </summary>
  94. public const int CommonLawyer = 3;
  95. /// <summary>
  96. /// 律所合同
  97. /// </summary>
  98. public const int LawFirmContract = 4;
  99. }
  100. }