123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- 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<SecurityGroup>("Security Groups", PRSDesktop.Resources.securitygroup, (action) =>
- {
- var list = new MasterList(typeof(SecurityGroup));
- list.ShowDialog();
- Security.Reset();
- });
- }
- public static void EmployeeGroups(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeeGroup>("Employee Groups", PRSDesktop.Resources.employees, (action) =>
- {
- var list = new MasterList(typeof(EmployeeGroup));
- list.ShowDialog();
- });
- }
- public static void EmployeePositions(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeePosition>("Positions", PRSDesktop.Resources.position, (action) =>
- {
- var list = new MasterList(typeof(EmployeePosition));
- list.ShowDialog();
- });
- }
- public static void EmployeeRoles(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeeRole>("Roles", PRSDesktop.Resources.employeerole, (action) =>
- {
- var list = new MasterList(typeof(Role));
- list.ShowDialog();
- });
- }
- public static void EmployeeTeams(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeeTeam>("Teams", PRSDesktop.Resources.team, (action) =>
- {
- var list = new MasterList(typeof(Team));
- list.ShowDialog();
- });
- }
- public static void EmployeeActivities(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<Activity>("Activities", PRSDesktop.Resources.quality, (action) =>
- {
- var list = new MasterList(typeof(Activity));
- list.ShowDialog();
- });
- }
- public static void EmployeeQualifications(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<Qualification>("Qualifications", PRSDesktop.Resources.certificate, (action) =>
- {
- var list = new MasterList(typeof(Qualification));
- list.ShowDialog();
- });
- }
- public static void EmployeeRosters(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeeRoster>("Rosters", PRSDesktop.Resources.assignments, (action) =>
- {
- var list = new MasterList(typeof(EmployeeRoster));
- list.ShowDialog();
- });
- }
- public static void EmployeeOvertimeRules(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<OvertimeRule>("Overtime Rules", PRSDesktop.Resources.overtime, (action) =>
- {
- var list = new MasterList(typeof(OvertimeRule));
- list.ShowDialog();
- });
- }
- public static void EmployeeOvertime(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<Overtime>("Overtime", PRSDesktop.Resources.overtime, (action) =>
- {
- var list = new MasterList(typeof(Overtime));
- list.ShowDialog();
- });
- }
- public static void EmployeeStandardLeave(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<StandardLeave>("Standard Leave", PRSDesktop.Resources.fireworks, (action) =>
- {
- var list = new MasterList(typeof(StandardLeave));
- list.ShowDialog();
- });
- }
- public static void EmployeeSpreadsheetTemplates(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<EmployeeSpreadsheet>("Spreadsheet Templates", PRSDesktop.Resources.box, (action) =>
- {
- SpreadsheetTemplateGrid.ViewSpreadsheetTemplates<Employee>();
- });
- }
- }
|