| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 5 | | using System.Text; |
| | | 6 | | |
| | | 7 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Entities |
| | | 8 | | { |
| | | 9 | | public class PromoOffer : Promo |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Подразделение поставщика |
| | | 13 | | /// </summary> |
| | | 14 | | [Required] |
| | 0 | 15 | | public Department SupplierDepartment { get; set; } |
| | | 16 | | |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Минимальное количество |
| | | 20 | | /// </summary> |
| | | 21 | | [Required] |
| | | 22 | | [Column(TypeName = "decimal(18,2)")] |
| | 0 | 23 | | public decimal MinQuantity { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Максимальное количество |
| | | 27 | | /// </summary> |
| | | 28 | | [Column(TypeName = "decimal(18,2)")] |
| | 0 | 29 | | public decimal? MaxQuantity { get; set; } |
| | | 30 | | |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Дата начала действия предложения |
| | | 34 | | /// </summary> |
| | | 35 | | [Required] |
| | 0 | 36 | | public DateTime DateBegin { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Дата окончания действия предложения |
| | | 40 | | /// </summary> |
| | | 41 | | [Required] |
| | 0 | 42 | | public DateTime DateEnd { get; set; } |
| | | 43 | | |
| | 0 | 44 | | public virtual List<PromoBid> Bids { get; set; } |
| | | 45 | | } |
| | | 46 | | } |