| | | 1 | | using DocumentFormat.OpenXml.Office2010.ExcelAc; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using SVETA.Api.Validation; |
| | | 4 | | using System.ComponentModel.DataAnnotations; |
| | | 5 | | namespace SVETA.Api.Data.DTO.DepartmentDTO |
| | | 6 | | { |
| | | 7 | | public class DepartmentGoodSettingRequestDTO_POST |
| | | 8 | | { |
| | | 9 | | [DigitValidate(CanBeZero = false, CanBeNegative = true)] |
| | | 10 | | [Display(Name = "Идентификатор товара")] |
| | | 11 | | public long GoodId { get; set; } |
| | | 12 | | [DigitValidate(CanBeZero = false, CanBeNegative = true)] |
| | | 13 | | [Display(Name = "Идентификатор подразделения")] |
| | | 14 | | public long DepartmentId { get; set; } |
| | | 15 | | public string VendorCode { get; set; } |
| | | 16 | | public bool ShowcaseVisible { get; set; } |
| | | 17 | | |
| | | 18 | | } |
| | | 19 | | public class DepartmentGoodSettingRequestDTO_PUT |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Мин. партия поставки |
| | | 23 | | /// </summary> |
| | | 24 | | [DigitValidate] |
| | | 25 | | [Display(Name = "Мин. партия поставки")] |
| | | 26 | | public decimal MinQuantity { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Квант поставки |
| | | 30 | | /// </summary> |
| | | 31 | | [DigitValidate] |
| | | 32 | | [Display(Name = "Квант поставки")] |
| | | 33 | | public decimal PickingQuantum { get; set; } |
| | | 34 | | public string VendorCode { get; set; } |
| | | 35 | | public bool ShowcaseVisible { get; set; } |
| | | 36 | | } |
| | | 37 | | |
| | | 38 | | public class DepartmentGoodSettingVisibilityDTO |
| | | 39 | | { |
| | 0 | 40 | | public bool Visibility { get; set; } |
| | 0 | 41 | | public List<long> Itemids { get; set; } |
| | | 42 | | } |
| | | 43 | | } |