using HStation.Vmo;
|
using Yw;
|
|
namespace HStation.WinFrmUI
|
{
|
public partial class ViewAssetsFlowmeterSeriesDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public ViewAssetsFlowmeterSeriesDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
this.layoutControl1.SetupLayoutControl();
|
}
|
|
|
private AssetsFlowmeterSeriesVmo _vmo = null;
|
|
/// <summary>
|
/// 绑定数据
|
/// </summary>
|
public void SetBindingData(AssetsFlowmeterSeriesVmo vmo)
|
{
|
if (vmo == null)
|
{
|
return;
|
}
|
_vmo = new AssetsFlowmeterSeriesVmo(vmo);
|
this.txtName.EditValue = vmo.Name;
|
this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(vmo.Flags);
|
this.txtTagName.EditValue = vmo.TagName;
|
this.txtDescription.EditValue = vmo.Description;
|
}
|
|
|
|
|
|
|
|
|
|
}
|
}
|