57 lines
2.1 KiB
C#
57 lines
2.1 KiB
C#
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.UpdateLog;
|
|
using Sarand.Net.Standard.Dbas.Base;
|
|
using Sarand.Net.Standard.Dbas.ReferenceData;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Dbas.Consoles
|
|
{
|
|
//=======================================================================
|
|
public abstract class SbmReferenceDataConsole_Dbas : SaReferenceDataConsole_Dbas
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
private SaUpdateLogConsole updateLogConsole;
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
protected SbmReferenceDataConsole_Dbas(ISbmUserContext_Core userContext) :
|
|
base(SbmGlobals.Application.GetBusMgrDatabase(userContext.SessionContext))
|
|
{
|
|
UserContext = userContext;
|
|
}
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
if (updateLogConsole != null) updateLogConsole.Dispose(); updateLogConsole = null;
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public SbmSessionContext SessionContext { get; }
|
|
public ISbmUserContext_Core UserContext { get; }
|
|
// Item types.
|
|
public override short LanguageItemType { get { return (short)Sbm.ItemDataType.Unknown; } }
|
|
public override short RegionItemType { get { return (short)Sbm.ItemDataType.Region; } }
|
|
public override short CurrencyItemType { get { return (short)Sbm.ItemDataType.Currency; } }
|
|
public override short TaxCodeItemType { get { return (short)Sbm.ItemDataType.Unknown; } }
|
|
public override short UnitMeasureItemType { get { return (short)Sbm.ItemDataType.Unknown; } }
|
|
// Consoles.
|
|
public override SaUpdateLogConsole UpdateLogConsole
|
|
{
|
|
get
|
|
{
|
|
if (updateLogConsole == null)
|
|
updateLogConsole = SbmGlobals.Application.CreateUpdateLogConsole(UserContext);
|
|
return updateLogConsole;
|
|
}
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|