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; namespace PRSDesktop; public static class AccountsSetupActions { public static void Standard(IPanelHost host) { host.CreateSetupActionIfCanView("Contact Types", PRSDesktop.Resources.contacttype, (action) => { var list = new MasterList(typeof(ContactType)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Tax Codes", PRSDesktop.Resources.taxcode, (action) => { var list = new MasterList(typeof(TaxCode)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Receipt Types", PRSDesktop.Resources.receipt, (action) => { var list = new MasterList(typeof(ReceiptType)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Payment Types", PRSDesktop.Resources.payment, (action) => { var list = new MasterList(typeof(PaymentType)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Cost Centres", PRSDesktop.Resources.costcentre, (action) => { var list = new MasterList(typeof(CostCentre)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("GL Codes", PRSDesktop.Resources.glcode, (action) => { var list = new MasterList(typeof(GLCode)); list.ShowDialog(); }); host.CreateSetupActionIfCanView("Foreign Currencies", PRSDesktop.Resources.payment, (action) => { var list = new MasterList(typeof(ForeignCurrency)); list.ShowDialog(); }); } public static void PurchaseOrderCategories(IPanelHost host) { host.CreateSetupActionIfCanView("Purchase Order Categories", PRSDesktop.Resources.service, (action) => { var list = new MasterList(typeof(PurchaseOrderCategory)); list.ShowDialog(); }); } public static void CustomerSpreadsheetTemplates(IPanelHost host) { host.CreateSetupActionIfCanView("Customer Spreadsheet Templates", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } public static void SupplierSpreadsheetTemplates(IPanelHost host) { host.CreateSetupActionIfCanView("Supplier Spreadsheet Templates", PRSDesktop.Resources.box, (action) => { SpreadsheetTemplateGrid.ViewSpreadsheetTemplates(); }); } }