| | | 1 | | using Microsoft.AspNetCore.Mvc.Rendering; |
| | | 2 | | using OzonDomains.Models; |
| | | 3 | | using OzonRepositories.Context.Identity; |
| | | 4 | | using Services.ApiServices._1CApi.Models; |
| | | 5 | | using Services.ApiServices.OzonApi; |
| | | 6 | | |
| | | 7 | | namespace OzonOrdersWeb.ViewModels.OrderViewModels |
| | | 8 | | { |
| | | 9 | | public class MultiplayEditOrderViewModel |
| | | 10 | | { |
| | | 11 | | /// <summary>Разрешение «чтение» по полям сущности OrderList (FieldName → CanRead). Null = показывать всё.</summ |
| | 0 | 12 | | public IReadOnlyDictionary<string, bool>? OrderListFieldReadAccess { get; set; } |
| | 0 | 13 | | public List<Order> Orders { get; set; } = new(); |
| | 0 | 14 | | public List<Supplier> Suppliers { get; set; } = new(); |
| | 0 | 15 | | public int? RedirectPage { get; set; } |
| | 0 | 16 | | public string? TrackingKey { get; set; } |
| | 0 | 17 | | public DateTime OneCOperationDate { get; set; } |
| | | 18 | | |
| | 0 | 19 | | public CustomIdentityUser User { get; set; } = null!; |
| | | 20 | | |
| | 0 | 21 | | public decimal RateUSD { get; set; } |
| | 0 | 22 | | public decimal RateEUR { get; set; } |
| | 0 | 23 | | public decimal RateBYN { get; set; } |
| | 0 | 24 | | public bool ArmtekQuotationEnabled { get; set; } = true; |
| | 0 | 25 | | public bool ArmtekByQuotationEnabled { get; set; } = true; |
| | 0 | 26 | | public bool ShateMQuotationEnabled { get; set; } = true; |
| | 0 | 27 | | public bool AvdQuotationEnabled { get; set; } = true; |
| | 0 | 28 | | public bool BergQuotationEnabled { get; set; } = true; |
| | 0 | 29 | | public bool MotexQuotationEnabled { get; set; } = true; |
| | 0 | 30 | | public bool MlAutoQuotationEnabled { get; set; } = true; |
| | 0 | 31 | | public bool MlAutoRuQuotationEnabled { get; set; } = true; |
| | 0 | 32 | | public bool ForumAutoQuotationEnabled { get; set; } = true; |
| | 0 | 33 | | public bool ForumAutoInterpartsQuotationEnabled { get; set; } = true; |
| | 0 | 34 | | public bool ForumAutoPiterQuotationEnabled { get; set; } = true; |
| | 0 | 35 | | public bool ForumAutoRostovQuotationEnabled { get; set; } = true; |
| | 0 | 36 | | public bool ForumAutoIstraQuotationEnabled { get; set; } = true; |
| | 0 | 37 | | public string ForumAutoDisplayName { get; set; } = "Форум-Авто Союз (Ходынка)"; |
| | 0 | 38 | | public string ForumAutoInterpartsDisplayName { get; set; } = "Форум-Авто Интерпартс (Ходынка)"; |
| | 0 | 39 | | public string ForumAutoPiterDisplayName { get; set; } = "Форум-Авто Интерпартс (Питер)"; |
| | 0 | 40 | | public string ForumAutoRostovDisplayName { get; set; } = "Форум-Авто Интерпартс (Ростов)"; |
| | 0 | 41 | | public string ForumAutoIstraDisplayName { get; set; } = "Форум-Авто Интерпартс (Истра)"; |
| | 0 | 42 | | public bool FavoritPartsQuotationEnabled { get; set; } = true; |
| | 0 | 43 | | public bool FavoritPartsIstraQuotationEnabled { get; set; } = true; |
| | 0 | 44 | | public bool FavoritPartsRostovQuotationEnabled { get; set; } = true; |
| | 0 | 45 | | public bool MoskvorechieIstraQuotationEnabled { get; set; } = true; |
| | 0 | 46 | | public bool ProfitLigaQuotationEnabled { get; set; } = true; |
| | 0 | 47 | | public bool NikeiQuotationEnabled { get; set; } = true; |
| | 0 | 48 | | public bool MikadoMskHod20QuotationEnabled { get; set; } = false; |
| | 0 | 49 | | public bool ZZapMoscowQuotationEnabled { get; set; } = false; |
| | 0 | 50 | | public bool JapartsQuotationEnabled { get; set; } = true; |
| | | 51 | | |
| | | 52 | | /// <summary>Настройки разрешённых складов по ProviderKey (ProviderKey -> список WarehouseId). Пустой список/отс |
| | 0 | 53 | | public Dictionary<string, List<int>> ApiSupplierAllowedWarehouses { get; set; } = new(); |
| | | 54 | | |
| | 0 | 55 | | public string? ErrorMessage { get; set; } |
| | | 56 | | |
| | 0 | 57 | | public Dictionary<string, int> UniqueArticles { get; set; } = new(); |
| | 0 | 58 | | public Dictionary<string, int> UniqueDeliveryCitys { get; set; } = new(); |
| | 0 | 59 | | public Dictionary<string, int> UniqueNumbers { get; set; } = new(); |
| | 0 | 60 | | public Dictionary<int, string> OrderStatusWarnings { get; set; } = new(); |
| | 0 | 61 | | public Dictionary<int, OzonOrderCancelReasonsInfo> OzonPostingCancelReasons { get; set; } = new(); |
| | 0 | 62 | | public List<Warehouse> Warehouses { get; set; } = new(); |
| | 0 | 63 | | public AppStatus AppStatus { get; set; } = null!; |
| | 0 | 64 | | public List<string> ZasylValues { get; set; } = new(); |
| | 0 | 65 | | public List<string> CountryValues { get; set; } = new(); |
| | | 66 | | |
| | | 67 | | /// <summary>C0 из WarehouseStock по Order.Id (для ClearPurchasePriceOnLoad).</summary> |
| | 0 | 68 | | public Dictionary<int, decimal> WarehouseStockC0ByOrderId { get; set; } = new(); |
| | | 69 | | } |
| | | 70 | | } |