Add project files.
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
||||
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(SbmUserContext userContext) :
|
||||
base(userContext)
|
||||
{
|
||||
db = (SbmGlobals.Application.GetDatabase(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.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user