diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Util/UserJudge.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Util/UserJudge.cs
index d0ffdab..ffe8efe 100644
--- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Util/UserJudge.cs
+++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Util/UserJudge.cs
@@ -2,6 +2,7 @@
using Mesnac.Basic;
using System;
using System.Collections.Generic;
+using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -35,5 +36,22 @@ namespace Mesnac.Action.ChemicalWeighing.Util
{
return !IsEdit();
}
+
+
+ public static bool IsSettingNormalUser
+ {
+ get
+ {
+ var settingUser= ConfigurationManager.AppSettings["IsNormalUser"];
+
+ if(string.IsNullOrEmpty(settingUser) )
+ {
+ return false;
+ }
+
+ return Convert.ToBoolean(settingUser);
+
+ }
+ }
}
}
diff --git a/Main/MCRun/App.config b/Main/MCRun/App.config
index b7f1fc2..0f0dafe 100644
--- a/Main/MCRun/App.config
+++ b/Main/MCRun/App.config
@@ -4,6 +4,9 @@
+
+
+
diff --git a/Main/Mensac.Gui.Run.Global/AppConfigHandler.cs b/Main/Mensac.Gui.Run.Global/AppConfigHandler.cs
index 276ab55..a4c24ec 100644
--- a/Main/Mensac.Gui.Run.Global/AppConfigHandler.cs
+++ b/Main/Mensac.Gui.Run.Global/AppConfigHandler.cs
@@ -24,6 +24,8 @@ namespace Mesnac.Gui.Run.Global
private static AppConfigHandler instance = null;
+ public string IsNormalUser { get; set; }
+
private string _mesnacPlugInPath = String.Empty; //自定义插件目录
private string _mcProjectPath = String.Empty; //组态工程目录
private string _sysConfigPath = String.Empty; //系统工程配置目录
@@ -37,6 +39,7 @@ namespace Mesnac.Gui.Run.Global
private AppConfigHandler()
{
+ this.IsNormalUser = ConfigurationManager.AppSettings["IsNormalUser"];
this._mesnacPlugInPath = ConfigurationManager.AppSettings["MesnacPlugInPath"];
this._mcProjectPath = ConfigurationManager.AppSettings["MCProjectPath"];
this._sysConfigPath = ConfigurationManager.AppSettings["SysConfigPath"];