60 lines
1.9 KiB
C#
60 lines
1.9 KiB
C#
using Sarand.PatientMgr.Core.App;
|
|
using Sarand.PatientMgr.Core.Mgr;
|
|
using Sarand.Core.Base;
|
|
using Sarand.Core.IO;
|
|
using Sarand.PatientMgr.Win.Dbas.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Sarand.PatientMgr.Win.Dbas.Mgr;
|
|
|
|
namespace Sarand.PatientMgr.Win.Dbas.App
|
|
{
|
|
//=======================================================================
|
|
public class SpmSystem_WinDbas : SpmSystem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Static initialisation.
|
|
public static void InitStatics ()
|
|
{
|
|
// Initialise static environment values.
|
|
ComputerName = System.Environment.MachineName;
|
|
UserName = Environment.UserName;
|
|
ApplicationPath = System.Reflection.Assembly.GetEntryAssembly().Location;
|
|
ApplicationFolder = Path.GetDirectoryName(ApplicationPath);
|
|
AssemblyBuildAt = FileUtil.GetFileLastWriteTime(ApplicationPath);
|
|
|
|
// Initialise other statics.
|
|
SpmFileUtil.InitStatics();
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SpmSystem_WinDbas (PropertySet properties) : base(properties)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// D a t a M a n a g e r s
|
|
//-------------------------------------------------------------------
|
|
public override SpmAdmissionMgr CreateAdmissionMgr (SpmUserContext userContext)
|
|
{
|
|
return new SpmAdmissionMgr_Dbas(userContext);
|
|
}
|
|
public override SpmDepartmentMgr CreateDepartmentMgr(SpmUserContext userContext)
|
|
{
|
|
return new SpmDepartmentMgr_Dbas(userContext);
|
|
}
|
|
public override SpmInstitutionMgr CreateInstitutionMgr(SpmUserContext userContext)
|
|
{
|
|
return new SpmInstitutionMgr_Dbas(userContext);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|