lixiaojun
2024-10-29 cc89c6b8112cfccd270951a9177c6ac0e5307d79
Desktop/HStation.DeskTop.Xhs.Main/GuideMain.cs
@@ -3,15 +3,15 @@
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraEditors;
using HStation.WinFrmUI;
using HStation.WinFrmUI.Auth;
using HStation.WinFrmUI.Basic;
using HStation.WinFrmUI.Xhs.Core;
using HStation.WinFrmUI.Organize;
using HStation.WinFrmUI.Xhs.PumpProduct;
using System;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Yw.WinFrmUI;
namespace HStation.Desktop
{
@@ -94,6 +94,13 @@
                    {
                        popSystemConfig.MinWidth = buttonInfo.Bounds.Width;
                        popSystemConfig.ShowPopup(point);
                    }
                    break;
                case "SystemOrganize":
                    {
                        popSystemOrganize.MinWidth = buttonInfo.Bounds.Width;
                        popSystemOrganize.ShowPopup(point);
                    }
                    break;
@@ -250,6 +257,23 @@
            }
        }
        //角色管理
        private void BarBtnRoleManage_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var guid = new PageGuid()
            {
                Function = "角色管理",
                Modular = ""
            };
            if (!IsExistPage(guid, true))
            {
                /* var page = new MenuMgrMainPanel();
                 page.PageTitle.Caption = guid.Function;
                 page.PageGuid = guid;
                 CreatePage(page, guid);*/
            }
        }
        /// <summary>
        /// 分区管理
        /// </summary>
@@ -301,12 +325,24 @@
        }
        /// <summary>
        /// 用户管理
        /// 员工管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barBtnUser_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var guid = new PageGuid()
            {
                Function = "员工管理",
                Modular = ""
            };
            if (!IsExistPage(guid, true))
            {
                var page = new EmployeeMgrMainPanel();
                page.PageTitle.Caption = guid.Function;
                page.PageGuid = guid;
                CreatePage(page, guid);
            }
        }
        /// <summary>
@@ -491,18 +527,18 @@
        private void GuideMain_Load(object sender, EventArgs e)
        {
            /*var guid = new PageGuid()
            var guid = new PageGuid()
            {
                Function = "项目总览",
                Modular = ""
            };
            if (!IsExistPage(guid, true))
            {
                var page = new HomePageMainPanel();
                var page = new HomeXhsProjectPage_Bak();
                page.PageTitle.Caption = guid.Function;
                page.PageGuid = guid;
                CreatePage(page, guid);
            }*/
            }
        }
    }
}