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.7 KiB
C#
87 lines
2.7 KiB
C#
using HighWayIot.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HighWayIot.Config
|
|
{
|
|
public sealed class PlcConfig
|
|
{
|
|
|
|
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/Plc.InI");
|
|
|
|
|
|
private static readonly Lazy<PlcConfig> lazy = new Lazy<PlcConfig>(() => new PlcConfig());
|
|
public static PlcConfig Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
private StringChange stringChange = StringChange.Instance;
|
|
|
|
private PlcConfig()
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// 箱壳——出库货道号
|
|
/// </summary>
|
|
public string out_shell_spaceCode
|
|
{
|
|
get { return iniHelper.IniReadValue("shell_outStore_address", "出库货道号"); }
|
|
set { iniHelper.IniWriteValue("shell_outStore_address", "出库货道号", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 箱壳——出库数量
|
|
/// </summary>
|
|
public string out_shell_amount
|
|
{
|
|
get { return iniHelper.IniReadValue("shell_outStore_address", "出库数量"); }
|
|
set { iniHelper.IniWriteValue("shell_outStore_address", "出库数量", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 箱壳——出库任务号
|
|
/// </summary>
|
|
public string out_shell_task
|
|
{
|
|
get { return iniHelper.IniReadValue("shell_outStore_address", "出库任务号"); }
|
|
set { iniHelper.IniWriteValue("shell_outStore_address", "出库任务号", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 内胆——出库货道号
|
|
/// </summary>
|
|
public string out_liner_spaceCode
|
|
{
|
|
get { return iniHelper.IniReadValue("liner_outStore_address", "出库货道号"); }
|
|
set { iniHelper.IniWriteValue("liner_outStore_address", "出库货道号", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 内胆——出库数量
|
|
/// </summary>
|
|
public string out_liner_amount
|
|
{
|
|
get { return iniHelper.IniReadValue("liner_outStore_address", "出库数量"); }
|
|
set { iniHelper.IniWriteValue("liner_outStore_address", "出库数量", value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 内胆——出库任务号
|
|
/// </summary>
|
|
public string out_liner_task
|
|
{
|
|
get { return iniHelper.IniReadValue("liner_outStore_address", "出库任务号"); }
|
|
set { iniHelper.IniWriteValue("liner_outStore_address", "出库任务号", value); }
|
|
}
|
|
|
|
}
|
|
}
|