123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using Comal.Classes;
- using InABox.Configuration;
- using InABox.Core;
- using InABox.Wpf;
- using System.ComponentModel;
- using System.Windows;
- namespace PRSDesktop
- {
- public class CalendarPanel : Calendar, IPanel<Assignment>
- {
- public string SectionName { get; }
-
- public CalendarPanel() : base()
- {
- SectionName = "Calendar";
- LoadSettings += (sender) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Load();
- SaveSettings += (sender,properties) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Save(properties);
- HeaderVisibility = Visibility.Visible;
- }
-
- public event DataModelUpdateEvent? OnUpdateDataModel;
-
- public void CreateToolbarButtons(IPanelHost host)
- {
- HumanResourcesSetupActions.SecurityGroups(host);
- host.CreateSetupSeparator();
- HumanResourcesSetupActions.EmployeeTeams(host);
- HumanResourcesSetupActions.EmployeeActivities(host);
- HumanResourcesSetupActions.EmployeeRosters(host);
- host.CreateSetupSeparator();
- HumanResourcesSetupActions.EmployeeOvertimeRules(host);
- HumanResourcesSetupActions.EmployeeOvertime(host);
- HumanResourcesSetupActions.EmployeeStandardLeave(host);
- }
- public Dictionary<string, object[]> Selected()
- {
- return new Dictionary<string, object[]>();
- }
- public void Heartbeat(TimeSpan time)
- {
-
- }
-
- public override void Setup()
- {
- base.Setup();
- }
-
- public override void Refresh()
- {
- base.Refresh();
- }
-
- }
- }
|