| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | |
| | | 6 | | namespace SVETA.Api.Data.DTO.Showcase |
| | | 7 | | { |
| | | 8 | | public class ShowcaseListGoodDTO |
| | | 9 | | { |
| | 0 | 10 | | public ShowcaseListGoodDTO(ShowcaseGoodDTO good) |
| | 0 | 11 | | { |
| | 0 | 12 | | Id = good.Id; |
| | 0 | 13 | | Category = good.Category; |
| | 0 | 14 | | Name = good.Name; |
| | 0 | 15 | | VendorCode = good.VendorCode; |
| | 0 | 16 | | Photos = good.Photos.Select(x => new ShowcasePhotoDTO { PreviewUrl = x.PreviewUrl , PreviewHeight = x.Previe |
| | 0 | 17 | | MinDeliveryLot = good.MinDeliveryLot; |
| | 0 | 18 | | UnitKind = good.UnitKind; |
| | 0 | 19 | | Brand = good.Brand; |
| | 0 | 20 | | SubBrand = good.SubBrand; |
| | 0 | 21 | | Country = good.Country; |
| | 0 | 22 | | RestQuantity = good.RestQuantity; |
| | 0 | 23 | | MinQuantity = good.MinQuantity; |
| | 0 | 24 | | PickingQuantum = good.PickingQuantum; |
| | 0 | 25 | | Price = good.Price; |
| | 0 | 26 | | OldPrice = good.OldPrice; |
| | 0 | 27 | | Discount = good.Discount; |
| | 0 | 28 | | LabelColor = good.LabelColor; |
| | 0 | 29 | | TextColor = good.TextColor; |
| | 0 | 30 | | UniqueCode = good.UniqueCode; |
| | 0 | 31 | | Transparency = good.Transparency; |
| | 0 | 32 | | Labels = good.Labels; |
| | 0 | 33 | | } |
| | | 34 | | |
| | 0 | 35 | | public long Id { get; set; } |
| | | 36 | | |
| | 0 | 37 | | public CategoryForFeedDTO Category { get; set; } |
| | | 38 | | |
| | 0 | 39 | | public string Name { get; set; } |
| | | 40 | | |
| | 0 | 41 | | public string VendorCode { get; set; } |
| | | 42 | | |
| | 0 | 43 | | public List<ShowcasePhotoDTO> Photos { get; set; } |
| | | 44 | | |
| | 0 | 45 | | public List<ShowcaseGoodLabelDTO> Labels { get; set; } |
| | | 46 | | |
| | 0 | 47 | | public decimal MinDeliveryLot { get; set; } |
| | | 48 | | |
| | 0 | 49 | | public EnumDB_DTO UnitKind { get; set; } |
| | | 50 | | |
| | 0 | 51 | | public IdNameDTO Brand { get; set; } |
| | | 52 | | |
| | 0 | 53 | | public IdNameDTO SubBrand { get; set; } |
| | | 54 | | |
| | 0 | 55 | | public IdNameDTO Country { get; set; } |
| | | 56 | | |
| | 0 | 57 | | public decimal RestQuantity { get; set; } |
| | | 58 | | |
| | 0 | 59 | | public decimal MinQuantity { get; set; } |
| | | 60 | | |
| | 0 | 61 | | public decimal PickingQuantum { get; set; } |
| | | 62 | | |
| | 0 | 63 | | public decimal Price { get; set; } |
| | | 64 | | |
| | 0 | 65 | | public decimal? OldPrice { get; set; } |
| | | 66 | | |
| | 0 | 67 | | public int? Discount { get; set; } |
| | | 68 | | |
| | 0 | 69 | | public string LabelColor { get; set; } |
| | | 70 | | |
| | 0 | 71 | | public string TextColor { get; set; } |
| | | 72 | | |
| | 0 | 73 | | public string UniqueCode { get; set; } |
| | | 74 | | |
| | 0 | 75 | | public decimal Transparency { get; set; } |
| | | 76 | | } |
| | | 77 | | } |