From f2333318a31e92f6cbc3a572d8eb9fae9da0f892 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期六, 12 十月 2024 13:59:15 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/EditPumpProductGroupDlg.cs | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/EditPumpProductGroupDlg.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/EditPumpProductGroupDlg.cs index ef69259..59da956 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/EditPumpProductGroupDlg.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/EditPumpProductGroupDlg.cs @@ -10,16 +10,16 @@ this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; } - public event Func<Vmo.PumpGroupVmo, Task<bool>> ReloadDataEvent = null; + public event Func<Vmo.AssetsPumpGroupVmo, Task<bool>> ReloadDataEvent = null; - private Vmo.PumpGroupVmo _UpdataePumpGroupDto = null; + private Vmo.AssetsPumpGroupVmo _UpdataeAssetsPumpGroupDto = null; - public void SetBindingData(Vmo.PumpGroupVmo groupvmo) + public void SetBindingData(Vmo.AssetsPumpGroupVmo groupvmo) { - _UpdataePumpGroupDto = groupvmo; - this.NameTextEdit.Text = _UpdataePumpGroupDto.Name; - this.DescriptionTextEdit.Text = _UpdataePumpGroupDto.Description; - this.TagNameTextEdit.Text = _UpdataePumpGroupDto.TagName; + _UpdataeAssetsPumpGroupDto = groupvmo; + this.NameTextEdit.Text = _UpdataeAssetsPumpGroupDto.Name; + this.DescriptionTextEdit.Text = _UpdataeAssetsPumpGroupDto.Description; + this.TagNameTextEdit.Text = _UpdataeAssetsPumpGroupDto.TagName; } //鏁版嵁楠岃瘉 @@ -37,10 +37,10 @@ //瀹屾垚 private async void BtnOk_ClickAsync(object sender, EventArgs e) { - _UpdataePumpGroupDto.TagName = TagNameTextEdit.Text.Trim(); - _UpdataePumpGroupDto.Name = NameTextEdit.Text.Trim(); - _UpdataePumpGroupDto.Description = DescriptionTextEdit.Text.Trim(); - if (await this.ReloadDataEvent.Invoke(_UpdataePumpGroupDto)) + _UpdataeAssetsPumpGroupDto.TagName = TagNameTextEdit.Text.Trim(); + _UpdataeAssetsPumpGroupDto.Name = NameTextEdit.Text.Trim(); + _UpdataeAssetsPumpGroupDto.Description = DescriptionTextEdit.Text.Trim(); + if (await this.ReloadDataEvent.Invoke(_UpdataeAssetsPumpGroupDto)) { MessageBoxHelper.ShowSuccess("缂栬緫鎴愬姛!"); } -- Gitblit v1.9.3