using HStation.Vmo;
|
using Yw.WinFrmUI.Page;
|
|
namespace HStation.WinFrmUI
|
{
|
public partial class AssetsCompressorMgrPage : DocumentPage
|
{
|
public AssetsCompressorMgrPage()
|
{
|
InitializeComponent();
|
this.PageTitle.Caption = "空压机型号";
|
this.PageTitle.HeaderSvgImage = AssetsMainSvgImageHelper.Compressor;
|
this.PageTitle.SvgImageSize = new Size(24, 24);
|
this.assetsCompressorSeriesMgrTreeCtrl1.FocusedChangedEvent += assetsCompressorSeriesMgrTreeCtrl1_FocusedChangedEvent;
|
}
|
|
/// <summary>
|
/// 初始化数据源
|
/// </summary>
|
public override void InitialDataSource()
|
{
|
base.InitialDataSource();
|
InitialMainPage();
|
this.assetsCompressorSeriesMgrTreeCtrl1.InitialData();
|
}
|
|
//初始化型号页面
|
private void InitialMainPage()
|
{
|
this.assetsCompressorMainMgrPage1.PageGuid = new PageGuid()
|
{
|
Modular = AssetsFunctionHelper.Modular,
|
MoudingType = eMoudingType.Tab,
|
Function = AssetsFunctionHelper.CompressorFactorMgr,
|
TagName = string.Empty
|
};
|
this.assetsCompressorMainMgrPage1.IsExistPageEvent += this.IsExistPage;
|
this.assetsCompressorMainMgrPage1.CreatePageEvent += this.CreatePage;
|
this.assetsCompressorMainMgrPage1.FindPageEvent += this.FindPage;
|
}
|
|
//聚焦改变
|
private void assetsCompressorSeriesMgrTreeCtrl1_FocusedChangedEvent(AssetsCompressorSeriesVmo series)
|
{
|
this.assetsCompressorMainMgrPage1.SetBindingData(series);
|
}
|
}
|
}
|