TemplateInfo.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using Abp.Domain.Entities;
  5. namespace ShwasherSys.Inspection
  6. {
  7. [Table("TemplateInfos")]
  8. public class TemplateInfo : Entity<int>
  9. {
  10. public const int ProductInspectNoMaxLength = 50;
  11. public const int ContentNoMaxLength = int.MaxValue;
  12. public const int NameMaxLength = 50;
  13. public const int DescriptionMaxLength = 500;
  14. public const int FileExtMaxLength = 50;
  15. public const int FilePathMaxLength = 300;
  16. public const int TempKeyMaxLength = 50;
  17. public const int ClassPathMaxLength = 100;
  18. [StringLength(ProductInspectNoMaxLength)]
  19. public string TemplateNo { get; set; }
  20. [StringLength(NameMaxLength)]
  21. public string Name { get; set; }
  22. [StringLength(DescriptionMaxLength)]
  23. public string Description { get; set; }
  24. /// <summary>
  25. /// 检验报告
  26. /// </summary>
  27. [StringLength(ContentNoMaxLength)]
  28. public string Content { get; set; }
  29. public int Type { get; set; }
  30. /// <summary>
  31. /// 模板信息标识键
  32. /// </summary>
  33. [StringLength(TempKeyMaxLength)]
  34. public string TempKey { get; set; }
  35. [StringLength(FilePathMaxLength)]
  36. public string FilePath { get; set; }
  37. [StringLength(FileExtMaxLength)]
  38. public string FileExt { get; set; }
  39. [StringLength(ClassPathMaxLength)]
  40. public string ClassPath { get; set; }
  41. }
  42. }