Load purchasing dashboard live EKKO data

This commit is contained in:
2026-06-05 08:58:20 +02:00
parent baeee3e49b
commit 146c7481e1
4 changed files with 208 additions and 6 deletions
@@ -0,0 +1,20 @@
namespace TrafagSalesExporter.Services;
public interface IPurchasingDashboardService
{
Task<PurchasingDashboardLiveState> LoadAsync(CancellationToken cancellationToken = default);
}
public sealed class PurchasingDashboardLiveState
{
public bool SapReachable { get; set; }
public bool EkkoLoaded { get; set; }
public bool EkpoLoaded { get; set; }
public bool EketLoaded { get; set; }
public int PurchaseOrderCount { get; set; }
public int SupplierCount { get; set; }
public DateTime? LatestOrderDate { get; set; }
public int PositionSampleCount { get; set; }
public int ScheduleSampleCount { get; set; }
public string Message { get; set; } = string.Empty;
}