narsil/Tanshu.Accounts.PointOfSale/User Management/RoleFactoryBI.cs

29 lines
687 B
C#
Raw Permalink Normal View History

2010-03-02 17:56:21 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Tanshu.Accounts.BI;
namespace Tanshu.Accounts.PointOfSale
{
public class RoleFactoryBI
{
private RoleFactoryBI()
{ }
public static RoleBI GetRoleBI(string roleID)
{
RoleBI roleBI = new RoleBI(roleID, CurrentUser.user.UserID);
if (!roleBI.IsAllowed)
{
using (LoginForm frm = new LoginForm())
{
frm.ShowDialog();
roleBI.Evelvate(frm.UserName);
}
}
return roleBI;
}
}
}