全部信息

dep
我叫锄头 11 months ago
parent ddc3d1f299
commit 725b5aceed

@ -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);
}
}
}
}

@ -4,6 +4,9 @@
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<appSettings>
<add key="IsNormalUser" value="true"/>
<!--控件属性列表文件-->
<add key="componentsPropertyFile" value="\data\ComponentProperty.xml" />
<!--控件动画列表文件-->

@ -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"];

Loading…
Cancel
Save