Add project files.
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
||||
using Sarand.Net.Standard.Base.CodeTypes;
|
||||
using Sarand.Net.Standard.Base.Core;
|
||||
using Sarand.Net.Standard.Base.Dbas;
|
||||
using Sarand.Net.Standard.Base.Diary;
|
||||
using Sarand.Net.Standard.Base.Interfaces;
|
||||
using Sarand.Net.Standard.Base.ItemDocs;
|
||||
using Sarand.Net.Standard.Base.ItemOptions;
|
||||
using Sarand.Net.Standard.Base.ReferenceData;
|
||||
using Sarand.Net.Standard.Base.Security;
|
||||
using Sarand.Net.Standard.Base.UpdateLog;
|
||||
using System;
|
||||
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract class SbmApplication : SacsDisposable
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly PropertySet properties;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SbmApplication(PropertySet properties)
|
||||
{
|
||||
this.properties = properties;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Application configuration.
|
||||
[Obsolete("Deprecated - properties need to be session context specific.")]
|
||||
public String GetPropertyValue(String section, String name)
|
||||
{
|
||||
return properties.GetPropertyValue(section, name);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Database.
|
||||
public abstract ISacsDatabase GetDatabase(SbmSessionContext sessionContext);
|
||||
public abstract bool TableExists(SbmSessionContext sessionContext, SbmDbDfn.TableIdx tableIdx);
|
||||
public abstract bool ColumnExists(SbmSessionContext sessionContext, SbmDbDfn.ColumnIdx columnIdx);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Config Console.
|
||||
public abstract SbmConfigConsole GetConfigConsole(SbmSessionContext sessionContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Managers.
|
||||
public abstract SbmAccountMgr CreateAccountMgr(SbmUserContext userContext);
|
||||
public abstract SbmTransactionMgr CreateTransactionMgr(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Diary console.
|
||||
public abstract SaDiaryConsole GetDiaryConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Security console.
|
||||
public abstract SaSecurityConsole GetSecurityConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Code Type console.
|
||||
public abstract SaCodeTypeConsole GetCodeTypeConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Reference Data console.
|
||||
public abstract SaReferenceDataConsole GetReferenceDataConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Item Data console.
|
||||
public abstract Sarand.Net.Standard.Base.ItemData.SaItemDataConsole GetItemDataConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Item Doc console.
|
||||
public abstract SaItemDocConsole GetItemDocConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Item Option console.
|
||||
public abstract SaItemOptionConsole GetItemOptionConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Interface console.
|
||||
public abstract SaInterfaceConsole GetInterfaceConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Update Log console.
|
||||
public abstract SaUpdateLogConsole GetUpdateLogConsole(SbmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user