diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 048174c..7769c30 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -102,7 +102,8 @@ namespace SunlightCentralizedControlManagement_SCCM_ private void ButtonSYS_Click(object sender, RoutedEventArgs e) { - Picture.Content = new View.MachinesSet();//EngineerSetView(); + // Picture.Content = new View.MachinesSet();//EngineerSetView(); + Picture.Content = new View.EngineerSetView(); } } } diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 0bbd0e9..b7add10 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -1311,6 +1311,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties { } } + /// + /// 查找类似 Mode 的本地化字符串。 + /// + public static string Mode { + get { + return ResourceManager.GetString("Mode", resourceCulture); + } + } + /// /// 查找类似 Monitor 的本地化字符串。 /// @@ -1491,6 +1500,15 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties { } } + /// + /// 查找类似 Password 的本地化字符串。 + /// + public static string Password { + get { + return ResourceManager.GetString("Password", resourceCulture); + } + } + /// /// 查找类似 Paused 的本地化字符串。 /// @@ -2076,6 +2094,24 @@ namespace SunlightCentralizedControlManagement_SCCM_.Properties { } } + /// + /// 查找类似 SERVER 的本地化字符串。 + /// + public static string SERVER { + get { + return ResourceManager.GetString("SERVER", resourceCulture); + } + } + + /// + /// 查找类似 SQL 的本地化字符串。 + /// + public static string SQL { + get { + return ResourceManager.GetString("SQL", resourceCulture); + } + } + /// /// 查找类似 StartDate 的本地化字符串。 /// diff --git a/Properties/Resources.en-US.resx b/Properties/Resources.en-US.resx index ab56071..dfcc2f1 100644 --- a/Properties/Resources.en-US.resx +++ b/Properties/Resources.en-US.resx @@ -927,4 +927,16 @@ Test + + SQL + + + SERVER + + + Password + + + Mode + \ No newline at end of file diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 160f9f1..9443815 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -927,4 +927,16 @@ Test + + SQL + + + SERVER + + + Password + + + Mode + \ No newline at end of file diff --git a/Properties/Resources.zh-CN.resx b/Properties/Resources.zh-CN.resx index 9ccc0a0..4163f78 100644 --- a/Properties/Resources.zh-CN.resx +++ b/Properties/Resources.zh-CN.resx @@ -927,4 +927,16 @@ 测试 + + 数据库 + + + 服务器 + + + 密码 + + + 模式 + \ No newline at end of file diff --git a/UserClass/AsyncTcpClient.cs b/UserClass/AsyncTcpClient.cs index 1f039b1..07513f2 100644 --- a/UserClass/AsyncTcpClient.cs +++ b/UserClass/AsyncTcpClient.cs @@ -108,9 +108,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass } else if (SYSAPI == "SC831") { - DAT = DAT.Substring(DAT.IndexOf("]") + 1); - - MonitorView.TechnologicalProcess = JsonConvert.DeserializeObject(DAT);//反序列化 + DAT = DAT.Substring(DAT.IndexOf("]") + 1); + MonitorView.TechnologicalProcess = JsonConvert.DeserializeObject(DAT);//反序列化 } else if (SYSAPI == "SC832") { @@ -125,20 +124,9 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass else if (SYSAPI == "SC851") { DAT = DAT.Substring(DAT.IndexOf("]") + 1); - - - DataTable obj = JsonConvert.DeserializeObject(DAT);//反序列化 - - - - // client.SendAsync("SC851" + "[" + MainWindowViewModel.S01 + "]" + MainWindowViewModel.dt_d.ToJsonString());//数字开关信息 - - }//数字开关表 - - // tcpClient.Logger.Info($"客户端接收到信息:{mes}"); return EasyTask.CompletedTask; }; diff --git a/View/EngineerSetView.xaml b/View/EngineerSetView.xaml index 2536921..b319472 100644 --- a/View/EngineerSetView.xaml +++ b/View/EngineerSetView.xaml @@ -10,10 +10,22 @@ - - + + + + + + + + + + + + +