海波 张
9 天以前 46dc31d4e66e45cde693b9c909691a710fabfcee
util/Settings.cs
@@ -17,10 +17,19 @@
        public static string TmDeviceIp { get; set; }
        //hosttoagv鉴权
        //public static string AppKey { get; set; }
        //public static string AppSecret { get; set; }
        public static int TmDevicePort { get; set; }
        public static List<safetyLocation> safetyLocations { get; set; }
        public static string WcsApiAddres { get; set; }
        public static string MesApiAddres { get; set; }
        /// <summary>
        /// 空托缓存区
@@ -32,14 +41,28 @@
        /// </summary>
        public static string MesGetItemApi { get; set; }
        
        /// <summary>
        /// 配置
        /// </summary>
        public static List<deviceInfo> deviceInfos { get; set; }
        /// <summary>
        /// 胎面设备配置
        /// </summary>
        public static List<TmDeviceInfo> TmDeviceInfos { get; set; }
        public static List<areaInfo> areaInfos { get; set; }
        /// <summary>
        /// 优先级配置
        /// </summary>
        //public static OutMinutePriority outMinutePriority { get; set; }
        /// <summary>
        /// NDC地址
        /// </summary>
        public static string NDCApiUrl { get; set; }
        
@@ -63,7 +86,11 @@
                            {
                                WcsApiAddres = keyValue.Value.ToString();
                            }
                            if (keyValue.Name == "MesApiAddres")
                            {
                                MesApiAddres = keyValue.Value.ToString();
                            }
                            if (keyValue.Name == "MesGetItemApi")
                            {
                                MesGetItemApi = keyValue.Value.ToString();
@@ -86,7 +113,16 @@
                            {
                                EmptyPalletBufferArea = keyValue.Value.ToString();
                            }
                            //hosttoagv鉴权
                            //if (keyValue.Name == "AppKey")
                            //{
                            //    AppKey = keyValue.Value.ToString();
                            //}
                            //if (keyValue.Name == "AppSecret")
                            //{
                            //    AppSecret = keyValue.Value.ToString();
                            //}
                            if (keyValue.Name == "SafetyLocation")
                            {
@@ -97,6 +133,11 @@
                            {
                                TmDeviceInfos = JsonConvert.DeserializeObject<List<TmDeviceInfo>>(keyValue.Value.ToString());
                            }
                            //if (keyValue.Name == "OutMinutePriority")
                            //{
                            //    outMinutePriority = JsonConvert.DeserializeObject<OutMinutePriority> (keyValue.Value.ToString());
                            //}
                            //if (keyValue.Name == "DeviceInfo")
                            //{
                            //    deviceInfos = JsonConvert.DeserializeObject<List<deviceInfo>>(keyValue.Value.ToString());
@@ -116,6 +157,19 @@
        }
        //      "OutMinutePriority": {
        //  "Minute": 10,
        //  "Priority": 1
        //},
        public class OutMinutePriority
        {
            public int Minute { get; set; }
            public int Priority { get; set; }
        }
        public class TmDeviceInfo
        {
            public string deviceName { get; set; }