diff --git a/Admin.Core.Api/Admin.Core.Api.xml b/Admin.Core.Api/Admin.Core.Api.xml index 4eb584f6..8dbbb63a 100644 --- a/Admin.Core.Api/Admin.Core.Api.xml +++ b/Admin.Core.Api/Admin.Core.Api.xml @@ -1604,5 +1604,26 @@ + + + 电检数据接口 + + + + + 构造方法 + + + + + + + + + 保存电检数据 + + + + diff --git a/Aucma.Core.CodeBinding/Aucma.Core.CodeBinding.csproj b/Aucma.Core.CodeBinding/Aucma.Core.CodeBinding.csproj index 315d4ded..c4b1c69f 100644 --- a/Aucma.Core.CodeBinding/Aucma.Core.CodeBinding.csproj +++ b/Aucma.Core.CodeBinding/Aucma.Core.CodeBinding.csproj @@ -54,7 +54,9 @@ - + + Always + Always diff --git a/Aucma.Core.CodeBinding/ViewModels/MainWindowViewModel.cs b/Aucma.Core.CodeBinding/ViewModels/MainWindowViewModel.cs index a81ada6f..d3452efc 100644 --- a/Aucma.Core.CodeBinding/ViewModels/MainWindowViewModel.cs +++ b/Aucma.Core.CodeBinding/ViewModels/MainWindowViewModel.cs @@ -32,17 +32,14 @@ namespace Aucma.Core.CodeBinding.ViewModels /// public delegate Task queryList(object obj); public static event queryList? queryListEvent; - // 显示数据库状态 - private readonly ICodeBindingRecordServices? _codeBindingRecordServices; - private readonly IBaseMaterialInfoServices? _baseMaterialInfoServices; + public MainWindowViewModel() { - _codeBindingRecordServices = App.ServiceProvider.GetService(); - _baseMaterialInfoServices = App.ServiceProvider.GetService(); - RefreshMesDb(); + UserContent = firstPage; - MesDbState(true); + + MesDbState(false); PlcState(true); Scanner1State(true); Scanner2State(true); @@ -66,7 +63,8 @@ namespace Aucma.Core.CodeBinding.ViewModels /// /// public void RefreshStatus(object sender, System.Timers.ElapsedEventArgs e) - { + { + RefreshMesDb(); RefreshPlc(); RefreshScanner(); @@ -134,7 +132,7 @@ namespace Aucma.Core.CodeBinding.ViewModels } #endregion - + #region 窗口操作 /// /// 窗口操作 diff --git a/Aucma.Core.CodeBinding/Views/MainWindow.xaml b/Aucma.Core.CodeBinding/Views/MainWindow.xaml index 1d4953a9..f7d39b87 100644 --- a/Aucma.Core.CodeBinding/Views/MainWindow.xaml +++ b/Aucma.Core.CodeBinding/Views/MainWindow.xaml @@ -56,10 +56,8 @@ - - - - + +