This commit is contained in:
2019-04-09 16:34:59 +01:00
parent 3ef1475d63
commit ef02a3a6ad
46 changed files with 2122 additions and 0 deletions
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Sarand.PatientMgr.Core.App
{
//=======================================================================
public class SpmSessionContext
{
//-------------------------------------------------------------------
// Protected construction - use derived object.
protected SpmSessionContext (ushort index, Spm.Site site)
{
Index = index;
Site = site;
}
//-------------------------------------------------------------------
// Properties.
public ushort Index { get; protected set; }
public Spm.Site Site { get; protected set; }
public String SiteCode { get { return SpmSystem.GetSiteCode(Site); } }
//-------------------------------------------------------------------
// Comparison.
public bool Equals (SpmSessionContext sessionContext)
{
if (sessionContext.Index != Index) return false;
if (sessionContext.Site != Site) return false;
return true;
}
//-------------------------------------------------------------------
}
//=======================================================================
}