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复位