8524631508
- Replaced console app with .NET 8 Blazor Server architecture - Added EF Core SQLite database (trafag_exporter.db) with auto-seed data - Models: HanaServer, Site, SharePointConfig, ExportSettings, ExportLog, SalesRecord - Services: HanaQueryService (with configurable dateFilter), ExcelExportService, SharePointUploadService, ExportOrchestrationService (with live status events), TimerBackgroundService (scheduled daily export) - MudBlazor UI pages: Dashboard (export status + manual trigger), Standorte (HANA server + site CRUD), Settings (SharePoint + timer config), Logs (filtered view) - SAP HANA queries unchanged (INV + CRN with exact SAP B1 table joins) - SharePoint upload via Microsoft Graph with app registration auth https://claude.ai/code/session_012heAXNMbbyxqYf2S2HrKLj
22 lines
651 B
C#
22 lines
651 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TrafagSalesExporter.Models;
|
|
|
|
public class ExportLog
|
|
{
|
|
public int Id { get; set; }
|
|
public DateTime Timestamp { get; set; }
|
|
public int SiteId { get; set; }
|
|
|
|
[ForeignKey(nameof(SiteId))]
|
|
public Site? Site { get; set; }
|
|
|
|
public string Land { get; set; } = string.Empty;
|
|
public string TSC { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public int RowCount { get; set; }
|
|
public string? ErrorMessage { get; set; }
|
|
public string FileName { get; set; } = string.Empty;
|
|
public double DurationSeconds { get; set; }
|
|
}
|