123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using Comal.Classes;
- using InABox.DynamicGrid;
- using InABox.Wpf;
- using PRSDesktop.Components.Spreadsheet;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using InABox.Core;
- using InABox.WPF;
- namespace PRSDesktop;
- public static class QuoteSetupActions
- {
- public static void Standard(IPanelHost host)
- {
- if (Security.CanView<Kit>())
- host.CreateSetupAction("Product Kits", PRSDesktop.Resources.kit, (action) =>
- {
-
- });
-
-
- host.CreateSetupActionIf<CanModifyQuoteStatuses>("Status Codes", PRSDesktop.Resources.quotestatus, (action) =>
- {
- var list = new MasterList(typeof(QuoteStatus));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<QuoteDesignSection>("Design Sections", PRSDesktop.Resources.design, (action) =>
- {
- var list = new MasterList(typeof(QuoteDesignSection));
- list.ShowDialog();
- });
- host.CreateSetupSeparator();
- host.CreateSetupActionIfCanView<KitCondition>("Kit Conditions", PRSDesktop.Resources.kitcondition, (action) =>
- {
- var list = new MasterList(typeof(KitCondition));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<KitFormula>("Kit Formulae", PRSDesktop.Resources.kitformula, (action) =>
- {
- var list = new MasterList(typeof(KitFormula));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<CostSheetType>("Cost Sheet Types", PRSDesktop.Resources.costsheettype, (action) =>
- {
- var list = new MasterList(typeof(CostSheetType));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<CostSheetBrand>("Cost Sheet Brands", PRSDesktop.Resources.costsheetbrand, (action) =>
- {
- var list = new MasterList(typeof(CostSheetBrand));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<CostSheetSection>("Cost Sheet Sections", PRSDesktop.Resources.costsheetsection, (action) =>
- {
- var list = new MasterList(typeof(CostSheetSection));
- list.ShowDialog();
- });
-
-
- host.CreateSetupSeparator();
- host.CreateSetupActionIfCanView<QuoteDiagramSymbol>("Symbols", PRSDesktop.Resources.pencil, (action) =>
- {
- var list = new MasterList(typeof(QuoteDiagramSymbol), "Section.Name");
- list.ShowDialog();
- QuoteDiagramSymbolCache.Refresh();
- });
- host.CreateSetupActionIfCanView<QuoteDiagramSymbol>("Symbol Types", PRSDesktop.Resources.attachment, (action) =>
- {
- var list = new MasterList(typeof(QuoteDiagramSymbolSection));
- list.ShowDialog();
- QuoteDiagramSymbolCache.Refresh();
- });
- host.CreateSetupActionIfCanView<QuoteTakeOffUnit>("Dimension Types", PRSDesktop.Resources.box, (action) =>
- {
- var list = new MasterList(typeof(QuoteTakeOffUnit));
- list.ShowDialog();
- });
- host.CreateSetupSeparator();
- host.CreateSetupActionIfCanView<QuoteSpreadsheet>("Job Statuses", PRSDesktop.Resources.box, (action) =>
- {
- SpreadsheetTemplateGrid.ViewSpreadsheetTemplates<Quote>();
- });
- }
- }
|