| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Vmo; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; |
| | | } |
| | | |
| | | private static AssetsCoolingFactorVmo _last = null; |
| | | |
| | | /// <summary> |
| | | /// 返回数据事件 |
| | | /// </summary> |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | //验证 |
| | |
| | | return; |
| | | } |
| | | var vmo = await BLLFactory<HStation.BLL.AssetsCoolingFactor>.Instance.GetByID(id); |
| | | _last = vmo; |
| | | this.ReloadDataEvent?.Invoke(vmo); |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |