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.

125 lines
3.7 KiB
C#

8 months ago
using SlnMesnac.RfidUpload.Common;
2 months ago
using SlnMesnac.RfidUpload.Model.apiParam;
8 months ago
using System;
using System.Collections.Generic;
using System.Text;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2024 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* SlnMesnac.RfidUpload.Model.config
* 8dc07598-dc8a-4ae3-9f67-bc77314a266e
*
* WenJY
*
* 2024-05-28 14:09:03
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace SlnMesnac.RfidUpload.Model.config
{
public class AppConfig
{
private static readonly Lazy<AppConfig> lazy = new Lazy<AppConfig>(() => new AppConfig());
//private static StringChange stringChange = StringChange.Instance;
public static AppConfig Instance
{
get
{
return lazy.Value;
}
}
private AppConfig()
{
}
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/App.InI");
/// <summary>
/// 过滤间隔
/// </summary>
public string filterInterval
{
get { return iNIFile.IniReadValue("SystemConfig", "FilterInterval"); }
set { iNIFile.IniWriteValue("SystemConfig", "FilterInterval", value.ToString()); }
}
2 months ago
/// <summary>
/// 工作模式
/// </summary>
public string workModel
{
get { return iNIFile.IniReadValue("SystemConfig", "WorkModel"); }
set { iNIFile.IniWriteValue("SystemConfig", "WorkModel", value.ToString()); }
}
/// <summary>
/// 设备编码
/// </summary>
public string requestURL
{
get { return iNIFile.IniReadValue("SystemConfig", "RequestURL"); }
set { iNIFile.IniWriteValue("SystemConfig", "RequestURL", value.ToString()); }
}
public string sysCode
{
get { return iNIFile.IniReadValue("SystemConfig", "sysCode"); }
set { iNIFile.IniWriteValue("SystemConfig", "sysCode", value.ToString()); }
}
public string password
{
get { return iNIFile.IniReadValue("SystemConfig", "password"); }
set { iNIFile.IniWriteValue("SystemConfig", "password", value.ToString()); }
}
public string ak
{
get { return iNIFile.IniReadValue("SystemConfig", "ak"); }
set { iNIFile.IniWriteValue("SystemConfig", "ak", value.ToString()); }
}
public string sk
{
get { return iNIFile.IniReadValue("SystemConfig", "sk"); }
set { iNIFile.IniWriteValue("SystemConfig", "sk", value.ToString()); }
}
public string opOrgCode
{
get { return iNIFile.IniReadValue("SystemConfig", "opOrgCode"); }
set { iNIFile.IniWriteValue("SystemConfig", "opOrgCode", value.ToString()); }
}
public string devicedId
{
get { return iNIFile.IniReadValue("SystemConfig", "devicedId"); }
set { iNIFile.IniWriteValue("SystemConfig", "devicedId", value.ToString()); }
}
public string localUrl
{
get { return iNIFile.IniReadValue("SystemConfig", "localUrl"); }
set { iNIFile.IniWriteValue("SystemConfig", "localUrl", value.ToString()); }
}
8 months ago
}
}