From 57385cba9d8b860360ebd4426c5465b94a418c8d Mon Sep 17 00:00:00 2001 From: Tyrone CT Date: Thu, 5 Mar 2026 11:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OrpaonEMS.App/ViewModels/AutoHandViewModel.cs | 32 +++++++++++++++++++ OrpaonEMS.App/Views/AutoHandView.xaml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/OrpaonEMS.App/ViewModels/AutoHandViewModel.cs b/OrpaonEMS.App/ViewModels/AutoHandViewModel.cs index beedb90..81a149b 100644 --- a/OrpaonEMS.App/ViewModels/AutoHandViewModel.cs +++ b/OrpaonEMS.App/ViewModels/AutoHandViewModel.cs @@ -244,6 +244,8 @@ namespace OrpaonEMS.App.ViewModels + + private DelegateCommand _PcsSendPwBtnCmd; /// /// PCS 手动发送功率操作 @@ -310,6 +312,36 @@ namespace OrpaonEMS.App.ViewModels + private DelegateCommand _BmsResetBtnCmd; + /// + /// Bms复位操作 + /// + public DelegateCommand BmsResetBtnCmd + { + set + { + _BmsResetBtnCmd = value; + } + get + { + if (_BmsResetBtnCmd == null) + { + _BmsResetBtnCmd = new DelegateCommand(() => BmsResetBtnCmdMethod()); + } + return _BmsResetBtnCmd; + } + } + + /// + /// Bms复位操作 执行方法 + /// + private async Task BmsResetBtnCmdMethod() + { + bmsDataService.BmsAlarmReset(); + await Task.CompletedTask; + } + + private DelegateCommand _PcsGridConBtnCmd; diff --git a/OrpaonEMS.App/Views/AutoHandView.xaml b/OrpaonEMS.App/Views/AutoHandView.xaml index 9be5e3d..dbe8fe5 100644 --- a/OrpaonEMS.App/Views/AutoHandView.xaml +++ b/OrpaonEMS.App/Views/AutoHandView.xaml @@ -260,7 +260,7 @@ Grid.Row="1" Width="120" Margin="10" - Command="{Binding PcsLocationBtnCmd}" + Command="{Binding BmsResetBtnCmd}" Foreground="White"> Bms复位