| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using System.ComponentModel.DataAnnotations; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | using WinSolutions.Sveta.Server.Data.DataModel.Kinds; |
| | | 6 | | |
| | | 7 | | namespace SVETA.Api.Data.DTO |
| | | 8 | | { |
| | | 9 | | public class GoodDTO |
| | | 10 | | { |
| | 0 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | 0 | 14 | | public long CategoryId { get; set; } |
| | | 15 | | |
| | 0 | 16 | | public IdNameDTO Category { get; set; } |
| | | 17 | | |
| | | 18 | | [Required] |
| | 0 | 19 | | public BarCodeDTO MainBarcode { get; set; } |
| | | 20 | | |
| | 0 | 21 | | public List<BarCodeDTO> Barcodes { get; set; } |
| | | 22 | | |
| | 0 | 23 | | public string Name { get; set; } |
| | | 24 | | |
| | 0 | 25 | | public string VendorCode { get; set; } |
| | | 26 | | |
| | 0 | 27 | | public List<PhotoDTO> Photos { get; set; } |
| | | 28 | | |
| | | 29 | | [Required] |
| | 0 | 30 | | public decimal MinDeliveryLot { get; set; } |
| | | 31 | | |
| | | 32 | | [Required] |
| | 0 | 33 | | public int ExpirationDays { get; set; } |
| | | 34 | | |
| | | 35 | | [Required] |
| | 0 | 36 | | public decimal Weight { get; set; } |
| | | 37 | | |
| | | 38 | | [Required] |
| | 0 | 39 | | public decimal Width { get; set; } |
| | | 40 | | |
| | | 41 | | [Required] |
| | 0 | 42 | | public decimal Height { get; set; } |
| | | 43 | | |
| | | 44 | | [Required] |
| | 0 | 45 | | public decimal Thickness { get; set; } |
| | | 46 | | |
| | | 47 | | [Required] |
| | 0 | 48 | | public int VatId { get; set; } |
| | | 49 | | |
| | 0 | 50 | | public EnumDB_DTO VatKind { get; set; } |
| | | 51 | | |
| | 0 | 52 | | public string CustomDeclarationNumber { get; set; } |
| | | 53 | | |
| | | 54 | | [Required] |
| | 0 | 55 | | public int UnitKindId { get; set; } |
| | | 56 | | |
| | 0 | 57 | | public EnumDB_DTO UnitKind { get; set; } |
| | | 58 | | |
| | 0 | 59 | | public string ConformityCertNumber { get; set; } |
| | | 60 | | |
| | | 61 | | [Required] |
| | 0 | 62 | | public decimal GroupPackNesting { get; set; } |
| | | 63 | | |
| | | 64 | | [Required] |
| | 0 | 65 | | public decimal GroupPackWidth { get; set; } |
| | | 66 | | |
| | | 67 | | [Required] |
| | 0 | 68 | | public decimal GroupPackHeight { get; set; } |
| | | 69 | | |
| | | 70 | | [Required] |
| | 0 | 71 | | public decimal GroupPackThickness { get; set; } |
| | | 72 | | |
| | | 73 | | [Required] |
| | 0 | 74 | | public int PalletNesting { get; set; } |
| | | 75 | | |
| | 0 | 76 | | public long BrandId { get; set; } |
| | | 77 | | |
| | 0 | 78 | | public IdNameDTO Brand { get; set; } |
| | | 79 | | |
| | 0 | 80 | | public long SubBrandId { get; set; } |
| | | 81 | | |
| | 0 | 82 | | public IdNameDTO SubBrand { get; set; } |
| | | 83 | | |
| | 0 | 84 | | public long CountryId { get; set; } |
| | 0 | 85 | | public IdNameDTO Country { get; set; } |
| | | 86 | | |
| | 0 | 87 | | public bool IsActive { get; set; } |
| | | 88 | | |
| | 0 | 89 | | public string UniqueCode { get; set; } |
| | | 90 | | } |
| | | 91 | | } |