Rationalise business objects.
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Sarand.BusinessMgr.Net.Core.Procs.Interfaces
|
||||
|
||||
// Retrieve interface options.
|
||||
InitOptionDefinitions();
|
||||
List<SaItemOption> processOptions = ItemOptionConsole.GetItemOptionsForItem(new ItemId((short)Sbm.ItemType.Interface, config.InterfaceId));
|
||||
List<SaItemOption> processOptions = ItemOptionConsole.GetItemOptionsForItem(new SbmItemId(Sbm.ItemType.Interface, config.InterfaceId));
|
||||
SetProcessingOptions(processOptions);
|
||||
|
||||
// Interface option codes.
|
||||
@@ -1045,7 +1045,7 @@ namespace Sarand.BusinessMgr.Net.Core.Procs.Interfaces
|
||||
case SbmDbDfn.TableIdx.StockLevel:
|
||||
allowColumn = SessionConsole.GetStockControlConfig().AllowStockControl();
|
||||
if (allowColumn)
|
||||
allowColumn = StockMgr.DatabaseIsValid();
|
||||
allowColumn = StockMgr.StockDatabaseIsValid();
|
||||
break;
|
||||
case SbmDbDfn.TableIdx.Transaction:
|
||||
case SbmDbDfn.TableIdx.Requirement:
|
||||
|
||||
@@ -22,6 +22,8 @@ using Sarand.Net.Standard.Proc.Procs;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr.Control;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Consoles;
|
||||
using Sarand.Net.Standard.Base.ItemData;
|
||||
using Sarand.Net.Standard.Base.Diary;
|
||||
|
||||
namespace Sarand.BusinessMgr.Net.Core.Procs.Procs
|
||||
{
|
||||
@@ -152,13 +154,15 @@ namespace Sarand.BusinessMgr.Net.Core.Procs.Procs
|
||||
protected SbmDataItemMgr DataItemMgr { get { return Internals.DataItemMgr; } }
|
||||
// Consoles.
|
||||
protected SbmSessionConsole SessionConsole { get { return Internals.SessionConsole; } }
|
||||
protected SaDiaryConsole DiaryConsole { get { return Internals.DiaryConsole; } }
|
||||
protected SaSecurityConsole SecurityConsole { get { return Internals.SecurityConsole; } }
|
||||
protected SaCodeTypeConsole CodeTypeConsole { get { return Internals.CodeTypeConsole; } }
|
||||
protected SaReferenceDataConsole ReferenceDataConsole { get { return Internals.ReferenceDataConsole; } }
|
||||
protected SaItemOptionConsole ItemOptionConsole { get { return Internals.ItemOptionConsole; } }
|
||||
protected SaUpdateLogConsole UpdateLogConsole { get { return Internals.UpdateLogConsole; } }
|
||||
protected SaInterfaceConsole InterfaceConsole { get { return Internals.InterfaceConsole; } }
|
||||
protected SaItemDocConsole ItemDocConsole { get { return Internals.ItemDocConsole; } }
|
||||
protected SaItemOptionConsole ItemOptionConsole { get { return Internals.ItemOptionConsole; } }
|
||||
protected SaItemDataConsole ItemDataConsole { get { return Internals.ItemDataConsole; } }
|
||||
// Configurations.
|
||||
protected SbmStockControlConfig StockControlConfig { get { return Internals.StockControlConfig; } }
|
||||
protected SbmRequirementCostingConfig RequirementCostingConfig { get { return Internals.RequirementCostingConfig; } }
|
||||
|
||||
Reference in New Issue
Block a user