39 lines
868 B
C#
39 lines
868 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using Tanshu.Accounts.Contracts;
|
|||
|
|
|||
|
namespace Tanshu.Accounts.PointOfSale
|
|||
|
{
|
|||
|
static class Session
|
|||
|
{
|
|||
|
private static UserBO currentUser;
|
|||
|
public static bool IsAuthenticated { get; private set; }
|
|||
|
public static UserBO User
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return currentUser;
|
|||
|
}
|
|||
|
set
|
|||
|
{
|
|||
|
if (value != null)
|
|||
|
{
|
|||
|
currentUser = value;
|
|||
|
IsAuthenticated = true;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
currentUser = null;
|
|||
|
IsAuthenticated = false;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
static public string printer()
|
|||
|
{
|
|||
|
return "";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|