- add GenerateRandomTimeSheets function to generate TimeSheets with Google Calendar and fix them with rnd entry's to fit person hours

This commit is contained in:
leander19961
2025-11-16 03:47:01 +01:00
parent d668890370
commit 7c34192b18
4 changed files with 149 additions and 12 deletions

View File

@@ -129,8 +129,11 @@ public partial class LeanderShiftPlannerMainWindow : Window
{
try
{
_appService.PersonService.ClearTimeSheets();
ProgressbarCalculaion.IsIndeterminate = true;
await _appService.TimesheetService.GenerateGoogleTimeSheets(_appService.PersonService.GetGoogleTimeSheetList());
await _appService.TimesheetService.GenerateGoogleTimeSheets(_appService.PersonService.GetGoogleTimeSheetList(), false);
await _appService.TimesheetService.GenerateGoogleTimeSheets(_appService.PersonService.GetRandomGoogleTimeSheetList(), true);
await _appService.TimesheetService.GenerateRandomTimeSheets(_appService.PersonService.GetRandomTimeSheetList());
ProgressbarCalculaion.IsIndeterminate = false;