1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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 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<TreatmentType>("Treatment Types", PRSDesktop.Resources.palette, (action) =>
- {
- var list = new MasterList(typeof(TreatmentType));
- 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>();
- });
- }
- }
|