< Summary

Information
Class: OzonOrdersWeb.ViewModels.OrderViewModels.MultiplayEditOrderViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/OrderViewModels/MultiplayEditOrderViewModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 49
Coverable lines: 49
Total lines: 70
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_OrderListFieldReadAccess()100%210%
get_Orders()100%210%
get_Suppliers()100%210%
get_RedirectPage()100%210%
get_TrackingKey()100%210%
get_OneCOperationDate()100%210%
get_User()100%210%
get_RateUSD()100%210%
get_RateEUR()100%210%
get_RateBYN()100%210%
get_ArmtekQuotationEnabled()100%210%
get_ArmtekByQuotationEnabled()100%210%
get_ShateMQuotationEnabled()100%210%
get_AvdQuotationEnabled()100%210%
get_BergQuotationEnabled()100%210%
get_MotexQuotationEnabled()100%210%
get_MlAutoQuotationEnabled()100%210%
get_MlAutoRuQuotationEnabled()100%210%
get_ForumAutoQuotationEnabled()100%210%
get_ForumAutoInterpartsQuotationEnabled()100%210%
get_ForumAutoPiterQuotationEnabled()100%210%
get_ForumAutoRostovQuotationEnabled()100%210%
get_ForumAutoIstraQuotationEnabled()100%210%
get_ForumAutoDisplayName()100%210%
get_ForumAutoInterpartsDisplayName()100%210%
get_ForumAutoPiterDisplayName()100%210%
get_ForumAutoRostovDisplayName()100%210%
get_ForumAutoIstraDisplayName()100%210%
get_FavoritPartsQuotationEnabled()100%210%
get_FavoritPartsIstraQuotationEnabled()100%210%
get_FavoritPartsRostovQuotationEnabled()100%210%
get_MoskvorechieIstraQuotationEnabled()100%210%
get_ProfitLigaQuotationEnabled()100%210%
get_NikeiQuotationEnabled()100%210%
get_MikadoMskHod20QuotationEnabled()100%210%
get_ZZapMoscowQuotationEnabled()100%210%
get_JapartsQuotationEnabled()100%210%
get_ApiSupplierAllowedWarehouses()100%210%
get_ErrorMessage()100%210%
get_UniqueArticles()100%210%
get_UniqueDeliveryCitys()100%210%
get_UniqueNumbers()100%210%
get_OrderStatusWarnings()100%210%
get_OzonPostingCancelReasons()100%210%
get_Warehouses()100%210%
get_AppStatus()100%210%
get_ZasylValues()100%210%
get_CountryValues()100%210%
get_WarehouseStockC0ByOrderId()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/OrderViewModels/MultiplayEditOrderViewModel.cs

#LineLine coverage
 1using Microsoft.AspNetCore.Mvc.Rendering;
 2using OzonDomains.Models;
 3using OzonRepositories.Context.Identity;
 4using Services.ApiServices._1CApi.Models;
 5using Services.ApiServices.OzonApi;
 6
 7namespace OzonOrdersWeb.ViewModels.OrderViewModels
 8{
 9    public class MultiplayEditOrderViewModel
 10    {
 11        /// <summary>Разрешение «чтение» по полям сущности OrderList (FieldName → CanRead). Null = показывать всё.</summ
 012        public IReadOnlyDictionary<string, bool>? OrderListFieldReadAccess { get; set; }
 013        public List<Order> Orders { get; set; } = new();
 014        public List<Supplier> Suppliers { get; set; } = new();
 015        public int? RedirectPage { get; set; }
 016        public string? TrackingKey { get; set; }
 017        public DateTime OneCOperationDate { get; set; }
 18
 019        public CustomIdentityUser User { get; set; } = null!;
 20
 021        public decimal RateUSD { get; set; }
 022        public decimal RateEUR { get; set; }
 023        public decimal RateBYN { get; set; }
 024        public bool ArmtekQuotationEnabled { get; set; } = true;
 025        public bool ArmtekByQuotationEnabled { get; set; } = true;
 026        public bool ShateMQuotationEnabled { get; set; } = true;
 027        public bool AvdQuotationEnabled { get; set; } = true;
 028        public bool BergQuotationEnabled { get; set; } = true;
 029        public bool MotexQuotationEnabled { get; set; } = true;
 030        public bool MlAutoQuotationEnabled { get; set; } = true;
 031        public bool MlAutoRuQuotationEnabled { get; set; } = true;
 032        public bool ForumAutoQuotationEnabled { get; set; } = true;
 033        public bool ForumAutoInterpartsQuotationEnabled { get; set; } = true;
 034        public bool ForumAutoPiterQuotationEnabled { get; set; } = true;
 035        public bool ForumAutoRostovQuotationEnabled { get; set; } = true;
 036        public bool ForumAutoIstraQuotationEnabled { get; set; } = true;
 037        public string ForumAutoDisplayName { get; set; } = "Форум-Авто Союз (Ходынка)";
 038        public string ForumAutoInterpartsDisplayName { get; set; } = "Форум-Авто Интерпартс (Ходынка)";
 039        public string ForumAutoPiterDisplayName { get; set; } = "Форум-Авто Интерпартс (Питер)";
 040        public string ForumAutoRostovDisplayName { get; set; } = "Форум-Авто Интерпартс (Ростов)";
 041        public string ForumAutoIstraDisplayName { get; set; } = "Форум-Авто Интерпартс (Истра)";
 042        public bool FavoritPartsQuotationEnabled { get; set; } = true;
 043        public bool FavoritPartsIstraQuotationEnabled { get; set; } = true;
 044        public bool FavoritPartsRostovQuotationEnabled { get; set; } = true;
 045        public bool MoskvorechieIstraQuotationEnabled { get; set; } = true;
 046        public bool ProfitLigaQuotationEnabled { get; set; } = true;
 047        public bool NikeiQuotationEnabled { get; set; } = true;
 048        public bool MikadoMskHod20QuotationEnabled { get; set; } = false;
 049        public bool ZZapMoscowQuotationEnabled { get; set; } = false;
 050        public bool JapartsQuotationEnabled { get; set; } = true;
 51
 52        /// <summary>Настройки разрешённых складов по ProviderKey (ProviderKey -> список WarehouseId). Пустой список/отс
 053        public Dictionary<string, List<int>> ApiSupplierAllowedWarehouses { get; set; } = new();
 54
 055        public string? ErrorMessage { get; set; }
 56
 057        public Dictionary<string, int> UniqueArticles { get; set; } = new();
 058        public Dictionary<string, int> UniqueDeliveryCitys { get; set; } = new();
 059        public Dictionary<string, int> UniqueNumbers { get; set; } = new();
 060        public Dictionary<int, string> OrderStatusWarnings { get; set; } = new();
 061        public Dictionary<int, OzonOrderCancelReasonsInfo> OzonPostingCancelReasons { get; set; } = new();
 062        public List<Warehouse> Warehouses { get; set; } = new();
 063        public AppStatus AppStatus { get; set; } = null!;
 064        public List<string> ZasylValues { get; set; } = new();
 065        public List<string> CountryValues { get; set; } = new();
 66
 67        /// <summary>C0 из WarehouseStock по Order.Id (для ClearPurchasePriceOnLoad).</summary>
 068        public Dictionary<int, decimal> WarehouseStockC0ByOrderId { get; set; } = new();
 69    }
 70}