ProductUpdateDto.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using Abp.AutoMapper;
  3. using Abp.Application.Services.Dto;
  4. using System.ComponentModel.DataAnnotations;
  5. using ShwasherSys.ProductInfo;
  6. namespace ShwasherSys.ProductInfo.Dto
  7. {
  8. [AutoMapTo(typeof(Product))]
  9. public class ProductUpdateDto: EntityDto<string>
  10. {
  11. [Required]
  12. [StringLength(Product.ProductNameMaxLength)]
  13. public string ProductName { get; set; }
  14. [StringLength(Product.ModelMaxLength)]
  15. public string Model { get; set; }
  16. public int? StandardId { get; set; }
  17. [StringLength(Product.MaterialMaxLength)]
  18. public string Material { get; set; }
  19. [StringLength(Product.ProductDescMaxLength)]
  20. public string ProductDesc { get; set; }
  21. [StringLength(Product.SurfaceColorMaxLength)]
  22. public string SurfaceColor { get; set; }
  23. [StringLength(Product.RigidityMaxLength)]
  24. public string Rigidity { get; set; }
  25. public int Sequence { get; set; }
  26. [Required]
  27. [StringLength(Product.IsStandardMaxLength)]
  28. public string IsStandard { get; set; }
  29. public decimal? Defprice { get; set; }
  30. public decimal? TranUnitValue { get; set; }
  31. [StringLength(Product.PartNoMaxLength)]
  32. public string PartNo { get; set; }
  33. public string SpecialDesc { get; set; }
  34. public string ModelNo { get; set; }
  35. public string MaterialNo { get; set; }
  36. public string SurfaceColorNo { get; set; }
  37. public string RigidityNo { get; set; }
  38. public string SpecialNo { get; set; }
  39. public string PrevProductNo { get; set; }
  40. }
  41. }