using DevExpress.XtraEditors;
|
using HStation.Vmo;
|
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.WinFrmUI.Page;
|
|
namespace HStation.WinFrmUI
|
{
|
public partial class AssetsFourlinkMgrPage : DocumentPage
|
{
|
public AssetsFourlinkMgrPage()
|
{
|
InitializeComponent();
|
this.PageTitle.Caption = "四通型号管理";
|
this.PageTitle.HeaderSvgImage = AssetsMainSvgImageHelper.Fourlink;
|
this.PageTitle.SvgImageSize = new Size(24, 24);
|
this.assetsFourlinkSeriesMgrTreeCtrl1.FocusedChangedEvent += assetsFourlinkSeriesMgrTreeCtrl1_FocusedChangedEvent;
|
}
|
|
/// <summary>
|
/// 初始化数据源
|
/// </summary>
|
public override void InitialDataSource()
|
{
|
base.InitialDataSource();
|
InitialMainPage();
|
this.assetsFourlinkSeriesMgrTreeCtrl1.InitialData();
|
}
|
|
//初始化型号页面
|
private void InitialMainPage()
|
{
|
this.assetsFourlinkMainMgrPage1.PageGuid = new PageGuid()
|
{
|
Modular = AssetsFunctionHelper.Modular,
|
MoudingType = eMoudingType.Tab,
|
Function = AssetsFunctionHelper.FourlinkFactorMgr,
|
TagName = string.Empty
|
};
|
this.assetsFourlinkMainMgrPage1.IsExistPageEvent += this.IsExistPage;
|
this.assetsFourlinkMainMgrPage1.CreatePageEvent += this.CreatePage;
|
this.assetsFourlinkMainMgrPage1.FindPageEvent += this.FindPage;
|
}
|
|
//聚焦改变
|
private void assetsFourlinkSeriesMgrTreeCtrl1_FocusedChangedEvent(AssetsFourlinkSeriesVmo series)
|
{
|
this.assetsFourlinkMainMgrPage1.SetBindingData(series);
|
}
|
}
|
}
|