| | | 1 | | namespace OzonOrdersWeb.Areas.Studio2.ViewModels.JobLogs; |
| | | 2 | | |
| | | 3 | | /// <summary>Сводка проведений 1С для карточек, диаграмм и Excel-выгрузки вкладки журнала.</summary> |
| | | 4 | | public sealed class JobLogsOneCStatisticsViewModel |
| | | 5 | | { |
| | | 6 | | public int PostingCount { get; init; } |
| | | 7 | | public int DocumentsCount { get; init; } |
| | | 8 | | public int OrdersCount { get; init; } |
| | | 9 | | public int ProductsCount { get; init; } |
| | | 10 | | public IReadOnlyList<JobLogsOneCStatisticsItemViewModel> ByResult { get; init; } = []; |
| | | 11 | | public IReadOnlyList<JobLogsOneCStatisticsItemViewModel> ByOperation { get; init; } = []; |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | /// <summary>Одна категория диаграммы и одноимённого листа Excel.</summary> |
| | | 15 | | public sealed record JobLogsOneCStatisticsItemViewModel(string Key, string Label, int PostingsCount, int DocumentsCount) |
| | | 16 | | |
| | | 17 | | /// <summary>Тело Excel-выгрузки: состояние грида и снимки диаграмм, созданные в браузере.</summary> |
| | | 18 | | public sealed class JobLogsOneCExcelExportRequest |
| | | 19 | | { |
| | 0 | 20 | | public OzonOrdersWeb.WebServices.Grid.ServerGridRequest? GridRequest { get; init; } |
| | 0 | 21 | | public string? ResultChartImage { get; init; } |
| | 0 | 22 | | public string? OperationChartImage { get; init; } |
| | | 23 | | } |