Factories.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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
  10. {
  11. [Table("Factories")]
  12. public class Factories:Entity<string>
  13. {
  14. public const int FactoryNameMaxLength = 100;
  15. public const int ShortNamesMaxLength = 20;
  16. public const int RegionIDMaxLength = 50;
  17. public const int FactoryURLMaxLength = 80;
  18. public const int AddressMaxLength = 100;
  19. public const int ZIPMaxLength = 50;
  20. public const int LinkManMaxLength = 50;
  21. public const int TelephoneMaxLength = 50;
  22. public const int RemarkMaxLength = 200;
  23. public const int IsLockMaxLength = 1;
  24. [Required]
  25. [StringLength(FactoryNameMaxLength)]
  26. public string FactoryName { get; set; }
  27. [Required]
  28. [StringLength(ShortNamesMaxLength)]
  29. public string ShortNames { get; set; }
  30. [Required]
  31. [StringLength(RegionIDMaxLength)]
  32. public string RegionID { get; set; }
  33. [StringLength(FactoryURLMaxLength)]
  34. public string FactoryURL { get; set; }
  35. [StringLength(AddressMaxLength)]
  36. public string Address { get; set; }
  37. [StringLength(ZIPMaxLength)]
  38. public string ZIP { get; set; }
  39. [StringLength(LinkManMaxLength)]
  40. public string LinkMan { get; set; }
  41. [StringLength(TelephoneMaxLength)]
  42. public string Telephone { get; set; }
  43. [StringLength(RemarkMaxLength)]
  44. public string Remark { get; set; }
  45. [Required]
  46. [StringLength(IsLockMaxLength)]
  47. public string IsLock { get; set; }
  48. }
  49. }