86 lines
2.9 KiB
C#
86 lines
2.9 KiB
C#
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
|
using Sarand.BusinessMgr.Net.Standard.Dbas.Mgr;
|
|
using Sarand.BusinessMgr.Net.Standard.Dbas.Utils;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Dbas;
|
|
using Sarand.Net.Standard.Base.IO;
|
|
using Sarand.Net.Standard.Dbas.Base;
|
|
using Sarand.Net.Standard.Dbas.Data;
|
|
using System;
|
|
using System.IO;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Dbas.App
|
|
{
|
|
//=======================================================================
|
|
public class SbmSystem_Dbas : SbmSystem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Static initialisation.
|
|
public static void InitStatics()
|
|
{
|
|
// Initialise static environment values.
|
|
ComputerName = System.Environment.MachineName;
|
|
UserName = Environment.UserName;
|
|
ApplicationPath = System.Reflection.Assembly.GetEntryAssembly().Location;
|
|
ApplicationFolder = Path.GetDirectoryName(ApplicationPath);
|
|
AssemblyBuildAt = FileUtil.GetFileLastWriteTime(ApplicationPath);
|
|
|
|
// Initialise other statics.
|
|
SbmFileUtil.InitStatics();
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SbmSystem_Dbas(PropertySet properties) : base(properties)
|
|
{
|
|
if (IsExtendedLogging(ExtendedLogginOption.DbQueryExecution))
|
|
{
|
|
SacsDatabase.LoggingLevel = SaMessageLevel.Trace;
|
|
DbResultSet.LoggingLevel = SaMessageLevel.Trace;
|
|
DbDataItem.LoggingLevel = SaMessageLevel.Trace;
|
|
}
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// D a t a M a n a g e r s
|
|
//-------------------------------------------------------------------
|
|
public override SbmAccountMgr CreateAccountMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmAccountMgr_Dbas(userContext);
|
|
}
|
|
public override SbmAssetMgr CreateAssetMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmAssetMgr_Dbas(userContext);
|
|
}
|
|
public override SbmCommodityMgr CreateCommodityMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmCommodityMgr_Dbas(userContext);
|
|
}
|
|
public override SbmPriceMgr CreatePriceMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmPriceMgr_Dbas(userContext);
|
|
}
|
|
public override SbmDataItemMgr CreateDataItemMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmDataItemMgr_Dbas(userContext);
|
|
}
|
|
public override SbmProcessMgr CreateProcessMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmProcessMgr_Dbas(userContext);
|
|
}
|
|
public override SbmStockMgr CreateStockMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmStockMgr_Dbas(userContext);
|
|
}
|
|
public override SbmTransactionMgr CreateTransactionMgr(ISbmUserContext userContext)
|
|
{
|
|
return new SbmTransactionMgr_Dbas(userContext);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|