37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
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;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|