using DevExpress.DataProcessing;
using Mesnac.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.Util
{
public class UserJudge
{
///
/// 判断是否为超级用户
///
/// true为超级用户,false为普通Run环境用户
public static bool IsEdit()
{
string userName = UserInfo.Instance.UserName;
if(userName == "mesnac" || string.IsNullOrEmpty(userName))
{
return true;
}
else
{
return false;
}
}
///
/// 判断是否为超级用户
///
/// true为普通Run环境用户,false为超级用户
public static bool IsNormalUser()
{
return !IsEdit();
}
}
}