lixiaojun
2024-09-24 5610ef481946ff15d856f65e08b3f25aeaf3e269
Desktop/HStation.Desktop.Xhs.Core/MainForm.cs
@@ -246,59 +246,42 @@
                                }
                            }
                        },
                        new TilePeekItem(){
                            Caption="类型管理",
                            SvgImage=svgImg32Model[4],
                          new TilePeekItem(){
                            Caption="管道附件",
                            SvgImage=svgImg32Model[7],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    Modular="Asstes",
                                    MoudingType=eMoudingType.Tab,
                                    Function="TypeMgr",
                                    Function="AdaptingMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysTypeManageMainPanel();
                                    var page=new AdaptingManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                        },
                          new TilePeekItem(){
                            Caption="分类管理",
                            SvgImage=svgImg32Model[5],
                                new TilePeekItem(){
                            Caption="管道管理",
                            SvgImage=svgImg32Model[7],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    Modular="Asstes",
                                    MoudingType=eMoudingType.Tab,
                                    Function="CataLogMgr",
                                    Function="PipeLineMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysCatalogManageMainPanel();
                                    var page=new PipeLineManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                         },      new TilePeekItem(){
                            Caption="属性管理",
                            SvgImage=svgImg32Model[6],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    MoudingType=eMoudingType.Tab,
                                    Function="PropMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysPropManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                         }
                        }
                    };
                    _SystemProductManageCtrl = peakItemList.CreatePeekCtrl();
                }
@@ -359,7 +342,7 @@
                        },
                        new TilePeekItem(){
                            Caption="菜单管理",
                            SvgImage=svgImg32Model[4],
                            SvgImage=svgImg32Model[2],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
@@ -371,6 +354,77 @@
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysTypeManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                        },
                             new TilePeekItem(){
                            Caption="类型管理",
                            SvgImage=svgImg32Model[4],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    MoudingType=eMoudingType.Tab,
                                    Function="TypeMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysTypeManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                        },
                          new TilePeekItem(){
                            Caption="分类管理",
                            SvgImage=svgImg32Model[5],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    MoudingType=eMoudingType.Tab,
                                    Function="CataLogMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysCatalogManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                         },      new TilePeekItem(){
                            Caption="属性管理",
                            SvgImage=svgImg32Model[6],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Basic",
                                    MoudingType=eMoudingType.Tab,
                                    Function="PropMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new SysPropManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
                         },
                        new TilePeekItem(){
                            Caption="字典类型",
                            SvgImage=svgImg32Model[1],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Dict",
                                    MoudingType=eMoudingType.Tab,
                                    Function="DictMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new HStation.WinFrmUI.Dict.DictManageMainPanel();
                                    CreatePage(page,guid);
                                }
                            }
@@ -459,6 +513,11 @@
        //添加
        private void tabbedView1_DocumentAdded(object sender, DocumentEventArgs e)
        {
            if (this.tabbedView1.Documents.Count > 1)
            {
                this.navBtnPrevious.Visible = true;
                this.navBtnNext.Visible = true;
            }
        }
        //激活
@@ -467,6 +526,8 @@
            var page = e.Document.Control as DocumentPage;
            if (page == null)
                return;
            this.navBtnCurrent.ImageOptions.SvgImage = page.PageTitle.HeaderSvgImage;
            this.navBtnCurrent.Caption = page.PageTitle.Caption;
        }
        //关闭 此时控件已经为空
@@ -747,7 +808,7 @@
            //    }
            //}
            //this.docPnlFuncList.Text = modular.ToString();
            //this.funcTreeListCtrl1.SetBindingData(modular, surfaceGuid);
            //this.funcTreeListCtrl1.SetMatching(modular, surfaceGuid);
            //if (surfaceGuid == null)
            //{
            //    var func = this.funcTreeListCtrl1.SetDefault();
@@ -757,5 +818,15 @@
        }
        #endregion Modular
        private void navBtnPrevious_ElementClick(object sender, NavElementEventArgs e)
        {
            this.tabbedView1.Controller.SelectNextTab(false);
        }
        private void navBtnNext_ElementClick(object sender, NavElementEventArgs e)
        {
            this.tabbedView1.Controller.SelectNextTab(true);
        }
    }
}