|
|
|
|
using HighWayIot.Common;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace HighWayIot.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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private AppConfig()
|
|
|
|
|
{
|
|
|
|
|
stationName = "泡后库";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string mesConnStr
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "mesConnStr"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "mesConnStr", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string scadaConnStr
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "scadaConnStr"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "scadaConnStr", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工位编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string stationCode
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "stationCode"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "stationCode", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 过点数据出库工位编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string outstationCode
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "outstationCode"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "outstationCode", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工位名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string stationName
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "stationName"); }
|
|
|
|
|
//get { return "箱壳内胆组装"; }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "stationName", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 箱壳库编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string shellStoreCode
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "shellStoreCode"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "shellStoreCode", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 内胆库编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string linerStoreCode
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "linerStoreCode"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "linerStoreCode", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string foamStoreCode
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "foamStoreCode"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "foamStoreCode", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 泡后物料类型编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string foamMaterialType
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "foamMaterialType"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "foamMaterialType", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 入库任务类型编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int instoreTaskType
|
|
|
|
|
{
|
|
|
|
|
get { return Convert.ToInt32(iniHelper.IniReadValue("system", "instoreTaskType")); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "instoreTaskType", value.ToString()); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出库任务类型编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int outstoreTaskType
|
|
|
|
|
{
|
|
|
|
|
get { return Convert.ToInt32(iniHelper.IniReadValue("system", "outstoreTaskType")); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "outstoreTaskType", value.ToString()); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 泡后库入库扫码器IP
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string foamHikRobotIp
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "foamHikRobotIp"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "foamHikRobotIp", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 泡后库出库扫码器IP
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string foamOutHikRobotIp
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "foamOutHikRobotIp"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "foamOutHikRobotIp", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string searchItems
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "searchItems"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "searchItems", value); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|