| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using System.Collections.Generic;
- using Comal.Classes;
- using InABox.Configuration;
- using InABox.Core;
- using InABox.Wpf;
- using Microsoft.Exchange.WebServices.Data;
- namespace PRSDesktop
- {
- public class EmployeeResourcePlannerPanel : EmployeeResourcePlanner, IPanel<Assignment>
- {
- public EmployeeResourcePlannerPanel()
- {
- SectionName = nameof(EmployeeResourcePlannerPanel);
- LoadSettings += (sender) => new UserConfiguration<EmployeeResourcePlannerProperties>(nameof(EmployeeResourcePlannerPanel)).Load();
- SaveSettings += (sender, properties) => new UserConfiguration<EmployeeResourcePlannerProperties>(nameof(EmployeeResourcePlannerPanel)).Save(properties);
- }
-
- public string SectionName { get; }
-
- public DataModel DataModel(Selection selection)
- {
- return new AutoDataModel<Assignment>(new Filter<Assignment>(x=>x.ID).IsEqualTo(Guid.Empty));
- }
- public event DataModelUpdateEvent? OnUpdateDataModel;
-
- public bool IsReady { get; set; }
-
- public void CreateToolbarButtons(IPanelHost host)
- {
- 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[]>();
- }
- }
- }
|