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 ViewAssetsValveFactorDlg : DevExpress.XtraEditors.XtraForm { public ViewAssetsValveFactorDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); } private HStation.Vmo.AssetsValveFactorVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(HStation.Vmo.AssetsValveFactorVmo 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.MinorLoss; } } }