OutFactory.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Abp.Domain.Entities;
  9. namespace ShwasherSys.BasicInfo.OutFactory
  10. {
  11. [Table("OutFactory")]
  12. public class OutFactory:Entity<string>
  13. {
  14. public const int OutFactoryNameMaxLength = 50;
  15. public const int LinkManMaxLength = 20;
  16. public const int AddressMaxLength = 150;
  17. public const int WebSiteMaxLength = 50;
  18. public const int TelephoneMaxLength = 50;
  19. public const int FaxMaxLength = 50;
  20. public const int ZipMaxLength = 6;
  21. public const int EmailMaxLength = 200;
  22. public const int UserIDLastModMaxLength = 20;
  23. public const int IsLockMaxLength = 1;
  24. [Required]
  25. [StringLength(OutFactoryNameMaxLength)]
  26. public string OutFactoryName { get; set; }
  27. [StringLength(LinkManMaxLength)]
  28. public string LinkMan { get; set; }
  29. [StringLength(AddressMaxLength)]
  30. public string Address { get; set; }
  31. [StringLength(WebSiteMaxLength)]
  32. public string WebSite { get; set; }
  33. [Column(TypeName = "smalldatetime")]
  34. public DateTime? TimeCreated { get; set; }
  35. [Column(TypeName = "smalldatetime")]
  36. public DateTime? TimeLastMod { get; set; }
  37. [StringLength(UserIDLastModMaxLength)]
  38. public string UserIDLastMod { get; set; }
  39. [Required]
  40. [StringLength(IsLockMaxLength)]
  41. public string IsLock { get; set; }
  42. [StringLength(TelephoneMaxLength)]
  43. public string Telephone { get; set; }
  44. [StringLength(FaxMaxLength)]
  45. public string Fax { get; set; }
  46. [StringLength(ZipMaxLength)]
  47. [Column("zip")]
  48. public string Zip { get; set; }
  49. [StringLength(EmailMaxLength)]
  50. public string Email { get; set; }
  51. }
  52. }