| | | 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 PromoBid : Promo |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Промо предложение |
| | | 13 | | /// </summary> |
| | | 14 | | [Required] |
| | 0 | 15 | | public PromoOffer PromoOffer { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Подразделение заказчика |
| | | 19 | | /// </summary> |
| | | 20 | | [Required] |
| | 0 | 21 | | public Department CustomerDepartment { get; set; } |
| | | 22 | | |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Количество заявки |
| | | 26 | | /// </summary> |
| | | 27 | | [Required] |
| | | 28 | | [Column(TypeName = "decimal(18,2)")] |
| | 0 | 29 | | public decimal Quantity { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Сумма заявки |
| | | 33 | | /// </summary> |
| | | 34 | | [Required] |
| | | 35 | | [Column(TypeName = "decimal(18,2)")] |
| | 0 | 36 | | public decimal Sum { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Дата создания заявки |
| | | 40 | | /// </summary> |
| | | 41 | | [Required] |
| | 0 | 42 | | public DateTime CreationDate { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// Дата окончания действия заявки |
| | | 46 | | /// </summary> |
| | | 47 | | [Required] |
| | 0 | 48 | | public DateTime DateEnd { get; set; } |
| | | 49 | | |
| | | 50 | | } |
| | | 51 | | } |