| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- 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
- {
- /// <summary>
- /// 律师关联信息
- /// </summary>
- [Table("Ls_LawyerRelatedInfos")]
- public class LawyerRelatedInfo : CreationAuditedEntity<int, User>
- {
- /// <summary>
- /// 律师信息
- /// </summary>
- [Required]
- [Index]
- [MaxLength(IwbConsts.PrimaryKey)]
- public string LawyerNo { get; set; }
- [ForeignKey("LawyerNo")]
- public LawyerInfo LawyerInfo { get; set; }
- /// <summary>
- /// 关联类型
- /// </summary>
- [Index]
- public int RelatedType { get; set; }
- /// <summary>
- /// 律师主管类型
- /// </summary>
- [Index]
- public int MasterType { get; set; }
- /// <summary>
- /// 律所信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string LawFirmNo { get; set; }
- [ForeignKey("LawFirmNo")]
- public LawFirmInfo LawFirmInfo { get; set; }
- /// <summary>
- /// 项目信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string CaseNo { get; set; }
- [ForeignKey("CaseNo")]
- public LegalCaseInfo CaseInfo { get; set; }
- /// <summary>
- /// 合同信息
- /// </summary>
- [MaxLength(IwbConsts.PrimaryKey)]
- public string ContractNo { get; set; }
- [ForeignKey("ContractNo")]
- public LegalContractInfo ContractInfo { get; set; }
- [MaxLength(1000)]
- public string Remark { get; set; }
- }
- /// <summary>
- /// 律师关联类型定义
- /// </summary>
- public class LawyerRelatedDefinition
- {
- /// <summary>
- /// 律所
- /// </summary>
- public const int LawFirm = 1;
- ///// <summary>
- ///// 服务项目
- ///// </summary>
- //public const int LegalCase = 2;
- /// <summary>
- /// 法律合同
- /// </summary>
- public const int LegalContract = 3;
- }
- /// <summary>
- /// 主管律师类型定义
- /// </summary>
- public class LawyerMasterDefinition
- {
-
- /// <summary>
- /// 律所负责人
- /// </summary>
- public const int LawFirmMaster = 1;
- /// <summary>
- /// 主管律师
- /// </summary>
- public const int MasterLawyer = 2;
- /// <summary>
- /// 普通律师
- /// </summary>
- public const int CommonLawyer = 3;
- /// <summary>
- /// 律所合同
- /// </summary>
- public const int LawFirmContract = 4;
- }
- }
|