123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Comal.Classes;
- using InABox.Core;
- 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 ProductSetupActions
- {
- public static void Standard(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<ProductDimensionUnit>("Product Dimensions", PRSDesktop.Resources.unitofmeasure, (action) =>
- {
- var list = new MasterList(typeof(ProductDimensionUnit));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<ProductGroup>("Product Groups", PRSDesktop.Resources.productgroup, (action) =>
- {
- var list = new MasterList(typeof(ProductGroup));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<ProductStyle>("Product Styles", PRSDesktop.Resources.palette, (action) =>
- {
- var list = new MasterList(typeof(ProductStyle));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<StockArea>("Stock Areas", PRSDesktop.Resources.rack, (action) =>
- {
- var list = new MasterList(typeof(StockArea));
- list.ShowDialog();
- });
- host.CreateSetupActionIfCanView<StockWarehouse>("Stock Warehouses", PRSDesktop.Resources.factorysetup, (action) =>
- {
- var list = new MasterList(typeof(StockWarehouse));
- list.ShowDialog();
- });
- }
- public static void ProductSpreadsheetTemplates(IPanelHost host)
- {
- host.CreateSetupActionIfCanView<ProductSpreadsheet>("Spreadsheet Templates", PRSDesktop.Resources.box, (action) =>
- {
- SpreadsheetTemplateGrid.ViewSpreadsheetTemplates<Product>();
- });
- }
- }
|