using System.Collections.Generic;
|
|
namespace HH.WCS.Hexafluo.util
|
{
|
public class Settings
|
{
|
#region _HostToAgvServerUrl
|
private static string _hostToAgvServerUrl = "";
|
public static string HostToAgvServerUrl
|
{
|
get
|
{
|
if (_hostToAgvServerUrl == "")
|
{
|
_hostToAgvServerUrl = XmlHelper.GetElementValue("HostToAgvServerUrl");
|
}
|
return _hostToAgvServerUrl;
|
}
|
}
|
#endregion
|
|
#region _OITcpServerUrl
|
private static string _OITcpServerUrl = "";
|
public static string OITcpSeverUrl
|
{
|
get
|
{
|
if (_OITcpServerUrl == "")
|
{
|
_OITcpServerUrl = XmlHelper.GetElementValue("OITcpServerUrl");
|
}
|
return _OITcpServerUrl;
|
}
|
}
|
#endregion
|
|
#region _SqlServer
|
private static string _SqlServer = "";
|
public static string SqlServer
|
{
|
get
|
{
|
if (_SqlServer == "")
|
{
|
_SqlServer = XmlHelper.GetElementValue("SqlServer");
|
}
|
return _SqlServer;
|
}
|
}
|
|
private static string _SqlServer2 = "";
|
public static string SqlServer2
|
{
|
get
|
{
|
if (_SqlServer2 == "")
|
{
|
_SqlServer2 = XmlHelper.GetElementValue("SqlServer2");
|
}
|
return _SqlServer2;
|
}
|
}
|
|
private static string _SqlServer3 = "";
|
public static string SqlServer3
|
{
|
get
|
{
|
if (_SqlServer3 == "")
|
{
|
_SqlServer3 = XmlHelper.GetElementValue("SqlServer3");
|
}
|
return _SqlServer3;
|
}
|
}
|
|
private static string _SqlServer4 = "";
|
public static string SqlServer4
|
{
|
get
|
{
|
if (_SqlServer4 == "")
|
{
|
_SqlServer4 = XmlHelper.GetElementValue("SqlServer4");
|
}
|
return _SqlServer4;
|
}
|
}
|
|
private static string _SqlServer5 = "";
|
public static string SqlServer5
|
{
|
get
|
{
|
if (_SqlServer5 == "")
|
{
|
_SqlServer5 = XmlHelper.GetElementValue("SqlServer5");
|
}
|
return _SqlServer5;
|
}
|
}
|
private static string _SqlServer6 = "";
|
public static string SqlServer6
|
{
|
get
|
{
|
if (_SqlServer6 == "")
|
{
|
_SqlServer6 = XmlHelper.GetElementValue("SqlServer6");
|
}
|
return _SqlServer6;
|
}
|
}
|
private static string _SqlServer7 = "";
|
public static string SqlServer7
|
{
|
get
|
{
|
if (_SqlServer7 == "")
|
{
|
_SqlServer7 = XmlHelper.GetElementValue("SqlServer7");
|
}
|
return _SqlServer7;
|
}
|
}
|
private static string _SqlServer8 = "";
|
public static string SqlServer8
|
{
|
get
|
{
|
if (_SqlServer8 == "")
|
{
|
_SqlServer8 = XmlHelper.GetElementValue("SqlServer8");
|
}
|
return _SqlServer8;
|
}
|
}
|
private static string _SqlServer9 = "";
|
public static string SqlServer9
|
{
|
get
|
{
|
if (_SqlServer9 == "")
|
{
|
_SqlServer9 = XmlHelper.GetElementValue("SqlServer9");
|
}
|
return _SqlServer9;
|
}
|
}
|
private static string _SqlServer10 = "";
|
public static string SqlServer10
|
{
|
get
|
{
|
if (_SqlServer10 == "")
|
{
|
_SqlServer10 = XmlHelper.GetElementValue("SqlServer10");
|
}
|
return _SqlServer10;
|
}
|
}
|
|
private static string _SqlServer11 = "";
|
public static string SqlServer11
|
{
|
get
|
{
|
if (_SqlServer11 == "")
|
{
|
_SqlServer11 = XmlHelper.GetElementValue("SqlServer11");
|
}
|
return _SqlServer11;
|
}
|
}
|
|
private static string _SqlServer12 = "";
|
public static string SqlServer12
|
{
|
get
|
{
|
if (_SqlServer12 == "")
|
{
|
_SqlServer12 = XmlHelper.GetElementValue("SqlServer12");
|
}
|
return _SqlServer12;
|
}
|
}
|
private static string _SqlServer13 = "";
|
public static string SqlServer13
|
{
|
get
|
{
|
if (_SqlServer13 == "")
|
{
|
_SqlServer13 = XmlHelper.GetElementValue("SqlServer13");
|
}
|
return _SqlServer13;
|
}
|
}
|
private static string _SqlServer14 = "";
|
public static string SqlServer14
|
{
|
get
|
{
|
if (_SqlServer14 == "")
|
{
|
_SqlServer14 = XmlHelper.GetElementValue("SqlServer14");
|
}
|
return _SqlServer14;
|
}
|
}
|
private static string _SqlServer15 = "";
|
public static string SqlServer15
|
{
|
get
|
{
|
if (_SqlServer15 == "")
|
{
|
_SqlServer15 = XmlHelper.GetElementValue("SqlServer15");
|
}
|
return _SqlServer15;
|
}
|
}
|
private static string _SqlServer16 = "";
|
public static string SqlServer16
|
{
|
get
|
{
|
if (_SqlServer16 == "")
|
{
|
_SqlServer16 = XmlHelper.GetElementValue("SqlServer16");
|
}
|
return _SqlServer16;
|
}
|
}
|
|
private static string _SqlServer17 = "";
|
public static string SqlServer17
|
{
|
get
|
{
|
if (_SqlServer17 == "")
|
{
|
_SqlServer17 = XmlHelper.GetElementValue("SqlServer17");
|
}
|
return _SqlServer17;
|
}
|
}
|
|
private static string _SqlServer18 = "";
|
public static string SqlServer18
|
{
|
get
|
{
|
if (_SqlServer18 == "")
|
{
|
_SqlServer18 = XmlHelper.GetElementValue("SqlServer18");
|
}
|
return _SqlServer18;
|
}
|
}
|
|
private static string _SqlServer19 = "";
|
public static string SqlServer19
|
{
|
get
|
{
|
if (_SqlServer19 == "")
|
{
|
_SqlServer19 = XmlHelper.GetElementValue("SqlServer19");
|
}
|
return _SqlServer19;
|
}
|
}
|
private static string _SqlServer20 = "";
|
public static string SqlServer20
|
{
|
get
|
{
|
if (_SqlServer20 == "")
|
{
|
_SqlServer20 = XmlHelper.GetElementValue("SqlServer20");
|
}
|
return _SqlServer20;
|
}
|
}
|
private static string _SqlServer21 = "";
|
public static string SqlServer21
|
{
|
get
|
{
|
if (_SqlServer21 == "")
|
{
|
_SqlServer21 = XmlHelper.GetElementValue("SqlServer21");
|
}
|
return _SqlServer21;
|
}
|
}
|
#endregion
|
|
|
#region cameraInfo
|
private static string _cameraInfo = "";
|
public static string doorInfoList
|
{
|
get
|
{
|
if (_cameraInfo == "")
|
{
|
_cameraInfo = XmlHelper.GetElementValue("cameraInfo");
|
}
|
return _cameraInfo;
|
}
|
}
|
|
private static List<cameraInfo> cameraInfos = new List<cameraInfo>();
|
public static List<cameraInfo> GetCameraInfoList()
|
{
|
if (cameraInfos.Count == 0 && doorInfoList != "")
|
{
|
cameraInfos = Newtonsoft.Json.JsonConvert.DeserializeObject<List<cameraInfo>>(doorInfoList);
|
}
|
return cameraInfos;
|
}
|
/// <summary>
|
/// {"site":"1","location":"aaa1","group":"1组","locType":1,"order":0,},
|
/// </summary>
|
public class cameraInfo
|
{
|
public string site { get; set; }
|
public string location { get; set; }
|
}
|
#endregion
|
|
#region processFlow
|
private static string _processFlow = "";
|
public static string processFlowList
|
{
|
get
|
{
|
if (_processFlow == "")
|
{
|
_processFlow = XmlHelper.GetElementValue("processFlow");
|
}
|
return _processFlow;
|
}
|
}
|
|
private static List<processFlow> processFlows = new List<processFlow>();
|
public static List<processFlow> GetProcessFlowList()
|
{
|
if (processFlows.Count == 0 && doorInfoList != "")
|
{
|
processFlows = Newtonsoft.Json.JsonConvert.DeserializeObject<List<processFlow>>(processFlowList);
|
}
|
return processFlows;
|
}
|
|
public class processFlow
|
{
|
public string startBit { get; set; }
|
}
|
#endregion
|
#region SettingHelper
|
|
|
private static string _settingHelper = "";
|
public static string SettingHelperList
|
{
|
get
|
{
|
if (_settingHelper == "")
|
{
|
_settingHelper = XmlHelper.GetElementValue("SettingHelper");
|
}
|
return _settingHelper;
|
}
|
}
|
|
#endregion
|
|
|
#region openKey
|
|
|
private static string _CameraOpenKey = "";
|
public static string CameraOpenKeyList
|
{
|
get
|
{
|
if (_CameraOpenKey == "")
|
{
|
_CameraOpenKey = XmlHelper.GetElementValue("CameraOpenKey");
|
}
|
return _CameraOpenKey;
|
}
|
}
|
|
#endregion
|
|
|
|
#region TmHelper
|
|
|
private static string _TmHelper = "";
|
public static string TmHelperList
|
{
|
get
|
{
|
if (_TmHelper == "")
|
{
|
_TmHelper = XmlHelper.GetElementValue("TmHelper");
|
}
|
return _TmHelper;
|
}
|
}
|
|
#endregion
|
|
#region WcsHelper
|
|
|
private static string _WcsHelper = "";
|
public static string WcsHelperList
|
{
|
get
|
{
|
if (_WcsHelper == "")
|
{
|
_WcsHelper = XmlHelper.GetElementValue("WcsHelper");
|
}
|
return _WcsHelper;
|
}
|
}
|
|
#endregion
|
|
#region MesHelper
|
|
|
private static string _MesHelper = "";
|
public static string MesHelperList
|
{
|
get
|
{
|
if (_MesHelper == "")
|
{
|
_MesHelper = XmlHelper.GetElementValue("MesHelper");
|
}
|
return _MesHelper;
|
}
|
}
|
|
#endregion
|
|
|
#region TableHelper 项目表名
|
|
|
private static string _TableHelper = "";
|
public static string TableHelperList
|
{
|
get
|
{
|
if (_TableHelper == "")
|
{
|
_TableHelper = XmlHelper.GetElementValue("ProjectTableName");
|
}
|
return _TableHelper;
|
}
|
}
|
|
#endregion
|
}
|
}
|