This commit is contained in:
2026-03-05 11:53:17 +08:00
parent 7c001e6396
commit 57385cba9d
2 changed files with 33 additions and 1 deletions

View File

@@ -244,6 +244,8 @@ namespace OrpaonEMS.App.ViewModels
private DelegateCommand _PcsSendPwBtnCmd;
/// <summary>
/// PCS 手动发送功率操作
@@ -310,6 +312,36 @@ namespace OrpaonEMS.App.ViewModels
private DelegateCommand _BmsResetBtnCmd;
/// <summary>
/// Bms复位操作
/// </summary>
public DelegateCommand BmsResetBtnCmd
{
set
{
_BmsResetBtnCmd = value;
}
get
{
if (_BmsResetBtnCmd == null)
{
_BmsResetBtnCmd = new DelegateCommand(() => BmsResetBtnCmdMethod());
}
return _BmsResetBtnCmd;
}
}
/// <summary>
/// Bms复位操作 执行方法
/// </summary>
private async Task BmsResetBtnCmdMethod()
{
bmsDataService.BmsAlarmReset();
await Task.CompletedTask;
}
private DelegateCommand _PcsGridConBtnCmd;

View File

@@ -260,7 +260,7 @@
Grid.Row="1"
Width="120"
Margin="10"
Command="{Binding PcsLocationBtnCmd}"
Command="{Binding BmsResetBtnCmd}"
Foreground="White">
Bms复位
</Button>