File was renamed from HH.WCS.Mobox3/HH.WCS.Mobox3.EmersonWCS/util/Settings.cs |
| | |
| | | using System.Collections.Generic; |
| | | using System.Text.Json.Nodes; |
| | | |
| | | namespace HH.WCS.EmersonWcs.util |
| | | namespace HH.WCS.Emerson.util |
| | | { |
| | | public class Settings |
| | | { |
| | |
| | | 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; } |
| | |
| | | { |
| | | 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()); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | 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; } |
| | | } |
| | | } |
| | | } |