feat: implement Excel export functionality for monthly timesheets with template support
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
0d5b48b891
commit
e872fe200b
13 changed files with 584 additions and 0 deletions
15
Services/Exports/IMonthlyTimesheetExcelExportService.cs
Normal file
15
Services/Exports/IMonthlyTimesheetExcelExportService.cs
Normal 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue