You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.3 KiB
C#
87 lines
2.3 KiB
C#
using Admin.Core.Common.Config;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Aucma.Core.PrintTo.Config
|
|
{
|
|
public sealed class AppConfig
|
|
{
|
|
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI");
|
|
|
|
|
|
private static readonly Lazy<AppConfig> lazy = new Lazy<AppConfig>(() => new AppConfig());
|
|
public static AppConfig Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
|
|
public AppConfig()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 产线编号
|
|
/// </summary>
|
|
public string ProductlineCode
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "ProductlineCode"); }
|
|
set { iniHelper.IniWriteValue("system", "ProductlineCode", value); }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 工位编号
|
|
/// </summary>
|
|
public string StationCode
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "StationCode"); }
|
|
set { iniHelper.IniWriteValue("system", "StationCode", value); }
|
|
}
|
|
/// <summary>
|
|
/// 班组代码
|
|
/// </summary>
|
|
public string TeamCode
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "TeamCode"); }
|
|
set { iniHelper.IniWriteValue("system", "TeamCode", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 班组名称
|
|
/// </summary>
|
|
public string TeamName
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "TeamName"); }
|
|
set { iniHelper.IniWriteValue("system", "TeamName", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 用户名
|
|
/// </summary>
|
|
public string Account
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "Account"); }
|
|
set { iniHelper.IniWriteValue("system", "Account", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 登录界面班组展示配置
|
|
/// </summary>
|
|
public string TeamConfig
|
|
{
|
|
get { return iniHelper.IniReadValue("system", "TeamConfig"); }
|
|
set { iniHelper.IniWriteValue("system", "TeamConfig", value); }
|
|
}
|
|
|
|
}
|
|
}
|