38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using Sarand.Core.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.PatientMgr.Core.App
|
|
{
|
|
//=======================================================================
|
|
public class SpmUserContext
|
|
{
|
|
//-------------------------------------------------------------------
|
|
public class UserData
|
|
{
|
|
public SysId SecurityItemId { get; internal set; } = new SysId();
|
|
public String Name { get; internal set; } = "";
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
protected SpmUserContext (SpmSessionContext sessionContext)
|
|
{
|
|
SessionContext = sessionContext;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public SpmSessionContext SessionContext { get; }
|
|
public UserData User { get; } = new UserData();
|
|
public SpmSecurityProfile SecurityProfile { get; } = new SpmSecurityProfile(false);
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|