< Summary

Class:SVETA.Api.Data.DTO.DepartmentDTO.DepartmentGoodSettingRequestDTO_PUT
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DepartmentDTO/GoodSettingRequestDTO.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:43
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_MinQuantity()0%100%
get_PickingQuantum()0%100%
get_VendorCode()0%100%
get_ShowcaseVisible()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DepartmentDTO/GoodSettingRequestDTO.cs

#LineLine coverage
 1using DocumentFormat.OpenXml.Office2010.ExcelAc;
 2using System.Collections.Generic;
 3using SVETA.Api.Validation;
 4using System.ComponentModel.DataAnnotations;
 5namespace 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 = "Мин. партия поставки")]
 026        public decimal MinQuantity { get; set; }
 27
 28        /// <summary>
 29        /// Квант поставки
 30        /// </summary>
 31        [DigitValidate]
 32        [Display(Name = "Квант поставки")]
 033        public decimal PickingQuantum { get; set; }
 034        public string VendorCode { get; set; }
 035        public bool ShowcaseVisible { get; set; }
 36    }
 37
 38    public class DepartmentGoodSettingVisibilityDTO
 39    {
 40        public bool Visibility { get; set; }
 41        public List<long> Itemids { get; set; }
 42    }
 43}