| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using Comal.Classes;
- using InABox.DynamicGrid;
- using InABox.Wpf;
- using PRSDesktop.Components.Spreadsheet;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PRSDesktop;
- public static class ProjectSetupActions
- {
- public static void JobStatuses(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<JobStatus>("Job Statuses", PRSDesktop.Resources.view, (action) =>
- {
- var list = new MasterList(typeof(JobStatus));
- list.ShowDialog();
- });
- }
- public static void DocumentMilestones(IPanelHost host)
- {
- host.CreateSetupAction("Document MileStones", PRSDesktop.Resources.revision, (action) =>
- {
- var list = new MasterList(typeof(JobDocumentSetMileStoneType));
- list.ShowDialog();
- });
- }
- public static void JobScopeStatuses(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<JobScope>("Job Scope Statuses", PRSDesktop.Resources.view, (action) =>
- {
- var list = new MasterList(typeof(JobScopeStatus));
- list.ShowDialog();
- });
- }
- public static void DrawingTemplates(IPanelHost host)
- {
- host.CreateSetupAction("Drawing Templates", PRSDesktop.Resources.doc_misc, (action) =>
- {
- var list = new MasterList(typeof(DrawingTemplate));
- list.ShowDialog();
- });
- }
- public static void JobSpreadsheetTemplates(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<JobSpreadsheet>("Spreadsheet Templates", PRSDesktop.Resources.box, (action) =>
- {
- SpreadsheetTemplateGrid.ViewSpreadsheetTemplates<Job>();
- });
- }
- public static void SetoutGroups(IPanelHost host)
- {
- host.CreateSetupActionIf<CanConfigureFactoryFloor>("Setout Groups", PRSDesktop.Resources.draw, (action) =>
- {
- var list = new MasterList(typeof(SetoutGroup));
- list.ShowDialog();
- });
- }
- }
|