| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using System.ComponentModel.DataAnnotations; |
| | | 3 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 4 | | using WinSolutions.Sveta.Server.Data.DataModel.Kinds; |
| | | 5 | | |
| | | 6 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Entities |
| | | 7 | | { |
| | | 8 | | public class Department : ExternalRecord, ITrackableRecord |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Наименование |
| | | 12 | | /// </summary> |
| | | 13 | | [Required] |
| | 2895 | 14 | | public string Name { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Адрес фактический |
| | | 18 | | /// </summary> |
| | 2186 | 19 | | public Address ActualAddress { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Номер телефона ТТ |
| | | 23 | | /// </summary> |
| | | 24 | | [Required] |
| | 1682 | 25 | | public string PhoneNumber { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Контрагент |
| | | 29 | | /// </summary> |
| | | 30 | | [Required] |
| | 5437 | 31 | | public Contragent Contragent { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Пользователи |
| | | 35 | | /// </summary> |
| | 1105 | 36 | | public List<UserDepartment> UsersDepartments { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Площадь кв.м |
| | | 40 | | /// </summary> |
| | | 41 | | [Column(TypeName = "decimal(18,2)")] |
| | 1120 | 42 | | public decimal Area { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// КПП |
| | | 46 | | /// </summary> |
| | 1121 | 47 | | public string Kpp { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Email |
| | | 51 | | /// </summary> |
| | 0 | 52 | | public string Email { get; set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Тип подразделения |
| | | 56 | | /// </summary> |
| | 4516 | 57 | | public DepartmentsKind Kind { get; set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Статус подразделения |
| | | 61 | | /// </summary> |
| | 1683 | 62 | | public DepartmentsStatus Status { get; set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Кластер |
| | | 66 | | /// </summary> |
| | 1149 | 67 | | public Cluster Cluster { get; set; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Документы, где подразделение является складом-отправителем |
| | | 71 | | /// </summary> |
| | 0 | 72 | | public List<Movement> MovementsAsSender { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Документы, где подразделение является магазином-получателем |
| | | 76 | | /// </summary> |
| | 0 | 77 | | public List<Movement> MovementsAsReceiver { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Ключ кластера |
| | | 81 | | /// </summary> |
| | 0 | 82 | | public long? ClusterId { get; set; } |
| | | 83 | | } |
| | | 84 | | } |