feat: implement Excel export functionality for monthly timesheets with template support

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Marco 2026-04-24 10:45:44 +02:00
commit e872fe200b
13 changed files with 584 additions and 0 deletions

View file

@ -0,0 +1,15 @@
namespace WorkTracker.Services.Exports;
public interface IMonthlyTimesheetExcelExportService
{
Task<MonthlyTimesheetExcelFile> ExportAsync(int year, int month, bool includePreview, CancellationToken cancellationToken = default);
}
public sealed class MonthlyTimesheetExcelFile
{
public required string FileName { get; init; }
public required byte[] Content { get; init; }
public string ContentType => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
}