duheng
2024-11-21 c653f2f6f2de553395b706de3a62fec5e4a6fbf7
Desktop/HStation.Desktop.PBS.Core/MainForm.cs
@@ -3,6 +3,7 @@
using DevExpress.XtraBars.Navigation;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraEditors;
using HStation.WinFrmUI.PBS;
using System.IO;
using Yw.WinFrmUI;
using Yw.WinFrmUI.Page;
@@ -14,6 +15,7 @@
        public MainForm()
        {
            InitializeComponent();
        }
        #region TileNavPane 相关处理
@@ -84,8 +86,8 @@
        private Control _place_mgr_ctrl = null;//场所管理弹出界面
        private Control _equivalent_mgr_ctrl = null;//当量管理弹出界面
        private Control _asste_mgr_ctrl = null;//产品管理弹出界面
        private Control _system_config_ctrl = null;//系统配置弹出界面
        private Control _asste_mgr_ctrl = null;//产品管理弹出界面
        private Control _system_config_ctrl = null;//系统配置弹出界面
        private Control _auth_config_ctrl = null;//权限配置弹出界面
        //首页
@@ -99,6 +101,7 @@
            };
            if (!IsExistPage(guid, true))
            {
            }
        }
@@ -127,8 +130,7 @@
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    var page=new Yw.WinFrmUI.DivisionMainPage();
                                    CreatePage(page,guid);
                                }
                            }
                        },
@@ -141,10 +143,11 @@
                                var guid=new PageGuid(){
                                    Modular="Place",
                                    MoudingType=eMoudingType.Tab,
                                    Function="PlaceBuildMgr",
                                    Function="PlaceMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                    CreatePage(new PlaceMgrPage(),guid);
                                }
                            }
                        },
@@ -157,29 +160,31 @@
                                var guid=new PageGuid(){
                                    Modular="Place",
                                    MoudingType=eMoudingType.Tab,
                                    Function="PlaceFacilityMgr",
                                    Function="FacilityMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        },
                        new TilePeekItem(){
                            Caption="场所分区",
                            SvgImage=svgImg32[3],
                            SvgImageSize=new Size(24,24),
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Place",
                                    MoudingType=eMoudingType.Tab,
                                    Function="PlaceRegionMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        },
                        //new TilePeekItem(){
                        //    Caption="场所分区",
                        //    SvgImage=svgImg32[3],
                        //    SvgImageSize=new Size(24,24),
                        //    Click=()=>{
                        //        this.flyoutPanel1.HideBeakForm();
                        //        var guid=new PageGuid(){
                        //            Modular="Place",
                        //            MoudingType=eMoudingType.Tab,
                        //            Function="RegionMgr",
                        //        };
                        //        if(!IsExistPage(guid,true))
                        //        {
                        //        }
                        //    }
                        //},
                    };
                _place_mgr_ctrl = peek_item_list.CreatePeekCtrl();
            }
@@ -189,10 +194,11 @@
            this.flyoutPanelControl1.Controls.Add(_place_mgr_ctrl);
            var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds);
            this.flyoutPanel1.ShowBeakForm(rectangle);
        }
        //当量管理
        private void nbEquivalentMgr_ElementClick(object sender, NavElementEventArgs e)
        private void nbWEMgr_ElementClick(object sender, NavElementEventArgs e)
        {
            var pt = this.tileNavPane.PointToClient(MousePosition);
            var hit_info = this.tileNavPane.CalcHitInfo(pt);
@@ -210,12 +216,13 @@
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Equivalent",
                                    Modular="WE",
                                    MoudingType=eMoudingType.Tab,
                                    Function="WaterUtensilMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        },
@@ -226,12 +233,13 @@
                            Click=()=>{
                                this.flyoutPanel1.HideBeakForm();
                                var guid=new PageGuid(){
                                    Modular="Equivalent",
                                    Modular="WE",
                                    MoudingType=eMoudingType.Tab,
                                    Function="WaterEquivalentMgr",
                                    Function="WaterWEMgr",
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        }
@@ -270,6 +278,7 @@
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        },
@@ -286,6 +295,7 @@
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        },
@@ -302,6 +312,7 @@
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                        }
@@ -313,6 +324,7 @@
            this.flyoutPanelControl1.Controls.Add(_asste_mgr_ctrl);
            var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds);
            this.flyoutPanel1.ShowBeakForm(rectangle);
        }
        //系统配置
@@ -355,6 +367,7 @@
                                };
                                if(!IsExistPage(guid,true))
                                {
                                }
                            }
                         },      new TilePeekItem(){
@@ -397,6 +410,7 @@
            this.flyoutPanelControl1.Controls.Add(_system_config_ctrl);
            var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds);
            this.flyoutPanel1.ShowBeakForm(rectangle);
        }
        //权限配置
@@ -469,7 +483,7 @@
            }
        }
        #endregion Menu
        #endregion
        #endregion TileNavPane 相关处理
@@ -884,5 +898,7 @@
            }
            this.tabbedView1.DocumentGroupProperties.ShowTabHeader = !this.tabbedView1.DocumentGroupProperties.ShowTabHeader;
        }
    }
}