1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Comal.Classes;
- using InABox.DynamicGrid;
- 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();
- });
- }
- }
|