| | | 1 | | using OzonOrdersWeb.WebServices.Orders.Grid; |
| | | 2 | | namespace OzonOrdersWeb.Areas.Studio2.ViewModels.OrdersGrid; |
| | | 3 | | |
| | | 4 | | /// <summary>Каркас страницы заказов на AG Grid: права на колонки и цвета статусов для рендереров.</summary> |
| | | 5 | | public sealed class OrdersGridIndexViewModel |
| | | 6 | | { |
| | 0 | 7 | | public IReadOnlyCollection<string> AllowedColumns { get; init; } = []; |
| | | 8 | | |
| | 0 | 9 | | public IReadOnlyDictionary<string, string> StatusColors { get; init; } = new Dictionary<string, string>(); |
| | | 10 | | |
| | 0 | 11 | | public IReadOnlyDictionary<string, string> ClientStatusColors { get; init; } = new Dictionary<string, string>(); |
| | | 12 | | |
| | 0 | 13 | | public bool IsAdmin { get; init; } |
| | | 14 | | |
| | 0 | 15 | | public bool IsAppSuperAdmin { get; init; } |
| | | 16 | | |
| | 0 | 17 | | public int BlockSize { get; init; } |
| | | 18 | | |
| | | 19 | | /// <summary>Настройки пользователя (key → JSON) для восстановления раскладки/фильтров/пресетов без второго запроса. |
| | | 20 | | /// <summary>Поля, доступные пользователю в формулах вычисляемых столбцов.</summary> |
| | 0 | 21 | | public IReadOnlyList<OrdersGridFormulaField> FormulaFields { get; init; } = []; |
| | | 22 | | |
| | 0 | 23 | | public IReadOnlyDictionary<string, string> UserSettings { get; init; } = new Dictionary<string, string>(); |
| | | 24 | | } |