From 907a1579fecf2c160852cf99b3ea77c08eb481cc Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期二, 17 十二月 2024 09:44:04 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/22-cooling/03-factor/AddAssetsCoolingFactorDlg.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/22-cooling/03-factor/AddAssetsCoolingFactorDlg.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/22-cooling/03-factor/AddAssetsCoolingFactorDlg.cs index 34fc6bc..8c7f4ff 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/22-cooling/03-factor/AddAssetsCoolingFactorDlg.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/22-cooling/03-factor/AddAssetsCoolingFactorDlg.cs @@ -1,4 +1,5 @@ 锘縰sing DevExpress.XtraEditors; +using HStation.Vmo; using System; using System.Collections.Generic; using System.ComponentModel; @@ -22,6 +23,8 @@ this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; } + private static AssetsCoolingFactorVmo _last = null; + /// <summary> /// 杩斿洖鏁版嵁浜嬩欢 /// </summary> @@ -35,6 +38,15 @@ public void SetBindingData() { _vmo = new Vmo.AssetsCoolingFactorVmo(); + if (_last != null) + { + this.txtName.EditValue = _last.Name; + this.txtMaterial.EditValue = _last.Material; + this.txtCaliber.EditValue = _last.Caliber; + this.txtCoefficient.EditValue = _last.Coefficient; + this.txtLowerLimit.EditValue = _last.LowerLimit; + this.txtDescription.EditValue = _last.Description; + } } //楠岃瘉 @@ -88,6 +100,7 @@ return; } var vmo = await BLLFactory<HStation.BLL.AssetsCoolingFactor>.Instance.GetByID(id); + _last = vmo; this.ReloadDataEvent?.Invoke(vmo); this.DialogResult = DialogResult.OK; this.Close(); -- Gitblit v1.9.3