CalendarPanel.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. host.CreateSetupSeparator();
  34. HumanResourcesSetupActions.AssignmentCostingSettings(host);
  35. }
  36. public Dictionary<string, object[]> Selected()
  37. {
  38. return new Dictionary<string, object[]>();
  39. }
  40. public void Heartbeat(TimeSpan time)
  41. {
  42. }
  43. public override void Setup()
  44. {
  45. base.Setup();
  46. }
  47. public override void Refresh()
  48. {
  49. base.Refresh();
  50. }
  51. }
  52. }