lss
2025-05-16 790eb4d466531a0a727fbc617eb6447167c1da54
HH.WCS.Mobox3/HH.WCS.Mobox3.Emerson/util/Settings.cs
File was renamed from HH.WCS.Mobox3/HH.WCS.Mobox3.EmersonWCS/util/Settings.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Text.Json.Nodes;
namespace HH.WCS.EmersonWcs.util
namespace HH.WCS.Emerson.util
{
    public class Settings
    {
@@ -13,9 +13,7 @@
        public static string GZSeverUrl { get; set; }
        public static string SqlServer { get; set; }
        public static string SqlServer1 { get; set; }
        public static List<ConveyorLinesInfoModel> ConveyorLinesInfo { get; set; }
        public static List<deviceInfo> deviceInfos { get; set; }
        public static List<LinePlcInfo> linePlcInfo { get; set; }
        public static int port { get; set; }
        public static string WHCode { get; set; }
        public static string FacCode { get; set; }
@@ -100,14 +98,6 @@
                            {
                                deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());
                            }
                            if (keyValue.Name == "ConveyorLinesInfo")
                            {
                                ConveyorLinesInfo = JsonConvert.DeserializeObject<List<ConveyorLinesInfoModel>>(keyValue.Value.ToString());
                            }
                            if (keyValue.Name == "linePlcInfo")
                            {
                                linePlcInfo = JsonConvert.DeserializeObject<List<LinePlcInfo>>(keyValue.Value.ToString());
                            }
                        }
                    }
@@ -137,30 +127,5 @@
            public string code { get; set; }
        }
        public class ConveyorLinesInfoModel
        {
            public string deviceNo { get; set; }
            public string deviceSign { get; set; }
            public int code { get; set; }
            public string location { get; set; }
            public int writeAddr { get; set; }
            public int readAddr { get; set; }
            public int enable { get; set; }
        }
        public class LinePlcInfo
        {
            public string code { get; set; }
            public string location { get; set; }
            public string deviceNo { get; set; }
            public string address { get; set; }
            public int writeAddr { get; set; }
            public int readAddr { get; set; }
            public string[] useAddrNo { get; set; }
            public string inLoca { get; set; }
            public string outLoca { get; set; }
            public string taskType { get; set; }
            public int enable { get; set; }
        }
    }
}