54 lines
2.0 KiB
C#
54 lines
2.0 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.Data;
|
|
using Sarand.Net.Standard.Base.Dbas;
|
|
using Sarand.Net.Standard.Dbas.Base;
|
|
using System;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Dbas.Mgr
|
|
{
|
|
//=======================================================================
|
|
internal partial class SbmProcessMgr_Dbas : SbmProcessMgr
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Static Definitions - Alias&Prefix.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
private SacsDatabase db = null;
|
|
private readonly SbmDbDataItem.SbmDatabaseInfo dbInfo;
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SbmProcessMgr_Dbas(ISbmUserContext userContext) :
|
|
base(userContext)
|
|
{
|
|
db = (SbmGlobals.Application.GetBusMgrDatabase(SessionContext) as SacsDatabase);
|
|
dbInfo = new SbmDbDataItem.SbmDatabaseInfo(db.DatabaseName, db.GetTableDfns());
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
protected ISacsDatabase Database { get { return db; } }
|
|
protected SbmDbDataItem.SbmDatabaseInfo DbInfo { get { return dbInfo; } }
|
|
protected String TableName_Process { get { return SbmDbDfn.GetTableName(SbmDbDfn.TableIdx.Process); } }
|
|
protected String TableName_ItemLink { get { return SbmDbDfn.GetTableName(SbmDbDfn.TableIdx.ItemLink); } }
|
|
public override bool ProcessDatabaseIsValid
|
|
{
|
|
get
|
|
{
|
|
if (!TableExists(SbmDbDfn.TableIdx.Process)) return false;
|
|
if (!TableExists(SbmDbDfn.TableIdx.ItemLink)) return false;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Utilities.
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|