duheng
2025-03-28 b266e82b9a377fa35a766f7a3a2f5aa95f3c9125
WinFrmUI/HStation.WinFrmUI.Auth.Core/04-role-projcet-menu/RoleTreeListCtrl.cs
@@ -1,13 +1,4 @@
using DevExpress.Utils;
using DevExpress.Utils.Design;
using DevExpress.Utils.DragDrop;
using DevExpress.XtraEditors;
using DevExpress.XtraTreeList;
using DevExpress.XtraTreeList.Nodes;
using HStation.Vmo;
using System.ComponentModel;
using System.Windows.Media.Imaging;
using Yw;
using Yw;
using Yw.WinFrmUI;
namespace HStation.WinFrmUI
@@ -27,7 +18,7 @@
        /// <summary>
        /// 聚焦改变事件
        /// </summary>
        public event Action<Yw.Vmo.Role> FocusedChangedEvent;
        public event Action<Yw.Vmo.RoleVmo> FocusedChangedEvent;
        /// <summary>
        /// 所有绑定列表
@@ -40,9 +31,9 @@
        public async void InitialData()
        {
            var overlay = this.ShowOverlay();
            var allList = await BLLFactory<Yw.BLL.Role>.Instance.GetByCorpID(0);
            var allBindingList = await BLLFactory<Yw.BLL.Role>.Instance.GetByCorpID(LoginUserInfo.CorpID);
            _allBindingList = new List<RoleTreeListViewModel>();
            allList?.ForEach(x =>
            allBindingList?.ForEach(x =>
            {
                var vm = new RoleTreeListViewModel(x);
                _allBindingList.Add(vm);