CustomerInvoiceAddress.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using Abp.Domain.Entities;
  5. using Abp.Domain.Entities.Auditing;
  6. namespace ShwasherSys.CustomerInfo
  7. {
  8. [Table("CustomerInvoiceAddress")]
  9. public partial class CustomerInvoiceAddress:FullAuditedEntity<int>
  10. {
  11. //public int CustomerSendId { get; set; }
  12. public const int CustomerIdMaxLength = 30;
  13. public const int CustomerSendNameMaxLength = 150;
  14. public const int InvoiceAddressMaxLength = 250;
  15. public const int LinkManMaxLength = 30;
  16. public const int TelephoneMaxLength = 50;
  17. public const int ZipMaxLength = 8;
  18. public const int EmailMaxLength = 50;
  19. public const int MobileMaxLength = 50;
  20. public const int FaxMaxLength = 50;
  21. public const int IsLockMaxLength = 1;
  22. [Required]
  23. [StringLength(CustomerIdMaxLength)]
  24. public string CustomerId { get; set; }
  25. [Required]
  26. [StringLength(CustomerSendNameMaxLength)]
  27. public string InvoiceAddressName { get; set; }
  28. [Required]
  29. [StringLength(InvoiceAddressMaxLength)]
  30. public string InvoiceAddress { get; set; }
  31. [StringLength(LinkManMaxLength)]
  32. public string LinkMan { get; set; }
  33. [StringLength(TelephoneMaxLength)]
  34. public string Telephone { get; set; }
  35. [StringLength(ZipMaxLength)]
  36. public string Zip { get; set; }
  37. [StringLength(EmailMaxLength)]
  38. public string Email { get; set; }
  39. [StringLength(MobileMaxLength)]
  40. public string Mobile { get; set; }
  41. [StringLength(FaxMaxLength)]
  42. public string Fax { get; set; }
  43. }
  44. }