From 8accda250de2a637336a40e04085e1a0cb556c5c Mon Sep 17 00:00:00 2001 From: cjs <2216046164@qq.com> Date: 星期一, 23 六月 2025 17:30:36 +0800 Subject: [PATCH] 111 --- HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs | 62 ++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 10 deletions(-) diff --git a/HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs b/HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs index d45f719..c9cae19 100644 --- a/HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs +++ b/HH.WCS.Mobox3.NongFuLinZhi/util/Settings.cs @@ -2,6 +2,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using static HH.WCS.Mobox3.NFLZ.util.Settings; namespace HH.WCS.Mobox3.NFLZ.util { @@ -9,6 +10,10 @@ { public static string HostToAgvServerUrl { get; set; } public static string HASeverUrl { get; set; } + public static string ProjectName { get; set; } + public static string FactoryCode { get; set; } + public static string FactoryName { get; set; } + public static string OneSign { get; set; } public static string AppKey { get; set; } public static string AppSecret { get; set; } public static string MoboxSeverUrl { get; set; } @@ -16,11 +21,15 @@ public static string SqlServer1 { get; set; } public static List<deviceInfo> deviceInfos { get; set; } = new List<deviceInfo>(); public static List<areaInfo> areaInfos { get; set; } = new List<areaInfo>(); - public static List<Tasktype> Tasktypes { get; set; } = new List<Tasktype>(); + public static List<pPZSJSite> pPZSJSites { get; set; } = new List<pPZSJSite>(); + public static List<thirdPartyUrl> thirdPartyUrls { get; set; } = new List<thirdPartyUrl>(); + public static List<httpApiVerify> httpApiVerifys { get; set; } = new List<httpApiVerify>(); + public static List<dXSite> dXSites { get; set; } = new List<dXSite>(); public static int port { get; set; } public static string WHCode { get; set; } public static string FacCode { get; set; } + public static int tcpPort { get; set; } public static void Init() { @@ -40,9 +49,9 @@ { HostToAgvServerUrl = keyValue.Value.ToString(); } - if (keyValue.Name == "Tasktype") + if (keyValue.Name == "PPZSJSite") { - Tasktypes = JsonConvert.DeserializeObject<List<Tasktype>>(keyValue.Value.ToString()); + pPZSJSites = JsonConvert.DeserializeObject<List<pPZSJSite>>(keyValue.Value.ToString()); } if (keyValue.Name == "HASeverUrl") { @@ -76,6 +85,10 @@ { FacCode = keyValue.Value.ToString(); } + if (keyValue.Name == "TcpPort") + { + tcpPort = int.Parse(keyValue.Value.ToString()); + } if (keyValue.Name == "ApiPort") { port = int.Parse(keyValue.Value.ToString()); @@ -87,6 +100,18 @@ if (keyValue.Name == "AreaInfo") { areaInfos = JsonConvert.DeserializeObject<List<areaInfo>>(keyValue.Value.ToString()); + } + if (keyValue.Name == "ThirdPartyUrl") + { + thirdPartyUrls = JsonConvert.DeserializeObject<List<thirdPartyUrl>>(keyValue.Value.ToString()); + } + if (keyValue.Name == "HttpApiVerify") + { + httpApiVerifys = JsonConvert.DeserializeObject<List<httpApiVerify>>(keyValue.Value.ToString()); + } + if (keyValue.Name == "DXSite") + { + dXSites = JsonConvert.DeserializeObject<List<dXSite>>(keyValue.Value.ToString()); } } } @@ -100,15 +125,32 @@ } - public class Tasktype + public class httpApiVerify { - public string StartArea { get; set; } - public string EndArea { get; set; } - public string TaskType { get; set; } - } - + public string VerifyNo { get; set; } + public string Project { get; set; } + public string[] Extend { get; set; } + public int enable { get; set; } + } - + public class dXSite + { + public string loc { get; set; } + public int site { get; set; } + } + public class thirdPartyUrl + { + public string UrlNo { get; set; } + public string UrlName { get; set; } + public string Url { get; set; } + public int enable { get; set; } + } + public class pPZSJSite + { + public string siteName { get; set; } + public string[] site { get; set; } + public int enable { get; set; } + } public class deviceInfo { public string address { get; set; } -- Gitblit v1.9.1