duheng
2024-12-27 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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);
        }
    }
}