LicenseDocument.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using Abp.Domain.Entities.Auditing;
  5. using ShwasherSys.Authorization.Users;
  6. namespace ShwasherSys.CompanyInfo
  7. {
  8. /// <summary>
  9. /// 证照信息维护
  10. /// </summary>
  11. [Table("LicenseDocumentInfo")]
  12. public class LicenseDocument:FullAuditedEntity<int,SysUser>
  13. {
  14. public const int NoMaxLength = 50;
  15. public const int NameMaxLength = 50;
  16. public const int DescMaxLength = 500;
  17. public const int TypeMaxLength = CompanyInfo.LicenseType.NameMaxLength;
  18. public const int PathMaxLength = 300;
  19. /// <summary>
  20. /// 证照编码
  21. /// </summary>
  22. [MaxLength(NoMaxLength)]
  23. public string No { get; set; }
  24. /// <summary>
  25. /// 证照名称
  26. /// </summary>
  27. [MaxLength(NameMaxLength)]
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 证照描述
  31. /// </summary>
  32. [MaxLength(DescMaxLength)]
  33. public string Description { get; set; }
  34. /// <summary>
  35. /// 证照组
  36. /// </summary>
  37. [MaxLength(TypeMaxLength)]
  38. public string LicenseGroup { get; set; }
  39. /// <summary>
  40. /// 证照类型
  41. /// </summary>
  42. [MaxLength(TypeMaxLength)]
  43. public string LicenseType { get; set; }
  44. /// <summary>
  45. /// 附件路径
  46. /// </summary>
  47. [MaxLength(PathMaxLength)]
  48. public string FilePath { get; set; }
  49. /// <summary>
  50. /// 过期时间
  51. /// </summary>
  52. public DateTime ExpireDate { get; set; }
  53. public const int RemarkMaxLength = 500;
  54. [MaxLength(RemarkMaxLength)]
  55. public string Remark { get; set; }
  56. }
  57. }