using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
namespace SlnMesnac.Config
{
///
/// 系统配置
///
public sealed class DebugConfig
{
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI");
private static readonly Lazy lazy = new Lazy(() => new DebugConfig());
public static DebugConfig Instance
{
get
{
return lazy.Value;
}
}
public DebugConfig()
{
}
///
//系统运行状态;点击一键启动按钮和急停复位,改1,点击一键停止和急停改0;1的状态下根据缓存区自动启动设备
///
public string SystemStatus
{
get { return iniHelper.IniReadValue("system", "SystemStatus"); }
set { iniHelper.IniWriteValue("system", "SystemStatus", value); }
}
///
///缓存区重量
///
public string BufferWeight
{
get { return iniHelper.IniReadValue("system", "BufferWeight"); }
set { iniHelper.IniWriteValue("system", "BufferWeight", value); }
}
///
///2楼缓存区最大停机重量
///
public string MaxBufferWeight
{
get { return iniHelper.IniReadValue("system", "MaxBufferWeight"); }
set { iniHelper.IniWriteValue("system", "MaxBufferWeight", value); }
}
///
///2楼缓存区最小启动重量
///
public string MinBufferWeight
{
get { return iniHelper.IniReadValue("system", "MinBufferWeight"); }
set { iniHelper.IniWriteValue("system", "MinBufferWeight", value); }
}
///
///系统当前使用配方模版
///
public string RecipeName
{
get { return iniHelper.IniReadValue("system", "RecipeName"); }
set { iniHelper.IniWriteValue("system", "RecipeName", value); }
}
///
///配方运行模式
///
public string RecipeMode
{
get { return iniHelper.IniReadValue("system", "RecipeMode"); }
set { iniHelper.IniWriteValue("system", "RecipeMode", value); }
}
///
///拆包机螺旋--烘干机螺旋切换间隔(单位:ms)
///
public string UnpackToHotTime
{
get { return iniHelper.IniReadValue("system", "UnpackToHotTime"); }
set { iniHelper.IniWriteValue("system", "UnpackToHotTime", value); }
}
///
///烘干机螺旋--螺旋1切换间隔(单位:ms)
///
public string HotToSpiralTime
{
get { return iniHelper.IniReadValue("system", "HotToSpiralTime"); }
set { iniHelper.IniWriteValue("system", "HotToSpiralTime", value); }
}
///
///#螺旋1--螺旋2切换间隔(单位:ms)
///
public string SpiralTwoTime
{
get { return iniHelper.IniReadValue("system", "SpiralTwoTime"); }
set { iniHelper.IniWriteValue("system", "SpiralTwoTime", value); }
}
///
///无计划时,按照无计划订单处理,MaterialId可修改
///
public string MaterialId
{
get { return iniHelper.IniReadValue("system", "MaterialId"); }
set { iniHelper.IniWriteValue("system", "MaterialId", value); }
}
///
///喷码机IP
///
public string BarCodeMachineIP
{
get { return iniHelper.IniReadValue("system", "BarCodeMachineIP"); }
set { iniHelper.IniWriteValue("system", "BarCodeMachineIP", value); }
}
}
}