1091 lines
73 KiB
C#
1091 lines
73 KiB
C#
using Sarand.BusinessMgr.Net.Standard.Base.Bus;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
|
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.ReferenceData;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
|
{
|
|
//=======================================================================
|
|
// S B M S y s t e m - S t a t i c s
|
|
//=======================================================================
|
|
public abstract partial class SbmSystem : SacsSystem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// SBM System - Static initialisation.
|
|
|
|
//-------------------------------------------------------------------
|
|
// System code types.
|
|
private static Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>> systemCodes = new Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>>();
|
|
// Code types.
|
|
private static List<TypeCodeDesc> codeTypes = new List<TypeCodeDesc>();
|
|
|
|
//-------------------------------------------------------------------
|
|
// Static initialisation.
|
|
static SbmSystem()
|
|
{
|
|
// Static Code initialisation.
|
|
|
|
//---------------------------------------------------------------
|
|
// C o d e T y p e
|
|
//---------------------------------------------------------------
|
|
// Commodity.
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityCategory, "CmdCat", "Commodity category");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityRange, "CmdRange", "Commodity range");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityColour, "CmdColour", "Commodity colour");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommoditySource, "CmdSource", "CommoditySource");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommoditySupplyMethod, "CmdSuppMeth", "Commodity supply method");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityHandling, "CmdHand", "Commodity handling");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityDelivery, "CmdDeliv", "Commodity delivery");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityMaterial, "CmdMtl", "Commodity material");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityFinish, "CmdFin", "Commodity finish");
|
|
codeTypes.Add(Sbm.ApplCodeType.CommodityPromotion, "CmdPromo", "Commodity promotion");
|
|
// Processes.
|
|
codeTypes.Add(Sbm.ApplCodeType.ProcessType, "ProcType", "Process type");
|
|
codeTypes.Add(Sbm.ApplCodeType.ReferType, "ReferType", "Referral type");
|
|
codeTypes.Add(Sbm.ApplCodeType.TaskCategory, "TaskCategory", "Task category");
|
|
// Assets.
|
|
codeTypes.Add(Sbm.ApplCodeType.AssetSellCategory, "AssSellCat", "Asset sell category");
|
|
codeTypes.Add(Sbm.ApplCodeType.VehicleCategory, "VehCat", "Vehicle category");
|
|
codeTypes.Add(Sbm.ApplCodeType.VehicleMake, "VehMake", "Vehicle make");
|
|
codeTypes.Add(Sbm.ApplCodeType.VehicleServiceHistory, "VehSrvHist", "Vehicle service history");
|
|
codeTypes.Add(Sbm.ApplCodeType.VehicleInsurance, "VehInsur", "Vehicle insurance");
|
|
codeTypes.Add(Sbm.ApplCodeType.VehicleTacho, "VehTacho", "Vehicle tacho");
|
|
// HPI vehicle features.
|
|
codeTypes.Add(Sbm.ApplCodeType.HpiVehicleMake, "HpiVehMake", "HPI vehicle make");
|
|
codeTypes.Add(Sbm.ApplCodeType.HpiVehicleModel, "HpiVehModl", "HPI vehicle model");
|
|
codeTypes.Add(Sbm.ApplCodeType.HpiVehicleColour, "HpiVehColr", "HPI vehicle colour");
|
|
codeTypes.Add(Sbm.ApplCodeType.HpiVehicleFuel, "HpiVehFuel", "HPI vehicle fuel");
|
|
codeTypes.Add(Sbm.ApplCodeType.HpiVehicleTrans, "HpiVehTran", "HPI vehicle transmission");
|
|
// Contact management.
|
|
codeTypes.Add(Sbm.ApplCodeType.AccountManager, "AccMgr", "Account manager");
|
|
codeTypes.Add(Sbm.ApplCodeType.AccountHandler, "AccHndlr", "Account handler");
|
|
codeTypes.Add(Sbm.ApplCodeType.AccountType, "AccType", "Account type");
|
|
codeTypes.Add(Sbm.ApplCodeType.AccountRating, "AccRate", "Account rating");
|
|
codeTypes.Add(Sbm.ApplCodeType.ContactTitle, "ContTitle", "Contact title");
|
|
codeTypes.Add(Sbm.ApplCodeType.ContactArea, "ContArea", "Contact area");
|
|
codeTypes.Add(Sbm.ApplCodeType.ContactHandler, "ContHndlr", "Contact handler");
|
|
codeTypes.Add(Sbm.ApplCodeType.ContactMethod, "ContMeth", "Contact method");
|
|
codeTypes.Add(Sbm.ApplCodeType.ContactCallCycle, "ContCallCyc", "Contact call cycle");
|
|
codeTypes.Add(Sbm.ApplCodeType.SeasonalCategory, "SeasnlCat", "Seasonal category");
|
|
codeTypes.Add(Sbm.ApplCodeType.OrderLeadTime, "OrdLeadTime", "Order lead time");
|
|
// Cost estimates.
|
|
codeTypes.Add(Sbm.ApplCodeType.CostPerUnit, "CstPerUnit", "Cost per unit");
|
|
codeTypes.Add(Sbm.ApplCodeType.CostPerJob, "CstPerJob", "Cost per job");
|
|
codeTypes.Add(Sbm.ApplCodeType.LabourPerUnit, "LbrPerUnit", "Labour cost per unit");
|
|
codeTypes.Add(Sbm.ApplCodeType.LabourPerJob, "LbrPerJob", "Labour cost per job");
|
|
// Orders/Jobs.
|
|
codeTypes.Add(Sbm.ApplCodeType.Department, "Dept", "Department");
|
|
codeTypes.Add(Sbm.ApplCodeType.PostcodeArea, "PcodeArea", "Postcode area");
|
|
codeTypes.Add(Sbm.ApplCodeType.ProductMaterialSource, "MtlSrc", "Product material source");
|
|
codeTypes.Add(Sbm.ApplCodeType.ProductionMachine, "PrdMchn", "Production machine");
|
|
codeTypes.Add(Sbm.ApplCodeType.JobResponse, "JobResp", "Job response");
|
|
codeTypes.Add(Sbm.ApplCodeType.JobTrade, "JobTrade", "Job trade");
|
|
codeTypes.Add(Sbm.ApplCodeType.JobEngineer, "JobEngineer", "Job engineer");
|
|
// Orders/Jobs.
|
|
codeTypes.Add(Sbm.ApplCodeType.DeliveryStatus, "DelStat", "Delivery status");
|
|
codeTypes.Add(Sbm.ApplCodeType.DeliveryType, "DelType", "Delivery type");
|
|
codeTypes.Add(Sbm.ApplCodeType.DeliveryMethod, "DelMeth", "Delivery method");
|
|
codeTypes.Add(Sbm.ApplCodeType.DeliveryCourier, "DelCour", "Delivery courier");
|
|
codeTypes.Add(Sbm.ApplCodeType.DeliveryBookIn, "DelBook", "Delivery book-in");
|
|
codeTypes.Add(Sbm.ApplCodeType.StockPicker, "StockPicker", "Stock picker");
|
|
// Item documents.
|
|
codeTypes.Add(Sbm.ApplCodeType.DocType_Pdf, "DocTypePdf", "PDF document type");
|
|
codeTypes.Add(Sbm.ApplCodeType.DocType_Image, "DocTypeImage", "Image document type");
|
|
|
|
//---------------------------------------------------------------
|
|
// I t e m T y p e
|
|
//---------------------------------------------------------------
|
|
systemCodes[Sbm.ApplicationCode.ItemType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ItemType.SecItem, "SecItm", "Securty Item"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Currency, "Currency", "Currency"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Language, "Language", "Language"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Region, "Region", "Region"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.TaxCode, "TaxCode", " Tax Code"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.UnitMeasure, "UOM", "Unit of Measure"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Process, "Process", "Process"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Affiliate, "Affiliate", "Affiliate"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Address, "Address", "Address"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Commodity, "Commodity", "Commodity"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.PortfolioItem, "PortfolioItem", "Portfolio Item"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Location, "Location", "Location"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Container, "Container", "Container"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.ContainerItem, "ContainerItem", "Container Item"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Movement, "Movement", "Movement"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.StockLevel, "StockLevel", "Stock Level"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Association, "Association", "Association"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Transaction, "Transaction", "Transaction"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Requirement, "Requirement", "Requirement"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Constituent, "Constituent", "Constituent"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.SystemAccount, "SystemAccount", "System Account"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.SystemUser, "SystemUser", "System User"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.SystemAccountUser, "SystemAccountUser", "System Account User"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.AssetCategory, "AssetCategory", "Asset Category"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Asset, "Asset", "Asset"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.VehicleClass, "VehicleClass", "Vehicle Class"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Vehicle, "Vehicle", "Vehicle"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.VehicleEvent, "VehicleEvent", "Vehicle Event"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.VehicleFeature, "VehicleFeature", "Vehicle Feature"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.CommodityProcess, "CommodityProcess", "Commodity Process"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.RequirementProcess, "RequirementProcess", "Requirement Process"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.AssetCategoryProcess, "AssetCatProcess", "Asset Category Process"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.AssetProcess, "AssetProcess", "Asset Process"),
|
|
new TypeCodeDesc((int)Sbm.ItemType.Interface, "Interface", "Interface")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Contacts.
|
|
|
|
// Affiliate Type.
|
|
systemCodes[Sbm.ApplicationCode.AffiliateType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.Individual, "IND", "Individual"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.Commercial, "COM", "Commercial"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.Society, "SOC", "Society"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.Academic, "ACA", "Academic"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.PublicSector, "PUB", "Public Sector"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.Charity, "CHA", "Charity"),
|
|
new TypeCodeDesc((int)Sbm.AffiliateType.ContactGroup, "GRP", "Contact Group")
|
|
};
|
|
|
|
// Address Type.
|
|
systemCodes[Sbm.ApplicationCode.AddressType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AddressType.Office, "OFF", "Office"),
|
|
new TypeCodeDesc((int)Sbm.AddressType.Registered, "REG", "Registered"),
|
|
new TypeCodeDesc((int)Sbm.AddressType.Home, "HOM", "Home"),
|
|
new TypeCodeDesc((int)Sbm.AddressType.Billing, "BIL", "Billing"),
|
|
new TypeCodeDesc((int)Sbm.AddressType.Delivery, "DEL", "Delivery")
|
|
};
|
|
|
|
// Association Type.
|
|
systemCodes[Sbm.ApplicationCode.AssociationType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Internal, "INT", "Internal"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Customer, "CUS", "Customer"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Supplier, "SUP", "Supplier"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Associate, "ASS", "Associate"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Member, "MEM", "Member"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Contractor, "CON", "Contractor"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.Stockist, "STK", "Stockist"),
|
|
new TypeCodeDesc((int)Sbm.AssociationType.FinanceAgency, "FIN", "Finance agency")
|
|
};
|
|
|
|
// System Account Type.
|
|
systemCodes[Sbm.ApplicationCode.SystemAccountType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.SystemAccountType.Customer, "CUST", "Customer")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Transactions.
|
|
|
|
// Transaction types.
|
|
systemCodes[Sbm.ApplicationCode.TransactionType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int) Sbm.TransactionType.Project, "PRO", "Project"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesLead, "SLD", "Sales Lead"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesQuote, "SQT", "Sales Quote"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesPO, "SPO", "Sales Purchase Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.ProformaSalesOrder, "SAP", "Proforma Sales Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesOrder, "SAL", "Sales Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesDispatch, "SDP", "Sales Dispatch"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.ProformaSalesInvoice, "PSI", "Proforma Sales Invoice"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.SalesInvoice, "SAI", "Sales Invoice"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.PurchaseQuote, "PQT", "Purchase Quote"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.PurchaseSO, "PSO", "Purchase Sales Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.ProformaPurchaseOrder, "PUP", "Proforma Purchase Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.PurchaseOrder, "PUR", "Purchase Order"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.PurchaseDelivery, "PDL", "Purchase Delivery"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.ProformaPurchaseInvoice, "PPI", "Proforma Purchase Invoice"),
|
|
new TypeCodeDesc((int)Sbm.TransactionType.PurchaseInvoice, "PUI", "Purchase Invoice"),
|
|
};
|
|
|
|
// Transaction StatusCat.
|
|
systemCodes[Sbm.ApplicationCode.TransactionStatusCat] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)SbmTransaction.StatusCat.Pending, "PEN", "Pending"),
|
|
new TypeCodeDesc((int)SbmTransaction.StatusCat.Open, "OPE", "Open"),
|
|
new TypeCodeDesc((int)SbmTransaction.StatusCat.Closed, "CLO", "Closed"),
|
|
};
|
|
|
|
// Requirement Type.
|
|
systemCodes[Sbm.ApplicationCode.RequirementType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.RequirementType.Detail, "DET", "Detail"),
|
|
new TypeCodeDesc((int)Sbm.RequirementType.Job, "JOB", "Job"),
|
|
};
|
|
|
|
// TaskCodeType.
|
|
systemCodes[Sbm.ApplicationCode.TaskCodeType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.TaskCodeType.Project, "PRO", "Project code"),
|
|
new TypeCodeDesc((int)Sbm.TaskCodeType.Job, "JOB", "Job number"),
|
|
};
|
|
|
|
// Requirement StatusCat.
|
|
systemCodes[Sbm.ApplicationCode.RequirementStatusCat] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)SbmRequirement.StatusCat.Open, "OPE", "Open"),
|
|
new TypeCodeDesc((int)SbmRequirement.StatusCat.Closed, "CLO", "Closed"),
|
|
};
|
|
|
|
// ConstituentType.
|
|
systemCodes[Sbm.ApplicationCode.ConstituentType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.TimeRecord, "TIM", "Time record"),
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.Event, "EVT", "Event"),
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.Task, "TSK", "Task"),
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.Response, "RSP", "Response"),
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.Consumable, "CON", "Consumable"),
|
|
new TypeCodeDesc((int)Sbm.ConstituentType.Expense, "EXP", "Expense"),
|
|
};
|
|
|
|
// Constituent StatusCat.
|
|
systemCodes[Sbm.ApplicationCode.ConstituentStatusCat] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)SbmConstituent.StatusCat.Open, "OPE", "Open"),
|
|
new TypeCodeDesc((int)SbmConstituent.StatusCat.Closed, "CLO", "Closed"),
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Miscellaneous.
|
|
|
|
// ItemLinkData.
|
|
systemCodes[Sbm.ApplicationCode.ItemLinkData] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ItemLinkData.Requirement_AssocItem_PurchaseCostProportion, "PurchaseCostProportion", "Purchase cost proportion")
|
|
};
|
|
|
|
// Sys Param Category.
|
|
systemCodes[Sbm.ApplicationCode.SysParamCategory] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.StockLevelSource.Manual, "MAN", "Manual"),
|
|
new TypeCodeDesc((int)Sbm.SysParamCategory.Security, "SEC", "Security parameter"),
|
|
new TypeCodeDesc((int)Sbm.SysParamCategory.UserParam, "USP", "User session parameter")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Commodities.
|
|
|
|
// Commodity Type.
|
|
systemCodes[Sbm.ApplicationCode.CommodityType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.CommodityType.Stock, "STK", "Stock"),
|
|
new TypeCodeDesc((int)Sbm.CommodityType.NonStock, "NST", "Non-stock"),
|
|
new TypeCodeDesc((int)Sbm.CommodityType.Service, "SRV", "Service"),
|
|
new TypeCodeDesc((int)Sbm.CommodityType.Asset, "AST", "Asset")
|
|
};
|
|
|
|
// Commodity Status Cat. - Any' value is included in list to support organisation item options and commodity panel filter.
|
|
systemCodes[Sbm.ApplicationCode.CommodityStatusCat] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)SbmCommodity.StatusCat.Any, "ANY", "<Any>"),
|
|
new TypeCodeDesc((int)SbmCommodity.StatusCat.Current, "CUR", "Current")
|
|
};
|
|
|
|
// Portfolio Item Type.
|
|
systemCodes[Sbm.ApplicationCode.PortfolioItemType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.PortfolioItemType.Portfolio, "PORT", "Portfolio"),
|
|
new TypeCodeDesc((int)Sbm.PortfolioItemType.Category, "CAT", "Category"),
|
|
new TypeCodeDesc((int)Sbm.PortfolioItemType.Commodity, "COMM", "Commodity")
|
|
};
|
|
|
|
// Container Category.
|
|
systemCodes[Sbm.ApplicationCode.ContainerCategory] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ContainerCategory.Stock, "STOCK", "Stock")
|
|
};
|
|
|
|
// Container Type.
|
|
systemCodes[Sbm.ApplicationCode.ContainerType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Vehicle, "VEHICLE", "Vehicle"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Truck, "TRUCK", "Truck"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Train, "TRAIN", "Train"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Ship, "SHIP", "Ship"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Container, "CONTAINER", "Container"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Wagon, "WAGON", "Wagon"),
|
|
new TypeCodeDesc((int)Sbm.ContainerType.Pallet, "PALLET", "Pallet")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Stock.
|
|
|
|
// Location Category.
|
|
systemCodes[Sbm.ApplicationCode.LocationCategory] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.LocationCategory.Stock, "STOCK", "Stock")
|
|
};
|
|
|
|
// Location Filter.
|
|
systemCodes[Sbm.ApplicationCode.LocationFilter] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.LocationFilter.Sales, "SALESLOC", "Sales locations"),
|
|
new TypeCodeDesc((int)Sbm.LocationFilter.Calc, "CALCLOC", "Calculated locations"),
|
|
new TypeCodeDesc((int)Sbm.LocationFilter.All, "ALLLOC", "All locations")
|
|
};
|
|
|
|
// Movement Type.
|
|
systemCodes[Sbm.ApplicationCode.MovementType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.MovementType.StockTransfer, "STKTRA", "Stock transfer"),
|
|
new TypeCodeDesc((int)Sbm.MovementType.SalesAllocation, "SALALL", "Sales allocation"),
|
|
new TypeCodeDesc((int)Sbm.MovementType.PurchaseAllocation, "PURALL", "Purchase allocation")
|
|
};
|
|
|
|
// Stock Level Type.
|
|
systemCodes[Sbm.ApplicationCode.StockLevelType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.StockLevelType.CurrentLevel, "CUR", "Current level"),
|
|
new TypeCodeDesc((int)Sbm.StockLevelType.StockTake, "STK", "Stock take"),
|
|
//new TypeCodeDesc((int)Sbm.StockLevelType.Adjustment, "ADJ", "Adjustment")
|
|
};
|
|
|
|
// Stock Level Source.
|
|
systemCodes[Sbm.ApplicationCode.StockLevelSource] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.StockLevelSource.Manual, "MAN", "Manual"),
|
|
new TypeCodeDesc((int)Sbm.StockLevelSource.System, "SYS", "System"),
|
|
new TypeCodeDesc((int)Sbm.StockLevelSource.Sage, "SAG", "Sage")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Processes.
|
|
|
|
// Process Category.
|
|
systemCodes[Sbm.ApplicationCode.ProcessCategory] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ProcessCategory.Commodity, "CMD", "Commodity"),
|
|
new TypeCodeDesc((int)Sbm.ProcessCategory.Asset, "ASSET", "Asset")
|
|
};
|
|
|
|
// Process Type.
|
|
systemCodes[Sbm.ApplicationCode.ProcessType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ProcessType.Preparation, "PREP", "Preparation"),
|
|
new TypeCodeDesc((int)Sbm.ProcessType.Production, "PROD", "Production"),
|
|
new TypeCodeDesc((int)Sbm.ProcessType.Finishing, "FNSH", "Finishing"),
|
|
new TypeCodeDesc((int)Sbm.ProcessType.External, "EXTL", "External")
|
|
};
|
|
|
|
// Payment Type.
|
|
systemCodes[Sbm.ApplicationCode.PaymentType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.PaymentType.Finance, "FINANCE", "Finance"),
|
|
new TypeCodeDesc((int)Sbm.PaymentType.Cash, "CASH", "Cash"),
|
|
new TypeCodeDesc((int)Sbm.PaymentType.Cheque, "CHEQUE", "Cheque"),
|
|
new TypeCodeDesc((int)Sbm.PaymentType.DebitCard, "DEBIT", "Debit card"),
|
|
new TypeCodeDesc((int)Sbm.PaymentType.CreditCard, "CREDIT", "Credit card")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Assets.
|
|
|
|
// Asset Type.
|
|
systemCodes[Sbm.ApplicationCode.AssetType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AssetType.General, "GEN", "General"),
|
|
new TypeCodeDesc((int)Sbm.AssetType.Furniture, "FUR", "Furniture"),
|
|
new TypeCodeDesc((int)Sbm.AssetType.Vehicle, "VEH", "Vehicle"),
|
|
new TypeCodeDesc((int)Sbm.AssetType.ComputerHardware, "CHW", "Computer hardware")
|
|
};
|
|
|
|
// Asset Income Type.
|
|
systemCodes[Sbm.ApplicationCode.AssetIncomeType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AssetIncomeType.Sale, "SALE", "Sale"),
|
|
new TypeCodeDesc((int)Sbm.AssetIncomeType.Rental, "RENTAL", "Rental")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Vehicles.
|
|
|
|
// Vehicle Type.
|
|
systemCodes[Sbm.ApplicationCode.VehicleType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleType.Car, "CAR", "Car"),
|
|
new TypeCodeDesc((int)Sbm.VehicleType.Minibus, "MINIBUS", "Minibus"),
|
|
new TypeCodeDesc((int)Sbm.VehicleType.Van, "VAN", "Van"),
|
|
new TypeCodeDesc((int)Sbm.VehicleType.Truck, "TRUCK", "Truck"),
|
|
new TypeCodeDesc((int)Sbm.VehicleType.Coach, "COACH", "Coach")
|
|
};
|
|
|
|
// Vehicle Event Type.
|
|
systemCodes[Sbm.ApplicationCode.VehicleEventType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleEventType.Odometer, "ODO", "Odometer"),
|
|
new TypeCodeDesc((int)Sbm.VehicleEventType.Service, "SRV", "Service"),
|
|
new TypeCodeDesc((int)Sbm.VehicleEventType.Incident, "INC", "Incident"),
|
|
new TypeCodeDesc((int)Sbm.VehicleEventType.Repair, "REP", "Repair"),
|
|
new TypeCodeDesc((int)Sbm.VehicleEventType.Comment, "CMT", "Comment")
|
|
};
|
|
|
|
// Vehicle Feature Source.
|
|
systemCodes[Sbm.ApplicationCode.VehicleFeatureSource] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.Manual, "MAN", "Manual"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.HPI, "HPI", "HPI"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.CAP, "CAP", "CAP"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.DVLA, "DVLA", "DVLA"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.SMMT, "SMMT", "SMMT")
|
|
};
|
|
|
|
// Vehicle Feature Type.
|
|
systemCodes[Sbm.ApplicationCode.VehicleFeatureType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Make, "MAKE", "Make"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Model, "MODEL", "Model"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Derivative, "DERIV", "Derivative"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Body, "BODY", "Body"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.DoorPlan, "DOORPLAN", "Door plan"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Trim, "TRIM", "Trim"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Colour, "COLOUR", "Colour"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.PreviousColour, "PREVCOL", "Previous Colour"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.LastPrevColour, "LASTPREVCOL", "Last Previous Colour"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.OriginalColour, "ORIGCOL", "Original Colour"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Fuel, "FUEL", "Fuel"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Transmission, "TRANS", "Transmission"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.TransDetail, "TRANSDET", "Transmission - Detail"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.WheelPlan, "WHEELPLAN", "Wheel plan"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Technical, "TECHNICAL", "Technical"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Equipment, "EQUIPMENT", "Equipment"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.OptionalExtra, "OPTEXT", "Optional extra"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFeatureType.SelectedOption, "OPTSEL", "Selected option")
|
|
};
|
|
|
|
// Vehicle Option Type.
|
|
systemCodes[Sbm.ApplicationCode.VehicleOptionType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleOptionType.Trim, "TRIM", "Trim"),
|
|
new TypeCodeDesc((int)Sbm.VehicleOptionType.Ventilation, "VENTILATION", "Ventilation"),
|
|
new TypeCodeDesc((int)Sbm.VehicleOptionType.Wheels, "WHEELS", "Wheels"),
|
|
new TypeCodeDesc((int)Sbm.VehicleOptionType.PaintFinish, "PAINTFINISH", "Paint finish"),
|
|
new TypeCodeDesc((int)Sbm.VehicleOptionType.Packs, "PACKS", "Packs")
|
|
};
|
|
|
|
// Vehicle Trans Type.
|
|
systemCodes[Sbm.ApplicationCode.VehicleTransType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleTransType.Manual, "MANUAL", "Manual"),
|
|
new TypeCodeDesc((int)Sbm.VehicleTransType.Automatic, "AUTO", "Automatic")
|
|
};
|
|
|
|
// Fuel Type.
|
|
systemCodes[Sbm.ApplicationCode.FuelType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleFuelType.Petrol, "PETROL", "Petrol"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFuelType.Diesel, "DIESEL", "Diesel"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFuelType.Lpg, "LPG", "LPG"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFuelType.Electric, "ELEC", "Electric"),
|
|
new TypeCodeDesc((int)Sbm.VehicleFuelType.Hybrid, "HYBRID", "Hybrid")
|
|
};
|
|
|
|
// Odometer Units.
|
|
systemCodes[Sbm.ApplicationCode.OdometerUnits] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.VehicleOdometerUnits.Mile, "MILE", "Miles"),
|
|
new TypeCodeDesc((int)Sbm.VehicleOdometerUnits.Kilometre, "KM", "Kilometres")
|
|
};
|
|
|
|
// Discount Type.
|
|
systemCodes[Sbm.ApplicationCode.DiscountType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.DiscountType.NoDiscount, "NoDisc", "No Discount"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.ValueDiscount, "ValDisc", "Value discount"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.QtyDiscountA, "QtyDiscA", "Quantity discount A"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.QtyDiscountB, "QtyDiscB", "Quantity discount B"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.QtyDiscountC, "QtyDiscC", "Quantity discount C"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.QtyDiscountD, "QtyDiscD", "Quantity discount D"),
|
|
new TypeCodeDesc((int)Sbm.DiscountType.QtyDiscountE, "QtyDiscE", "Quantity discount E")
|
|
};
|
|
|
|
// Discount Markup.
|
|
systemCodes[Sbm.ApplicationCode.DiscountMarkup] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.DiscountMarkup.Discount, "DISC", "Discount"),
|
|
new TypeCodeDesc((int)Sbm.DiscountMarkup.Markup, "MARK", "Markup")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Reference.
|
|
|
|
// Region Type.
|
|
systemCodes[Sbm.ApplicationCode.RegionType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.RegionType));
|
|
|
|
// Unit Measure Category.
|
|
systemCodes[Sbm.ApplicationCode.UnitMeasureCategory] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureCategory));
|
|
|
|
// Unit Measure Type.
|
|
systemCodes[Sbm.ApplicationCode.UnitMeasureType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureType));
|
|
|
|
// Financial Type.
|
|
systemCodes[Sbm.ApplicationCode.FinancialType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.FinancialType.CommoditySupply, "CmdSup", "Commodity supply"),
|
|
new TypeCodeDesc((int)Sbm.FinancialType.CommoditySales, "CmdSal", "Commodity sales")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Pricing.
|
|
|
|
// Price Type.
|
|
systemCodes[Sbm.ApplicationCode.PriceType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.PriceType.Customer, "P", "Customer"),
|
|
new TypeCodeDesc((int)Sbm.PriceType.Supplier, "U", "Supplier"),
|
|
new TypeCodeDesc((int)Sbm.PriceType.Special, "S", "Special")
|
|
};
|
|
|
|
// Price Calc Method.
|
|
systemCodes[Sbm.ApplicationCode.PriceCalcMethod] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.Fixed, "Fixed", "Fixed"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.Standard, "Standard", "Standard"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.DecreasePercent, "DecreasePercent", "Decrease Percent"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.DecreaseValue, "DecreaseValue", "Decrease Value"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.MarkupCost, "MarkupCost", "Markup Cost"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.MarkupValue, "MarkupValue", "Markup Value"),
|
|
new TypeCodeDesc((int)Sbm.PriceCalcMethod.MarkupSales, "MarkupSales", "Markup Sales")
|
|
};
|
|
|
|
// PriceRounderMethod.
|
|
//PriceRounderMethod.Add(XXX, "", ""),
|
|
// PriceRounderDirection.
|
|
//PriceRounderDirection.Add(XXX, "", ""),
|
|
|
|
// ItemStatus.
|
|
// EventStatus.
|
|
|
|
//---------------------------------------------------------------
|
|
// Application configuration.
|
|
|
|
// Association Tab.
|
|
systemCodes[Sbm.ApplicationCode.AssociationTab] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Details, "Details", "Details"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Order, "Order", "Order"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.ClientOrder, "ClientOrder", "Client order"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Member, "Member", "Member"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Time, "Time", "Time"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Task, "Task", "Task"),
|
|
new TypeCodeDesc((int)Sbm.AssociationTab.Doc, "Doc", "Doc")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Interfaces.
|
|
|
|
// Interface types - Website.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceType_Website] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_Website.WebStore, "WebStore", "WebStore"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_Website.JoomlaVirtueMart, "JoomlaVM", "Joomla VirtueMart"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_Website.MiMoWeb, "MiMoWeb", "MiMo Website")
|
|
};
|
|
|
|
// Interface types - Accounts.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceType_Accounts] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_Accounts.SageLine50, "SageLine50", "Sage Line 50"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_Accounts.QuickBooks, "QBooks", "QuickBooks")
|
|
};
|
|
|
|
// Interface types - System.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceType_System] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.MSOutlook, "MSOutlook", "MS Outlook"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.PostcodeAnywhere, "POSTCODEANYWHERE", "Postcode Anywhere"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Capi, "CAPI", "Capi"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Bac, "BAC", "BAC"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Pvh, "PVH", "Practical Van Hire"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Cap, "CAP", "CAP"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Hpi, "HPI", "HPI"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Anchor_OrderFulfilment, "ANCORDFIL", "Ancor Order Fulfilment"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Cadix_OrderSpreadsheet_Argos, "CULORDSSHEET-ARGOS", "Cadix Order Spreadsheet - Argos"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_System.Cadix_OrderSpreadsheet_Homebase, "CULORDSSHEET-HOMEBASE", "Cadix Order Spreadsheet - Homebase")
|
|
};
|
|
|
|
// Interface types - File.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceType_File] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransactionImport, "SalesOrderImport", "Transaction import"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransactionExport, "SalesOrderExport", "Transaction export"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransToWord_SalesQuote, "SalQutToWord", "Sales Quote to Word"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransToWord_SalesOrder, "SalOrdToWord", "Sales Order to Word"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransToWord_SalesDispatch, "SalDisToWord", "Sales Dispatch to Word"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransToWord_SalesInvoice, "SalInvToWord", "Sales Invoice to Word"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransToWord_PurchaseOrder, "PurOrdToWord", "Purchase Order to Word"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.AssociationImport, "AssociationImport", "Association import"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.AssociationExport, "AssociationExport", "Association export"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.CommodityImport, "CommodityImport", "Commodity import"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.CommodityExport, "CommodityExport", "Commodity export"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.VehicleImport, "VehicleImport", "Vehicle import"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceType_File.LeasewayInvoice, "LWI", "Leaseway Invoice")
|
|
};
|
|
|
|
// InterfaceDataType.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceDataType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Contact, "CONTACT", "Contact"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Association, "ASSOCIATION", "Association"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Customer, "CUST", "Customer"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Supplier, "SUPP", "Supplier"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Associate, "ASSOCIATE", "Associate"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Contractor, "CONTRACT", "Contractor"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.AssetCategory, "ASSETCAT", "Asset Category"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Asset, "ASSET", "Assest"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.VehicleClass, "VEHCLA", "Vehicle Class"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Vehicle, "VEH", "Vehicle"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Commodity, "CMD", "Commodity"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.PriceSet, "PRICESET", "Price Set"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.PortfolioItem, "PORTITEM", "Portfolio Item"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.CommodityCustomer, "CMDCUST", "Commodity Customer"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.CommoditySupplier, "CMDSUPP", "Commodity Supplier"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Location, "LOCAT", "Location"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Container, "CONTAIN", "Container"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.StockTake, "STOCKTAKE", "Stock Take"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Transaction, "TRANS", "Transaction"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.SalesQuote, "TSQ", "Sales Quote"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.ProformaSalesOrder, "TPSO", "Proforma Sales Order"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.SalesOrder, "TSO", "Sales Order"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.SalesDispatch, "TSD", "Sales Dispatch"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.ProformaSalesInvoice, "TPSI", "Proforma Sales Invoice"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.SalesInvoice, "TSI", "Sales Invoice"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.PurchaseQuote, "TPQ", "Purchase Quote"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.ProformaPurchaseOrder, "TPPO", "Proforma Purchase Order"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.PurchaseOrder, "TPO", "Purchase Order"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.ConstituentTime, "CONSTTIME", "Constituent Time"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceDataType.Pricing, "PRICING", "Pricing")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Associated data.
|
|
|
|
// Item Data Type.
|
|
systemCodes[Sbm.ApplicationCode.ItemDataType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Vehicle_HpiResponse, "HPI", "HPI response"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Transaction_VehicleFilter, "VehicleFilter", "Vehicle filter"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Transaction_ExchangeVehicle, "ExchangeVehicle", "Exchange vehicle"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Transaction_Finance, "Finance", "Finance"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Transaction_Payments, "Payments", "Payments"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Process_FixedCost_Unit, "ProcFixedCostUnit", "Fixed cost per unit"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Process_FixedCost_Job, "ProcFixedCostJob", "Fixed cost per job"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Process_LabourCost_Unit, "ProcLabourCostUnit", "Labour cost per unit"),
|
|
new TypeCodeDesc((int)Sbm.ItemDataType.Process_LabourCost_Job, "ProcLabourCostJob", "Labour cost per job")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Organisation configuration.
|
|
|
|
// Organisation Option - Value.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_Value] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.MaxTransactionsQueriedForEmptyFilter, "MaxTransEmptyFilter", "Maximum transactions queried for empty filter"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.AlternativePromotionText, "AltPromotionText", "To be used when no promotion specified"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.CostLabourRateDefault, "CostLbrRateDefault", "Cost - labour rate per hour (default)", "Currency value with decimals"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.DefaultSalesCarriageNominal, "DfltSalCarrNom", "Default Sales carriage nominal"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.DefaultPurchaseCarriageNominal, "DfltPurCarrNom", "Default Purchase carriage nominal"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.CommoditiesAllowedNegativePrice, "CmdAllowNegPrice", "Commodities allowed negative price", "Comma separated list."),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.TransTimeChunk1Caption, "TransTimeSplitCaption1", "Transaction time split caption 1"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.TransTimeChunk2Caption, "TransTimeSplitCaption2", "Transaction time split caption 2"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.EmailSubject, "EmailSubject", "Email subject"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Value.EmailBody, "EmailBody", "Email body")
|
|
};
|
|
|
|
// Organisation Option - Folder.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_Folder] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Folder.CommodityImage, "CmdImage", "Commodity image"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Folder.CommodityBarcodeImage, "CmdBarcodeImage", "Commodity barcode image")
|
|
};
|
|
|
|
// Organisation Option - Allow Option.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_AllowOption] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.UpdateAssociationCode, "UpdAssocCode", "Update association code"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.CustomerAccountDetails, "CustAccntDet", "Customer account details"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.StockistAssociations, "StockistAssociations", "Stockist associations"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.FinanceAgencyAssociations, "FinanceAssociations", "Finance agency associations"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Commodity_SalesBudget, "CommoditySalesBudget", "Commodity sales budget"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Commodity_PartialCodeFilter, "CommodityPartialCodeFilter", "Commodity partial code filter", "As opposed to 'starting' with."),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Commodity_EditHistoryItem, "CommodityEditHistoryItem", "Commodity - edit history items", "Where updates allowed"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.ImminentStock, "ImminStock", "Imminent stock", "Includes overdue and up to specified number of weeks of due stock"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.ManageContainerMovemements, "ManageContMovmt", "Manage container movements"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.AwaitingContainersInImminentStock, "AwaitContImmin", "Include planned container movements in imminent stock"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.TransactionFilter_AnyStatus, "TransFltStatAny", "Transaction filter - 'Any' status"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.TransactionFilter_RetainRef, "TransFltRetainRef", "Transaction filter - retain reference", "Between views"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.TransactionFilter_RetainRefExt, "TransFltRetainRefExt", "Transaction filter - retain external reference", "Between views"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.TransactionExport_FixedContent, "TransExpFixedContent", "Transaction exports - fixed content", ""),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Order_BillingAddress, "OrdBillingAddr", "Order billing address - populated from account"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.SalesOrder_OnHold, "SalOrdOnHold", "Sales order - On Hold status"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.SalesOrder_ReplacementOrders, "SalOrdReplacement", "Sales order - Replacement orders"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.SalesOrder_DispatchDetails, "SalOrdDispatchDet", "Sales order - Dispatch details"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.SalesOrder_PartialInvoice, "SalOrdPartialInv", "Sales order - Partial invoice"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.SalesOrder_RaiseInvoiceOnCompletion, "SalOrdRaiseInvOnCompl", "Sales order - Raise invoice on completion"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Transaction_RetainCurrentViewOnRaise, "TransRetainCurrViewOnRaise", "Transactions - retain current view on 'Raise'"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.PurchaseItem_AssociatedSalesItems, "PurItmAssocSalItm", "Purchase order item associated sales items", "Link purchase items to the sales items that are being supplied"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.OrderItem_ModifyCommodityDescription, "OrderItemModCmdDesc", "Order item - modify commodity description", ""),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.OrderItem_ShowCommodityDetails, "OrderItemShowCmdDet", "Order item - show commodity details", ""),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.OrderItem_ShowStockDetails, "OrderItemShowStkDet", "Order item - show Stock details", ""),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Asset_Purchase, "AssetPurchase", "Asset Purchase"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Asset_Sale, "AssetSale", "Asset Sale"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Asset_Rental, "AssetRental", "Asset rental"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.Asset_Disposal, "AssetDisposal", "Asset Disposal")
|
|
};
|
|
|
|
// Organisation Option - Caption
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_Caption] = new List<TypeCodeDesc>()
|
|
{
|
|
// Transaction type captions.
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_Project, "Project", "Transaction type - Project"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesLead, "SalLead", "Transaction type - Sales Lead"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesQuote, "SalQuote", "Transaction type - Sales quote"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesPO, "SalPO", "Transaction type - Sales PO"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_ProformaSalesOrder, "SalPfOrder", "Transaction type - sales proforma order"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesOrder, "SalOrder", "Transaction type - sales order"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesDispatch, "SalDispatch", "Transaction type - Sales dispatch"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_ProformaSalesInvoice, "SalPfInvoice", "Transaction type - Proforma sales invoice"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_SalesInvoice, "SalInvoice", "Transaction type - Sales invoice"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_PurchaseQuote, "PurQuote", "Transaction type - Purchase quote"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_PurchaseSO, "PurSO", "Transaction type - Purchase SO"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_ProformaPurchaseOrder, "PurPfOrder", "Transaction type - Purchase proforma order"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_PurchaseOrder, "PurOrder", "Transaction type - Purchase order"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_PurchaseDelivery, "PurDelivery", "Transaction type - Purchase Delivery"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_ProformaPurchaseInvoice, "PurPfInvoice", "Transaction type - Proforma Purchase invoice"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_PurchaseInvoice, "PurInvoice", "Transaction type - Purchase invoice"),
|
|
// Menu option captions:
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_Projects, "MnuOptProject", "Caption - Projects menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesLeads, "MnuOptSalLead", "Caption - Sales leads menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesPOs, "MnuOptSalPO", "Caption - Sales POs menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesQuotes, "MnuOptSalQuote", "Caption - Sales quotes menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_ProformaSalesOrders, "MnuOptSalPfOrder", "Caption - Proforma sales orders menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesOrders, "MnuOptSalOrder", "Caption - Sales orders menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesDispatches, "MnuOptSalDispatch", "Caption - Sales dispatches menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_ProformaSalesInvoices, "MnuOptSalPfInvoice", "Caption - Proforma sales invoices menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_SalesInvoices, "MnuOptSalInvoice", "Caption - Sales invoices menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_PurchaseQuotes, "MnuOptPurQuote", "Caption - Purchase quotes menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_PurchaseSOs, "MnuOptPurSO", "Caption - Purchase SOs menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_ProformaPurchaseOrders, "MnuOptPurPfOrder", "Caption - Proforma purchase orders menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_PurchaseOrders, "MnuOptPurOrder", "Caption - Purchase orders menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_PurchaseDeliveries, "MnuOptPurDelivery", "Caption - Purchase Deliveries menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_ProformaPurchaseInvoices, "MnuOptPurPfInvoice", "Caption - Proforma purchase invoices menu option"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Caption.MenuOpt_PurchaseInvoices, "MnuOptPurInvoice", "Caption - Purchase invoices menu option")
|
|
};
|
|
|
|
// Organisation Option - Show Column.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_ShowColumn] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_AnnualSalesTarget, "Association:AnnualSalesTarget", "Association: Annual sales target"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Trans_LastSaleRaised, "Association:Trans:LastSaleRaised", "Association: Last SO raised"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Trans_SalesValue_Open, "Association:Trans:SalesValue:Open", "Association: SO value: Open"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Trans_SalesValue_Cytd, "Association:Trans:SalesValue:Cytd", "Association: SO value: YTD"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Trans_SalesValue_Lcy, "Association:Trans:SalesValue:Lcy", "Association: SO value: LCY"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Group, "Association:Group", "Association: Group"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_CatalogRef, "Commodity:CatalogRef", "Commodity: Catalog reference"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_Weight, "Commodity:Weight", "Commodity: Weight"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_PackQtySale, "Commodity:PackQtySale", "Commodity: Pack qty - sale"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_StockAllocated, "Commodity:StockAllocated", "Commodity: Allocated stock"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_StockLevelSales, "Commodity:StockLevelSales", "Commodity: Stock level (Sales)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Commodity_StockAvailable, "Commodity:StockAvailable", "Commodity: Available stock"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Order_AllocationInd, "Order:AllocationInd", "Order: Allocation indicator"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.SalesOrder_DeliveryCourier, "SalesOrder:DeliveryCourier", "Order: Delivery courier"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.SalesOrder_HasInvoice, "SalesOrder:HasInvoice", "Order: Has invoice flag"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Transaction_ContactArea, "Transaction:ContactArea", "Transaction: Contact area"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Accounts_InvoiceRef, "Accounts:InvoiceRef", "Accounts: Invoice reference"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.OrderItem_AllocationInd, "OrderItem:AllocationInd", "Order item: Allocation indicator"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.OrderItem_Stock_Current, "OrderItem:StockCurrent", "Order item: Stock current"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.OrderItem_Stock_Available, "OrderItem:StockAvailable", "Order item: Stock available"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.OrderItem_Stock_BySalesLocation, "OrderItem:StockBySalesLocation", "Order item: Stock by sales location"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.SalesOrderItem_QtyDispatched, "SalesOrderItem:QuantityDispatched", "Sales order item: qty dispatched"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.SalesOrderItem_QtyInvoiced, "SalesOrderItem:QuantityInvoiced", "Sales order item: qty invoiced"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.SalesOrderItem_NextProcess, "SalesOrderItem:NextProcess", "Sales order item: Next process"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Vehicle_KeyLocation, "Vehicle:KeyLocation", "Vehicle: Key location")
|
|
};
|
|
|
|
// Organisation Option - Show Field.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_ShowField] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Association_AnnualSalesTarget, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AnnualSalesTarget, null, false), "Association: Annual sales target"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Address_LastVisitOn, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Address_LastVisitOn, null, false), "Address: Last visit date"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_DrawingIssue, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_DrawingIssue, null, false), "Commodity: Issue"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_DrawingNo, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_DrawingNo, null, false), "Commodity: Drawing no"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_Department, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_Department, null, false), "Commodity: Department"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_CatalogRef, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CatalogRef, null, false), "Commodity: Catalog ref"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_Volume, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_Volume, null, false), "Commodity: Volume"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_Density, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_Density, null, false), "Commodity: Density"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_BoxQuantity, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_BoxQuantity, null, false), "Commodity: Box quantity"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_ICNTariffCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_ICNTariffCode, null, false), "Commodity: ICN Tarrif"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_PlaceOfOrigin, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_PlaceOfOrigin, null, false), "Commodity: Place of origin"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_MaterialCost, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_MaterialCost, null, false), "Commodity: Material cost"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_ExWorksCost, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_ExWorksCost, null, false), "Commodity: Ex-works cost"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_RetailPricePlanned, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_RetailPricePlanned, null, false), "Commodity: Planned RRP"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Commodity_CarriageCostIndicative, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CarriageCostIndicative, null, false), "Commodity: Carriage cost (ind)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.StockLevel_Bay1, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay1, null, false), "Stock Level: Bay 1"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.StockLevel_Bay2, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay2, null, false), "Stock Level: Bay 2"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.StockLevel_Bay3, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay3, null, false), "Stock Level: Bay 3")
|
|
};
|
|
|
|
// Organisation Option - Field Label.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_FieldLabel] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_CatalogRef, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CatalogRef, null, false), "Commodity: Catalog reference"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_Dimensions, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_Dimensions, null, false), "Commodity: Dimensions"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_ICNTariffCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_ICNTariffCode, null, false), "Commodity: ICN tariff"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_CostPrice, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CostPrice, null, false), "Commodity: Cost price"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_PlaceOfOrigin, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_PlaceOfOrigin, null, false), "Commodity: Place of origin"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_MaterialCost, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_MaterialCost, null, false), "Commodity: Material cost"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_CurrencyIdMaterial, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CurrencyIdMaterial, null, false), "Commodity: Material currency"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_ExWorksCost, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_ExWorksCost, null, false), "Commodity: Ex-works cost"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_CurrencyIdExWorks, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CurrencyIdExWorks, null, false), "Commodity: Ex-works currency"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_SpecSummary, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_SpecSummary, null, false), "Commodity: Specification"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_MaterialCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_MaterialCode, null, false), "Commodity: Material"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_FinishCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_FinishCode, null, false), "Commodity: Finish"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_DescDetail, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_DescDetail, null, false), "Commodity: Detail description"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_RetailPricePlanned, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_RetailPricePlanned, null, false), "Commodity: Planned RRP"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Affiliate_Abbrev, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Affiliate_Abbrev, null, false), "Contact: Abbreviation"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Affiliate_Nature, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Affiliate_Nature, null, false), "Contact: Nature"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_Location, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_Location, null, false), "Association: Location"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_AccountManagerCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AccountManagerCode, null, false), "Association: Account manager"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_AccountHandlerCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AccountHandlerCode, null, false), "Association: Account handler"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_AccountTypeCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AccountTypeCode, null, false), "Association: Account type"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_AccountRatingCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AccountRatingCode, null, false), "Association: Account rating"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_ContactAreaCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_ContactAreaCode, null, false), "Association: Contact area"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_ContactHandlerCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_ContactHandlerCode, null, false), "Association: Contact handler"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_ContactMethodCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_ContactMethodCode, null, false), "Association: Contact method"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Association_ContactCallCycleCode, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_ContactCallCycleCode, null, false), "Association: Contact call cycle"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Transaction_Ref, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Transaction_Ref, null, false), "Transaction: Reference"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Transaction_RefExt, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Transaction_RefExt, null, false), "Transaction: External ref"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.StockLevel_Bay1, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay1, null, false), "Stock Level: Bay 1"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.StockLevel_Bay2, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay2, null, false), "Stock Level: Bay 2"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.StockLevel_Bay3, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.StockLevel_Bay3, null, false), "Stock Level: Bay 3")
|
|
};
|
|
|
|
// Organisation Option - Transaction Creation Status.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_TransactionCreationStatus] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_TransCreateStatus.ProformaSalesOrder, "ProFromaSalOrd", "Proforma SO creation status", "Default: 'Preparation'"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_TransCreateStatus.SalesOrder, "SalesOrder", "SO creation status", "Default. 'In progress'")
|
|
};
|
|
|
|
// Organisation Option - Container Status Caption.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_ContainerStatusCaption] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Provisional, SacsSystem.GetStatusCode(SaStatus.Provisional), "Provisional"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Awaiting, SacsSystem.GetStatusCode(SaStatus.Awaiting), "Awaiting"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Active, SacsSystem.GetStatusCode(SaStatus.Active), "Active"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Actioned, SacsSystem.GetStatusCode(SaStatus.Actioned), "Actioned"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Cancelled, SacsSystem.GetStatusCode(SaStatus.Cancelled), "Cancelled")
|
|
};
|
|
|
|
// Organisation Option - Minutes.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_Minutes] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_Minutes.AutoSaveTransaction, "MinsAutoSaveTrans", "Auto save transactions (minutes)", "")
|
|
};
|
|
|
|
// Organisation Option - Period Days.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_PeriodDays] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.TransactionDatesInFuture, "TransDatesInFut", "Days in future that transaction dates can be set", ""),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.UpdateClosedTransaction, "UpdClosedTrans", "Grace period (days) for updating closed transactions", "Period after transaction closure during which updates are allowed (0-30 days)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.UpdateClosedTransaction_DispatchDetails, "UpdDisDetCloTrans", "Grace period (days) for updating dispatch details on closed order", "Period after transaction closure during which dispatch updates are allowed (0-30 days)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.UpdateStockLevelsInPast, "UpdStkLvlInPast", "Update stock levels in past")
|
|
};
|
|
|
|
// Organisation Option - Period Weeks.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_PeriodWeeks] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodWeeks.Timesheets, "Timesheets", "Weeks of timesheets to list (default 8)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodWeeks.UpdateTimeRecords_Control, "UpdTimeRecsCtrl", "Weeks in past for admin user to update time records (default 2)"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_PeriodWeeks.ImminentStockDue, "ImminStkDue", "Weeks of due stock to treat as imminent", "Weeks for which stock due is treated as imminent (0-12 weeks, default: 0)")
|
|
};
|
|
|
|
// Organisation Option - Numeric Decimals.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_NumericDecimals] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.OrderQuantity, "OrdQty", "Order quantity"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.CommodityWeight, "CmdWeight", "Commodity weight"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.CommodityLength, "CmdLength", "Commodity length"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.CommodityVolume, "CmdVolume", "Commodity volume"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.CommodityDensity, "CmdDensity", "Commodity density")
|
|
};
|
|
|
|
// Organisation Option - Commodity Type.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_CommodityType] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_CommodityType.CommodityCreationDefault, "CmdCreateDflt", "Commodity creation default")
|
|
};
|
|
|
|
// Organisation Option - Stock Location.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_StockLocation] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StockLocation.SalesOrderDefault, "SalOrdDflt", "Sales order default"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StockLocation.PurchaseOrderDefault, "PurOrdDflt", "Purchase order default"),
|
|
new TypeCodeDesc((int)Sbm.OrgOption_StockLocation.TransactionFilterDefault, "TransFltrDflt", "Transaction filter default - replaces 'blank' selection")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Association organisation options.
|
|
|
|
// AssociationOrgOption.
|
|
systemCodes[Sbm.ApplicationCode.AssociationOption] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.Value, "Value", "Value"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.Folder, "Folder", "Folder"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.AllowOption, "AllowOpt", "Allow option"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.Caption, "Caption", "Caption"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.ShowColumn, "ShowCol", "Show column"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.ShowField, "ShowFld", "Show field"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.FieldLabel, "FldLbl", "Field caption"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.Minutes, "PeriodMins", "Period - minutes"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.PeriodDays, "PeriodDays", "Period - days"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.PeriodWeeks, "PeriodWeeks", "Period - weeks"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.NumericDecimals, "NumDec", "Numeric decimals"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.CommodityType, "CmdType", "Commodity type"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.CommodityFilterDefaultStatusCat, "CmdFltStacDflt", "Commodity filter default status"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.CommodityFilterInitialStockCat, "CmdFltStkCatInit", "Commodity filter initial category"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.StatusCaption_Container, "CntStatCaption", "Status caption - Container"),
|
|
new TypeCodeDesc((int)Sbm.OrganisationOption.SalesLocation, "SalesLoc", "Sales location")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// System User options.
|
|
|
|
// SystemUserOption.
|
|
systemCodes[Sbm.ApplicationCode.SystemUserOption] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.SystemUserOption.Right, "SecRight", "Security Right")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Interface options.
|
|
|
|
// InterfaceOption.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Value, "Value", "Value"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Flag, "Flag", "Flag"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Hidden, "Hidden", "Hidden"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Mode, "Mode", "Mode"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.ReadOnly, "ReadOnly", "ReadOnly"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.HostPc, "HostPC", "Host PC"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Folder, "Folder", "Folder"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.UnitMeasure, "UOM", "Unit of measure"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.TaxCodeColumn, "TaxCodeCol", "Equivalent tax code column", "To convert tax codes between systems."),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.Portfolio, "Portfolio", "Portfolio"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.PriceSet, "PriceSet", "Price Set", ""),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.TransactionCreationStatus, "TransCreateStat", "Transaction creation status"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.BackgroundColour, "BackgroundColour", "Background colour"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_UrlHome, "UrlHome", "Website home URL"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_UrlCgiBin, "UrlCgiBin", "Website cgi-bin URL"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpHost, "FtpHost", "FTP host server"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpUser, "FtpUser", "FTP user"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpPword, "FtpPword", "FTP password"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpPathWebHome, "FtpPathWebHome", "Web home folder"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpPathWebCgiBin, "FtpPathWebCgiBin", "Web cgi-bin folder"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_FtpPathWebDataRoot, "FtpPathWebDataRoot", "WebData folder"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_ServerPathWebDataRoot, "ServerPathWebDataRoot", "Server WebData path"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_Upload_PerlShebang, "PerlSheBang", "Perl SheBang"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_Upload_Data, "UploadData", "Upload data"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_Upload_Method, "UploadMethod", "Upload method"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_Download_Data, "DownloadData", "Download data"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.WebStore_Download_Method, "DownloadMethod", "Download method"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_RecordType, "FileRecType", "Record type"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_ItemLocation, "FileItemLoc", "Data item location"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_ItemRow, "FileItemRow", "Item row"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_ItemColumn, "FileItemCol", "Item column"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_ColumnWidth, "FileItemColWidth", "Column width"),
|
|
new TypeCodeDesc((int)Sbm.InterfaceOption.File_ColumnCaption, "FileItemColCaption", "Column caption")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Generic item options.
|
|
|
|
// OrgOption_TaxCodeColumn. // eg. for Sage and other system interfaces.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_TaxCodeColumn] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)SaTaxCodeColumn.Code, SbmDbDfn.GetColumnName(SbmDbDfn.ColumnIdx.TaxCode_Code), "Code"),
|
|
new TypeCodeDesc((int)SaTaxCodeColumn.CodeAlt1, SbmDbDfn.GetColumnName(SbmDbDfn.ColumnIdx.TaxCode_CodeAlt1), "Alternative code 1"),
|
|
new TypeCodeDesc((int)SaTaxCodeColumn.CodeAlt2, SbmDbDfn.GetColumnName(SbmDbDfn.ColumnIdx.TaxCode_CodeAlt2), "Alternative code 2")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Website interface configuration.
|
|
|
|
// InterfaceOption_WebFlag.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebFlag] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.SystemInterface_Website_Flag.IncludeImminentStock, "IncImminStock", "Include imminent stock in current level"),
|
|
new TypeCodeDesc((int)Sbm.SystemInterface_Website_Flag.AllowZeroOrderItemAmount, "AllowZeroOrdItmAmt", "Allow zero order item amount")
|
|
};
|
|
|
|
// InterfaceOption_WebUploadData.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebUploadData] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.WebUploadData.Portfolio, "Portfolio", "Portfolio"),
|
|
new TypeCodeDesc((int)Sbm.WebUploadData.StockLevels, "StockLevels", "Stock Levels"),
|
|
new TypeCodeDesc((int)Sbm.WebUploadData.Accounts, "Accounts", "Accounts"),
|
|
new TypeCodeDesc((int)Sbm.WebUploadData.SalesProfile, "SalesProfile", "Sales Profile")
|
|
};
|
|
|
|
//InterfaceOption_WebUploadMethod.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebUploadMethod] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.WebUploadMethod.None, "None", "None"),
|
|
new TypeCodeDesc((int)Sbm.WebUploadMethod.Ftp, "FTP", "FTP"),
|
|
new TypeCodeDesc((int)Sbm.WebUploadMethod.Webstore, "SWS", "Webstore")
|
|
};
|
|
|
|
// InterfaceOption_WebDownloadData.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebDownloadData] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.WebDownloadData.Orders, "Orders", "Orders")
|
|
};
|
|
|
|
//InterfaceOption_WebDownloadMethod.
|
|
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebDownloadMethod] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.WebDownloadMethod.None, "None", "None"),
|
|
new TypeCodeDesc((int)Sbm.WebDownloadMethod.Ftp, "FTP", "FTP"),
|
|
new TypeCodeDesc((int)Sbm.WebDownloadMethod.Webstore, "SWS", "Webstore")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// Generic File Interface options.
|
|
|
|
// File Interface - Row Column values.
|
|
systemCodes[Sbm.ApplicationCode.FileInterface_RowColValue] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.FileInterface_RowColValue.Row, "Row", "Row"),
|
|
new TypeCodeDesc((int)Sbm.FileInterface_RowColValue.Col, "Col", "Column"),
|
|
new TypeCodeDesc((int)Sbm.FileInterface_RowColValue.Value, "Val", "Value")
|
|
};
|
|
|
|
// File Interface - Mode.
|
|
systemCodes[Sbm.ApplicationCode.FileInterface_Mode] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.FileInterface_Mode.Csv, "CSV", "Comma separated file (csv)", ""),
|
|
new TypeCodeDesc((int)Sbm.FileInterface_Mode.MsExcel, "MSExcel", "MS Excel workbook", "")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
// System User configuration.
|
|
systemCodes[Sbm.ApplicationCode.OrgOption_SystemUserRight] = new List<TypeCodeDesc>()
|
|
{
|
|
new TypeCodeDesc((int)Sbm.SystemUserRight.AllAccounts, "AllAccounts", "All accounts"),
|
|
new TypeCodeDesc((int)Sbm.SystemUserRight.Admin, "Admin", "Admin"),
|
|
new TypeCodeDesc((int)Sbm.SystemUserRight.Test, "Test", "Test")
|
|
};
|
|
|
|
//---------------------------------------------------------------
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|