48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
using Sarand.Core.Bus;
|
|
using Sarand.Core.ItemOptions;
|
|
using Sarand.Core.UpdateLog;
|
|
using Sarand.PatientMgr.Core.App;
|
|
using Sarand.Win.Dbas.Base;
|
|
using Sarand.Win.Dbas.ItemOptions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.PatientMgr.Win.Dbas.Consoles
|
|
{
|
|
//=======================================================================
|
|
public abstract class SpmItemOptionConsole_Dbas : SaItemOptionConsole_Dbas
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
protected SpmItemOptionConsole_Dbas (SpmSessionContext sessionContext, SacsDatabase database) : base(database)
|
|
{
|
|
SessionContext = sessionContext;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public SpmSessionContext SessionContext { get; }
|
|
public override short ItemOptionDataType { get { return (short)Spm.DataItemType.ItemOption; } }
|
|
public override SaUpdateLogConsole UpdateLogConsole { get { return SpmGlobals.Application.GetUpdateLogConsole(SessionContext); } }
|
|
|
|
//-------------------------------------------------------------------
|
|
// I t e m O p t i o n D e f i n i t i o n s
|
|
//-------------------------------------------------------------------
|
|
public override List<SaItemOptionDfn> GetItemOptionDfnsForItem (ItemId itemId)
|
|
{
|
|
// ToDo SpmItemOptionConsole_Dbas.GetItemOptionDfnsForItem
|
|
/*
|
|
if (itemId.Type == (int)Spm.DataItemType.Interface)
|
|
return SpmGlobals.ConsoleHelper.GetInterfaceConsole(SessionContext).GetInterfaceItemOptionDfns(itemId.Id);
|
|
*/
|
|
return null;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|