ningshuxia
2025-03-27 afbafeecc1325bff849a17fb63b9b2b65b48ddf1
WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/AddMenuDlg.cs
@@ -1,8 +1,4 @@
using DevExpress.DocumentServices.ServiceModel.DataContracts;
using DevExpress.XtraEditors;
using System;
using System.Windows.Forms;
using Yw.WinFrmUI;
using Yw.WinFrmUI;
using static HStation.WinFrmUI.MenuViewModel;
namespace HStation.WinFrmUI
@@ -26,7 +22,7 @@
        /// </summary>
        public async void SetBindingData(long parentId)
        {
            var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(GlobalParas._GlobalParas.ProjectID);
            var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(LoginUserInfo.ProjectID);
            this.treeListLookUpEdit1TreeList.DataSource = allList;
            this.imageComboBoxMenuType.Properties.AddEnum(typeof(eMenuType));
            this.imageComboBoxMenuType.SelectedIndex = 0;
@@ -61,8 +57,8 @@
            AddProject.ParentID = this.ComboBoxEditParentsChoice.EditValue == null ? 0 : Convert.ToInt64(this.ComboBoxEditParentsChoice.EditValue);
            AddProject.Type = (int)(eMenuType)this.imageComboBoxMenuType.EditValue;
            AddProject.Permission = this.TxtEditPermission.Text.Trim();
            AddProject.ProjectID = GlobalParas._GlobalParas.ProjectID;
            AddProject.SoftwareIds = new List<long> { GlobalParas._GlobalParas.SoftwareID };
            AddProject.ProjectID = LoginUserInfo.ProjectID;
            AddProject.SoftwareIds = new List<long> { LoginUserInfo.SoftwareID };
            if (await this.ReloadDataEvent.Invoke(AddProject))
            {
                TipFormHelper.ShowSucceed("添加成功!!");