Core
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user