using DevExpress.XtraEditors; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Yw; using Yw.DAL.Basic; namespace HStation.WinFrmUI { public partial class ViewAssetsCoolingFactorDlg : DevExpress.XtraEditors.XtraForm { public ViewAssetsCoolingFactorDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); } private HStation.Vmo.AssetsCoolingFactorVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(HStation.Vmo.AssetsCoolingFactorVmo vmo) { if (vmo == null) { return; } _vmo = vmo; this.txtName.EditValue = vmo.Name; this.txtMaterial.EditValue = vmo.Material; this.txtCaliber.EditValue = vmo.Caliber; this.txtCoefficient.EditValue = vmo.Coefficient; this.txtLowerLimit.EditValue = vmo.LowerLimit; this.txtDescription.EditValue = vmo.Description; } } }