using Comal.Classes; using InABox.Core; using InABox.DynamicGrid; using InABox.Wpf; using PRSDesktop.Components.Spreadsheet; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PRSDesktop; public static class HumanResourcesSetupActions { public static void SecurityGroups(IPanelHost host) { host.CreateSetupActionIfCanView("Security Groups", PRSDesktop.Resources.securitygroup, (action) => { var list = new MasterList(typeof(SecurityGroup)); list.ShowDialog(); Security.Reset(); }); } public static void EmployeeGroups(IPanelHost host) { host.CreateSetupActionIfCanView("Employee Groups", PRSDesktop.Resources.employees, (action) => { var list = new MasterList(typeof(EmployeeGroup)); list.ShowDialog(); }); } public static void EmployeePositions(IPanelHost host) { host.CreateSetupActionIfCanView("Positions", PRSDesktop.Resources.position, (action) => { var list = new MasterList(typeof(EmployeePosition)); list.ShowDialog(); }); } public static void EmployeeRoles(IPanelHost host) { host.CreateSetupActionIfCanView("Roles", PRSDesktop.Resources.employeerole, (action) => { var list = new MasterList(typeof(Role)); list.ShowDialog(); }); } public static void EmployeeTeams(IPanelHost host) { host.CreateSetupActionIfCanView("Teams", PRSDesktop.Resources.team, (action) => { var list = new MasterList(typeof(Team)); list.ShowDialog(); }); } public static void EmployeeActivities(IPanelHost host) { host.CreateSetupActionIfCanView("Activities", PRSDesktop.Resources.quality, (action) => { var list = new MasterList(typeof(Activity)); list.ShowDialog(); }); } public static void EmployeeQualifications(IPanelHost host) { host.CreateSetupActionIfCanView("Qualifications", PRSDesktop.Resources.certificate, (action) => { var list = new MasterList(typeof(Qualification)); list.ShowDialog(); }); } public static void EmployeeRosters(IPanelHost host) { host.CreateSetupActionIfCanView("Rosters", PRSDesktop.Resources.assignments, (action) => { var list = new MasterList(typeof(EmployeeRoster)); list.ShowDialog(); }); } public static void EmployeeOvertimeRules(IPanelHost host) { host.CreateSetupActionIfCanView("Overtime Rules", PRSDesktop.Resources.overtime, (action) => { var list = new MasterList(typeof(OvertimeRule)); list.ShowDialog(); }); } public static void EmployeeOvertime(IPanelHost host) { host.CreateSetupActionIfCanView("Overtime", PRSDesktop.Resources.overtime, (action) => { var list = new MasterList(typeof(Overtime)); list.ShowDialog(); }); } public static void EmployeeStandardLeave(IPanelHost host) { host.CreateSetupActionIfCanView("Standard Leave", PRSDesktop.Resources.fireworks, (action) => { var list = new MasterList(typeof(StandardLeave)); list.ShowDialog(); }); } public static void EmployeeSpreadsheetTemplates(IPanelHost host) { host.CreateSetupActionIfCanView("Spreadsheet Templates", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } }