| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Vmo; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Yw.WinFrmUI.Page; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | public AssetsCoolingMgrPage() |
| | | { |
| | | InitializeComponent(); |
| | | this.PageTitle.Caption = "冷却塔型号管理"; |
| | | this.PageTitle.HeaderSvgImage = AssetsMainSvgImageHelper.Cooling; |
| | | this.PageTitle.SvgImageSize = new Size(24, 24); |
| | | this.assetsCoolingSeriesMgrTreeCtrl1.FocusedChangedEvent += assetsCoolingSeriesMgrTreeCtrl1_FocusedChangedEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化数据源 |
| | | /// </summary> |
| | | public override void InitialDataSource() |
| | | { |
| | | base.InitialDataSource(); |
| | | InitialMainPage(); |
| | | this.assetsCoolingSeriesMgrTreeCtrl1.InitialData(); |
| | | } |
| | | |
| | | //初始化型号页面 |
| | | private void InitialMainPage() |
| | | { |
| | | this.assetsCoolingMainMgrPage1.PageGuid = new PageGuid() |
| | | { |
| | | Modular = AssetsFunctionHelper.Modular, |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = AssetsFunctionHelper.CoolingFactorMgr, |
| | | TagName = string.Empty |
| | | }; |
| | | this.assetsCoolingMainMgrPage1.IsExistPageEvent += this.IsExistPage; |
| | | this.assetsCoolingMainMgrPage1.CreatePageEvent += this.CreatePage; |
| | | this.assetsCoolingMainMgrPage1.FindPageEvent += this.FindPage; |
| | | |
| | | } |
| | | |
| | | //聚焦改变 |
| | | private void assetsCoolingSeriesMgrTreeCtrl1_FocusedChangedEvent(AssetsCoolingSeriesVmo series) |
| | | { |
| | | this.assetsCoolingMainMgrPage1.SetBindingData(series); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |