LegalContractSupplementInfo.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. namespace ContractService.LegalContract
  7. {
  8. /// <summary>
  9. /// 补充合同
  10. /// </summary>
  11. [Table("Ls_LegalContractSupplements")]
  12. public class LegalContractSupplementInfo : CreationAuditedEntity<string, User>
  13. {
  14. /// <summary>
  15. /// 补充合同编号
  16. /// </summary>
  17. [MaxLength(50)]
  18. public string Code { get; set; }
  19. /// <summary>
  20. /// 补充合同名称
  21. /// </summary>
  22. [MaxLength(50)]
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// 合同信息
  26. /// </summary>
  27. [MaxLength(IwbConsts.PrimaryKey)]
  28. public string ContractNo { get; set; }
  29. [ForeignKey("ContractNo")]
  30. public LegalContractInfo ContractInfo { get; set; }
  31. /// <summary>
  32. /// 关键点信息
  33. /// </summary>
  34. [MaxLength(IwbConsts.PrimaryKey)]
  35. public string KeyPointNo { get; set; }
  36. [ForeignKey("KeyPointNo")]
  37. public LegalContractKeyPointInfo KeyPointInfo { get; set; }
  38. /// <summary>
  39. /// 内容信息
  40. /// </summary>
  41. [NotMapped] //不映射到数据库,内容存储到 LegalContractContentInfo
  42. public string ContentInfo { get; set; }
  43. [MaxLength(1000)]
  44. public string Remark { get; set; }
  45. }
  46. }