CalendarPanel.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using Comal.Classes;
  4. using InABox.Configuration;
  5. using InABox.Core;
  6. using InABox.Wpf;
  7. using System.ComponentModel;
  8. using System.Windows;
  9. namespace PRSDesktop
  10. {
  11. public class CalendarPanel : Calendar, IPanel<Assignment>
  12. {
  13. public string SectionName { get; }
  14. public CalendarPanel() : base()
  15. {
  16. SectionName = "Calendar";
  17. LoadSettings += (sender) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Load();
  18. SaveSettings += (sender,properties) => new UserConfiguration<CalendarSettings>(nameof(CalendarPanel)).Save(properties);
  19. HeaderVisibility = Visibility.Visible;
  20. }
  21. public event DataModelUpdateEvent? OnUpdateDataModel;
  22. public void CreateToolbarButtons(IPanelHost host)
  23. {
  24. HumanResourcesSetupActions.SecurityGroups(host);
  25. host.CreateSetupSeparator();
  26. HumanResourcesSetupActions.EmployeeTeams(host);
  27. HumanResourcesSetupActions.EmployeeActivities(host);
  28. HumanResourcesSetupActions.EmployeeRosters(host);
  29. host.CreateSetupSeparator();
  30. HumanResourcesSetupActions.EmployeeOvertimeRules(host);
  31. HumanResourcesSetupActions.EmployeeOvertime(host);
  32. HumanResourcesSetupActions.EmployeeStandardLeave(host);
  33. }
  34. public Dictionary<string, object[]> Selected()
  35. {
  36. return new Dictionary<string, object[]>();
  37. }
  38. public void Heartbeat(TimeSpan time)
  39. {
  40. }
  41. public override void Setup()
  42. {
  43. base.Setup();
  44. }
  45. public override void Refresh()
  46. {
  47. base.Refresh();
  48. }
  49. }
  50. }