using Admin.Core.Common.Config; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aucma.Core.SheetMetal.Config { public sealed class AppConfig { private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI"); private static readonly Lazy lazy = new Lazy(() => new AppConfig()); public static AppConfig Instance { get { return lazy.Value; } } public AppConfig() { } /// /// 产线编号 /// public string ProductlineCode { get { return iniHelper.IniReadValue("system", "ProductlineCode"); } set { iniHelper.IniWriteValue("system", "ProductlineCode", value); } } /// /// 工位编号 /// public string StationCode { get { return iniHelper.IniReadValue("system", "StationCode"); } set { iniHelper.IniWriteValue("system", "StationCode", value); } } /// /// 班组代码 /// public string TeamCode { get { return iniHelper.IniReadValue("system", "TeamCode"); } set { iniHelper.IniWriteValue("system", "TeamCode", value); } } /// /// 班组名称 /// public string TeamName { get { return iniHelper.IniReadValue("system", "TeamName"); } set { iniHelper.IniWriteValue("system", "TeamName", value); } } /// /// 用户名 /// public string Account { get { return iniHelper.IniReadValue("system", "Account"); } set { iniHelper.IniWriteValue("system", "Account", value); } } } }