CustomerUpdateDto.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using Abp.AutoMapper;
  3. using Abp.Application.Services.Dto;
  4. using System.ComponentModel.DataAnnotations;
  5. using ShwasherSys.CustomerInfo;
  6. namespace ShwasherSys.CustomerInfo.Dto
  7. {
  8. [AutoMapTo(typeof(Customer))]
  9. public class CustomerUpdateDto: EntityDto<string>
  10. {
  11. [Required]
  12. [StringLength(Customer.CustomerNameMaxLength)]
  13. public string CustomerName { get; set; }
  14. [StringLength(Customer.LinkManMaxLength)]
  15. public string LinkMan { get; set; }
  16. [StringLength(Customer.AddressMaxLength)]
  17. public string Address { get; set; }
  18. [StringLength(Customer.WebSiteMaxLength)]
  19. public string WebSite { get; set; }
  20. [StringLength(Customer.TelephoneMaxLength)]
  21. public string Telephone { get; set; }
  22. [StringLength(Customer.FaxMaxLength)]
  23. public string Fax { get; set; }
  24. [StringLength(Customer.ZipMaxLength)]
  25. public string Zip { get; set; }
  26. [StringLength(Customer.EmailMaxLength)]
  27. public string Email { get; set; }
  28. public int SaleType { get; set; }
  29. }
  30. }