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
26 lines
578 B
C#
26 lines
578 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TrafagSalesExporter.Models;
|
|
|
|
public class Site
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int HanaServerId { get; set; }
|
|
|
|
[ForeignKey(nameof(HanaServerId))]
|
|
public HanaServer? HanaServer { get; set; }
|
|
|
|
[Required]
|
|
public string Schema { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string TSC { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Land { get; set; } = string.Empty;
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
}
|